Package com.xero.models.payrollau
Class Timesheet
java.lang.Object
com.xero.models.payrollau.Timesheet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTimesheetLinesItem(TimesheetLine timesheetLinesItem) timesheetLinesaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIemployeeID(UUID employeeID) The Xero identifier for an employeePeriod end date (YYYY-MM-DD)booleanThe Xero identifier for an employeePeriod end date (YYYY-MM-DD)org.threeten.bp.LocalDatePeriod end date (YYYY-MM-DD)getHours()Timesheet total hoursPeriod start date (YYYY-MM-DD)org.threeten.bp.LocalDatePeriod start date (YYYY-MM-DD)Get statusThe Xero identifier for a Payroll TimesheetGet timesheetLinesLast modified timestamporg.threeten.bp.OffsetDateTimeLast modified timestampDisplays array of validation error messages from the APIinthashCode()Timesheet total hoursvoidsetEmployeeID(UUID employeeID) The Xero identifier for an employeevoidsetEndDate(String endDate) Period end date (YYYY-MM-DD)voidsetEndDate(org.threeten.bp.LocalDate endDate) Period end date (YYYY-MM-DD)voidTimesheet total hoursvoidsetStartDate(String startDate) Period start date (YYYY-MM-DD)voidsetStartDate(org.threeten.bp.LocalDate startDate) Period start date (YYYY-MM-DD)voidsetStatus(TimesheetStatus status) statusvoidsetTimesheetID(UUID timesheetID) The Xero identifier for a Payroll TimesheetvoidsetTimesheetLines(List<TimesheetLine> timesheetLines) timesheetLinesvoidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIPeriod start date (YYYY-MM-DD)status(TimesheetStatus status) statustimesheetID(UUID timesheetID) The Xero identifier for a Payroll TimesheettimesheetLines(List<TimesheetLine> timesheetLines) timesheetLinestoString()validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the API
-
Constructor Details
-
Timesheet
public Timesheet()
-
-
Method Details
-
employeeID
-
getEmployeeID
-
setEmployeeID
The Xero identifier for an employee- Parameters:
employeeID- UUID
-
startDate
-
getStartDate
-
getStartDateAsDate
public org.threeten.bp.LocalDate getStartDateAsDate()Period start date (YYYY-MM-DD)- Returns:
- LocalDate
-
setStartDate
Period start date (YYYY-MM-DD)- Parameters:
startDate- String
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDate startDate) Period start date (YYYY-MM-DD)- Parameters:
startDate- LocalDateTime
-
endDate
-
getEndDate
-
getEndDateAsDate
public org.threeten.bp.LocalDate getEndDateAsDate()Period end date (YYYY-MM-DD)- Returns:
- LocalDate
-
setEndDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDate endDate) Period end date (YYYY-MM-DD)- Parameters:
endDate- LocalDateTime
-
status
status- Parameters:
status- TimesheetStatus- Returns:
- Timesheet
-
getStatus
-
setStatus
-
hours
-
getHours
-
setHours
-
timesheetID
-
getTimesheetID
-
setTimesheetID
The Xero identifier for a Payroll Timesheet- Parameters:
timesheetID- UUID
-
timesheetLines
timesheetLines- Parameters:
timesheetLines- List<TimesheetLine>- Returns:
- Timesheet
-
addTimesheetLinesItem
timesheetLines- Parameters:
timesheetLinesItem- TimesheetLine- Returns:
- Timesheet
-
getTimesheetLines
-
setTimesheetLines
timesheetLines- Parameters:
timesheetLines- List<TimesheetLine>
-
getUpdatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()Last modified timestamp- Returns:
- OffsetDateTime
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Timesheet
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Timesheet
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
equals
-
hashCode
-
toString
-