Class LeaveType


  • public class LeaveType
    extends Object
    LeaveType
    • Constructor Detail

      • LeaveType

        public LeaveType()
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object