public class XPFContainerPricing extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFContainerPricing.XPFContainerPricingBuilder<C extends XPFContainerPricing,B extends XPFContainerPricing.XPFContainerPricingBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFContainerPricing(BigDecimal subtotal,
BigDecimal containerDiscounts,
BigDecimal taxes,
BigDecimal shippingSubtotal,
BigDecimal shippingDiscounts,
BigDecimal shippingTaxes,
Currency currency) |
protected |
XPFContainerPricing(XPFContainerPricing.XPFContainerPricingBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFContainerPricing.XPFContainerPricingBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
BigDecimal |
getAmount()
Calculates the final amount based on selected flags.
|
protected BigDecimal |
getContainerDiscounts()
Returns the container discounts of this pricing.
|
Currency |
getCurrency()
Returns the currency of this pricing.
|
protected BigDecimal |
getShippingDiscounts()
Returns the shipping discounts of this pricing.
|
protected BigDecimal |
getShippingSubtotal()
Returns the shipping subtotal of this pricing.
|
protected BigDecimal |
getShippingTaxes()
Returns the shipping taxes of this pricing.
|
protected BigDecimal |
getSubtotal()
Returns the subtotal of this pricing.
|
protected BigDecimal |
getTaxes()
Returns the taxes of this pricing.
|
int |
hashCode() |
boolean |
isNonZero()
Checks if the calculated amount is non-zero.
|
String |
toString() |
XPFContainerPricing |
withContainerDiscounts()
Includes the cart, order, or order shipment discounts, but does not include any line-level discounts.
|
XPFContainerPricing |
withShippingDiscounts()
Includes shipping discounts in the calculation.
|
XPFContainerPricing |
withShippingSubtotal()
Includes shipping subtotal but not shipping discounts or taxes in the calculation.
|
XPFContainerPricing |
withShippingTaxes()
Includes shipping taxes in the calculation.
|
XPFContainerPricing |
withSubtotal()
Includes line item subtotals and line-level discounts, but does not include any cart, order, or order shipment discounts, taxes, or shipping,
for all line items.
|
XPFContainerPricing |
withTaxes()
Includes item taxes but not shipping taxes in the calculation.
|
XPFContainerPricing |
withTotal()
This is a convenience method that is equivalent to
withSubtotal().withContainerDiscounts().withTaxes().withShippingSubtotal().withShippingDiscounts().withShippingTaxes().
|
getCustomData, getCustomDataValueprotected XPFContainerPricing(XPFContainerPricing.XPFContainerPricingBuilder<?,?> b)
public XPFContainerPricing(BigDecimal subtotal, BigDecimal containerDiscounts, BigDecimal taxes, BigDecimal shippingSubtotal, BigDecimal shippingDiscounts, BigDecimal shippingTaxes, Currency currency)
public XPFContainerPricing withSubtotal()
public XPFContainerPricing withContainerDiscounts()
public XPFContainerPricing withTaxes()
public XPFContainerPricing withShippingSubtotal()
public XPFContainerPricing withShippingDiscounts()
public XPFContainerPricing withShippingTaxes()
public XPFContainerPricing withTotal()
public BigDecimal getAmount()
public boolean isNonZero()
public Currency getCurrency()
protected BigDecimal getSubtotal()
protected BigDecimal getContainerDiscounts()
protected BigDecimal getTaxes()
protected BigDecimal getShippingSubtotal()
protected BigDecimal getShippingDiscounts()
protected BigDecimal getShippingTaxes()
public static XPFContainerPricing.XPFContainerPricingBuilder<?,?> builder()
Copyright © 2026. All rights reserved.