Class Deduction


  • public class Deduction
    extends Object
    Deduction
    • Constructor Detail

      • Deduction

        public Deduction()
    • Method Detail

      • deductionId

        public Deduction deductionId​(UUID deductionId)
        The Xero identifier for Deduction
        Parameters:
        deductionId - UUID
        Returns:
        Deduction
      • getDeductionId

        public UUID getDeductionId()
        The Xero identifier for Deduction
        Returns:
        deductionId
      • setDeductionId

        public void setDeductionId​(UUID deductionId)
        The Xero identifier for Deduction
        Parameters:
        deductionId - UUID
      • deductionName

        public Deduction deductionName​(String deductionName)
        Name of the deduction
        Parameters:
        deductionName - String
        Returns:
        Deduction
      • getDeductionName

        public String getDeductionName()
        Name of the deduction
        Returns:
        deductionName
      • setDeductionName

        public void setDeductionName​(String deductionName)
        Name of the deduction
        Parameters:
        deductionName - String
      • deductionCategory

        public Deduction deductionCategory​(Deduction.DeductionCategoryEnum deductionCategory)
        Deduction Category type
        Parameters:
        deductionCategory - DeductionCategoryEnum
        Returns:
        Deduction
      • setDeductionCategory

        public void setDeductionCategory​(Deduction.DeductionCategoryEnum deductionCategory)
        Deduction Category type
        Parameters:
        deductionCategory - DeductionCategoryEnum
      • liabilityAccountId

        public Deduction liabilityAccountId​(UUID liabilityAccountId)
        Xero identifier for Liability Account
        Parameters:
        liabilityAccountId - UUID
        Returns:
        Deduction
      • 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
      • currentRecord

        public Deduction currentRecord​(Boolean currentRecord)
        Identifier of a record is active or not.
        Parameters:
        currentRecord - Boolean
        Returns:
        Deduction
      • 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
      • standardAmount

        public Deduction standardAmount​(Double standardAmount)
        Standard amount of the deduction
        Parameters:
        standardAmount - Double
        Returns:
        Deduction
      • getStandardAmount

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

        public void setStandardAmount​(Double standardAmount)
        Standard amount of the deduction
        Parameters:
        standardAmount - Double
      • reducesSuperLiability

        public Deduction reducesSuperLiability​(Boolean reducesSuperLiability)
        Identifier of reduces super liability
        Parameters:
        reducesSuperLiability - Boolean
        Returns:
        Deduction
      • getReducesSuperLiability

        public Boolean getReducesSuperLiability()
        Identifier of reduces super liability
        Returns:
        reducesSuperLiability
      • setReducesSuperLiability

        public void setReducesSuperLiability​(Boolean reducesSuperLiability)
        Identifier of reduces super liability
        Parameters:
        reducesSuperLiability - Boolean
      • reducesTaxLiability

        public Deduction reducesTaxLiability​(Boolean reducesTaxLiability)
        Identifier of reduces tax liability
        Parameters:
        reducesTaxLiability - Boolean
        Returns:
        Deduction
      • getReducesTaxLiability

        public Boolean getReducesTaxLiability()
        Identifier of reduces tax liability
        Returns:
        reducesTaxLiability
      • setReducesTaxLiability

        public void setReducesTaxLiability​(Boolean reducesTaxLiability)
        Identifier of reduces tax liability
        Parameters:
        reducesTaxLiability - Boolean
      • calculationType

        public Deduction calculationType​(Deduction.CalculationTypeEnum calculationType)
        determine the calculation type whether fixed amount or percentage of gross
        Parameters:
        calculationType - CalculationTypeEnum
        Returns:
        Deduction
      • getCalculationType

        public Deduction.CalculationTypeEnum getCalculationType()
        determine the calculation type whether fixed amount or percentage of gross
        Returns:
        calculationType
      • setCalculationType

        public void setCalculationType​(Deduction.CalculationTypeEnum calculationType)
        determine the calculation type whether fixed amount or percentage of gross
        Parameters:
        calculationType - CalculationTypeEnum
      • percentage

        public Deduction percentage​(Double percentage)
        Percentage of gross
        Parameters:
        percentage - Double
        Returns:
        Deduction
      • getPercentage

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

        public void setPercentage​(Double percentage)
        Percentage of gross
        Parameters:
        percentage - Double
      • subjectToNIC

        public Deduction subjectToNIC​(Boolean subjectToNIC)
        Identifier of subject To NIC
        Parameters:
        subjectToNIC - Boolean
        Returns:
        Deduction
      • 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
      • subjectToTax

        public Deduction subjectToTax​(Boolean subjectToTax)
        Identifier of subject To Tax
        Parameters:
        subjectToTax - Boolean
        Returns:
        Deduction
      • 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
      • isReducedByBasicRate

        public Deduction isReducedByBasicRate​(Boolean isReducedByBasicRate)
        Identifier of reduced by basic rate applicable or not
        Parameters:
        isReducedByBasicRate - Boolean
        Returns:
        Deduction
      • getIsReducedByBasicRate

        public Boolean getIsReducedByBasicRate()
        Identifier of reduced by basic rate applicable or not
        Returns:
        isReducedByBasicRate
      • setIsReducedByBasicRate

        public void setIsReducedByBasicRate​(Boolean isReducedByBasicRate)
        Identifier of reduced by basic rate applicable or not
        Parameters:
        isReducedByBasicRate - Boolean
      • applyToPensionCalculations

        public Deduction applyToPensionCalculations​(Boolean applyToPensionCalculations)
        Identifier for apply to pension calculations
        Parameters:
        applyToPensionCalculations - Boolean
        Returns:
        Deduction
      • getApplyToPensionCalculations

        public Boolean getApplyToPensionCalculations()
        Identifier for apply to pension calculations
        Returns:
        applyToPensionCalculations
      • setApplyToPensionCalculations

        public void setApplyToPensionCalculations​(Boolean applyToPensionCalculations)
        Identifier for apply to pension calculations
        Parameters:
        applyToPensionCalculations - Boolean
      • isCalculatingOnQualifyingEarnings

        public Deduction isCalculatingOnQualifyingEarnings​(Boolean isCalculatingOnQualifyingEarnings)
        Identifier of calculating on qualifying earnings
        Parameters:
        isCalculatingOnQualifyingEarnings - Boolean
        Returns:
        Deduction
      • 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
      • isPension

        public Deduction isPension​(Boolean isPension)
        Identifier of applicable for pension or not
        Parameters:
        isPension - Boolean
        Returns:
        Deduction
      • getIsPension

        public Boolean getIsPension()
        Identifier of applicable for pension or not
        Returns:
        isPension
      • setIsPension

        public void setIsPension​(Boolean isPension)
        Identifier of applicable for pension or not
        Parameters:
        isPension - Boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object