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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaxRateaddTaxComponentsItem(TaxComponent taxComponentsItem)See TaxComponentsbooleanequals(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)Name of tax rateTaxRatereportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)See ReportTaxTypesvoidsetName(String name)Name of tax ratevoidsetReportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)See ReportTaxTypesvoidsetStatus(TaxRate.StatusEnum status)See Status CodesvoidsetTaxComponents(List<TaxComponent> taxComponents)See TaxComponentsvoidsetTaxType(String taxType)The tax typeTaxRatestatus(TaxRate.StatusEnum status)See Status CodesTaxRatetaxComponents(List<TaxComponent> taxComponents)See TaxComponentsTaxRatetaxType(String taxType)The tax typeStringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Name of tax rate- Returns:
- name
-
setName
public void setName(String name)
Name of tax rate- Parameters:
name- String
-
taxType
public TaxRate taxType(String taxType)
The tax type- Parameters:
taxType- String- Returns:
- TaxRate
-
getTaxType
public String getTaxType()
The tax type- Returns:
- taxType
-
setTaxType
public void setTaxType(String taxType)
The tax type- Parameters:
taxType- String
-
taxComponents
public TaxRate taxComponents(List<TaxComponent> taxComponents)
See TaxComponents- Parameters:
taxComponents- List<TaxComponent>- Returns:
- TaxRate
-
addTaxComponentsItem
public TaxRate addTaxComponentsItem(TaxComponent taxComponentsItem)
See TaxComponents- Parameters:
taxComponentsItem- TaxComponent- Returns:
- TaxRate
-
getTaxComponents
public List<TaxComponent> getTaxComponents()
See TaxComponents- Returns:
- taxComponents
-
setTaxComponents
public void setTaxComponents(List<TaxComponent> taxComponents)
See TaxComponents- Parameters:
taxComponents- List<TaxComponent>
-
status
public TaxRate status(TaxRate.StatusEnum status)
See Status Codes- Parameters:
status- StatusEnum- Returns:
- TaxRate
-
getStatus
public TaxRate.StatusEnum getStatus()
See Status Codes- Returns:
- status
-
setStatus
public void setStatus(TaxRate.StatusEnum status)
See Status Codes- Parameters:
status- StatusEnum
-
reportTaxType
public TaxRate reportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)
See ReportTaxTypes- Parameters:
reportTaxType- ReportTaxTypeEnum- Returns:
- TaxRate
-
getReportTaxType
public TaxRate.ReportTaxTypeEnum getReportTaxType()
See ReportTaxTypes- Returns:
- reportTaxType
-
setReportTaxType
public void setReportTaxType(TaxRate.ReportTaxTypeEnum reportTaxType)
See ReportTaxTypes- Parameters:
reportTaxType- ReportTaxTypeEnum
-
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
-
-