Package com.broadleafcommerce.tax.domain
Class TaxItem
java.lang.Object
com.broadleafcommerce.tax.domain.TaxItem
- All Implemented Interfaces:
Serializable
An item to be taxed.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAny additional attributes for this tax item.The description for this item.The unique identifier for this line item.The jurisdiction code for this item.The jurisdiction name for this item.The jurisdiction type for this item.intThe tax item quantity.The sku code for this item.javax.money.MonetaryAmountThe subtotal of this item being paid for by a customer.The tax code for this item.Indicates if the taxes are already included in the price (subtotal).getType()Specifies the kind of item this is such as FULFILLMENT or ORDER.inthashCode()booleanIs this item tax exempt? Default is truevoidsetAttributes(Map<String, Object> attributes) Any additional attributes for this tax item.voidsetDescription(String description) The description for this item.voidThe unique identifier for this line item.voidsetJurisCode(String jurisCode) The jurisdiction code for this item.voidsetJurisName(String jurisName) The jurisdiction name for this item.voidsetJurisType(String jurisType) The jurisdiction type for this item.voidsetQuantity(int quantity) The tax item quantity.voidsetSkuCode(String skuCode) The sku code for this item.voidsetSubtotal(javax.money.MonetaryAmount subtotal) The subtotal of this item being paid for by a customer.voidsetTaxable(boolean taxable) Is this item tax exempt? Default is truevoidsetTaxCode(String taxCode) The tax code for this item.voidsetTaxIncluded(Boolean taxIncluded) Indicates if the taxes are already included in the price (subtotal).voidSpecifies the kind of item this is such as FULFILLMENT or ORDER.toString()
-
Constructor Details
-
TaxItem
public TaxItem()
-
-
Method Details
-
getItemId
The unique identifier for this line item.- Returns:
- The unique identifier for this line item.
-
getType
Specifies the kind of item this is such as FULFILLMENT or ORDER.- Returns:
- The type of this item
- See Also:
-
getSkuCode
The sku code for this item.- Returns:
- The sku code for this item.
-
getTaxCode
The tax code for this item.- Returns:
- The tax code for this item.
-
getJurisType
The jurisdiction type for this item.- Returns:
- The jurisdiction type for this item.
-
getJurisName
The jurisdiction name for this item.- Returns:
- The jurisdiction name for this item.
-
getJurisCode
The jurisdiction code for this item.- Returns:
- The jurisdiction code for this item.
-
getDescription
The description for this item.- Returns:
- The description for this item.
-
getSubtotal
public javax.money.MonetaryAmount getSubtotal()The subtotal of this item being paid for by a customer.- Returns:
- The subtotal of this item being paid for by a customer.
-
isTaxable
public boolean isTaxable()Is this item tax exempt? Default is true -
getTaxIncluded
Indicates if the taxes are already included in the price (subtotal). This is common for VAT taxes, especially in Europe, where prices displayed have to include VAT. Some tax providers will use this to back-calculate taxes from the price for reporting purposes.- Returns:
- Boolean value indicating whether taxes are included in the subtotal (default null)
-
getQuantity
public int getQuantity()The tax item quantity. Default is 1 -
getAttributes
Any additional attributes for this tax item. -
setItemId
The unique identifier for this line item.- Parameters:
itemId- The unique identifier for this line item.
-
setType
Specifies the kind of item this is such as FULFILLMENT or ORDER.- Parameters:
type- The type of this item- See Also:
-
setSkuCode
The sku code for this item.- Parameters:
skuCode- The sku code for this item.
-
setTaxCode
The tax code for this item.- Parameters:
taxCode- The tax code for this item.
-
setJurisType
The jurisdiction type for this item.- Parameters:
jurisType- The jurisdiction type for this item.
-
setJurisName
The jurisdiction name for this item.- Parameters:
jurisName- The jurisdiction name for this item.
-
setJurisCode
The jurisdiction code for this item.- Parameters:
jurisCode- The jurisdiction code for this item.
-
setDescription
The description for this item.- Parameters:
description- The description for this item.
-
setSubtotal
public void setSubtotal(javax.money.MonetaryAmount subtotal) The subtotal of this item being paid for by a customer.- Parameters:
subtotal- The subtotal of this item being paid for by a customer.
-
setTaxable
public void setTaxable(boolean taxable) Is this item tax exempt? Default is true -
setTaxIncluded
Indicates if the taxes are already included in the price (subtotal). This is common for VAT taxes, especially in Europe, where prices displayed have to include VAT. Some tax providers will use this to back-calculate taxes from the price for reporting purposes.- Parameters:
taxIncluded- indicates if taxes are already included in the provided subtotal
-
setQuantity
public void setQuantity(int quantity) The tax item quantity. Default is 1 -
setAttributes
Any additional attributes for this tax item. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-