Class Timesheet

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

public class Timesheet
extends Object
Timesheet
  • Constructor Details

    • Timesheet

      public Timesheet()
  • Method Details

    • timesheetID

      public Timesheet timesheetID​(UUID timesheetID)
    • getTimesheetID

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

      public void setTimesheetID​(UUID timesheetID)
    • payrollCalendarID

      public Timesheet payrollCalendarID​(UUID payrollCalendarID)
    • getPayrollCalendarID

      public UUID getPayrollCalendarID()
      The Xero identifier for the Payroll Calandar that the Timesheet applies to
      Returns:
      payrollCalendarID
    • setPayrollCalendarID

      public void setPayrollCalendarID​(UUID payrollCalendarID)
    • employeeID

      public Timesheet employeeID​(UUID employeeID)
    • getEmployeeID

      public UUID getEmployeeID()
      The Xero identifier for the Employee that the Timesheet is for
      Returns:
      employeeID
    • setEmployeeID

      public void setEmployeeID​(UUID employeeID)
    • startDate

      public Timesheet startDate​(org.threeten.bp.LocalDate startDate)
    • getStartDate

      public org.threeten.bp.LocalDate getStartDate()
      The Start Date of the Timesheet period (YYYY-MM-DD)
      Returns:
      startDate
    • setStartDate

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

      public Timesheet endDate​(org.threeten.bp.LocalDate endDate)
    • getEndDate

      public org.threeten.bp.LocalDate getEndDate()
      The End Date of the Timesheet period (YYYY-MM-DD)
      Returns:
      endDate
    • setEndDate

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

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

      public Timesheet.StatusEnum getStatus()
      Status of the timesheet
      Returns:
      status
    • setStatus

      public void setStatus​(Timesheet.StatusEnum status)
    • totalHours

      public Timesheet totalHours​(Double totalHours)
    • getTotalHours

      public Double getTotalHours()
      The Total Hours of the Timesheet
      Returns:
      totalHours
    • setTotalHours

      public void setTotalHours​(Double totalHours)
    • updatedDateUTC

      public Timesheet updatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
    • getUpdatedDateUTC

      public org.threeten.bp.LocalDateTime getUpdatedDateUTC()
      The UTC date time that the Timesheet was last updated
      Returns:
      updatedDateUTC
    • setUpdatedDateUTC

      public void setUpdatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
    • 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)
    • 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