Class EarningsRate


  • public class EarningsRate
    extends Object
    EarningsRate
    • Constructor Detail

      • EarningsRate

        public EarningsRate()
    • Method Detail

      • earningsRateID

        public EarningsRate earningsRateID​(UUID earningsRateID)
        Xero unique identifier for an earning rate
        Parameters:
        earningsRateID - UUID
        Returns:
        EarningsRate
      • getEarningsRateID

        public UUID getEarningsRateID()
        Xero unique identifier for an earning rate
        Returns:
        earningsRateID
      • setEarningsRateID

        public void setEarningsRateID​(UUID earningsRateID)
        Xero unique identifier for an earning rate
        Parameters:
        earningsRateID - UUID
      • name

        public EarningsRate name​(String name)
        Name of the earning rate
        Parameters:
        name - String
        Returns:
        EarningsRate
      • getName

        public String getName()
        Name of the earning rate
        Returns:
        name
      • setName

        public void setName​(String name)
        Name of the earning rate
        Parameters:
        name - String
      • earningsType

        public EarningsRate earningsType​(EarningsRate.EarningsTypeEnum earningsType)
        Indicates how an employee will be paid when taking this type of earning
        Parameters:
        earningsType - EarningsTypeEnum
        Returns:
        EarningsRate
      • getEarningsType

        public EarningsRate.EarningsTypeEnum getEarningsType()
        Indicates how an employee will be paid when taking this type of earning
        Returns:
        earningsType
      • setEarningsType

        public void setEarningsType​(EarningsRate.EarningsTypeEnum earningsType)
        Indicates how an employee will be paid when taking this type of earning
        Parameters:
        earningsType - EarningsTypeEnum
      • setRateType

        public void setRateType​(EarningsRate.RateTypeEnum rateType)
        Indicates the type of the earning rate
        Parameters:
        rateType - RateTypeEnum
      • typeOfUnits

        public EarningsRate typeOfUnits​(String typeOfUnits)
        The type of units used to record earnings
        Parameters:
        typeOfUnits - String
        Returns:
        EarningsRate
      • getTypeOfUnits

        public String getTypeOfUnits()
        The type of units used to record earnings
        Returns:
        typeOfUnits
      • setTypeOfUnits

        public void setTypeOfUnits​(String typeOfUnits)
        The type of units used to record earnings
        Parameters:
        typeOfUnits - String
      • currentRecord

        public EarningsRate currentRecord​(Boolean currentRecord)
        Indicates whether an earning type is active
        Parameters:
        currentRecord - Boolean
        Returns:
        EarningsRate
      • getCurrentRecord

        public Boolean getCurrentRecord()
        Indicates whether an earning type is active
        Returns:
        currentRecord
      • setCurrentRecord

        public void setCurrentRecord​(Boolean currentRecord)
        Indicates whether an earning type is active
        Parameters:
        currentRecord - Boolean
      • expenseAccountID

        public EarningsRate expenseAccountID​(UUID expenseAccountID)
        The account that will be used for the earnings rate
        Parameters:
        expenseAccountID - UUID
        Returns:
        EarningsRate
      • getExpenseAccountID

        public UUID getExpenseAccountID()
        The account that will be used for the earnings rate
        Returns:
        expenseAccountID
      • setExpenseAccountID

        public void setExpenseAccountID​(UUID expenseAccountID)
        The account that will be used for the earnings rate
        Parameters:
        expenseAccountID - UUID
      • ratePerUnit

        public EarningsRate ratePerUnit​(Double ratePerUnit)
        Default rate per unit (optional). Only applicable if RateType is RatePerUnit
        Parameters:
        ratePerUnit - Double
        Returns:
        EarningsRate
      • getRatePerUnit

        public Double getRatePerUnit()
        Default rate per unit (optional). Only applicable if RateType is RatePerUnit
        Returns:
        ratePerUnit
      • setRatePerUnit

        public void setRatePerUnit​(Double ratePerUnit)
        Default rate per unit (optional). Only applicable if RateType is RatePerUnit
        Parameters:
        ratePerUnit - Double
      • multipleOfOrdinaryEarningsRate

        public EarningsRate multipleOfOrdinaryEarningsRate​(Double multipleOfOrdinaryEarningsRate)
        This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate. For example, for time and a half enter 1.5. Only applicable if RateType is MultipleOfOrdinaryEarningsRate
        Parameters:
        multipleOfOrdinaryEarningsRate - Double
        Returns:
        EarningsRate
      • getMultipleOfOrdinaryEarningsRate

        public Double getMultipleOfOrdinaryEarningsRate()
        This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate. For example, for time and a half enter 1.5. Only applicable if RateType is MultipleOfOrdinaryEarningsRate
        Returns:
        multipleOfOrdinaryEarningsRate
      • setMultipleOfOrdinaryEarningsRate

        public void setMultipleOfOrdinaryEarningsRate​(Double multipleOfOrdinaryEarningsRate)
        This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate. For example, for time and a half enter 1.5. Only applicable if RateType is MultipleOfOrdinaryEarningsRate
        Parameters:
        multipleOfOrdinaryEarningsRate - Double
      • fixedAmount

        public EarningsRate fixedAmount​(Double fixedAmount)
        Optional Fixed Rate Amount. Applicable for FixedAmount Rate
        Parameters:
        fixedAmount - Double
        Returns:
        EarningsRate
      • getFixedAmount

        public Double getFixedAmount()
        Optional Fixed Rate Amount. Applicable for FixedAmount Rate
        Returns:
        fixedAmount
      • setFixedAmount

        public void setFixedAmount​(Double fixedAmount)
        Optional Fixed Rate Amount. Applicable for FixedAmount Rate
        Parameters:
        fixedAmount - Double
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object