Class Benefit

java.lang.Object
com.xero.models.payrolluk.Benefit

public class Benefit
extends Object
Benefit
  • Constructor Details

    • Benefit

      public Benefit()
  • Method Details

    • id

      public Benefit id​(UUID id)
    • getId

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

      public void setId​(UUID id)
    • name

      public Benefit name​(String name)
    • getName

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

      public void setName​(String name)
    • category

      public Benefit category​(Benefit.CategoryEnum category)
    • getCategory

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

      public void setCategory​(Benefit.CategoryEnum category)
    • liabilityAccountId

      public Benefit liabilityAccountId​(UUID liabilityAccountId)
    • getLiabilityAccountId

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

      public void setLiabilityAccountId​(UUID liabilityAccountId)
    • expenseAccountId

      public Benefit expenseAccountId​(UUID expenseAccountId)
    • getExpenseAccountId

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

      public void setExpenseAccountId​(UUID expenseAccountId)
    • standardAmount

      public Benefit standardAmount​(Double standardAmount)
    • getStandardAmount

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

      public void setStandardAmount​(Double standardAmount)
    • percentage

      public Benefit percentage​(Double percentage)
    • getPercentage

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

      public void setPercentage​(Double percentage)
    • calculationType

      public Benefit calculationType​(Benefit.CalculationTypeEnum calculationType)
    • getCalculationType

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

      public void setCalculationType​(Benefit.CalculationTypeEnum calculationType)
    • currentRecord

      public Benefit currentRecord​(Boolean currentRecord)
    • getCurrentRecord

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

      public void setCurrentRecord​(Boolean currentRecord)
    • subjectToNIC

      public Benefit subjectToNIC​(Boolean subjectToNIC)
    • getSubjectToNIC

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

      public void setSubjectToNIC​(Boolean subjectToNIC)
    • subjectToPension

      public Benefit subjectToPension​(Boolean subjectToPension)
    • getSubjectToPension

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

      public void setSubjectToPension​(Boolean subjectToPension)
    • subjectToTax

      public Benefit subjectToTax​(Boolean subjectToTax)
    • getSubjectToTax

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

      public void setSubjectToTax​(Boolean subjectToTax)
    • isCalculatingOnQualifyingEarnings

      public Benefit isCalculatingOnQualifyingEarnings​(Boolean isCalculatingOnQualifyingEarnings)
    • getIsCalculatingOnQualifyingEarnings

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

      public void setIsCalculatingOnQualifyingEarnings​(Boolean isCalculatingOnQualifyingEarnings)
    • showBalanceToEmployee

      public Benefit showBalanceToEmployee​(Boolean showBalanceToEmployee)
    • getShowBalanceToEmployee

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

      public void setShowBalanceToEmployee​(Boolean showBalanceToEmployee)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object