Package com.xero.models.payrollnz
Class EmployeeLeave
- java.lang.Object
-
- com.xero.models.payrollnz.EmployeeLeave
-
public class EmployeeLeave extends Object
EmployeeLeave
-
-
Constructor Summary
Constructors Constructor Description EmployeeLeave()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmployeeLeaveaddPeriodsItem(LeavePeriod periodsItem)The leave period information.EmployeeLeavedescription(String description)The description of the leave (max length = 50)EmployeeLeaveendDate(org.threeten.bp.LocalDate endDate)End date of the leave (YYYY-MM-DD)booleanequals(Object o)StringgetDescription()The description of the leave (max length = 50)org.threeten.bp.LocalDategetEndDate()End date of the leave (YYYY-MM-DD)UUIDgetLeaveID()The Xero identifier for LeaveTypeUUIDgetLeaveTypeID()The Xero identifier for LeaveTypeList<LeavePeriod>getPeriods()The leave period information.org.threeten.bp.LocalDategetStartDate()Start date of the leave (YYYY-MM-DD)org.threeten.bp.LocalDateTimegetUpdatedDateUTC()UTC timestamp of last update to the leave type noteinthashCode()EmployeeLeaveleaveID(UUID leaveID)The Xero identifier for LeaveTypeEmployeeLeaveleaveTypeID(UUID leaveTypeID)The Xero identifier for LeaveTypeEmployeeLeaveperiods(List<LeavePeriod> periods)The leave period information.voidsetDescription(String description)The description of the leave (max length = 50)voidsetEndDate(org.threeten.bp.LocalDate endDate)End date of the leave (YYYY-MM-DD)voidsetLeaveID(UUID leaveID)The Xero identifier for LeaveTypevoidsetLeaveTypeID(UUID leaveTypeID)The Xero identifier for LeaveTypevoidsetPeriods(List<LeavePeriod> periods)The leave period information.voidsetStartDate(org.threeten.bp.LocalDate startDate)Start date of the leave (YYYY-MM-DD)voidsetUpdatedDateUTC(org.threeten.bp.LocalDateTime updatedDateUTC)UTC timestamp of last update to the leave type noteEmployeeLeavestartDate(org.threeten.bp.LocalDate startDate)Start date of the leave (YYYY-MM-DD)StringtoString()EmployeeLeaveupdatedDateUTC(org.threeten.bp.LocalDateTime updatedDateUTC)UTC timestamp of last update to the leave type note
-
-
-
Method Detail
-
leaveID
public EmployeeLeave leaveID(UUID leaveID)
The Xero identifier for LeaveType- Parameters:
leaveID- UUID- Returns:
- EmployeeLeave
-
getLeaveID
public UUID getLeaveID()
The Xero identifier for LeaveType- Returns:
- leaveID
-
setLeaveID
public void setLeaveID(UUID leaveID)
The Xero identifier for LeaveType- Parameters:
leaveID- UUID
-
leaveTypeID
public EmployeeLeave leaveTypeID(UUID leaveTypeID)
The Xero identifier for LeaveType- Parameters:
leaveTypeID- UUID- Returns:
- EmployeeLeave
-
getLeaveTypeID
public UUID getLeaveTypeID()
The Xero identifier for LeaveType- Returns:
- leaveTypeID
-
setLeaveTypeID
public void setLeaveTypeID(UUID leaveTypeID)
The Xero identifier for LeaveType- Parameters:
leaveTypeID- UUID
-
description
public EmployeeLeave description(String description)
The description of the leave (max length = 50)- Parameters:
description- String- Returns:
- EmployeeLeave
-
getDescription
public String getDescription()
The description of the leave (max length = 50)- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the leave (max length = 50)- Parameters:
description- String
-
startDate
public EmployeeLeave startDate(org.threeten.bp.LocalDate startDate)
Start date of the leave (YYYY-MM-DD)- Parameters:
startDate- LocalDate- Returns:
- EmployeeLeave
-
getStartDate
public org.threeten.bp.LocalDate getStartDate()
Start date of the leave (YYYY-MM-DD)- Returns:
- startDate
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDate startDate)
Start date of the leave (YYYY-MM-DD)- Parameters:
startDate- LocalDate
-
endDate
public EmployeeLeave endDate(org.threeten.bp.LocalDate endDate)
End date of the leave (YYYY-MM-DD)- Parameters:
endDate- LocalDate- Returns:
- EmployeeLeave
-
getEndDate
public org.threeten.bp.LocalDate getEndDate()
End date of the leave (YYYY-MM-DD)- Returns:
- endDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDate endDate)
End date of the leave (YYYY-MM-DD)- Parameters:
endDate- LocalDate
-
periods
public EmployeeLeave periods(List<LeavePeriod> periods)
The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.- Parameters:
periods- List<LeavePeriod>- Returns:
- EmployeeLeave
-
addPeriodsItem
public EmployeeLeave addPeriodsItem(LeavePeriod periodsItem)
The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.- Parameters:
periodsItem- LeavePeriod- Returns:
- EmployeeLeave
-
getPeriods
public List<LeavePeriod> getPeriods()
The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.- Returns:
- periods
-
setPeriods
public void setPeriods(List<LeavePeriod> periods)
The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.- Parameters:
periods- List<LeavePeriod>
-
updatedDateUTC
public EmployeeLeave updatedDateUTC(org.threeten.bp.LocalDateTime updatedDateUTC)
UTC timestamp of last update to the leave type note- Parameters:
updatedDateUTC- LocalDateTime- Returns:
- EmployeeLeave
-
getUpdatedDateUTC
public org.threeten.bp.LocalDateTime getUpdatedDateUTC()
UTC timestamp of last update to the leave type note- Returns:
- updatedDateUTC
-
setUpdatedDateUTC
public void setUpdatedDateUTC(org.threeten.bp.LocalDateTime updatedDateUTC)
UTC timestamp of last update to the leave type note- Parameters:
updatedDateUTC- LocalDateTime
-
-