@Entity public class SkuBundleItemImpl extends Object implements SkuBundleItem
| Modifier and Type | Field and Description |
|---|---|
protected ProductBundle |
bundle |
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
|
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
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 SkuBundleItemCopyright © 2015. All Rights Reserved.