Package com.broadleafcommerce.tax.domain
Class TaxResponse
java.lang.Object
com.broadleafcommerce.tax.domain.TaxResponse
- All Implemented Interfaces:
Serializable
Deprecated.
Response DTO from a
TaxProvider that contains tax information for items.- Author:
- Chad Harchar (charchar)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Additional attributes for this tax response.protected StringDeprecated.The fulfillment group reference number.Deprecated.The tax infos for each of the line items, keyed by fulfillmentGroupReferenceNumber + "-" + itemId.protected javax.money.MonetaryAmountDeprecated.The total amount of the items.protected javax.money.MonetaryAmountDeprecated.The total amount that is not taxable from the items.protected javax.money.MonetaryAmountDeprecated.The total amount that is taxable from the items.protected javax.money.MonetaryAmountDeprecated.The total tax calculated from all items. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.Deprecated.Additional attributes for this tax response.Deprecated.The fulfillment group reference number.Deprecated.The tax infos for each of the line items, keyed by fulfillmentGroupReferenceNumber + "-" + itemId.javax.money.MonetaryAmountDeprecated.The total amount of the items.javax.money.MonetaryAmountDeprecated.The total amount that is not taxable from the items.javax.money.MonetaryAmountDeprecated.The total amount that is taxable from the items.javax.money.MonetaryAmountDeprecated.The total tax calculated from all items.inthashCode()Deprecated.voidsetAttributes(Map<String, Object> attributes) Deprecated.Additional attributes for this tax response.voidsetFulfillmentGroupReferenceNumber(String fulfillmentGroupReferenceNumber) Deprecated.The fulfillment group reference number.voidsetTaxInfos(Map<String, TaxInfo> taxInfos) Deprecated.The tax infos for each of the line items, keyed by fulfillmentGroupReferenceNumber + "-" + itemId.voidsetTotalAmount(javax.money.MonetaryAmount totalAmount) Deprecated.The total amount of the items.voidsetTotalExemption(javax.money.MonetaryAmount totalExemption) Deprecated.The total amount that is not taxable from the items.voidsetTotalTaxable(javax.money.MonetaryAmount totalTaxable) Deprecated.The total amount that is taxable from the items.voidsetTotalTaxCalculated(javax.money.MonetaryAmount totalTaxCalculated) Deprecated.The total tax calculated from all items.toString()Deprecated.
-
Field Details
-
totalAmount
protected javax.money.MonetaryAmount totalAmountDeprecated.The total amount of the items. -
totalExemption
protected javax.money.MonetaryAmount totalExemptionDeprecated.The total amount that is not taxable from the items. -
totalTaxable
protected javax.money.MonetaryAmount totalTaxableDeprecated.The total amount that is taxable from the items. -
totalTaxCalculated
protected javax.money.MonetaryAmount totalTaxCalculatedDeprecated.The total tax calculated from all items. -
fulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number. -
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
-
attributes
Deprecated.Additional attributes for this tax response.
-
-
Constructor Details
-
TaxResponse
public TaxResponse()Deprecated.
-
-
Method Details
-
getTotalAmount
public javax.money.MonetaryAmount getTotalAmount()Deprecated.The total amount of the items.- Returns:
- The total amount of the items.
-
getTotalExemption
public javax.money.MonetaryAmount getTotalExemption()Deprecated.The total amount that is not taxable from the items.- Returns:
- The total amount that is not taxable from the items.
-
getTotalTaxable
public javax.money.MonetaryAmount getTotalTaxable()Deprecated.The total amount that is taxable from the items.- Returns:
- The total amount that is taxable from the items.
-
getTotalTaxCalculated
public javax.money.MonetaryAmount getTotalTaxCalculated()Deprecated.The total tax calculated from all items.- Returns:
- The total tax calculated from all items.
-
getFulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number.- Returns:
- The fulfillment group reference number
-
getTaxInfos
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
- Returns:
- The tax infos for each of the line items.
-
getAttributes
Deprecated.Additional attributes for this tax response.- Returns:
- The attributes for this tax response.
-
setTotalAmount
public void setTotalAmount(javax.money.MonetaryAmount totalAmount) Deprecated.The total amount of the items.- Parameters:
totalAmount- The total amount of the items.
-
setTotalExemption
public void setTotalExemption(javax.money.MonetaryAmount totalExemption) Deprecated.The total amount that is not taxable from the items.- Parameters:
totalExemption- The total amount that is not taxable from the items.
-
setTotalTaxable
public void setTotalTaxable(javax.money.MonetaryAmount totalTaxable) Deprecated.The total amount that is taxable from the items.- Parameters:
totalTaxable- The total amount that is taxable from the items.
-
setTotalTaxCalculated
public void setTotalTaxCalculated(javax.money.MonetaryAmount totalTaxCalculated) Deprecated.The total tax calculated from all items.- Parameters:
totalTaxCalculated- The total tax calculated from all items.
-
setFulfillmentGroupReferenceNumber
Deprecated.The fulfillment group reference number.- Parameters:
fulfillmentGroupReferenceNumber- The fulfillment group reference number
-
setTaxInfos
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
- Parameters:
taxInfos- The tax infos for each of the line items.
-
setAttributes
Deprecated.Additional attributes for this tax response.- Parameters:
taxInfos- The attributes for this tax response.
-
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
TaxCalculationResponseor one of its subclasses.