Package com.broadleafcommerce.tax.domain
Class TaxItem
- java.lang.Object
-
- com.broadleafcommerce.tax.domain.TaxItem
-
- All Implemented Interfaces:
Serializable
public class TaxItem extends Object implements Serializable
An item to be taxed.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaxItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttributes()Any additional attributes for this tax item.StringgetDescription()The description for this item.StringgetItemId()The unique identifier for this line item.StringgetJurisCode()The jurisdiction code for this item.StringgetJurisName()The jurisdiction name for this item.StringgetJurisType()The jurisdiction type for this item.intgetQuantity()The tax item quantity.StringgetSkuCode()The sku code for this item.javax.money.MonetaryAmountgetSubtotal()The subtotal of this item being paid for by a customer.StringgetTaxCode()The tax code for this item.StringgetType()Specifies the kind of item this is such as FULFILLMENT or ORDER.inthashCode()booleanisTaxable()Is 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.voidsetItemId(String itemId)The 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.voidsetType(String type)Specifies the kind of item this is such as FULFILLMENT or ORDER.StringtoString()
-
-
-
Method Detail
-
getItemId
public String getItemId()
The unique identifier for this line item.- Returns:
- The unique identifier for this line item.
-
getType
public String getType()
Specifies the kind of item this is such as FULFILLMENT or ORDER.- Returns:
- The type of this item
- See Also:
TaxItemType
-
getSkuCode
public String getSkuCode()
The sku code for this item.- Returns:
- The sku code for this item.
-
getTaxCode
public String getTaxCode()
The tax code for this item.- Returns:
- The tax code for this item.
-
getJurisType
public String getJurisType()
The jurisdiction type for this item.- Returns:
- The jurisdiction type for this item.
-
getJurisName
public String getJurisName()
The jurisdiction name for this item.- Returns:
- The jurisdiction name for this item.
-
getJurisCode
public String getJurisCode()
The jurisdiction code for this item.- Returns:
- The jurisdiction code for this item.
-
getDescription
public String 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
-
getQuantity
public int getQuantity()
The tax item quantity. Default is 1
-
getAttributes
public Map<String,Object> getAttributes()
Any additional attributes for this tax item.
-
setItemId
public void setItemId(String itemId)
The unique identifier for this line item.- Parameters:
itemId- The unique identifier for this line item.
-
setType
public void setType(String type)
Specifies the kind of item this is such as FULFILLMENT or ORDER.- Parameters:
type- The type of this item- See Also:
TaxItemType
-
setSkuCode
public void setSkuCode(String skuCode)
The sku code for this item.- Parameters:
skuCode- The sku code for this item.
-
setTaxCode
public void setTaxCode(String taxCode)
The tax code for this item.- Parameters:
taxCode- The tax code for this item.
-
setJurisType
public void setJurisType(String jurisType)
The jurisdiction type for this item.- Parameters:
jurisType- The jurisdiction type for this item.
-
setJurisName
public void setJurisName(String jurisName)
The jurisdiction name for this item.- Parameters:
jurisName- The jurisdiction name for this item.
-
setJurisCode
public void setJurisCode(String jurisCode)
The jurisdiction code for this item.- Parameters:
jurisCode- The jurisdiction code for this item.
-
setDescription
public void setDescription(String description)
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
-
setQuantity
public void setQuantity(int quantity)
The tax item quantity. Default is 1
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
Any additional attributes for this tax item.
-
canEqual
protected boolean canEqual(Object other)
-
-