Class OrderFulfillmentItemTaxDetail
java.lang.Object
com.broadleafcommerce.order.client.domain.OrderFulfillmentItemTaxDetail
- All Implemented Interfaces:
Serializable
Fine grained tax information about a fulfillment item. Certain fields may not be used depending
on the TaxProvider currently in use.
- Author:
- cschneider
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor for tax detail. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAdditional attributes for this tax detail.The 2 digit country code.javax.money.CurrencyUnitThe currency for this tax detail.The fulfillment item for this tax detailgetId()The database idThe tax jurisdiction name.The jurisdiction type, e.g.getRate()The tax rateThe region that this tax was calculated.Pseudo name for this tax detail, representing a combination of several items, used for sorting purposes.javax.money.MonetaryAmountThe amount that was taxable to determine the calculated tax.javax.money.MonetaryAmountThe amount of taxes calculated.The tax name for this tax detail.The transaction ID for this tax detail.inthashCode()booleanisVat()Declares whether the taxes were included in the provided subtotal.voidsetAttributes(Map<String, Object> attributes) Additional attributes for this tax detail.voidsetCountry(String country) The 2 digit country code.voidsetCurrency(javax.money.CurrencyUnit currency) The currency for this tax detail.voidsetFulfillmentItem(OrderFulfillmentItem fulfillmentItem) The fulfillment item for this tax detailvoidThe database idvoidsetJurisdictionName(String jurisdictionName) The tax jurisdiction name.voidsetJurisdictionType(String jurisdictionType) The jurisdiction type, e.g.voidsetRate(BigDecimal rate) The tax ratevoidThe region that this tax was calculated.voidsetTaxableAmount(javax.money.MonetaryAmount taxableAmount) The amount that was taxable to determine the calculated tax.voidsetTaxCalculated(javax.money.MonetaryAmount taxCalculated) The amount of taxes calculated.voidsetTaxName(String taxName) The tax name for this tax detail.voidsetTransactionId(String transactionId) The transaction ID for this tax detail.voidsetVat(boolean isVat) Declares whether the taxes were included in the provided subtotal.toString()
-
Constructor Details
-
OrderFulfillmentItemTaxDetail
Copy constructor for tax detail. Intended for use when splitting fulfillments. Does not copy theid field. Note that while this uses a different instance of theattributes map, any values inside the map will point to the same reference as the attribute in the original tax detail.- Parameters:
orderFulfillmentItemTaxDetail-
-
OrderFulfillmentItemTaxDetail
public OrderFulfillmentItemTaxDetail()
-
-
Method Details
-
getSortName
Pseudo name for this tax detail, representing a combination of several items, used for sorting purposes.- Returns:
- A sortable name
-
getId
The database id -
getFulfillmentItem
The fulfillment item for this tax detail -
getTaxCalculated
public javax.money.MonetaryAmount getTaxCalculated()The amount of taxes calculated. -
getTaxableAmount
public javax.money.MonetaryAmount getTaxableAmount()The amount that was taxable to determine the calculated tax. -
getRate
The tax rate -
getJurisdictionType
The jurisdiction type, e.g. city, state, county, etc. -
getJurisdictionName
The tax jurisdiction name. This may be a state, city, county, etc. For example, "California", "New York City", etc. -
getCountry
The 2 digit country code. -
getRegion
The region that this tax was calculated. This may be something like the state, country, etc. For example, if the jurisdiction is Dallas, then the region would be Texas. -
getTaxName
The tax name for this tax detail. Describes the tax (e.g. TX STATE TAX) -
getTransactionId
The transaction ID for this tax detail. Used to reconcile this tax detail with a specific transaction when using an external tax provider. -
getAttributes
Additional attributes for this tax detail. -
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency for this tax detail. -
isVat
public boolean isVat()Declares whether the taxes were included in the provided subtotal. Note: this is a known misnomer. -
setId
The database id -
setFulfillmentItem
The fulfillment item for this tax detail -
setTaxCalculated
public void setTaxCalculated(javax.money.MonetaryAmount taxCalculated) The amount of taxes calculated. -
setTaxableAmount
public void setTaxableAmount(javax.money.MonetaryAmount taxableAmount) The amount that was taxable to determine the calculated tax. -
setRate
The tax rate -
setJurisdictionType
The jurisdiction type, e.g. city, state, county, etc. -
setJurisdictionName
The tax jurisdiction name. This may be a state, city, county, etc. For example, "California", "New York City", etc. -
setCountry
The 2 digit country code. -
setRegion
The region that this tax was calculated. This may be something like the state, country, etc. For example, if the jurisdiction is Dallas, then the region would be Texas. -
setTaxName
The tax name for this tax detail. Describes the tax (e.g. TX STATE TAX) -
setTransactionId
The transaction ID for this tax detail. Used to reconcile this tax detail with a specific transaction when using an external tax provider. -
setAttributes
Additional attributes for this tax detail. -
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency for this tax detail. -
setVat
public void setVat(boolean isVat) Declares whether the taxes were included in the provided subtotal. Note: this is a known misnomer. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-