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
public class TaxCalculationRequest extends Object implements Serializable
- Author:
- Kelly Tisdell (ktisdell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaxCalculationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttributes()Additional attributes for this tax request.StringgetCartId()ID of the shopping cart.javax.money.CurrencyUnitgetCurrency()Currency of the Cart.StringgetCustomer()Identifier for the customer that these taxes will apply to.StringgetCustomerTaxExemptionCode()Tax exemption code, if known, for the customer.StringgetProviderId()This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider.List<TaxCalculationGroup>getTaxCalculationGroups()Groups of shipping details for the purpose of tax calculation.inthashCode()voidsetAttributes(Map<String,Object> attributes)Additional attributes for this tax request.voidsetCartId(String cartId)ID of the shopping cart.voidsetCurrency(javax.money.CurrencyUnit currency)Currency of the Cart.voidsetCustomer(String customer)Identifier for the customer that these taxes will apply to.voidsetCustomerTaxExemptionCode(String customerTaxExemptionCode)Tax exemption code, if known, for the customer.voidsetProviderId(String providerId)This is simply a hint that can be provided by the client that indicates that taxes were previously calculated by a particularTaxProvider.voidsetTaxCalculationGroups(List<TaxCalculationGroup> taxCalculationGroups)Groups of shipping details for the purpose of tax calculation.StringtoString()
-
-
-
Method Detail
-
getCurrency
public javax.money.CurrencyUnit getCurrency()
Currency of the Cart.
-
getCartId
public String getCartId()
ID of the shopping cart.
-
getCustomer
public String getCustomer()
Identifier for the customer that these taxes will apply to.- Returns:
- The customer that these taxes will apply to.
-
getCustomerTaxExemptionCode
public String getCustomerTaxExemptionCode()
Tax exemption code, if known, for the customer.
-
getTaxCalculationGroups
public List<TaxCalculationGroup> 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
public String 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 appropriateTaxProviderfor 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 whichTaxProviderpreviously calculated taxes for the given cartId.
-
getAttributes
public Map<String,Object> 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
public void setCartId(String cartId)
ID of the shopping cart.
-
setCustomer
public void setCustomer(String customer)
Identifier for the customer that these taxes will apply to.- Parameters:
customer- The customer that these taxes will apply to.
-
setCustomerTaxExemptionCode
public void setCustomerTaxExemptionCode(String customerTaxExemptionCode)
Tax exemption code, if known, for the customer.
-
setTaxCalculationGroups
public void setTaxCalculationGroups(List<TaxCalculationGroup> taxCalculationGroups)
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
public 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. Note that this is optional and is a hint that is used for selecting the appropriateTaxProviderfor 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 whichTaxProviderpreviously calculated taxes for the given cartId.
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
Additional attributes for this tax request.- Parameters:
attributes- Additional attributes for this tax request.
-
canEqual
protected boolean canEqual(Object other)
-
-