Package com.xero.models.payrollau
Class Timesheet
- java.lang.Object
-
- com.xero.models.payrollau.Timesheet
-
public class Timesheet extends Object
Timesheet
-
-
Constructor Summary
Constructors Constructor Description Timesheet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimesheetaddTimesheetLinesItem(TimesheetLine timesheetLinesItem)timesheetLinesTimesheetaddValidationErrorsItem(ValidationError validationErrorsItem)Displays array of validation error messages from the APITimesheetemployeeID(UUID employeeID)The Xero identifier for an employeeTimesheetendDate(String endDate)Period end date (YYYY-MM-DD)booleanequals(Object o)UUIDgetEmployeeID()The Xero identifier for an employeeStringgetEndDate()Period end date (YYYY-MM-DD)org.threeten.bp.LocalDategetEndDateAsDate()Period end date (YYYY-MM-DD)DoublegetHours()Timesheet total hoursStringgetStartDate()Period start date (YYYY-MM-DD)org.threeten.bp.LocalDategetStartDateAsDate()Period start date (YYYY-MM-DD)TimesheetStatusgetStatus()Get statusUUIDgetTimesheetID()The Xero identifier for a Payroll TimesheetList<TimesheetLine>getTimesheetLines()Get timesheetLinesStringgetUpdatedDateUTC()Last modified timestamporg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()Last modified timestampList<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()Timesheethours(Double hours)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)voidsetHours(Double hours)Timesheet 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 APITimesheetstartDate(String startDate)Period start date (YYYY-MM-DD)Timesheetstatus(TimesheetStatus status)statusTimesheettimesheetID(UUID timesheetID)The Xero identifier for a Payroll TimesheetTimesheettimesheetLines(List<TimesheetLine> timesheetLines)timesheetLinesStringtoString()TimesheetvalidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the API
-
-
-
Method Detail
-
employeeID
public Timesheet employeeID(UUID employeeID)
The Xero identifier for an employee- Parameters:
employeeID- UUID- Returns:
- Timesheet
-
getEmployeeID
public UUID getEmployeeID()
The Xero identifier for an employee- Returns:
- employeeID
-
setEmployeeID
public void setEmployeeID(UUID employeeID)
The Xero identifier for an employee- Parameters:
employeeID- UUID
-
startDate
public Timesheet startDate(String startDate)
Period start date (YYYY-MM-DD)- Parameters:
startDate- String- Returns:
- Timesheet
-
getStartDate
public String getStartDate()
Period start date (YYYY-MM-DD)- Returns:
- startDate
-
getStartDateAsDate
public org.threeten.bp.LocalDate getStartDateAsDate()
Period start date (YYYY-MM-DD)- Returns:
- LocalDate
-
setStartDate
public void setStartDate(String startDate)
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
public Timesheet endDate(String endDate)
Period end date (YYYY-MM-DD)- Parameters:
endDate- String- Returns:
- Timesheet
-
getEndDate
public String getEndDate()
Period end date (YYYY-MM-DD)- Returns:
- endDate
-
getEndDateAsDate
public org.threeten.bp.LocalDate getEndDateAsDate()
Period end date (YYYY-MM-DD)- Returns:
- LocalDate
-
setEndDate
public void setEndDate(String endDate)
Period end date (YYYY-MM-DD)- Parameters:
endDate- String
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDate endDate)
Period end date (YYYY-MM-DD)- Parameters:
endDate- LocalDateTime
-
status
public Timesheet status(TimesheetStatus status)
status- Parameters:
status- TimesheetStatus- Returns:
- Timesheet
-
getStatus
public TimesheetStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(TimesheetStatus status)
status- Parameters:
status- TimesheetStatus
-
hours
public Timesheet hours(Double hours)
Timesheet total hours- Parameters:
hours- Double- Returns:
- Timesheet
-
getHours
public Double getHours()
Timesheet total hours- Returns:
- hours
-
setHours
public void setHours(Double hours)
Timesheet total hours- Parameters:
hours- Double
-
timesheetID
public Timesheet timesheetID(UUID timesheetID)
The Xero identifier for a Payroll Timesheet- Parameters:
timesheetID- UUID- Returns:
- Timesheet
-
getTimesheetID
public UUID getTimesheetID()
The Xero identifier for a Payroll Timesheet- Returns:
- timesheetID
-
setTimesheetID
public void setTimesheetID(UUID timesheetID)
The Xero identifier for a Payroll Timesheet- Parameters:
timesheetID- UUID
-
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>
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
Last modified timestamp- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
Last modified timestamp- Returns:
- OffsetDateTime
-
validationErrors
public Timesheet validationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Timesheet
-
addValidationErrorsItem
public Timesheet addValidationErrorsItem(ValidationError validationErrorsItem)
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Timesheet
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
-