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.
DefaultDynamicSkuPricingServiceImpl},
org.broadleafcommerce.core.web.catalog.DefaultDynamicSkuPricingFilter},
SkuPricingConsiderationContext}| Modifier and Type | Method and Description |
|---|---|
DynamicSkuPrices |
getPriceAdjustment(ProductOptionValueImpl productOptionValueImpl,
Money priceAdjustment,
HashMap skuPricingConsiderationContext)
Execute dynamic pricing on the price of a product option value.
|
DynamicSkuPrices |
getSkuBundleItemPrice(SkuBundleItem sku,
HashMap skuPricingConsiderations)
Used for t
|
DynamicSkuPrices |
getSkuPrices(Sku sku,
HashMap skuPricingConsiderations)
While this method should return a
DynamicSkuPrices (and not just null) the members of the result can all
be null; they do not have to be set |
@Nonnull DynamicSkuPrices getSkuPrices(Sku sku, HashMap skuPricingConsiderations)
DynamicSkuPrices (and not just null) the members of the result can all
be null; they do not have to be setsku - skuPricingConsiderations - DynamicSkuPrices getSkuBundleItemPrice(SkuBundleItem sku, HashMap skuPricingConsiderations)
sku - skuPricingConsiderations - DynamicSkuPrices getPriceAdjustment(ProductOptionValueImpl productOptionValueImpl, Money priceAdjustment, HashMap skuPricingConsiderationContext)
productOptionValueImpl - priceAdjustment - skuPricingConsiderationContext - Copyright © 2015. All Rights Reserved.