@Entity public class TaxDetailImpl extends java.lang.Object implements TaxDetail
| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigDecimal |
amount |
protected java.lang.String |
country |
protected BroadleafCurrency |
currency |
protected java.lang.Long |
id |
protected java.lang.String |
jurisdictionName |
protected ModuleConfiguration |
moduleConfiguation |
protected java.math.BigDecimal |
rate |
protected java.lang.String |
region |
protected java.lang.String |
taxName |
protected java.lang.String |
type |
| Constructor and Description |
|---|
TaxDetailImpl() |
TaxDetailImpl(TaxType type,
Money amount,
java.math.BigDecimal rate) |
| Modifier and Type | Method and Description |
|---|---|
Money |
getAmount()
Gets the tax amount
|
java.lang.String |
getCountry()
Returns the country, as a string, used for tax calculation.
|
BroadleafCurrency |
getCurrency() |
java.lang.Long |
getId()
Gets the id.
|
java.lang.String |
getJurisdictionName()
Returns the name of the tax jurisdiction.
|
ModuleConfiguration |
getModuleConfiguration()
Returns the configuration of the module that was used to calculate taxes.
|
java.math.BigDecimal |
getRate()
Gets the tax rate
|
java.lang.String |
getRegion()
Returns the name of the region used for tax calculation.
|
java.lang.String |
getTaxName()
Gets the name of the tax.
|
TaxType |
getType()
Gets the tax type
|
void |
setAmount(Money amount)
Sets the tax amount
|
void |
setCountry(java.lang.String country)
Sets the country used for tax calculation.
|
void |
setCurrency(BroadleafCurrency currency) |
void |
setId(java.lang.Long id)
Sets the id.
|
void |
setJurisdictionName(java.lang.String jurisdiction)
Optionally sets the name of the tax jurisdiction.
|
void |
setModuleConfiguration(ModuleConfiguration config)
Sets the module configuration that was used to calculate taxes.
|
void |
setRate(java.math.BigDecimal rate)
Sets the tax rate.
|
void |
setRegion(java.lang.String region)
Sets the region, as a string.
|
void |
setTaxName(java.lang.String taxName)
Sets the name of the tax, if applicable.
|
void |
setType(TaxType type)
Sets the tax type
|
protected java.lang.Long id
protected java.lang.String type
protected java.math.BigDecimal amount
protected java.math.BigDecimal rate
protected java.lang.String jurisdictionName
protected java.lang.String country
protected java.lang.String region
protected java.lang.String taxName
protected BroadleafCurrency currency
protected ModuleConfiguration moduleConfiguation
public java.lang.Long getId()
TaxDetailpublic void setId(java.lang.Long id)
TaxDetailpublic void setType(TaxType type)
TaxDetailpublic void setAmount(Money amount)
TaxDetailpublic java.math.BigDecimal getRate()
TaxDetailpublic void setRate(java.math.BigDecimal rate)
TaxDetailpublic BroadleafCurrency getCurrency()
getCurrency in interface TaxDetailpublic void setCurrency(BroadleafCurrency currency)
setCurrency in interface TaxDetailpublic ModuleConfiguration getModuleConfiguration()
TaxDetailgetModuleConfiguration in interface TaxDetailpublic void setModuleConfiguration(ModuleConfiguration config)
TaxDetailsetModuleConfiguration in interface TaxDetailpublic void setJurisdictionName(java.lang.String jurisdiction)
TaxDetailsetJurisdictionName in interface TaxDetailpublic java.lang.String getJurisdictionName()
TaxDetailgetJurisdictionName in interface TaxDetailpublic void setTaxName(java.lang.String taxName)
TaxDetailsetTaxName in interface TaxDetailpublic java.lang.String getTaxName()
TaxDetailgetTaxName in interface TaxDetailpublic void setRegion(java.lang.String region)
TaxDetailpublic java.lang.String getRegion()
TaxDetailpublic void setCountry(java.lang.String country)
TaxDetailsetCountry in interface TaxDetailpublic java.lang.String getCountry()
TaxDetailgetCountry in interface TaxDetailCopyright © 2018. All Rights Reserved.