public class XPFItemPricing extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFItemPricing.XPFItemPricingBuilder<C extends XPFItemPricing,B extends XPFItemPricing.XPFItemPricingBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFItemPricing(BigDecimal listPrice,
BigDecimal discounts,
@NonNull Currency currency) |
protected |
XPFItemPricing(XPFItemPricing.XPFItemPricingBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFItemPricing.XPFItemPricingBuilder<?,?> |
builder() |
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.
|
protected BigDecimal |
getDiscounts()
Returns the discounts of this pricing.
|
protected BigDecimal |
getListPrice()
Returns the list price 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, getCustomDataValueprotected XPFItemPricing(XPFItemPricing.XPFItemPricingBuilder<?,?> b)
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()
protected BigDecimal getListPrice()
protected BigDecimal getDiscounts()
public static XPFItemPricing.XPFItemPricingBuilder<?,?> builder()
Copyright © 2026. All rights reserved.