public class XPFLinePricing extends XPFEntity
Constructor and Description |
---|
XPFLinePricing(BigDecimal perUnitListPrice,
BigDecimal listPrice,
BigDecimal perUnitDiscounts,
BigDecimal discounts,
XPFEntitySupplier<BigDecimal> perUnitApportionedContainerDiscounts,
XPFEntitySupplier<BigDecimal> apportionedContainerDiscounts,
@NonNull Currency currency) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
BigDecimal |
getAmount()
Calculates the final amount based on selected flags.
|
Currency |
getCurrency()
Returns the currency 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
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()
Copyright © 2025. All rights reserved.