Interface DynamicSkuPricingService
- All Known Implementing Classes:
DefaultDynamicSkuPricingServiceImpl
public interface DynamicSkuPricingService
Interface for calculating dynamic pricing for a Sku. This should be hooked up via a custom subclass of
org.broadleafcommerce.core.web.catalog.DefaultDynamicSkuPricingFilter where an implementation of this class
should be injected and returned in the getPricing() method.
Rather than implementing this interface directly, consider subclassing the DefaultDynamicSkuPricingServiceImpl
and providing overrides to methods there.
- Author:
- jfischer
-
Method Summary
Modifier and TypeMethodDescriptiongetPriceAdjustment(ProductOptionValueImpl productOptionValueImpl, Money priceAdjustment, HashMap skuPricingConsiderationContext) Execute dynamic pricing on the price of a product option value.getSkuBundleItemPrice(SkuBundleItem sku, HashMap skuPricingConsiderations) Used for tgetSkuPrices(SkuPriceWrapper skuWrapper, HashMap skuPricingConsiderations) While this method should return aDynamicSkuPrices(and not just null) the members of the result can all be null; they do not have to be set
-
Method Details
-
getSkuPrices
@Nonnull DynamicSkuPrices getSkuPrices(SkuPriceWrapper skuWrapper, HashMap skuPricingConsiderations) While this method should return aDynamicSkuPrices(and not just null) the members of the result can all be null; they do not have to be set- Parameters:
skuWrapper-skuPricingConsiderations-- Returns:
-
getSkuBundleItemPrice
Used for t- Parameters:
sku-skuPricingConsiderations-- Returns:
-
getPriceAdjustment
DynamicSkuPrices getPriceAdjustment(ProductOptionValueImpl productOptionValueImpl, Money priceAdjustment, HashMap skuPricingConsiderationContext) Execute dynamic pricing on the price of a product option value.- Parameters:
productOptionValueImpl-priceAdjustment-skuPricingConsiderationContext-- Returns:
-