Class TaxDetailImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.TaxDetailImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<TaxDetail>,TaxDetail
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Stringprotected BroadleafCurrencyprotected Longprotected Stringprotected ModuleConfigurationprotected BigDecimalprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the tax amountReturns the country, as a string, used for tax calculation.getId()Gets the id.Returns the name of the tax jurisdiction.Returns 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 typevoidSets the tax amountvoidsetCountry(String country) Sets the country used for tax calculation.voidsetCurrency(BroadleafCurrency currency) voidSets the id.voidsetJurisdictionName(String jurisdiction) Optionally sets the name of the tax jurisdiction.voidSets 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
-
moduleConfiguation
-
-
Constructor Details
-
TaxDetailImpl
public TaxDetailImpl() -
TaxDetailImpl
-
-
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
Description copied from interface:TaxDetailGets the tax amount -
setAmount
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
- Specified by:
getCurrencyin interfaceTaxDetail
-
setCurrency
- Specified by:
setCurrencyin interfaceTaxDetail
-
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
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 CreateResponse<TaxDetail> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<TaxDetail>- Throws:
CloneNotSupportedException
-