Package com.xero.models.payrollau
Class PayrollCalendar
- java.lang.Object
-
- com.xero.models.payrollau.PayrollCalendar
-
public class PayrollCalendar extends Object
PayrollCalendar
-
-
Constructor Summary
Constructors Constructor Description PayrollCalendar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PayrollCalendaraddValidationErrorsItem(ValidationError validationErrorsItem)Displays array of validation error messages from the APIPayrollCalendarcalendarType(CalendarType calendarType)calendarTypebooleanequals(Object o)CalendarTypegetCalendarType()Get calendarTypeStringgetName()Name of the Payroll CalendarStringgetPaymentDate()The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)org.threeten.bp.LocalDategetPaymentDateAsDate()The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)UUIDgetPayrollCalendarID()Xero identifierStringgetReferenceDate()Reference Date (YYYY-MM-DD)org.threeten.bp.LocalDategetReferenceDateAsDate()Reference Date (YYYY-MM-DD)StringgetStartDate()The start date of the upcoming pay period.org.threeten.bp.LocalDategetStartDateAsDate()The start date of the upcoming pay period.StringgetUpdatedDateUTC()Last modified timestamporg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()Last modified timestampList<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()PayrollCalendarname(String name)Name of the Payroll CalendarPayrollCalendarpaymentDate(String paymentDate)The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)PayrollCalendarpayrollCalendarID(UUID payrollCalendarID)Xero identifierPayrollCalendarreferenceDate(String referenceDate)Reference Date (YYYY-MM-DD)voidsetCalendarType(CalendarType calendarType)calendarTypevoidsetName(String name)Name of the Payroll CalendarvoidsetPaymentDate(String paymentDate)The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)voidsetPaymentDate(org.threeten.bp.LocalDate paymentDate)The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)voidsetPayrollCalendarID(UUID payrollCalendarID)Xero identifiervoidsetReferenceDate(String referenceDate)Reference Date (YYYY-MM-DD)voidsetReferenceDate(org.threeten.bp.LocalDate referenceDate)Reference Date (YYYY-MM-DD)voidsetStartDate(String startDate)The start date of the upcoming pay period.voidsetStartDate(org.threeten.bp.LocalDate startDate)The start date of the upcoming pay period.voidsetValidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the APIPayrollCalendarstartDate(String startDate)The start date of the upcoming pay period.StringtoString()PayrollCalendarvalidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the API
-
-
-
Method Detail
-
name
public PayrollCalendar name(String name)
Name of the Payroll Calendar- Parameters:
name- String- Returns:
- PayrollCalendar
-
getName
public String getName()
Name of the Payroll Calendar- Returns:
- name
-
setName
public void setName(String name)
Name of the Payroll Calendar- Parameters:
name- String
-
calendarType
public PayrollCalendar calendarType(CalendarType calendarType)
calendarType- Parameters:
calendarType- CalendarType- Returns:
- PayrollCalendar
-
getCalendarType
public CalendarType getCalendarType()
Get calendarType- Returns:
- calendarType
-
setCalendarType
public void setCalendarType(CalendarType calendarType)
calendarType- Parameters:
calendarType- CalendarType
-
startDate
public PayrollCalendar startDate(String startDate)
The start date of the upcoming pay period. The end date will be calculated based upon this date, and the calendar type selected (YYYY-MM-DD)- Parameters:
startDate- String- Returns:
- PayrollCalendar
-
getStartDate
public String getStartDate()
The start date of the upcoming pay period. The end date will be calculated based upon this date, and the calendar type selected (YYYY-MM-DD)- Returns:
- startDate
-
getStartDateAsDate
public org.threeten.bp.LocalDate getStartDateAsDate()
The start date of the upcoming pay period. The end date will be calculated based upon this date, and the calendar type selected (YYYY-MM-DD)- Returns:
- LocalDate
-
setStartDate
public void setStartDate(String startDate)
The start date of the upcoming pay period. The end date will be calculated based upon this date, and the calendar type selected (YYYY-MM-DD)- Parameters:
startDate- String
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDate startDate)
The start date of the upcoming pay period. The end date will be calculated based upon this date, and the calendar type selected (YYYY-MM-DD)- Parameters:
startDate- LocalDateTime
-
paymentDate
public PayrollCalendar paymentDate(String paymentDate)
The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)- Parameters:
paymentDate- String- Returns:
- PayrollCalendar
-
getPaymentDate
public String getPaymentDate()
The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)- Returns:
- paymentDate
-
getPaymentDateAsDate
public org.threeten.bp.LocalDate getPaymentDateAsDate()
The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)- Returns:
- LocalDate
-
setPaymentDate
public void setPaymentDate(String paymentDate)
The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)- Parameters:
paymentDate- String
-
setPaymentDate
public void setPaymentDate(org.threeten.bp.LocalDate paymentDate)
The date on which employees will be paid for the upcoming pay period (YYYY-MM-DD)- Parameters:
paymentDate- LocalDateTime
-
payrollCalendarID
public PayrollCalendar payrollCalendarID(UUID payrollCalendarID)
Xero identifier- Parameters:
payrollCalendarID- UUID- Returns:
- PayrollCalendar
-
getPayrollCalendarID
public UUID getPayrollCalendarID()
Xero identifier- Returns:
- payrollCalendarID
-
setPayrollCalendarID
public void setPayrollCalendarID(UUID payrollCalendarID)
Xero identifier- Parameters:
payrollCalendarID- UUID
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
Last modified timestamp- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
Last modified timestamp- Returns:
- OffsetDateTime
-
referenceDate
public PayrollCalendar referenceDate(String referenceDate)
Reference Date (YYYY-MM-DD)- Parameters:
referenceDate- String- Returns:
- PayrollCalendar
-
getReferenceDate
public String getReferenceDate()
Reference Date (YYYY-MM-DD)- Returns:
- referenceDate
-
getReferenceDateAsDate
public org.threeten.bp.LocalDate getReferenceDateAsDate()
Reference Date (YYYY-MM-DD)- Returns:
- LocalDate
-
setReferenceDate
public void setReferenceDate(String referenceDate)
Reference Date (YYYY-MM-DD)- Parameters:
referenceDate- String
-
setReferenceDate
public void setReferenceDate(org.threeten.bp.LocalDate referenceDate)
Reference Date (YYYY-MM-DD)- Parameters:
referenceDate- LocalDateTime
-
validationErrors
public PayrollCalendar validationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- PayrollCalendar
-
addValidationErrorsItem
public PayrollCalendar addValidationErrorsItem(ValidationError validationErrorsItem)
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- PayrollCalendar
-
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>
-
-