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 Details

    • getSkuPrices

      @Nonnull DynamicSkuPrices getSkuPrices(SkuPriceWrapper skuWrapper, 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:
      skuWrapper -
      skuPricingConsiderations -
      Returns:
    • getSkuBundleItemPrice

      DynamicSkuPrices getSkuBundleItemPrice(SkuBundleItem sku, HashMap skuPricingConsiderations)
      Used for t
      Parameters:
      sku -
      skuPricingConsiderations -
      Returns:
    • getPriceAdjustment

      DynamicSkuPrices getPriceAdjustment(ProductOptionValueImpl productOptionValueImpl, org.broadleafcommerce.common.money.Money priceAdjustment, HashMap skuPricingConsiderationContext)
      Execute dynamic pricing on the price of a product option value.
      Parameters:
      productOptionValueImpl -
      priceAdjustment -
      skuPricingConsiderationContext -
      Returns: