Class EmployeeLeaveType


  • public class EmployeeLeaveType
    extends Object
    EmployeeLeaveType
    • Constructor Detail

      • EmployeeLeaveType

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

        public int hashCode()
        Overrides:
        hashCode in class Object