Package com.xero.models.accounting
Class TaxRate
java.lang.Object
com.xero.models.accounting.TaxRate
public class TaxRate extends Object
TaxRate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxRate.ReportTaxTypeEnumSee ReportTaxTypesstatic classTaxRate.StatusEnumSee Status Codes -
Constructor Summary
Constructors Constructor Description TaxRate() -
Method Summary
Modifier and Type Method Description TaxRateaddTaxComponentsItem(TaxComponent taxComponentsItem)booleanequals(Object o)BooleangetCanApplyToAssets()Boolean to describe if tax rate can be used for asset accounts i.e.BooleangetCanApplyToEquity()Boolean to describe if tax rate can be used for equity accounts i.e true,falseBooleangetCanApplyToExpenses()Boolean to describe if tax rate can be used for expense accounts i.e.BooleangetCanApplyToLiabilities()Boolean to describe if tax rate can be used for liability accounts i.e.BooleangetCanApplyToRevenue()Boolean to describe if tax rate can be used for revenue accounts i.e.DoublegetDisplayTaxRate()Tax Rate (decimal to 4dp) e.g 12.5000DoublegetEffectiveRate()Effective Tax Rate (decimal to 4dp) e.g 12.5000StringgetName()Name of tax rateTaxRate.ReportTaxTypeEnumgetReportTaxType()See ReportTaxTypesTaxRate.StatusEnumgetStatus()See Status CodesList<TaxComponent>getTaxComponents()See TaxComponentsStringgetTaxType()The tax typeinthashCode()TaxRatename(String name)TaxRatereportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)voidsetName(String name)voidsetReportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)voidsetStatus(TaxRate.StatusEnum status)voidsetTaxComponents(List<TaxComponent> taxComponents)voidsetTaxType(String taxType)TaxRatestatus(TaxRate.StatusEnum status)TaxRatetaxComponents(List<TaxComponent> taxComponents)TaxRatetaxType(String taxType)StringtoString()
-
Constructor Details
-
TaxRate
public TaxRate()
-
-
Method Details
-
name
-
getName
Name of tax rate- Returns:
- name
-
setName
-
taxType
-
getTaxType
The tax type- Returns:
- taxType
-
setTaxType
-
taxComponents
-
addTaxComponentsItem
-
getTaxComponents
See TaxComponents- Returns:
- taxComponents
-
setTaxComponents
-
status
-
getStatus
See Status Codes- Returns:
- status
-
setStatus
-
reportTaxType
-
getReportTaxType
See ReportTaxTypes- Returns:
- reportTaxType
-
setReportTaxType
-
getCanApplyToAssets
Boolean to describe if tax rate can be used for asset accounts i.e. true,false- Returns:
- canApplyToAssets
-
getCanApplyToEquity
Boolean to describe if tax rate can be used for equity accounts i.e true,false- Returns:
- canApplyToEquity
-
getCanApplyToExpenses
Boolean to describe if tax rate can be used for expense accounts i.e. true,false- Returns:
- canApplyToExpenses
-
getCanApplyToLiabilities
Boolean to describe if tax rate can be used for liability accounts i.e. true,false- Returns:
- canApplyToLiabilities
-
getCanApplyToRevenue
Boolean to describe if tax rate can be used for revenue accounts i.e. true,false- Returns:
- canApplyToRevenue
-
getDisplayTaxRate
Tax Rate (decimal to 4dp) e.g 12.5000- Returns:
- displayTaxRate
-
getEffectiveRate
Effective Tax Rate (decimal to 4dp) e.g 12.5000- Returns:
- effectiveRate
-
equals
-
hashCode
public int hashCode() -
toString
-