Serialized Form
-
Package com.broadleafcommerce.tax.domain
-
Class com.broadleafcommerce.tax.domain.AdjustTaxTransactionRequest extends TaxCalculationRequest implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
reason
String reason
The reason that this tax transaction is being adjusted.
-
-
Class com.broadleafcommerce.tax.domain.CommitTaxRequest extends TaxCalculationRequest implements Serializable
- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.tax.domain.CommitTaxResponse extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
internalAttributes
Map<String,Object> internalAttributes
Any internal attributes that may need to be used for later tax operations. Any values set here will be saved in the order's internal attributes field. -
taxProviderId
String taxProviderId
Represents theTaxProvider
that was used to respond to a correspondingCommitTaxRequest
.
-
-
Class com.broadleafcommerce.tax.domain.ReverseTaxTransactionRequest extends TaxCalculationRequest implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
originalTransactionDate
Instant originalTransactionDate
The date of the original checkout or commit transaction.
-
-
Class com.broadleafcommerce.tax.domain.TaxAddress extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
addressLine1
String addressLine1
Primary address information, typically street name and building number. -
addressLine2
String addressLine2
Secondary address information, like apartment, suite, or unit number. -
addressLine3
String addressLine3
Tertiary address information, typically for international addresses. -
city
String city
The city, town or village of this address. -
country
String country
The country for this address. -
county
String county
The county of this address. -
postalCode
String postalCode
Postal code or ZIP code for this address. -
stateProvinceRegion
String stateProvinceRegion
The state, province or region of this address.
-
-
Class com.broadleafcommerce.tax.domain.TaxCalculationGroup extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Additional attributes for this tax group. -
fromAddress
TaxAddress fromAddress
The address that the items will be shipped from. -
fulfillmentGroupReferenceNumber
String fulfillmentGroupReferenceNumber
The fulfillment group reference number. -
taxItems
List<TaxItem> taxItems
The list of items to be taxed. -
toAddress
TaxAddress toAddress
The address that the items will be shipped to.
-
-
Class com.broadleafcommerce.tax.domain.TaxCalculationRequest extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Additional attributes for this tax request. -
cartId
String cartId
ID of the shopping cart. -
currency
javax.money.CurrencyUnit currency
Currency of the Cart. -
customer
String customer
Identifier for the customer that these taxes will apply to. -
customerTaxExemptionCode
String customerTaxExemptionCode
Tax exemption code, if known, for the customer. -
providerId
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. -
taxCalculationGroups
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.
-
-
Class com.broadleafcommerce.tax.domain.TaxCalculationResponse extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
internalAttributes
Map<String,Object> internalAttributes
Any internal attributes to be copied over to an order on post commit tax operations. -
taxGroups
Map<String,TaxResponseGroup> taxGroups
This is a map ofTaxResponseGroup
objects keyed by fulfillment group reference. -
taxProviderId
String taxProviderId
The ID of theTaxProvider
that was used to process the corresponding request. This can be saved for later calls to theTaxDelegate
, which provides a hint as to which provider should be used, or a flag for logging when a different provider is used, usually due to a fallback mechanism.
-
-
Class com.broadleafcommerce.tax.domain.TaxDetail extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Additional attributes for this tax detail -
country
String country
The country for this tax. -
isExempt
boolean isExempt
Indicates if this is exempt from taxes, usually based on a tax exemption code. -
isVat
boolean isVat
Indicates if this is VAT tax -
jurisdictionName
String jurisdictionName
The jurisdiction name. This may be a state, city, county, etc. -
jurisdictionType
String jurisdictionType
The jurisdiction type, e.g. city, state, county, etc. -
rate
BigDecimal rate
The rate of this tax. -
region
String region
The region for this tax. This is often something like a two digit state code, e.g. (CA, TX, NY, etc.) -
taxableAmount
javax.money.MonetaryAmount taxableAmount
The amount that was taxable to determine the calculated tax. -
taxCalculated
javax.money.MonetaryAmount taxCalculated
The calculated tax for this detail. -
taxName
String taxName
The name of the tax. -
transactionId
String transactionId
The transaction ID for this tax detail. Used to reconcile this tax detail with a specific transaction when using an external tax provider.
-
-
Class com.broadleafcommerce.tax.domain.TaxInfo extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Additional attributes for this tax info -
exemptionAmount
javax.money.MonetaryAmount exemptionAmount
The amount of this item that is not taxable. -
isEstimated
boolean isEstimated
Whether the calculated tax is an estimate. -
isExempt
boolean isExempt
Indicates if this is exempt from taxes, usually based on a tax exemption code. -
isTaxable
boolean isTaxable
Whether the item is taxable. -
isVat
boolean isVat
Whether this is a VAT tax. -
itemId
String itemId
The id of the line item for this tax info. -
rate
BigDecimal rate
The rate that the item was taxed at. -
skuCode
String skuCode
The sku code for the item. -
taxableAmount
javax.money.MonetaryAmount taxableAmount
The amount of this item that is taxable and was used to determine the calculated tax. -
taxCalculated
javax.money.MonetaryAmount taxCalculated
The tax calculated for the item. -
taxCode
String taxCode
The tax code for the item. -
taxDetails
List<TaxDetail> taxDetails
Breakdown of taxes for this item.
-
-
Class com.broadleafcommerce.tax.domain.TaxISOCountry extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
alpha2
String alpha2
The two letter code for this country.- See Also:
- ISO 3166-1 alpha-2
-
alpha3
String alpha3
The three letter code for this country.- See Also:
- ISO 3166-1 alpha-3
-
name
String name
-
numericCode
Integer numericCode
The three digit code for this country.- See Also:
- ISO 3166-1 numeric
-
-
Class com.broadleafcommerce.tax.domain.TaxItem extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Any additional attributes for this tax item. -
description
String description
The description for this item. -
itemId
String itemId
The unique identifier for this line item. -
jurisCode
String jurisCode
The jurisdiction code for this item. -
jurisName
String jurisName
The jurisdiction name for this item. -
jurisType
String jurisType
The jurisdiction type for this item. -
quantity
int quantity
The tax item quantity. Default is 1 -
skuCode
String skuCode
The sku code for this item. -
subtotal
javax.money.MonetaryAmount subtotal
The subtotal of this item being paid for by a customer. -
taxable
boolean taxable
Is this item tax exempt? Default is true -
taxCode
String taxCode
The tax code for this item. -
type
String type
Specifies the kind of item this is such as FULFILLMENT or ORDER.- See Also:
TaxItemType
-
-
Class com.broadleafcommerce.tax.domain.TaxRequest extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Deprecated.Additional attributes for this tax group. -
currency
javax.money.CurrencyUnit currency
Deprecated. -
customer
String customer
Deprecated.The customer that these taxes will apply to. -
fromAddress
TaxAddress fromAddress
Deprecated.The address that the items will be shipped from. -
fulfillmentGroupReferenceNumber
String fulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number. -
providerId
String providerId
Deprecated.The providerId indicates what provider returned theTaxResponse
instances 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. -
taxId
String taxId
Deprecated.The tax id for this tax request -
taxItems
List<TaxItem> taxItems
Deprecated.The list of items to be taxed. -
temporaryCalculation
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) -
toAddress
TaxAddress toAddress
Deprecated.The address that the items will be shipped to.
-
-
Class com.broadleafcommerce.tax.domain.TaxResponse extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Deprecated.Additional attributes for this tax response. -
fulfillmentGroupReferenceNumber
String fulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number. -
taxInfos
Map<String,TaxInfo> taxInfos
Deprecated.The tax infos for each of the line items, keyed by fulfillmentGroupReferenceNumber + "-" + itemId.For example, if a fulfillment group reference number is 999 and the item ID is 1234, the tax info for that item will be 999-1234
-
totalAmount
javax.money.MonetaryAmount totalAmount
Deprecated.The total amount of the items. -
totalExemption
javax.money.MonetaryAmount totalExemption
Deprecated.The total amount that is not taxable from the items. -
totalTaxable
javax.money.MonetaryAmount totalTaxable
Deprecated.The total amount that is taxable from the items. -
totalTaxCalculated
javax.money.MonetaryAmount totalTaxCalculated
Deprecated.The total tax calculated from all items.
-
-
Class com.broadleafcommerce.tax.domain.TaxResponseGroup extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,Object> attributes
Additional attributes for this tax response. -
fulfillmentGroupReferenceNumber
String fulfillmentGroupReferenceNumber
The fulfillment group reference number. -
taxInfos
Map<String,TaxInfo> taxInfos
The tax infos for each of the line items, keyed by fulfillmentGroupReferenceNumber + "-" + itemId.For example, if a fulfillment group reference number is 999 and the item ID is 1234, the tax info for that item will be 999-1234
-
totalAmount
javax.money.MonetaryAmount totalAmount
The total amount of the items. -
totalExemption
javax.money.MonetaryAmount totalExemption
The total amount that is not taxable from the items. -
totalTaxable
javax.money.MonetaryAmount totalTaxable
The total amount that is taxable from the items. -
totalTaxCalculated
javax.money.MonetaryAmount totalTaxCalculated
The total tax calculated from all items.
-
-
Class com.broadleafcommerce.tax.domain.VoidTransactionRequest extends TaxCalculationRequest implements Serializable
-
-
Package com.broadleafcommerce.tax.simple
-
Class com.broadleafcommerce.tax.simple.SimpleTaxConfig extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
defaultRate
SimpleTaxRecord defaultRate
The default rate if no matching inSimpleTaxConfig.getTaxTables()
found. -
sampleConfig
boolean sampleConfig
Whether this configuration is the out-of-the-box sample or is otherwise marked as a sample. If true, a warning will be logged. -
taxTables
Map<String,List<SimpleTaxRecord>> taxTables
Map of a tax code to a list of tax records for that jurisdiction. TheSimpleTaxProvider
supports alpha-2 country codes as tax codes.
-
-
Class com.broadleafcommerce.tax.simple.SimpleTaxRecord extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
allowTaxExemption
Boolean allowTaxExemption
Indicates if a Tax exemption is allowed. Tax exemptions are applied if the Tax request contains a taxExemptionCode. By default, the taxExemptionCode is trusted. If it exists, and this field is true (default), then a tax rate of 0 will be applied. -
city
String city
This city for this record. -
countryDefault
Boolean countryDefault
Whether this record is the default for the mapped country. -
postalCode
String postalCode
This postal code for this record. -
rate
Double rate
The rate for this record. Used to calculate taxes for an item. -
stateProvinceRegion
String stateProvinceRegion
This state, province, or region for this record. -
vat
Boolean vat
True if this is a VAT tax
-
-