Class TaxDetailImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.TaxDetailImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<TaxDetail>,TaxDetail
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Stringprotected org.broadleafcommerce.common.currency.domain.BroadleafCurrencyprotected Longprotected Stringprotected org.broadleafcommerce.common.config.domain.ModuleConfigurationprotected BigDecimalprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionTaxDetailImpl(TaxType type, org.broadleafcommerce.common.money.Money amount, BigDecimal rate) -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.copy.CreateResponse<TaxDetail>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) org.broadleafcommerce.common.money.MoneyGets the tax amountReturns the country, as a string, used for tax calculation.org.broadleafcommerce.common.currency.domain.BroadleafCurrencygetId()Gets the id.Returns the name of the tax jurisdiction.org.broadleafcommerce.common.config.domain.ModuleConfigurationReturns the configuration of the module that was used to calculate taxes.getRate()Gets the tax rateReturns the name of the region used for tax calculation.Gets the name of the tax.getType()Gets the tax typevoidsetAmount(org.broadleafcommerce.common.money.Money amount) Sets the tax amountvoidsetCountry(String country) Sets the country used for tax calculation.voidsetCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) voidSets the id.voidsetJurisdictionName(String jurisdiction) Optionally sets the name of the tax jurisdiction.voidsetModuleConfiguration(org.broadleafcommerce.common.config.domain.ModuleConfiguration config) Sets the module configuration that was used to calculate taxes.voidsetRate(BigDecimal rate) Sets the tax rate.voidSets the region, as a string.voidsetTaxName(String taxName) Sets the name of the tax, if applicable.voidSets the tax type
-
Field Details
-
id
-
type
-
amount
-
rate
-
jurisdictionName
-
country
-
region
-
taxName
-
currency
protected org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency -
moduleConfiguation
protected org.broadleafcommerce.common.config.domain.ModuleConfiguration moduleConfiguation
-
-
Constructor Details
-
TaxDetailImpl
public TaxDetailImpl() -
TaxDetailImpl
public TaxDetailImpl(TaxType type, org.broadleafcommerce.common.money.Money amount, BigDecimal rate)
-
-
Method Details
-
getId
Description copied from interface:TaxDetailGets the id. -
setId
Description copied from interface:TaxDetailSets the id. -
getType
Description copied from interface:TaxDetailGets the tax type -
setType
Description copied from interface:TaxDetailSets the tax type -
getAmount
public org.broadleafcommerce.common.money.Money getAmount()Description copied from interface:TaxDetailGets the tax amount -
setAmount
public void setAmount(org.broadleafcommerce.common.money.Money amount) Description copied from interface:TaxDetailSets the tax amount -
getRate
Description copied from interface:TaxDetailGets the tax rate -
setRate
Description copied from interface:TaxDetailSets the tax rate. -
getCurrency
public org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency()- Specified by:
getCurrencyin interfaceTaxDetail
-
setCurrency
public void setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) - Specified by:
setCurrencyin interfaceTaxDetail
-
getModuleConfiguration
public org.broadleafcommerce.common.config.domain.ModuleConfiguration getModuleConfiguration()Description copied from interface:TaxDetailReturns the configuration of the module that was used to calculate taxes. Allows for tracking, especially when more than one module may be used by the system.- Specified by:
getModuleConfigurationin interfaceTaxDetail- Returns:
-
setModuleConfiguration
public void setModuleConfiguration(org.broadleafcommerce.common.config.domain.ModuleConfiguration config) Description copied from interface:TaxDetailSets the module configuration that was used to calculate taxes. Allows for tracking of which module was used, especially in cases where more than one module is available over time.- Specified by:
setModuleConfigurationin interfaceTaxDetail
-
getJurisdictionName
Description copied from interface:TaxDetailReturns the name of the tax jurisdiction. May return null.- Specified by:
getJurisdictionNamein interfaceTaxDetail- Returns:
-
setJurisdictionName
Description copied from interface:TaxDetailOptionally sets the name of the tax jurisdiction.- Specified by:
setJurisdictionNamein interfaceTaxDetail
-
getTaxName
Description copied from interface:TaxDetailGets the name of the tax. May return null.- Specified by:
getTaxNamein interfaceTaxDetail- Returns:
-
setTaxName
Description copied from interface:TaxDetailSets the name of the tax, if applicable.- Specified by:
setTaxNamein interfaceTaxDetail
-
getRegion
Description copied from interface:TaxDetailReturns the name of the region used for tax calculation. May return null. -
setRegion
Description copied from interface:TaxDetailSets the region, as a string. Typically this will be a State, Province, or County. -
getCountry
Description copied from interface:TaxDetailReturns the country, as a string, used for tax calculation. May return null.- Specified by:
getCountryin interfaceTaxDetail- Returns:
-
setCountry
Description copied from interface:TaxDetailSets the country used for tax calculation.- Specified by:
setCountryin interfaceTaxDetail
-
createOrRetrieveCopyInstance
public org.broadleafcommerce.common.copy.CreateResponse<TaxDetail> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<TaxDetail>- Throws:
CloneNotSupportedException
-