|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.order.domain.TaxDetailImpl
@Entity public class TaxDetailImpl
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
TaxDetailImpl()
|
|
TaxDetailImpl(TaxType type,
Money amount,
BigDecimal rate)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public TaxDetailImpl()
public TaxDetailImpl(TaxType type,
Money amount,
BigDecimal rate)
| Method Detail |
|---|
public Long getId()
TaxDetail
getId in interface TaxDetailpublic void setId(Long id)
TaxDetail
setId in interface TaxDetailid - the new idpublic TaxType getType()
TaxDetail
getType in interface TaxDetailpublic void setType(TaxType type)
TaxDetail
setType in interface TaxDetailtype - the tax typepublic Money getAmount()
TaxDetail
getAmount in interface TaxDetailpublic void setAmount(Money amount)
TaxDetail
setAmount in interface TaxDetailamount - the tax amountpublic BigDecimal getRate()
TaxDetail
getRate in interface TaxDetailpublic void setRate(BigDecimal rate)
TaxDetail
setRate in interface TaxDetailpublic BroadleafCurrency getCurrency()
getCurrency in interface TaxDetailpublic void setCurrency(BroadleafCurrency currency)
setCurrency in interface TaxDetailpublic ModuleConfiguration getModuleConfiguration()
TaxDetail
getModuleConfiguration in interface TaxDetailpublic void setModuleConfiguration(ModuleConfiguration config)
TaxDetail
setModuleConfiguration in interface TaxDetailpublic void setJurisdictionName(String jurisdiction)
TaxDetail
setJurisdictionName in interface TaxDetailpublic String getJurisdictionName()
TaxDetail
getJurisdictionName in interface TaxDetailpublic void setTaxName(String taxName)
TaxDetail
setTaxName in interface TaxDetailpublic String getTaxName()
TaxDetail
getTaxName in interface TaxDetailpublic void setRegion(String region)
TaxDetail
setRegion in interface TaxDetailpublic String getRegion()
TaxDetail
getRegion in interface TaxDetailpublic void setCountry(String country)
TaxDetail
setCountry in interface TaxDetailpublic String getCountry()
TaxDetail
getCountry in interface TaxDetail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||