Package com.xero.models.payrolluk
Class EmployeeStatutorySickLeave
- java.lang.Object
-
- com.xero.models.payrolluk.EmployeeStatutorySickLeave
-
public class EmployeeStatutorySickLeave extends Object
EmployeeStatutorySickLeave
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmployeeStatutorySickLeave.EntitlementFailureReasonsEnumGets or Sets entitlementFailureReasons
-
Constructor Summary
Constructors Constructor Description EmployeeStatutorySickLeave()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmployeeStatutorySickLeaveaddEntitlementFailureReasonsItem(EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum entitlementFailureReasonsItem)If the leave requested was considered \"not entitled\", the reasons why are listed here.EmployeeStatutorySickLeaveaddWorkPatternItem(String workPatternItem)The days of the work week the employee is scheduled to work at the time the leave is takenEmployeeStatutorySickLeaveemployeeID(UUID employeeID)The unique identifier (guid) of the employeeEmployeeStatutorySickLeaveendDate(org.threeten.bp.LocalDate endDate)The date when the leave endsEmployeeStatutorySickLeaveentitlementFailureReasons(List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> entitlementFailureReasons)If the leave requested was considered \"not entitled\", the reasons why are listed here.EmployeeStatutorySickLeaveentitlementWeeksQualified(Double entitlementWeeksQualified)The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requestedEmployeeStatutorySickLeaveentitlementWeeksRemaining(Double entitlementWeeksRemaining)A calculated amount of time (in weeks) that remains for the statutory sick leave periodEmployeeStatutorySickLeaveentitlementWeeksRequested(Double entitlementWeeksRequested)The amount of requested time (in weeks)booleanequals(Object o)UUIDgetEmployeeID()The unique identifier (guid) of the employeeorg.threeten.bp.LocalDategetEndDate()The date when the leave endsList<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum>getEntitlementFailureReasons()If the leave requested was considered \"not entitled\", the reasons why are listed here.DoublegetEntitlementWeeksQualified()The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requestedDoublegetEntitlementWeeksRemaining()A calculated amount of time (in weeks) that remains for the statutory sick leave periodDoublegetEntitlementWeeksRequested()The amount of requested time (in weeks)BooleangetIsEntitled()Whether the leave was entitled to receive paymentBooleangetIsPregnancyRelated()Whether the sick leave was pregnancy relatedUUIDgetLeaveTypeID()The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay itemBooleangetOverlapsWithOtherLeave()Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period.org.threeten.bp.LocalDategetStartDate()The date when the leave startsStringgetStatus()the type of statutory leaveUUIDgetStatutoryLeaveID()The unique identifier (guid) of a statutory leaveBooleangetSufficientNotice()Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave requestStringgetType()the type of statutory leaveList<String>getWorkPattern()The days of the work week the employee is scheduled to work at the time the leave is takeninthashCode()EmployeeStatutorySickLeaveisEntitled(Boolean isEntitled)Whether the leave was entitled to receive paymentEmployeeStatutorySickLeaveisPregnancyRelated(Boolean isPregnancyRelated)Whether the sick leave was pregnancy relatedEmployeeStatutorySickLeaveleaveTypeID(UUID leaveTypeID)The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay itemEmployeeStatutorySickLeaveoverlapsWithOtherLeave(Boolean overlapsWithOtherLeave)Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period.voidsetEmployeeID(UUID employeeID)The unique identifier (guid) of the employeevoidsetEndDate(org.threeten.bp.LocalDate endDate)The date when the leave endsvoidsetEntitlementFailureReasons(List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> entitlementFailureReasons)If the leave requested was considered \"not entitled\", the reasons why are listed here.voidsetEntitlementWeeksQualified(Double entitlementWeeksQualified)The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requestedvoidsetEntitlementWeeksRemaining(Double entitlementWeeksRemaining)A calculated amount of time (in weeks) that remains for the statutory sick leave periodvoidsetEntitlementWeeksRequested(Double entitlementWeeksRequested)The amount of requested time (in weeks)voidsetIsEntitled(Boolean isEntitled)Whether the leave was entitled to receive paymentvoidsetIsPregnancyRelated(Boolean isPregnancyRelated)Whether the sick leave was pregnancy relatedvoidsetLeaveTypeID(UUID leaveTypeID)The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay itemvoidsetOverlapsWithOtherLeave(Boolean overlapsWithOtherLeave)Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period.voidsetStartDate(org.threeten.bp.LocalDate startDate)The date when the leave startsvoidsetStatus(String status)the type of statutory leavevoidsetStatutoryLeaveID(UUID statutoryLeaveID)The unique identifier (guid) of a statutory leavevoidsetSufficientNotice(Boolean sufficientNotice)Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave requestvoidsetType(String type)the type of statutory leavevoidsetWorkPattern(List<String> workPattern)The days of the work week the employee is scheduled to work at the time the leave is takenEmployeeStatutorySickLeavestartDate(org.threeten.bp.LocalDate startDate)The date when the leave startsEmployeeStatutorySickLeavestatus(String status)the type of statutory leaveEmployeeStatutorySickLeavestatutoryLeaveID(UUID statutoryLeaveID)The unique identifier (guid) of a statutory leaveEmployeeStatutorySickLeavesufficientNotice(Boolean sufficientNotice)Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave requestStringtoString()EmployeeStatutorySickLeavetype(String type)the type of statutory leaveEmployeeStatutorySickLeaveworkPattern(List<String> workPattern)The days of the work week the employee is scheduled to work at the time the leave is taken
-
-
-
Method Detail
-
statutoryLeaveID
public EmployeeStatutorySickLeave statutoryLeaveID(UUID statutoryLeaveID)
The unique identifier (guid) of a statutory leave- Parameters:
statutoryLeaveID- UUID- Returns:
- EmployeeStatutorySickLeave
-
getStatutoryLeaveID
public UUID getStatutoryLeaveID()
The unique identifier (guid) of a statutory leave- Returns:
- statutoryLeaveID
-
setStatutoryLeaveID
public void setStatutoryLeaveID(UUID statutoryLeaveID)
The unique identifier (guid) of a statutory leave- Parameters:
statutoryLeaveID- UUID
-
employeeID
public EmployeeStatutorySickLeave employeeID(UUID employeeID)
The unique identifier (guid) of the employee- Parameters:
employeeID- UUID- Returns:
- EmployeeStatutorySickLeave
-
getEmployeeID
public UUID getEmployeeID()
The unique identifier (guid) of the employee- Returns:
- employeeID
-
setEmployeeID
public void setEmployeeID(UUID employeeID)
The unique identifier (guid) of the employee- Parameters:
employeeID- UUID
-
leaveTypeID
public EmployeeStatutorySickLeave leaveTypeID(UUID leaveTypeID)
The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item- Parameters:
leaveTypeID- UUID- Returns:
- EmployeeStatutorySickLeave
-
getLeaveTypeID
public UUID getLeaveTypeID()
The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item- Returns:
- leaveTypeID
-
setLeaveTypeID
public void setLeaveTypeID(UUID leaveTypeID)
The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item- Parameters:
leaveTypeID- UUID
-
startDate
public EmployeeStatutorySickLeave startDate(org.threeten.bp.LocalDate startDate)
The date when the leave starts- Parameters:
startDate- LocalDate- Returns:
- EmployeeStatutorySickLeave
-
getStartDate
public org.threeten.bp.LocalDate getStartDate()
The date when the leave starts- Returns:
- startDate
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDate startDate)
The date when the leave starts- Parameters:
startDate- LocalDate
-
endDate
public EmployeeStatutorySickLeave endDate(org.threeten.bp.LocalDate endDate)
The date when the leave ends- Parameters:
endDate- LocalDate- Returns:
- EmployeeStatutorySickLeave
-
getEndDate
public org.threeten.bp.LocalDate getEndDate()
The date when the leave ends- Returns:
- endDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDate endDate)
The date when the leave ends- Parameters:
endDate- LocalDate
-
type
public EmployeeStatutorySickLeave type(String type)
the type of statutory leave- Parameters:
type- String- Returns:
- EmployeeStatutorySickLeave
-
getType
public String getType()
the type of statutory leave- Returns:
- type
-
setType
public void setType(String type)
the type of statutory leave- Parameters:
type- String
-
status
public EmployeeStatutorySickLeave status(String status)
the type of statutory leave- Parameters:
status- String- Returns:
- EmployeeStatutorySickLeave
-
getStatus
public String getStatus()
the type of statutory leave- Returns:
- status
-
setStatus
public void setStatus(String status)
the type of statutory leave- Parameters:
status- String
-
workPattern
public EmployeeStatutorySickLeave workPattern(List<String> workPattern)
The days of the work week the employee is scheduled to work at the time the leave is taken- Parameters:
workPattern- List<>- Returns:
- EmployeeStatutorySickLeave
-
addWorkPatternItem
public EmployeeStatutorySickLeave addWorkPatternItem(String workPatternItem)
The days of the work week the employee is scheduled to work at the time the leave is taken- Parameters:
workPatternItem- String- Returns:
- EmployeeStatutorySickLeave
-
getWorkPattern
public List<String> getWorkPattern()
The days of the work week the employee is scheduled to work at the time the leave is taken- Returns:
- workPattern
-
setWorkPattern
public void setWorkPattern(List<String> workPattern)
The days of the work week the employee is scheduled to work at the time the leave is taken- Parameters:
workPattern- List<>
-
isPregnancyRelated
public EmployeeStatutorySickLeave isPregnancyRelated(Boolean isPregnancyRelated)
Whether the sick leave was pregnancy related- Parameters:
isPregnancyRelated- Boolean- Returns:
- EmployeeStatutorySickLeave
-
getIsPregnancyRelated
public Boolean getIsPregnancyRelated()
Whether the sick leave was pregnancy related- Returns:
- isPregnancyRelated
-
setIsPregnancyRelated
public void setIsPregnancyRelated(Boolean isPregnancyRelated)
Whether the sick leave was pregnancy related- Parameters:
isPregnancyRelated- Boolean
-
sufficientNotice
public EmployeeStatutorySickLeave sufficientNotice(Boolean sufficientNotice)
Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request- Parameters:
sufficientNotice- Boolean- Returns:
- EmployeeStatutorySickLeave
-
getSufficientNotice
public Boolean getSufficientNotice()
Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request- Returns:
- sufficientNotice
-
setSufficientNotice
public void setSufficientNotice(Boolean sufficientNotice)
Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request- Parameters:
sufficientNotice- Boolean
-
isEntitled
public EmployeeStatutorySickLeave isEntitled(Boolean isEntitled)
Whether the leave was entitled to receive payment- Parameters:
isEntitled- Boolean- Returns:
- EmployeeStatutorySickLeave
-
getIsEntitled
public Boolean getIsEntitled()
Whether the leave was entitled to receive payment- Returns:
- isEntitled
-
setIsEntitled
public void setIsEntitled(Boolean isEntitled)
Whether the leave was entitled to receive payment- Parameters:
isEntitled- Boolean
-
entitlementWeeksRequested
public EmployeeStatutorySickLeave entitlementWeeksRequested(Double entitlementWeeksRequested)
The amount of requested time (in weeks)- Parameters:
entitlementWeeksRequested- Double- Returns:
- EmployeeStatutorySickLeave
-
getEntitlementWeeksRequested
public Double getEntitlementWeeksRequested()
The amount of requested time (in weeks)- Returns:
- entitlementWeeksRequested
-
setEntitlementWeeksRequested
public void setEntitlementWeeksRequested(Double entitlementWeeksRequested)
The amount of requested time (in weeks)- Parameters:
entitlementWeeksRequested- Double
-
entitlementWeeksQualified
public EmployeeStatutorySickLeave entitlementWeeksQualified(Double entitlementWeeksQualified)
The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested- Parameters:
entitlementWeeksQualified- Double- Returns:
- EmployeeStatutorySickLeave
-
getEntitlementWeeksQualified
public Double getEntitlementWeeksQualified()
The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested- Returns:
- entitlementWeeksQualified
-
setEntitlementWeeksQualified
public void setEntitlementWeeksQualified(Double entitlementWeeksQualified)
The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested- Parameters:
entitlementWeeksQualified- Double
-
entitlementWeeksRemaining
public EmployeeStatutorySickLeave entitlementWeeksRemaining(Double entitlementWeeksRemaining)
A calculated amount of time (in weeks) that remains for the statutory sick leave period- Parameters:
entitlementWeeksRemaining- Double- Returns:
- EmployeeStatutorySickLeave
-
getEntitlementWeeksRemaining
public Double getEntitlementWeeksRemaining()
A calculated amount of time (in weeks) that remains for the statutory sick leave period- Returns:
- entitlementWeeksRemaining
-
setEntitlementWeeksRemaining
public void setEntitlementWeeksRemaining(Double entitlementWeeksRemaining)
A calculated amount of time (in weeks) that remains for the statutory sick leave period- Parameters:
entitlementWeeksRemaining- Double
-
overlapsWithOtherLeave
public EmployeeStatutorySickLeave overlapsWithOtherLeave(Boolean overlapsWithOtherLeave)
Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts- Parameters:
overlapsWithOtherLeave- Boolean- Returns:
- EmployeeStatutorySickLeave
-
getOverlapsWithOtherLeave
public Boolean getOverlapsWithOtherLeave()
Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts- Returns:
- overlapsWithOtherLeave
-
setOverlapsWithOtherLeave
public void setOverlapsWithOtherLeave(Boolean overlapsWithOtherLeave)
Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts- Parameters:
overlapsWithOtherLeave- Boolean
-
entitlementFailureReasons
public EmployeeStatutorySickLeave entitlementFailureReasons(List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> entitlementFailureReasons)
If the leave requested was considered \"not entitled\", the reasons why are listed here.- Parameters:
entitlementFailureReasons- List<>- Returns:
- EmployeeStatutorySickLeave
-
addEntitlementFailureReasonsItem
public EmployeeStatutorySickLeave addEntitlementFailureReasonsItem(EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum entitlementFailureReasonsItem)
If the leave requested was considered \"not entitled\", the reasons why are listed here.- Parameters:
entitlementFailureReasonsItem- EntitlementFailureReasonsEnum- Returns:
- EmployeeStatutorySickLeave
-
getEntitlementFailureReasons
public List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> getEntitlementFailureReasons()
If the leave requested was considered \"not entitled\", the reasons why are listed here.- Returns:
- entitlementFailureReasons
-
setEntitlementFailureReasons
public void setEntitlementFailureReasons(List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> entitlementFailureReasons)
If the leave requested was considered \"not entitled\", the reasons why are listed here.- Parameters:
entitlementFailureReasons- List<>
-
-