Class Timesheet

java.lang.Object
com.xero.models.payrollau.Timesheet

public class Timesheet
extends Object
Timesheet
  • Constructor Details

    • Timesheet

      public Timesheet()
  • Method Details

    • employeeID

      public Timesheet employeeID​(UUID employeeID)
    • getEmployeeID

      public UUID getEmployeeID()
      The Xero identifier for an employee
      Returns:
      employeeID
    • setEmployeeID

      public void setEmployeeID​(UUID employeeID)
    • startDate

      public Timesheet startDate​(String startDate)
    • getStartDate

      public String getStartDate()
      Period start date (YYYY-MM-DD)
      Returns:
      startDate
    • getStartDateAsDate

      public org.threeten.bp.LocalDate getStartDateAsDate()
    • setStartDate

      public void setStartDate​(String startDate)
    • setStartDate

      public void setStartDate​(org.threeten.bp.LocalDate startDate)
    • endDate

      public Timesheet endDate​(String endDate)
    • getEndDate

      public String getEndDate()
      Period end date (YYYY-MM-DD)
      Returns:
      endDate
    • getEndDateAsDate

      public org.threeten.bp.LocalDate getEndDateAsDate()
    • setEndDate

      public void setEndDate​(String endDate)
    • setEndDate

      public void setEndDate​(org.threeten.bp.LocalDate endDate)
    • status

      public Timesheet status​(TimesheetStatus status)
    • getStatus

      public TimesheetStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus​(TimesheetStatus status)
    • hours

      public Timesheet hours​(Double hours)
    • getHours

      public Double getHours()
      Timesheet total hours
      Returns:
      hours
    • setHours

      public void setHours​(Double hours)
    • timesheetID

      public Timesheet timesheetID​(UUID timesheetID)
    • getTimesheetID

      public UUID getTimesheetID()
      The Xero identifier for a Payroll Timesheet
      Returns:
      timesheetID
    • setTimesheetID

      public void setTimesheetID​(UUID timesheetID)
    • timesheetLines

      public Timesheet timesheetLines​(List<TimesheetLine> timesheetLines)
    • addTimesheetLinesItem

      public Timesheet addTimesheetLinesItem​(TimesheetLine timesheetLinesItem)
    • getTimesheetLines

      public List<TimesheetLine> getTimesheetLines()
      Get timesheetLines
      Returns:
      timesheetLines
    • setTimesheetLines

      public void setTimesheetLines​(List<TimesheetLine> timesheetLines)
    • getUpdatedDateUTC

      public String getUpdatedDateUTC()
      Last modified timestamp
      Returns:
      updatedDateUTC
    • getUpdatedDateUTCAsDate

      public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
    • validationErrors

      public Timesheet validationErrors​(List<ValidationError> validationErrors)
    • addValidationErrorsItem

      public Timesheet addValidationErrorsItem​(ValidationError validationErrorsItem)
    • getValidationErrors

      public List<ValidationError> getValidationErrors()
      Displays array of validation error messages from the API
      Returns:
      validationErrors
    • setValidationErrors

      public void setValidationErrors​(List<ValidationError> validationErrors)
    • 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