Package com.broadleafcommerce.tax.domain
Class TaxCalculationRequest
java.lang.Object
com.broadleafcommerce.tax.domain.TaxCalculationRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdjustTaxTransactionRequest
,CommitTaxRequest
,ReverseTaxTransactionRequest
,VoidTransactionRequest
- Author:
- Kelly Tisdell (ktisdell)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional attributes for this tax request.ID of the shopping cart.javax.money.CurrencyUnit
Currency of the Cart.Identifier for the customer that these taxes will apply to.Tax exemption code, if known, for the customer.This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider
.Groups of shipping details for the purpose of tax calculation.Optional VAT registration ID.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Additional attributes for this tax request.void
ID of the shopping cart.void
setCurrency
(javax.money.CurrencyUnit currency) Currency of the Cart.void
setCustomer
(String customer) Identifier for the customer that these taxes will apply to.void
setCustomerTaxExemptionCode
(String customerTaxExemptionCode) Tax exemption code, if known, for the customer.void
setProviderId
(String providerId) This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider
.void
setTaxCalculationGroups
(List<TaxCalculationGroup> taxCalculationGroups) Groups of shipping details for the purpose of tax calculation.void
setVatRegistrationId
(String vatRegistrationId) Optional VAT registration ID.toString()
-
Constructor Details
-
TaxCalculationRequest
public TaxCalculationRequest()
-
-
Method Details
-
getCurrency
public javax.money.CurrencyUnit getCurrency()Currency of the Cart. -
getCartId
ID of the shopping cart. -
getCustomer
Identifier for the customer that these taxes will apply to.- Returns:
- The customer that these taxes will apply to.
-
getCustomerTaxExemptionCode
Tax exemption code, if known, for the customer. -
getVatRegistrationId
Optional VAT registration ID. This is usually only set if the buyer is a business and has a VAT registration ID. This is generally only used for B2B transactions. -
getTaxCalculationGroups
Groups of shipping details for the purpose of tax calculation. Items being shipped to / from certain regions, states, provinces, or subdivisions may have different tax rates and tax reporting requirements. This allows us to group these details. -
getProviderId
This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider
. Note that this is optional and is a hint that is used for selecting the appropriateTaxProvider
for additional interactions (commit or adjust), or for logging details when a fallback (or no-op) method is executed. This should not be set if you don't know whichTaxProvider
previously calculated taxes for the given cartId. -
getAttributes
Additional attributes for this tax request.- Returns:
- Additional attributes for this tax request.
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) Currency of the Cart. -
setCartId
ID of the shopping cart. -
setCustomer
Identifier for the customer that these taxes will apply to.- Parameters:
customer
- The customer that these taxes will apply to.
-
setCustomerTaxExemptionCode
Tax exemption code, if known, for the customer. -
setVatRegistrationId
Optional VAT registration ID. This is usually only set if the buyer is a business and has a VAT registration ID. This is generally only used for B2B transactions. -
setTaxCalculationGroups
Groups of shipping details for the purpose of tax calculation. Items being shipped to / from certain regions, states, provinces, or subdivisions may have different tax rates and tax reporting requirements. This allows us to group these details. -
setProviderId
This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider
. Note that this is optional and is a hint that is used for selecting the appropriateTaxProvider
for additional interactions (commit or adjust), or for logging details when a fallback (or no-op) method is executed. This should not be set if you don't know whichTaxProvider
previously calculated taxes for the given cartId. -
setAttributes
Additional attributes for this tax request.- Parameters:
attributes
- Additional attributes for this tax request.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-