Class Benefit


  • public class Benefit
    extends Object
    Benefit
    • Constructor Detail

      • Benefit

        public Benefit()
    • Method Detail

      • id

        public Benefit id​(UUID id)
        unique identifier in Xero
        Parameters:
        id - UUID
        Returns:
        Benefit
      • getId

        public UUID getId()
        unique identifier in Xero
        Returns:
        id
      • setId

        public void setId​(UUID id)
        unique identifier in Xero
        Parameters:
        id - UUID
      • name

        public Benefit name​(String name)
        Name of the employer pension
        Parameters:
        name - String
        Returns:
        Benefit
      • getName

        public String getName()
        Name of the employer pension
        Returns:
        name
      • setName

        public void setName​(String name)
        Name of the employer pension
        Parameters:
        name - String
      • category

        public Benefit category​(Benefit.CategoryEnum category)
        Category type of the employer pension
        Parameters:
        category - CategoryEnum
        Returns:
        Benefit
      • getCategory

        public Benefit.CategoryEnum getCategory()
        Category type of the employer pension
        Returns:
        category
      • setCategory

        public void setCategory​(Benefit.CategoryEnum category)
        Category type of the employer pension
        Parameters:
        category - CategoryEnum
      • liabilityAccountId

        public Benefit liabilityAccountId​(UUID liabilityAccountId)
        Xero identifier for Liability Account
        Parameters:
        liabilityAccountId - UUID
        Returns:
        Benefit
      • getLiabilityAccountId

        public UUID getLiabilityAccountId()
        Xero identifier for Liability Account
        Returns:
        liabilityAccountId
      • setLiabilityAccountId

        public void setLiabilityAccountId​(UUID liabilityAccountId)
        Xero identifier for Liability Account
        Parameters:
        liabilityAccountId - UUID
      • expenseAccountId

        public Benefit expenseAccountId​(UUID expenseAccountId)
        Xero identifier for Expense Account
        Parameters:
        expenseAccountId - UUID
        Returns:
        Benefit
      • getExpenseAccountId

        public UUID getExpenseAccountId()
        Xero identifier for Expense Account
        Returns:
        expenseAccountId
      • setExpenseAccountId

        public void setExpenseAccountId​(UUID expenseAccountId)
        Xero identifier for Expense Account
        Parameters:
        expenseAccountId - UUID
      • standardAmount

        public Benefit standardAmount​(Double standardAmount)
        Standard amount of the employer pension
        Parameters:
        standardAmount - Double
        Returns:
        Benefit
      • getStandardAmount

        public Double getStandardAmount()
        Standard amount of the employer pension
        Returns:
        standardAmount
      • setStandardAmount

        public void setStandardAmount​(Double standardAmount)
        Standard amount of the employer pension
        Parameters:
        standardAmount - Double
      • percentage

        public Benefit percentage​(Double percentage)
        Percentage of gross of the employer pension
        Parameters:
        percentage - Double
        Returns:
        Benefit
      • getPercentage

        public Double getPercentage()
        Percentage of gross of the employer pension
        Returns:
        percentage
      • setPercentage

        public void setPercentage​(Double percentage)
        Percentage of gross of the employer pension
        Parameters:
        percentage - Double
      • calculationType

        public Benefit calculationType​(Benefit.CalculationTypeEnum calculationType)
        Calculation Type of the employer pension (FixedAmount or PercentageOfGross).
        Parameters:
        calculationType - CalculationTypeEnum
        Returns:
        Benefit
      • getCalculationType

        public Benefit.CalculationTypeEnum getCalculationType()
        Calculation Type of the employer pension (FixedAmount or PercentageOfGross).
        Returns:
        calculationType
      • setCalculationType

        public void setCalculationType​(Benefit.CalculationTypeEnum calculationType)
        Calculation Type of the employer pension (FixedAmount or PercentageOfGross).
        Parameters:
        calculationType - CalculationTypeEnum
      • currentRecord

        public Benefit currentRecord​(Boolean currentRecord)
        Identifier of a record is active or not.
        Parameters:
        currentRecord - Boolean
        Returns:
        Benefit
      • getCurrentRecord

        public Boolean getCurrentRecord()
        Identifier of a record is active or not.
        Returns:
        currentRecord
      • setCurrentRecord

        public void setCurrentRecord​(Boolean currentRecord)
        Identifier of a record is active or not.
        Parameters:
        currentRecord - Boolean
      • subjectToNIC

        public Benefit subjectToNIC​(Boolean subjectToNIC)
        Identifier of subject To NIC
        Parameters:
        subjectToNIC - Boolean
        Returns:
        Benefit
      • getSubjectToNIC

        public Boolean getSubjectToNIC()
        Identifier of subject To NIC
        Returns:
        subjectToNIC
      • setSubjectToNIC

        public void setSubjectToNIC​(Boolean subjectToNIC)
        Identifier of subject To NIC
        Parameters:
        subjectToNIC - Boolean
      • subjectToPension

        public Benefit subjectToPension​(Boolean subjectToPension)
        Identifier of subject To pension
        Parameters:
        subjectToPension - Boolean
        Returns:
        Benefit
      • getSubjectToPension

        public Boolean getSubjectToPension()
        Identifier of subject To pension
        Returns:
        subjectToPension
      • setSubjectToPension

        public void setSubjectToPension​(Boolean subjectToPension)
        Identifier of subject To pension
        Parameters:
        subjectToPension - Boolean
      • subjectToTax

        public Benefit subjectToTax​(Boolean subjectToTax)
        Identifier of subject To Tax
        Parameters:
        subjectToTax - Boolean
        Returns:
        Benefit
      • getSubjectToTax

        public Boolean getSubjectToTax()
        Identifier of subject To Tax
        Returns:
        subjectToTax
      • setSubjectToTax

        public void setSubjectToTax​(Boolean subjectToTax)
        Identifier of subject To Tax
        Parameters:
        subjectToTax - Boolean
      • isCalculatingOnQualifyingEarnings

        public Benefit isCalculatingOnQualifyingEarnings​(Boolean isCalculatingOnQualifyingEarnings)
        Identifier of calculating on qualifying earnings
        Parameters:
        isCalculatingOnQualifyingEarnings - Boolean
        Returns:
        Benefit
      • getIsCalculatingOnQualifyingEarnings

        public Boolean getIsCalculatingOnQualifyingEarnings()
        Identifier of calculating on qualifying earnings
        Returns:
        isCalculatingOnQualifyingEarnings
      • setIsCalculatingOnQualifyingEarnings

        public void setIsCalculatingOnQualifyingEarnings​(Boolean isCalculatingOnQualifyingEarnings)
        Identifier of calculating on qualifying earnings
        Parameters:
        isCalculatingOnQualifyingEarnings - Boolean
      • showBalanceToEmployee

        public Benefit showBalanceToEmployee​(Boolean showBalanceToEmployee)
        display the balance to employee
        Parameters:
        showBalanceToEmployee - Boolean
        Returns:
        Benefit
      • getShowBalanceToEmployee

        public Boolean getShowBalanceToEmployee()
        display the balance to employee
        Returns:
        showBalanceToEmployee
      • setShowBalanceToEmployee

        public void setShowBalanceToEmployee​(Boolean showBalanceToEmployee)
        display the balance to employee
        Parameters:
        showBalanceToEmployee - Boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object