Class TimeEntry

java.lang.Object
com.xero.models.project.TimeEntry

public class TimeEntry
extends Object
TimeEntry
  • Constructor Details

    • TimeEntry

      public TimeEntry()
  • Method Details

    • timeEntryId

      public TimeEntry timeEntryId​(UUID timeEntryId)
    • getTimeEntryId

      public UUID getTimeEntryId()
      Identifier of the time entry.
      Returns:
      timeEntryId
    • setTimeEntryId

      public void setTimeEntryId​(UUID timeEntryId)
    • userId

      public TimeEntry userId​(UUID userId)
    • getUserId

      public UUID getUserId()
      The xero user identifier of the person who logged time.
      Returns:
      userId
    • setUserId

      public void setUserId​(UUID userId)
    • projectId

      public TimeEntry projectId​(UUID projectId)
    • getProjectId

      public UUID getProjectId()
      Identifier of the project, that the task (which the time entry is logged against) belongs to.
      Returns:
      projectId
    • setProjectId

      public void setProjectId​(UUID projectId)
    • taskId

      public TimeEntry taskId​(UUID taskId)
    • getTaskId

      public UUID getTaskId()
      Identifier of the task that time entry is logged against.
      Returns:
      taskId
    • setTaskId

      public void setTaskId​(UUID taskId)
    • dateUtc

      public TimeEntry dateUtc​(org.threeten.bp.OffsetDateTime dateUtc)
    • 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)
    • dateEnteredUtc

      public TimeEntry dateEnteredUtc​(org.threeten.bp.OffsetDateTime dateEnteredUtc)
    • 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)
    • duration

      public TimeEntry duration​(Integer duration)
    • getDuration

      public Integer getDuration()
      The duration of logged minutes.
      Returns:
      duration
    • setDuration

      public void setDuration​(Integer duration)
    • description

      public TimeEntry description​(String description)
    • getDescription

      public String getDescription()
      A description of the time entry.
      Returns:
      description
    • setDescription

      public void setDescription​(String description)
    • status

      public TimeEntry status​(TimeEntry.StatusEnum status)
    • getStatus

      public TimeEntry.StatusEnum 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

      public void setStatus​(TimeEntry.StatusEnum status)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object