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 boolean
canEqual(Object other)
boolean
equals(Object o)
Map<String,Object>
getAttributes()
Additional attributes for this tax request.String
getCartId()
ID of the shopping cart.javax.money.CurrencyUnit
getCurrency()
Currency of the Cart.String
getCustomer()
Identifier for the customer that these taxes will apply to.String
getCustomerTaxExemptionCode()
Tax exemption code, if known, for the customer.String
getProviderId()
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.int
hashCode()
void
setAttributes(Map<String,Object> attributes)
Additional attributes for this tax request.void
setCartId(String cartId)
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.String
toString()
-
-
-
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 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
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 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
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)
-
-