public class XPFTaxableShoppingItem extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<C extends XPFTaxableShoppingItem,B extends XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFTaxableShoppingItem(@NonNull String guid,
@NonNull BigDecimal taxablePrice,
@NonNull BigDecimal priceBeforeDiscount,
@NonNull String taxabilityCode,
@NonNull String skuCode,
int quantity) |
protected |
XPFTaxableShoppingItem(XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
@NonNull String |
getGuid()
The item guid.
|
String |
getNonPrefixedGuid()
Return the shopping item GUID without the order UID prefix.
|
@NonNull BigDecimal |
getPriceBeforeDiscount()
The price before taxes for the item.
|
int |
getQuantity()
The quantity.
|
@NonNull String |
getSkuCode()
The product sku code.
|
@NonNull String |
getTaxabilityCode()
The code used by the tax service to determine taxability characteristics.
|
@NonNull BigDecimal |
getTaxablePrice()
The taxable price.
|
int |
hashCode() |
void |
setGuid(@NonNull String guid)
Deprecated.
the guid is now immutable and should not be updated
|
void |
setPriceBeforeDiscount(@NonNull BigDecimal priceBeforeDiscount)
Deprecated.
no longer needed - the pre-tax price is now calculated by TaxCalculationServiceImpl after the extension returns the result
|
String |
toString() |
getCustomData, getCustomDataValueprotected XPFTaxableShoppingItem(XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<?,?> b)
public XPFTaxableShoppingItem(@NonNull
@NonNull String guid,
@NonNull
@NonNull BigDecimal taxablePrice,
@NonNull
@NonNull BigDecimal priceBeforeDiscount,
@NonNull
@NonNull String taxabilityCode,
@NonNull
@NonNull String skuCode,
int quantity)
@Deprecated public void setGuid(@NonNull @NonNull String guid)
guid - the guid@Deprecated public void setPriceBeforeDiscount(@NonNull @NonNull BigDecimal priceBeforeDiscount)
priceBeforeDiscount - the price before discountpublic String getNonPrefixedGuid()
public static XPFTaxableShoppingItem.XPFTaxableShoppingItemBuilder<?,?> builder()
@NonNull public @NonNull String getGuid()
@NonNull public @NonNull BigDecimal getTaxablePrice()
@NonNull public @NonNull BigDecimal getPriceBeforeDiscount()
@NonNull public @NonNull String getTaxabilityCode()
@NonNull public @NonNull String getSkuCode()
public int getQuantity()
Copyright © 2026. All rights reserved.