Package com.xero.models.payrollnz
Class EmployeeLeaveType
- java.lang.Object
-
- com.xero.models.payrollnz.EmployeeLeaveType
-
public class EmployeeLeaveType extends Object
EmployeeLeaveType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmployeeLeaveType.ScheduleOfAccrualEnumThe schedule of accrual
-
Constructor Summary
Constructors Constructor Description EmployeeLeaveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmployeeLeaveTypeannualLeaveTotalAmountPaid(Double annualLeaveTotalAmountPaid)Specific to Annual Leave.booleanequals(Object o)DoublegetAnnualLeaveTotalAmountPaid()Specific to Annual Leave.DoublegetHoursAccruedAnnually()The number of hours accrued for the leave annually.BooleangetIncludeHolidayPayEveryPay()Specific to Holiday pay.UUIDgetLeaveTypeID()The Xero identifier for leave typeDoublegetMaximumToAccrue()The maximum number of hours that can be accrued for the leaveDoublegetOpeningBalance()The initial number of hours assigned when the leave was added to the employeeDoublegetPercentageOfGrossEarnings()Specific for scheduleOfAccrual having percentage of gross earnings.DoublegetRateAccruedHourly()The number of hours added to the leave balance for every hour worked by the employee.EmployeeLeaveType.ScheduleOfAccrualEnumgetScheduleOfAccrual()The schedule of accrualBooleangetShowAnnualLeaveInAdvance()Specific to Annual Leave.inthashCode()EmployeeLeaveTypehoursAccruedAnnually(Double hoursAccruedAnnually)The number of hours accrued for the leave annually.EmployeeLeaveTypeincludeHolidayPayEveryPay(Boolean includeHolidayPayEveryPay)Specific to Holiday pay.EmployeeLeaveTypeleaveTypeID(UUID leaveTypeID)The Xero identifier for leave typeEmployeeLeaveTypemaximumToAccrue(Double maximumToAccrue)The maximum number of hours that can be accrued for the leaveEmployeeLeaveTypeopeningBalance(Double openingBalance)The initial number of hours assigned when the leave was added to the employeeEmployeeLeaveTypepercentageOfGrossEarnings(Double percentageOfGrossEarnings)Specific for scheduleOfAccrual having percentage of gross earnings.EmployeeLeaveTyperateAccruedHourly(Double rateAccruedHourly)The number of hours added to the leave balance for every hour worked by the employee.EmployeeLeaveTypescheduleOfAccrual(EmployeeLeaveType.ScheduleOfAccrualEnum scheduleOfAccrual)The schedule of accrualvoidsetAnnualLeaveTotalAmountPaid(Double annualLeaveTotalAmountPaid)Specific to Annual Leave.voidsetHoursAccruedAnnually(Double hoursAccruedAnnually)The number of hours accrued for the leave annually.voidsetIncludeHolidayPayEveryPay(Boolean includeHolidayPayEveryPay)Specific to Holiday pay.voidsetLeaveTypeID(UUID leaveTypeID)The Xero identifier for leave typevoidsetMaximumToAccrue(Double maximumToAccrue)The maximum number of hours that can be accrued for the leavevoidsetOpeningBalance(Double openingBalance)The initial number of hours assigned when the leave was added to the employeevoidsetPercentageOfGrossEarnings(Double percentageOfGrossEarnings)Specific for scheduleOfAccrual having percentage of gross earnings.voidsetRateAccruedHourly(Double rateAccruedHourly)The number of hours added to the leave balance for every hour worked by the employee.voidsetScheduleOfAccrual(EmployeeLeaveType.ScheduleOfAccrualEnum scheduleOfAccrual)The schedule of accrualvoidsetShowAnnualLeaveInAdvance(Boolean showAnnualLeaveInAdvance)Specific to Annual Leave.EmployeeLeaveTypeshowAnnualLeaveInAdvance(Boolean showAnnualLeaveInAdvance)Specific to Annual Leave.StringtoString()
-
-
-
Method Detail
-
leaveTypeID
public EmployeeLeaveType leaveTypeID(UUID leaveTypeID)
The Xero identifier for leave type- Parameters:
leaveTypeID- UUID- Returns:
- EmployeeLeaveType
-
getLeaveTypeID
public UUID getLeaveTypeID()
The Xero identifier for leave type- Returns:
- leaveTypeID
-
setLeaveTypeID
public void setLeaveTypeID(UUID leaveTypeID)
The Xero identifier for leave type- Parameters:
leaveTypeID- UUID
-
scheduleOfAccrual
public EmployeeLeaveType scheduleOfAccrual(EmployeeLeaveType.ScheduleOfAccrualEnum scheduleOfAccrual)
The schedule of accrual- Parameters:
scheduleOfAccrual- ScheduleOfAccrualEnum- Returns:
- EmployeeLeaveType
-
getScheduleOfAccrual
public EmployeeLeaveType.ScheduleOfAccrualEnum getScheduleOfAccrual()
The schedule of accrual- Returns:
- scheduleOfAccrual
-
setScheduleOfAccrual
public void setScheduleOfAccrual(EmployeeLeaveType.ScheduleOfAccrualEnum scheduleOfAccrual)
The schedule of accrual- Parameters:
scheduleOfAccrual- ScheduleOfAccrualEnum
-
hoursAccruedAnnually
public EmployeeLeaveType hoursAccruedAnnually(Double hoursAccruedAnnually)
The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\"- Parameters:
hoursAccruedAnnually- Double- Returns:
- EmployeeLeaveType
-
getHoursAccruedAnnually
public Double getHoursAccruedAnnually()
The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\"- Returns:
- hoursAccruedAnnually
-
setHoursAccruedAnnually
public void setHoursAccruedAnnually(Double hoursAccruedAnnually)
The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\"- Parameters:
hoursAccruedAnnually- Double
-
maximumToAccrue
public EmployeeLeaveType maximumToAccrue(Double maximumToAccrue)
The maximum number of hours that can be accrued for the leave- Parameters:
maximumToAccrue- Double- Returns:
- EmployeeLeaveType
-
getMaximumToAccrue
public Double getMaximumToAccrue()
The maximum number of hours that can be accrued for the leave- Returns:
- maximumToAccrue
-
setMaximumToAccrue
public void setMaximumToAccrue(Double maximumToAccrue)
The maximum number of hours that can be accrued for the leave- Parameters:
maximumToAccrue- Double
-
openingBalance
public EmployeeLeaveType openingBalance(Double openingBalance)
The initial number of hours assigned when the leave was added to the employee- Parameters:
openingBalance- Double- Returns:
- EmployeeLeaveType
-
getOpeningBalance
public Double getOpeningBalance()
The initial number of hours assigned when the leave was added to the employee- Returns:
- openingBalance
-
setOpeningBalance
public void setOpeningBalance(Double openingBalance)
The initial number of hours assigned when the leave was added to the employee- Parameters:
openingBalance- Double
-
rateAccruedHourly
public EmployeeLeaveType rateAccruedHourly(Double rateAccruedHourly)
The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"- Parameters:
rateAccruedHourly- Double- Returns:
- EmployeeLeaveType
-
getRateAccruedHourly
public Double getRateAccruedHourly()
The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"- Returns:
- rateAccruedHourly
-
setRateAccruedHourly
public void setRateAccruedHourly(Double rateAccruedHourly)
The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"- Parameters:
rateAccruedHourly- Double
-
percentageOfGrossEarnings
public EmployeeLeaveType percentageOfGrossEarnings(Double percentageOfGrossEarnings)
Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period.- Parameters:
percentageOfGrossEarnings- Double- Returns:
- EmployeeLeaveType
-
getPercentageOfGrossEarnings
public Double getPercentageOfGrossEarnings()
Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period.- Returns:
- percentageOfGrossEarnings
-
setPercentageOfGrossEarnings
public void setPercentageOfGrossEarnings(Double percentageOfGrossEarnings)
Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period.- Parameters:
percentageOfGrossEarnings- Double
-
includeHolidayPayEveryPay
public EmployeeLeaveType includeHolidayPayEveryPay(Boolean includeHolidayPayEveryPay)
Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run.- Parameters:
includeHolidayPayEveryPay- Boolean- Returns:
- EmployeeLeaveType
-
getIncludeHolidayPayEveryPay
public Boolean getIncludeHolidayPayEveryPay()
Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run.- Returns:
- includeHolidayPayEveryPay
-
setIncludeHolidayPayEveryPay
public void setIncludeHolidayPayEveryPay(Boolean includeHolidayPayEveryPay)
Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run.- Parameters:
includeHolidayPayEveryPay- Boolean
-
showAnnualLeaveInAdvance
public EmployeeLeaveType showAnnualLeaveInAdvance(Boolean showAnnualLeaveInAdvance)
Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip- Parameters:
showAnnualLeaveInAdvance- Boolean- Returns:
- EmployeeLeaveType
-
getShowAnnualLeaveInAdvance
public Boolean getShowAnnualLeaveInAdvance()
Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip- Returns:
- showAnnualLeaveInAdvance
-
setShowAnnualLeaveInAdvance
public void setShowAnnualLeaveInAdvance(Boolean showAnnualLeaveInAdvance)
Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip- Parameters:
showAnnualLeaveInAdvance- Boolean
-
annualLeaveTotalAmountPaid
public EmployeeLeaveType annualLeaveTotalAmountPaid(Double annualLeaveTotalAmountPaid)
Specific to Annual Leave. Annual leave balance in dollars- Parameters:
annualLeaveTotalAmountPaid- Double- Returns:
- EmployeeLeaveType
-
getAnnualLeaveTotalAmountPaid
public Double getAnnualLeaveTotalAmountPaid()
Specific to Annual Leave. Annual leave balance in dollars- Returns:
- annualLeaveTotalAmountPaid
-
setAnnualLeaveTotalAmountPaid
public void setAnnualLeaveTotalAmountPaid(Double annualLeaveTotalAmountPaid)
Specific to Annual Leave. Annual leave balance in dollars- Parameters:
annualLeaveTotalAmountPaid- Double
-
-