Class TaxRate

java.lang.Object
com.xero.models.accounting.TaxRate

public class TaxRate
extends Object
TaxRate
  • Constructor Details

    • TaxRate

      public TaxRate()
  • Method Details

    • name

      public TaxRate name​(String name)
    • getName

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

      public void setName​(String name)
    • taxType

      public TaxRate taxType​(String taxType)
    • getTaxType

      public String getTaxType()
      The tax type
      Returns:
      taxType
    • setTaxType

      public void setTaxType​(String taxType)
    • taxComponents

      public TaxRate taxComponents​(List<TaxComponent> taxComponents)
    • addTaxComponentsItem

      public TaxRate addTaxComponentsItem​(TaxComponent taxComponentsItem)
    • getTaxComponents

      public List<TaxComponent> getTaxComponents()
      See TaxComponents
      Returns:
      taxComponents
    • setTaxComponents

      public void setTaxComponents​(List<TaxComponent> taxComponents)
    • status

      public TaxRate status​(TaxRate.StatusEnum status)
    • getStatus

      public TaxRate.StatusEnum getStatus()
      See Status Codes
      Returns:
      status
    • setStatus

      public void setStatus​(TaxRate.StatusEnum status)
    • reportTaxType

      public TaxRate reportTaxType​(TaxRate.ReportTaxTypeEnum reportTaxType)
    • getReportTaxType

      public TaxRate.ReportTaxTypeEnum getReportTaxType()
      See ReportTaxTypes
      Returns:
      reportTaxType
    • setReportTaxType

      public void setReportTaxType​(TaxRate.ReportTaxTypeEnum reportTaxType)
    • getCanApplyToAssets

      public Boolean getCanApplyToAssets()
      Boolean to describe if tax rate can be used for asset accounts i.e. true,false
      Returns:
      canApplyToAssets
    • getCanApplyToEquity

      public Boolean getCanApplyToEquity()
      Boolean to describe if tax rate can be used for equity accounts i.e true,false
      Returns:
      canApplyToEquity
    • getCanApplyToExpenses

      public Boolean getCanApplyToExpenses()
      Boolean to describe if tax rate can be used for expense accounts i.e. true,false
      Returns:
      canApplyToExpenses
    • getCanApplyToLiabilities

      public Boolean getCanApplyToLiabilities()
      Boolean to describe if tax rate can be used for liability accounts i.e. true,false
      Returns:
      canApplyToLiabilities
    • getCanApplyToRevenue

      public Boolean getCanApplyToRevenue()
      Boolean to describe if tax rate can be used for revenue accounts i.e. true,false
      Returns:
      canApplyToRevenue
    • getDisplayTaxRate

      public Double getDisplayTaxRate()
      Tax Rate (decimal to 4dp) e.g 12.5000
      Returns:
      displayTaxRate
    • getEffectiveRate

      public Double getEffectiveRate()
      Effective Tax Rate (decimal to 4dp) e.g 12.5000
      Returns:
      effectiveRate
    • 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