Package com.broadleafcommerce.tax.domain
Class TaxRequest
java.lang.Object
com.broadleafcommerce.tax.domain.TaxRequest
- All Implemented Interfaces:
Serializable
Deprecated.
A grouping of items and address(es) to be used to determine taxes as a request DTO sent to
TaxProvider. This represents a fulfillment group.- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.Deprecated.Additional attributes for this tax group.javax.money.CurrencyUnitDeprecated.Deprecated.The customer that these taxes will apply to.Deprecated.The address that the items will be shipped from.Deprecated.The fulfillment group reference number.Deprecated.The providerId indicates what provider returned theTaxResponseinstances from a call to calculate taxes.getTaxId()Deprecated.The tax id for this tax requestDeprecated.The list of items to be taxed.Deprecated.The address that the items will be shipped to.inthashCode()Deprecated.booleanDeprecated.For tax services that support it, records the transaction in the tax service for reporting purposes.voidsetAttributes(Map<String, Object> attributes) Deprecated.Additional attributes for this tax group.voidsetCurrency(javax.money.CurrencyUnit currency) Deprecated.voidsetCustomer(String customer) Deprecated.The customer that these taxes will apply to.voidsetFromAddress(TaxAddress fromAddress) Deprecated.The address that the items will be shipped from.voidsetFulfillmentGroupReferenceNumber(String fulfillmentGroupReferenceNumber) Deprecated.The fulfillment group reference number.voidsetProviderId(String providerId) Deprecated.The providerId indicates what provider returned theTaxResponseinstances from a call to calculate taxes.voidDeprecated.The tax id for this tax requestvoidsetTaxItems(List<TaxItem> taxItems) Deprecated.The list of items to be taxed.voidsetTemporaryCalculation(boolean temporaryCalculation) Deprecated.For tax services that support it, records the transaction in the tax service for reporting purposes.voidsetToAddress(TaxAddress toAddress) Deprecated.The address that the items will be shipped to.toString()Deprecated.
-
Constructor Details
-
TaxRequest
public TaxRequest()Deprecated.
-
-
Method Details
-
getCurrency
public javax.money.CurrencyUnit getCurrency()Deprecated. -
getTaxItems
Deprecated.The list of items to be taxed.- Returns:
- The list of items to be taxed.
-
getFromAddress
Deprecated.The address that the items will be shipped from.- Returns:
- The address that the items will be shipped from.
-
getToAddress
Deprecated.The address that the items will be shipped to.- Returns:
- The address that the items will be shipped to.
-
getCustomer
Deprecated.The customer that these taxes will apply to.- Returns:
- The customer that these taxes will apply to.
-
getTaxId
Deprecated.The tax id for this tax request- Returns:
- The tax id for this tax request
-
getFulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number.- Returns:
- The fulfillment group reference number
-
isTemporaryCalculation
public boolean isTemporaryCalculation()Deprecated.For tax services that support it, records the transaction in the tax service for reporting purposes. (May require a separate commit operation with providers like Avalara) -
getAttributes
Deprecated.Additional attributes for this tax group.- Returns:
- Additional attributes for this tax group.
-
getProviderId
Deprecated.The providerId indicates what provider returned theTaxResponseinstances from a call to calculate taxes. This should be set to the same providerId as was returned from the last response. This may be used to try to use the same provider again, or to ensure that a call to commit or return taxes happens with the same provider used to calculate taxes. -
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) Deprecated. -
setTaxItems
Deprecated.The list of items to be taxed.- Parameters:
taxItems- The list of items to be taxed.
-
setFromAddress
Deprecated.The address that the items will be shipped from.- Parameters:
fromAddress- The address that the items will be shipped from.
-
setToAddress
Deprecated.The address that the items will be shipped to.- Parameters:
toAddress- The address that the items will be shipped to.
-
setCustomer
Deprecated.The customer that these taxes will apply to.- Parameters:
customer- The customer that these taxes will apply to.
-
setTaxId
Deprecated.The tax id for this tax request- Parameters:
taxid- The tax id for this tax request.
-
setFulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number.- Parameters:
fulfillmentGroupReferenceNumber- The fulfillment group reference number
-
setTemporaryCalculation
public void setTemporaryCalculation(boolean temporaryCalculation) Deprecated.For tax services that support it, records the transaction in the tax service for reporting purposes. (May require a separate commit operation with providers like Avalara) -
setAttributes
Deprecated.Additional attributes for this tax group.- Parameters:
attributes- Additional attributes for this tax group.
-
setProviderId
Deprecated.The providerId indicates what provider returned theTaxResponseinstances from a call to calculate taxes. This should be set to the same providerId as was returned from the last response. This may be used to try to use the same provider again, or to ensure that a call to commit or return taxes happens with the same provider used to calculate taxes. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
TaxCalculationResponseor one of its subclasses.