@Entity public class SkuBundleItemImpl extends Object implements SkuBundleItem
| Modifier and Type | Field and Description |
|---|---|
protected ProductBundle |
bundle |
protected Sku |
deproxiedSku |
protected DynamicSkuPrices |
dynamicPrices |
protected Long |
id
The id.
|
protected BigDecimal |
itemSalePrice |
protected Integer |
quantity |
protected Sku |
sku |
| Constructor and Description |
|---|
SkuBundleItemImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDynamicPrices()
Removes any currently stored dynamic pricing
|
<G extends SkuBundleItem> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
ProductBundle |
getBundle() |
Money |
getDynamicSalePrice(Sku sku,
BigDecimal salePrice) |
Long |
getId() |
Integer |
getQuantity() |
Money |
getRetailPrice() |
Money |
getSalePrice() |
Sku |
getSku() |
void |
setBundle(ProductBundle bundle) |
void |
setId(Long id) |
void |
setQuantity(Integer quantity) |
void |
setSalePrice(Money salePrice)
Allows for overriding the related Product's sale price.
|
void |
setSku(Sku sku) |
protected Long id
protected Integer quantity
protected BigDecimal itemSalePrice
protected ProductBundle bundle
protected Sku sku
protected DynamicSkuPrices dynamicPrices
protected Sku deproxiedSku
public Long getId()
getId in interface SkuBundleItempublic void setId(Long id)
setId in interface SkuBundleItempublic Integer getQuantity()
getQuantity in interface SkuBundleItempublic void setQuantity(Integer quantity)
setQuantity in interface SkuBundleItempublic Money getDynamicSalePrice(Sku sku, BigDecimal salePrice)
public void setSalePrice(Money salePrice)
SkuBundleItemsetSalePrice in interface SkuBundleItempublic Money getSalePrice()
getSalePrice in interface SkuBundleItempublic Money getRetailPrice()
getRetailPrice in interface SkuBundleItempublic ProductBundle getBundle()
getBundle in interface SkuBundleItempublic void setBundle(ProductBundle bundle)
setBundle in interface SkuBundleItempublic Sku getSku()
getSku in interface SkuBundleItempublic void setSku(Sku sku)
setSku in interface SkuBundleItempublic void clearDynamicPrices()
SkuBundleItemclearDynamicPrices in interface SkuBundleItempublic <G extends SkuBundleItem> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<SkuBundleItem>CloneNotSupportedExceptionCopyright © 2017. All rights reserved.