Package com.xero.models.accounting
Class TaxRate
java.lang.Object
com.xero.models.accounting.TaxRate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSee ReportTaxTypesstatic enumSee Status Codes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTaxComponentsItem(TaxComponent taxComponentsItem) See TaxComponentsbooleanBoolean to describe if tax rate can be used for asset accounts i.e.Boolean to describe if tax rate can be used for equity accounts i.e true,falseBoolean to describe if tax rate can be used for expense accounts i.e.Boolean to describe if tax rate can be used for liability accounts i.e.Boolean to describe if tax rate can be used for revenue accounts i.e.Tax Rate (decimal to 4dp) e.g 12.5000Effective Tax Rate (decimal to 4dp) e.g 12.5000getName()Name of tax rateSee ReportTaxTypesSee Status CodesSee TaxComponentsThe tax typeinthashCode()Name of tax ratereportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType) See ReportTaxTypesvoidName of tax ratevoidsetReportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType) See ReportTaxTypesvoidsetStatus(TaxRate.StatusEnum status) See Status CodesvoidsetTaxComponents(List<TaxComponent> taxComponents) See TaxComponentsvoidsetTaxType(String taxType) The tax typestatus(TaxRate.StatusEnum status) See Status CodestaxComponents(List<TaxComponent> taxComponents) See TaxComponentsThe tax typetoString()
-
Constructor Details
-
TaxRate
public TaxRate()
-
-
Method Details
-
name
-
getName
-
setName
-
taxType
-
getTaxType
-
setTaxType
-
taxComponents
See TaxComponents- Parameters:
taxComponents- List<TaxComponent>- Returns:
- TaxRate
-
addTaxComponentsItem
See TaxComponents- Parameters:
taxComponentsItem- TaxComponent- Returns:
- TaxRate
-
getTaxComponents
-
setTaxComponents
See TaxComponents- Parameters:
taxComponents- List<TaxComponent>
-
status
See Status Codes- Parameters:
status- StatusEnum- Returns:
- TaxRate
-
getStatus
-
setStatus
-
reportTaxType
See ReportTaxTypes- Parameters:
reportTaxType- ReportTaxTypeEnum- Returns:
- TaxRate
-
getReportTaxType
-
setReportTaxType
See ReportTaxTypes- Parameters:
reportTaxType- ReportTaxTypeEnum
-
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
-
getEffectiveRate
Effective Tax Rate (decimal to 4dp) e.g 12.5000- Returns:
- effectiveRate
-
equals
-
hashCode
-
toString
-