Class BillingTaxDetail
java.lang.Object
com.broadleafcommerce.billing.domain.BillingTaxDetail
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,com.broadleafcommerce.money.CurrencyConsumer,javax.money.CurrencySupplier
public class BillingTaxDetail
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
This object contains information about tax as it applies to a particular
BillingEventItem. These are created by the
TaxCalculationProcessorHandler after tax is
calculated by one of the tax processors.-
Constructor Summary
ConstructorsConstructorDescriptionBillingTaxDetail(String id, String billingEventItemId, BigDecimal amount, String taxCountry, String jurisdictionName, BigDecimal rate, String taxRegion, String taxName, String type, String currencyCode, javax.money.CurrencyUnit currency, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe tax amount.References the billing event item.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.javax.money.CurrencyUnitThe currency (“USD”, “CAD”, etc.)Deprecated.getId()The name of the taxing jurisdiction.getRate()The tax rate applied.The tax country.The name of the tax.The name of the taxing region.getType()The type of the tax.inthashCode()voidsetAmount(BigDecimal amount) The tax amount.voidsetBillingEventItemId(String billingEventItemId) References the billing event item.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCurrency(javax.money.CurrencyUnit currency) voidsetCurrencyCode(String currencyCode) voidvoidsetJurisdictionName(String jurisdictionName) The name of the taxing jurisdiction.voidsetRate(BigDecimal rate) The tax rate applied.voidsetTaxCountry(String taxCountry) The tax country.voidsetTaxName(String taxName) The name of the tax.voidsetTaxRegion(String taxRegion) The name of the taxing region.voidThe type of the tax.toString()
-
Constructor Details
-
BillingTaxDetail
public BillingTaxDetail() -
BillingTaxDetail
public BillingTaxDetail(String id, String billingEventItemId, BigDecimal amount, String taxCountry, String jurisdictionName, BigDecimal rate, String taxRegion, String taxName, String type, String currencyCode, javax.money.CurrencyUnit currency, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
setCurrencyCode
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) - Specified by:
setCurrencyin interfacecom.broadleafcommerce.money.CurrencyConsumer
-
getId
-
getBillingEventItemId
References the billing event item. -
getAmount
The tax amount. -
getTaxCountry
The tax country. -
getJurisdictionName
The name of the taxing jurisdiction. -
getRate
The tax rate applied. -
getTaxRegion
The name of the taxing region. -
getTaxName
The name of the tax. -
getType
The type of the tax. This is most usually the type of jurisdiction of this tax - e.g. region, city, etc. -
getCurrencyCode
Deprecated.UsegetCurrency()field insteadThe code of the currency. -
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency (“USD”, “CAD”, etc.)- Specified by:
getCurrencyin interfacejavax.money.CurrencySupplier
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setId
-
setBillingEventItemId
References the billing event item. -
setAmount
The tax amount. -
setTaxCountry
The tax country. -
setJurisdictionName
The name of the taxing jurisdiction. -
setRate
The tax rate applied. -
setTaxRegion
The name of the taxing region. -
setTaxName
The name of the tax. -
setType
The type of the tax. This is most usually the type of jurisdiction of this tax - e.g. region, city, etc. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getCurrency()field instead