public class XPFItemPricing extends XPFEntity
Constructor and Description |
---|
XPFItemPricing(BigDecimal listPrice,
BigDecimal discounts,
@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.
|
String |
toString() |
XPFItemPricing |
withDiscounts()
Includes the difference between the list price and sale price, plus catalog promotion discounts in the calculation.
|
XPFItemPricing |
withListPrice()
Includes the item list price in the calculation.
|
getCustomData
public XPFItemPricing(BigDecimal listPrice, BigDecimal discounts, @NonNull @NonNull Currency currency)
public XPFItemPricing withListPrice()
public XPFItemPricing withDiscounts()
public BigDecimal getAmount()
public boolean isNonZero()
public Currency getCurrency()
Copyright © 2025. All rights reserved.