Class Timesheet


  • public class Timesheet
    extends Object
    Timesheet
    • Constructor Detail

      • Timesheet

        public Timesheet()
    • Method Detail

      • timesheetID

        public Timesheet timesheetID​(UUID timesheetID)
        The Xero identifier for a Timesheet
        Parameters:
        timesheetID - UUID
        Returns:
        Timesheet
      • getTimesheetID

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

        public void setTimesheetID​(UUID timesheetID)
        The Xero identifier for a Timesheet
        Parameters:
        timesheetID - UUID
      • payrollCalendarID

        public Timesheet payrollCalendarID​(UUID payrollCalendarID)
        The Xero identifier for the Payroll Calendar that the Timesheet applies to
        Parameters:
        payrollCalendarID - UUID
        Returns:
        Timesheet
      • getPayrollCalendarID

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

        public void setPayrollCalendarID​(UUID payrollCalendarID)
        The Xero identifier for the Payroll Calendar that the Timesheet applies to
        Parameters:
        payrollCalendarID - UUID
      • employeeID

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

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

        public void setEmployeeID​(UUID employeeID)
        The Xero identifier for the Employee that the Timesheet is for
        Parameters:
        employeeID - UUID
      • startDate

        public Timesheet startDate​(org.threeten.bp.LocalDate startDate)
        The Start Date of the Timesheet period (YYYY-MM-DD)
        Parameters:
        startDate - LocalDate
        Returns:
        Timesheet
      • 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)
        The Start Date of the Timesheet period (YYYY-MM-DD)
        Parameters:
        startDate - LocalDate
      • endDate

        public Timesheet endDate​(org.threeten.bp.LocalDate endDate)
        The End Date of the Timesheet period (YYYY-MM-DD)
        Parameters:
        endDate - LocalDate
        Returns:
        Timesheet
      • 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)
        The End Date of the Timesheet period (YYYY-MM-DD)
        Parameters:
        endDate - LocalDate
      • setStatus

        public void setStatus​(Timesheet.StatusEnum status)
        Status of the timesheet
        Parameters:
        status - StatusEnum
      • totalHours

        public Timesheet totalHours​(Double totalHours)
        The Total Hours of the Timesheet
        Parameters:
        totalHours - Double
        Returns:
        Timesheet
      • getTotalHours

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

        public void setTotalHours​(Double totalHours)
        The Total Hours of the Timesheet
        Parameters:
        totalHours - Double
      • updatedDateUTC

        public Timesheet updatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
        The UTC date time that the Timesheet was last updated
        Parameters:
        updatedDateUTC - LocalDateTime
        Returns:
        Timesheet
      • 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)
        The UTC date time that the Timesheet was last updated
        Parameters:
        updatedDateUTC - LocalDateTime
      • timesheetLines

        public Timesheet timesheetLines​(List<TimesheetLine> timesheetLines)
        timesheetLines
        Parameters:
        timesheetLines - List<TimesheetLine>
        Returns:
        Timesheet
      • addTimesheetLinesItem

        public Timesheet addTimesheetLinesItem​(TimesheetLine timesheetLinesItem)
        timesheetLines
        Parameters:
        timesheetLinesItem - TimesheetLine
        Returns:
        Timesheet
      • getTimesheetLines

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

        public void setTimesheetLines​(List<TimesheetLine> timesheetLines)
        timesheetLines
        Parameters:
        timesheetLines - List<TimesheetLine>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object