Package com.xero.models.payrollau
Class LeaveType
- java.lang.Object
-
- com.xero.models.payrollau.LeaveType
-
public class LeaveType extends Object
LeaveType
-
-
Constructor Summary
Constructors Constructor Description LeaveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaveTypecurrentRecord(Boolean currentRecord)Is the current recordbooleanequals(Object o)BooleangetCurrentRecord()Is the current recordBooleangetIsPaidLeave()Set this to indicate that an employee will be paid when taking this type of leaveDoublegetLeaveLoadingRate()Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)UUIDgetLeaveTypeID()Xero identifierStringgetName()Name of the earnings rate (max length = 100)DoublegetNormalEntitlement()The number of units the employee is entitled to each yearBooleangetShowOnPayslip()Set this if you want a balance for this leave type to be shown on your employee’s payslipsStringgetTypeOfUnits()The type of units by which leave entitlements are normally tracked.StringgetUpdatedDateUTC()Last modified timestamporg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()Last modified timestampinthashCode()LeaveTypeisPaidLeave(Boolean isPaidLeave)Set this to indicate that an employee will be paid when taking this type of leaveLeaveTypeleaveLoadingRate(Double leaveLoadingRate)Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)LeaveTypeleaveTypeID(UUID leaveTypeID)Xero identifierLeaveTypename(String name)Name of the earnings rate (max length = 100)LeaveTypenormalEntitlement(Double normalEntitlement)The number of units the employee is entitled to each yearvoidsetCurrentRecord(Boolean currentRecord)Is the current recordvoidsetIsPaidLeave(Boolean isPaidLeave)Set this to indicate that an employee will be paid when taking this type of leavevoidsetLeaveLoadingRate(Double leaveLoadingRate)Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)voidsetLeaveTypeID(UUID leaveTypeID)Xero identifiervoidsetName(String name)Name of the earnings rate (max length = 100)voidsetNormalEntitlement(Double normalEntitlement)The number of units the employee is entitled to each yearvoidsetShowOnPayslip(Boolean showOnPayslip)Set this if you want a balance for this leave type to be shown on your employee’s payslipsvoidsetTypeOfUnits(String typeOfUnits)The type of units by which leave entitlements are normally tracked.LeaveTypeshowOnPayslip(Boolean showOnPayslip)Set this if you want a balance for this leave type to be shown on your employee’s payslipsStringtoString()LeaveTypetypeOfUnits(String typeOfUnits)The type of units by which leave entitlements are normally tracked.
-
-
-
Method Detail
-
name
public LeaveType name(String name)
Name of the earnings rate (max length = 100)- Parameters:
name- String- Returns:
- LeaveType
-
getName
public String getName()
Name of the earnings rate (max length = 100)- Returns:
- name
-
setName
public void setName(String name)
Name of the earnings rate (max length = 100)- Parameters:
name- String
-
typeOfUnits
public LeaveType typeOfUnits(String typeOfUnits)
The type of units by which leave entitlements are normally tracked. These are typically the same as the type of units used for the employee’s ordinary earnings rate- Parameters:
typeOfUnits- String- Returns:
- LeaveType
-
getTypeOfUnits
public String getTypeOfUnits()
The type of units by which leave entitlements are normally tracked. These are typically the same as the type of units used for the employee’s ordinary earnings rate- Returns:
- typeOfUnits
-
setTypeOfUnits
public void setTypeOfUnits(String typeOfUnits)
The type of units by which leave entitlements are normally tracked. These are typically the same as the type of units used for the employee’s ordinary earnings rate- Parameters:
typeOfUnits- String
-
leaveTypeID
public LeaveType leaveTypeID(UUID leaveTypeID)
Xero identifier- Parameters:
leaveTypeID- UUID- Returns:
- LeaveType
-
getLeaveTypeID
public UUID getLeaveTypeID()
Xero identifier- Returns:
- leaveTypeID
-
setLeaveTypeID
public void setLeaveTypeID(UUID leaveTypeID)
Xero identifier- Parameters:
leaveTypeID- UUID
-
normalEntitlement
public LeaveType normalEntitlement(Double normalEntitlement)
The number of units the employee is entitled to each year- Parameters:
normalEntitlement- Double- Returns:
- LeaveType
-
getNormalEntitlement
public Double getNormalEntitlement()
The number of units the employee is entitled to each year- Returns:
- normalEntitlement
-
setNormalEntitlement
public void setNormalEntitlement(Double normalEntitlement)
The number of units the employee is entitled to each year- Parameters:
normalEntitlement- Double
-
leaveLoadingRate
public LeaveType leaveLoadingRate(Double leaveLoadingRate)
Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)- Parameters:
leaveLoadingRate- Double- Returns:
- LeaveType
-
getLeaveLoadingRate
public Double getLeaveLoadingRate()
Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)- Returns:
- leaveLoadingRate
-
setLeaveLoadingRate
public void setLeaveLoadingRate(Double leaveLoadingRate)
Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)- Parameters:
leaveLoadingRate- Double
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
Last modified timestamp- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
Last modified timestamp- Returns:
- OffsetDateTime
-
isPaidLeave
public LeaveType isPaidLeave(Boolean isPaidLeave)
Set this to indicate that an employee will be paid when taking this type of leave- Parameters:
isPaidLeave- Boolean- Returns:
- LeaveType
-
getIsPaidLeave
public Boolean getIsPaidLeave()
Set this to indicate that an employee will be paid when taking this type of leave- Returns:
- isPaidLeave
-
setIsPaidLeave
public void setIsPaidLeave(Boolean isPaidLeave)
Set this to indicate that an employee will be paid when taking this type of leave- Parameters:
isPaidLeave- Boolean
-
showOnPayslip
public LeaveType showOnPayslip(Boolean showOnPayslip)
Set this if you want a balance for this leave type to be shown on your employee’s payslips- Parameters:
showOnPayslip- Boolean- Returns:
- LeaveType
-
getShowOnPayslip
public Boolean getShowOnPayslip()
Set this if you want a balance for this leave type to be shown on your employee’s payslips- Returns:
- showOnPayslip
-
setShowOnPayslip
public void setShowOnPayslip(Boolean showOnPayslip)
Set this if you want a balance for this leave type to be shown on your employee’s payslips- Parameters:
showOnPayslip- Boolean
-
currentRecord
public LeaveType currentRecord(Boolean currentRecord)
Is the current record- Parameters:
currentRecord- Boolean- Returns:
- LeaveType
-
getCurrentRecord
public Boolean getCurrentRecord()
Is the current record- Returns:
- currentRecord
-
setCurrentRecord
public void setCurrentRecord(Boolean currentRecord)
Is the current record- Parameters:
currentRecord- Boolean
-
-