Interface TaxDetail
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<TaxDetail>,Serializable
- All Known Implementing Classes:
TaxDetailImpl
public interface TaxDetail
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<TaxDetail>
The Interface TaxDetail. A TaxDetail object stores relevant tax information
including a tax type, amount, and rate.
-
Method Summary
Modifier and TypeMethodDescriptionorg.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 typeMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Gets the id.- Returns:
- the id
-
setId
Sets the id.- Parameters:
id- the new id
-
getType
TaxType getType()Gets the tax type- Returns:
- the tax type
-
setType
Sets the tax type- Parameters:
type- the tax type
-
getAmount
org.broadleafcommerce.common.money.Money getAmount()Gets the tax amount- Returns:
- the tax amount
-
setAmount
void setAmount(org.broadleafcommerce.common.money.Money amount) Sets the tax amount- Parameters:
amount- the tax amount
-
getRate
BigDecimal getRate()Gets the tax rate- Returns:
- the rate
-
setRate
Sets the tax rate.- Parameters:
rate- name the tax rate
-
getCurrency
org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency() -
setCurrency
void setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) -
getModuleConfiguration
org.broadleafcommerce.common.config.domain.ModuleConfiguration getModuleConfiguration()Returns 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.- Returns:
-
setModuleConfiguration
void setModuleConfiguration(org.broadleafcommerce.common.config.domain.ModuleConfiguration config) Sets 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.- Parameters:
config-
-
getJurisdictionName
String getJurisdictionName()Returns the name of the tax jurisdiction. May return null.- Returns:
-
setJurisdictionName
Optionally sets the name of the tax jurisdiction.- Parameters:
jurisdiction-
-
getTaxName
String getTaxName()Gets the name of the tax. May return null.- Returns:
-
setTaxName
Sets the name of the tax, if applicable.- Parameters:
taxName-
-
getRegion
String getRegion()Returns the name of the region used for tax calculation. May return null.- Returns:
-
setRegion
Sets the region, as a string. Typically this will be a State, Province, or County.- Parameters:
region-
-
getCountry
String getCountry()Returns the country, as a string, used for tax calculation. May return null.- Returns:
-
setCountry
Sets the country used for tax calculation.- Parameters:
country-
-