org.broadleafcommerce.core.catalog.domain
Interface SkuBundleItem

All Superinterfaces:
Serializable
All Known Implementing Classes:
SkuBundleItemImpl

public interface SkuBundleItem
extends Serializable

Represents the Sku being sold in a bundle along with metadata about the relationship itself like how many items should be included in the bundle

Author:
Phillip Verheyden
See Also:
ProductBundle, Product

Method Summary
 void clearDynamicPrices()
          Removes any currently stored dynamic pricing
 ProductBundle getBundle()
           
 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)
           
 

Method Detail

getId

Long getId()

setId

void setId(Long id)

getQuantity

Integer getQuantity()

setQuantity

void setQuantity(Integer quantity)

setSalePrice

void setSalePrice(Money salePrice)
Allows for overriding the related Product's sale price. This is only used if the pricing model for the bundle is a composition of its parts getProduct().getDefaultSku().getSalePrice()

Parameters:
itemSalePrice - The sale price for this bundle item

getSalePrice

Money getSalePrice()
Returns:
this itemSalePrice if it is set, getProduct().getDefaultSku().getSalePrice() if this item's itemSalePrice is null

getBundle

ProductBundle getBundle()

setBundle

void setBundle(ProductBundle bundle)

getRetailPrice

Money getRetailPrice()

getSku

Sku getSku()

setSku

void setSku(Sku sku)

clearDynamicPrices

void clearDynamicPrices()
Removes any currently stored dynamic pricing



Copyright © 2013. All Rights Reserved.