Class TimeEntry


  • public class TimeEntry
    extends Object
    TimeEntry
    • Constructor Detail

      • TimeEntry

        public TimeEntry()
    • Method Detail

      • timeEntryId

        public TimeEntry timeEntryId​(UUID timeEntryId)
        Identifier of the time entry.
        Parameters:
        timeEntryId - UUID
        Returns:
        TimeEntry
      • getTimeEntryId

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

        public void setTimeEntryId​(UUID timeEntryId)
        Identifier of the time entry.
        Parameters:
        timeEntryId - UUID
      • userId

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

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

        public void setUserId​(UUID userId)
        The xero user identifier of the person who logged time.
        Parameters:
        userId - UUID
      • projectId

        public TimeEntry projectId​(UUID projectId)
        Identifier of the project, that the task (which the time entry is logged against) belongs to.
        Parameters:
        projectId - UUID
        Returns:
        TimeEntry
      • 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)
        Identifier of the project, that the task (which the time entry is logged against) belongs to.
        Parameters:
        projectId - UUID
      • taskId

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

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

        public void setTaskId​(UUID taskId)
        Identifier of the task that time entry is logged against.
        Parameters:
        taskId - UUID
      • dateUtc

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

        public TimeEntry dateEnteredUtc​(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
        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

        public TimeEntry duration​(Integer duration)
        The duration of logged minutes.
        Parameters:
        duration - Integer
        Returns:
        TimeEntry
      • getDuration

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

        public void setDuration​(Integer duration)
        The duration of logged minutes.
        Parameters:
        duration - Integer
      • description

        public TimeEntry description​(String description)
        A description of the time entry.
        Parameters:
        description - String
        Returns:
        TimeEntry
      • getDescription

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

        public void setDescription​(String description)
        A description of the time entry.
        Parameters:
        description - String
      • status

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

        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)
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object