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