Package com.xero.models.project
Class TimeEntry
java.lang.Object
com.xero.models.project.TimeEntry
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc) The date time that time entry is created.dateUtc(org.threeten.bp.OffsetDateTime dateUtc) The date time that time entry is logged on.description(String description) A description of the time entry.The duration of logged minutes.booleanorg.threeten.bp.OffsetDateTimeThe date time that time entry is created.org.threeten.bp.OffsetDateTimeThe date time that time entry is logged on.A description of the time entry.The duration of logged minutes.Identifier of the project, that the task (which the time entry is logged against) belongs to.Status of the time entry.Identifier of the task that time entry is logged against.Identifier of the time entry.The xero user identifier of the person who logged time.inthashCode()Identifier of the project, that the task (which the time entry is logged against) belongs to.voidsetDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc) The date time that time entry is created.voidsetDateUtc(org.threeten.bp.OffsetDateTime dateUtc) The date time that time entry is logged on.voidsetDescription(String description) A description of the time entry.voidsetDuration(Integer duration) The duration of logged minutes.voidsetProjectId(UUID projectId) Identifier of the project, that the task (which the time entry is logged against) belongs to.voidsetStatus(TimeEntry.StatusEnum status) Status of the time entry.voidIdentifier of the task that time entry is logged against.voidsetTimeEntryId(UUID timeEntryId) Identifier of the time entry.voidThe xero user identifier of the person who logged time.status(TimeEntry.StatusEnum status) Status of the time entry.Identifier of the task that time entry is logged against.timeEntryId(UUID timeEntryId) Identifier of the time entry.toString()The xero user identifier of the person who logged time.
-
Constructor Details
-
TimeEntry
public TimeEntry()
-
-
Method Details
-
timeEntryId
-
getTimeEntryId
-
setTimeEntryId
Identifier of the time entry.- Parameters:
timeEntryId- UUID
-
userId
-
getUserId
-
setUserId
The xero user identifier of the person who logged time.- Parameters:
userId- UUID
-
projectId
-
getProjectId
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Returns:
- projectId
-
setProjectId
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Parameters:
projectId- UUID
-
taskId
-
getTaskId
-
setTaskId
Identifier of the task that time entry is logged against.- Parameters:
taskId- UUID
-
dateUtc
The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime- Returns:
- TimeEntry
-
getDateUtc
public org.threeten.bp.OffsetDateTime getDateUtc()The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Returns:
- dateUtc
-
setDateUtc
public void setDateUtc(org.threeten.bp.OffsetDateTime dateUtc) The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime
-
dateEnteredUtc
The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Parameters:
dateEnteredUtc- OffsetDateTime- Returns:
- TimeEntry
-
getDateEnteredUtc
public org.threeten.bp.OffsetDateTime getDateEnteredUtc()The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Returns:
- dateEnteredUtc
-
setDateEnteredUtc
public void setDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc) The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Parameters:
dateEnteredUtc- OffsetDateTime
-
duration
-
getDuration
-
setDuration
The duration of logged minutes.- Parameters:
duration- Integer
-
description
-
getDescription
-
setDescription
A description of the time entry.- Parameters:
description- String
-
status
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Parameters:
status- StatusEnum- Returns:
- TimeEntry
-
getStatus
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Returns:
- status
-
setStatus
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Parameters:
status- StatusEnum
-
equals
-
hashCode
-
toString
-