org.broadleafcommerce.core.catalog.service.dynamic
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
See Also:
DefaultDynamicSkuPricingServiceImpl}, org.broadleafcommerce.core.web.catalog.DefaultDynamicSkuPricingFilter}, SkuPricingConsiderationContext}

Method Summary
 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
 

Method Detail

getSkuPrices

@Nonnull
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

Parameters:
sku -
skuPricingConsiderations -
Returns:

getSkuBundleItemPrice

DynamicSkuPrices getSkuBundleItemPrice(SkuBundleItem sku,
                                       HashMap skuPricingConsiderations)
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:


Copyright © 2013. All Rights Reserved.