|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProductBundle
Default implementation for representing a bundle that can be sold
individually. Product bundles are composed of multiple
SkuBundleItem.
Bundle prices are determined 1 of 2 ways, depending on the pricing model:
SkuBundleItem
SkuBundleItem| Method Summary | |
|---|---|
Boolean |
getAutoBundle()
Gets whether or not this should be bundled together if the individual Products are added to the cart. |
Money |
getBundleItemsRetailPrice()
|
Money |
getBundleItemsSalePrice()
|
Boolean |
getBundlePromotable()
Gets whether or not the bundle itself should be promotable. |
Boolean |
getItemsPromotable()
Gets whether or not the items in this bundle should be considered for promotions using the promotion engine Note: this is only applicable when the pricing model is the sum of the bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF |
BigDecimal |
getPotentialSavings()
Calculates the potential savings by summing up the retail prices of the contained items and comparing to the actual bundle prices. |
ProductBundlePricingModelType |
getPricingModel()
|
Integer |
getPriority()
Used to determine the order for automatic bundling. |
List<SkuBundleItem> |
getSkuBundleItems()
|
boolean |
isOnSale()
|
void |
setAutoBundle(Boolean autoBundle)
Sets whether or not this should be bundled together if the individual Products are added to the cart. |
void |
setBundlePromotable(Boolean bundlePromotable)
Gets whether or not the bundle itself should be promotable. |
void |
setItemsPromotable(Boolean itemsPromotable)
Sets whether or not the items in this bundle should be considered for promotions using the promotion engine NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF |
void |
setPricingModel(ProductBundlePricingModelType pricingModel)
|
void |
setPriority(Integer priority)
|
void |
setSkuBundleItems(List<SkuBundleItem> bundleItems)
|
| Method Detail |
|---|
ProductBundlePricingModelType getPricingModel()
void setPricingModel(ProductBundlePricingModelType pricingModel)
pricingModel - ITEM_SUM if the retailPrice and salePrice of this
bundle should be the composition of its items, BUNDLE
if this retailPrice and salePrice should come from the default
SkuMoney getBundleItemsRetailPrice()
Money getBundleItemsSalePrice()
Boolean getAutoBundle()
void setAutoBundle(Boolean autoBundle)
autoBundle - Whether or not the items in the bundle should be auto-bundled
if added to the cart separatelyBoolean getItemsPromotable()
void setItemsPromotable(Boolean itemsPromotable)
itemsPromotable - Whether or not the items in the bundle should be considered
for promotionsBoolean getBundlePromotable()
void setBundlePromotable(Boolean bundlePromotable)
bundlePromotable - Whether or not the bundle itself should be available for
promotionList<SkuBundleItem> getSkuBundleItems()
void setSkuBundleItems(List<SkuBundleItem> bundleItems)
Integer getPriority()
void setPriority(Integer priority)
BigDecimal getPotentialSavings()
boolean isOnSale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||