public class XPFLinePricing extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFLinePricing.XPFLinePricingBuilder<C extends XPFLinePricing,B extends XPFLinePricing.XPFLinePricingBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFLinePricing(BigDecimal perUnitListPrice,
BigDecimal listPrice,
BigDecimal perUnitDiscounts,
BigDecimal discounts,
XPFEntitySupplier<BigDecimal> perUnitApportionedContainerDiscounts,
XPFEntitySupplier<BigDecimal> apportionedContainerDiscounts,
@NonNull Currency currency) |
protected |
XPFLinePricing(XPFLinePricing.XPFLinePricingBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFLinePricing.XPFLinePricingBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
BigDecimal |
getAmount()
Calculates the final amount based on selected flags.
|
protected BigDecimal |
getApportionedContainerDiscounts()
Returns the apportioned container discounts of this pricing.
|
Currency |
getCurrency()
Returns the currency of this pricing.
|
protected BigDecimal |
getDiscounts()
Returns the discounts of this pricing.
|
protected BigDecimal |
getListPrice()
Returns the list price of this pricing.
|
protected BigDecimal |
getPerUnitApportionedContainerDiscounts()
Returns the per unit apportioned container discounts of this pricing.
|
protected BigDecimal |
getPerUnitDiscounts()
Returns the per unit discounts of this pricing.
|
protected BigDecimal |
getPerUnitListPrice()
Returns the per unit list price of this pricing.
|
int |
hashCode() |
boolean |
isNonZero()
Checks if the calculated amount is non-zero.
|
XPFLinePricing |
perUnit()
Indicates that pricing should be per unit, rather than for all quantities on the line item.
|
String |
toString() |
XPFLinePricing |
withApportionedContainerDiscounts()
Includes the line item apportioned value of the container discounts in the calculation.
|
XPFLinePricing |
withDiscounts()
Includes the difference between the list price and sale price, plus catalog and cart line-level promotion discounts in the calculation.
|
XPFLinePricing |
withListPrice()
Includes the item list price in the calculation.
|
getCustomData, getCustomDataValueprotected XPFLinePricing(XPFLinePricing.XPFLinePricingBuilder<?,?> b)
public XPFLinePricing(BigDecimal perUnitListPrice, BigDecimal listPrice, BigDecimal perUnitDiscounts, BigDecimal discounts, XPFEntitySupplier<BigDecimal> perUnitApportionedContainerDiscounts, XPFEntitySupplier<BigDecimal> apportionedContainerDiscounts, @NonNull @NonNull Currency currency)
public XPFLinePricing perUnit()
public XPFLinePricing withListPrice()
public XPFLinePricing withDiscounts()
public XPFLinePricing withApportionedContainerDiscounts()
public BigDecimal getAmount()
public boolean isNonZero()
public Currency getCurrency()
protected BigDecimal getPerUnitListPrice()
protected BigDecimal getListPrice()
protected BigDecimal getPerUnitDiscounts()
protected BigDecimal getDiscounts()
protected BigDecimal getPerUnitApportionedContainerDiscounts()
protected BigDecimal getApportionedContainerDiscounts()
public static XPFLinePricing.XPFLinePricingBuilder<?,?> builder()
Copyright © 2026. All rights reserved.