Class DefaultPricingProviderImpl

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.impl.DefaultPricingProviderImpl
All Implemented Interfaces:
PricingProvider

public class DefaultPricingProviderImpl extends Object implements PricingProvider
Default implementation of the pricing provider
  • Constructor Details

    • DefaultPricingProviderImpl

      public DefaultPricingProviderImpl()
  • Method Details

    • getPriceSummary

      public PriceSummaryModel getPriceSummary(String configId, ConfigurationRetrievalOptions options) throws PricingEngineException
      Description copied from interface: PricingProvider
      Retrieves if present current total price, base price and selected options price
      Specified by:
      getPriceSummary in interface PricingProvider
      Parameters:
      configId - runtime id of the configuration
      options - configuration retrieval options
      Returns:
      map of current total price, base price and selected options price
      Throws:
      PricingEngineException
    • isActive

      public boolean isActive()
      Description copied from interface: PricingProvider
      Indicates whether the pricing provider is active
      Specified by:
      isActive in interface PricingProvider
      Returns:
      true if pricing provider is active in the implementation
    • fillValuePrices

      public void fillValuePrices(List<PriceValueUpdateModel> updateModels, String kbId)
      Description copied from interface: PricingProvider
      Fills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backoffice
      Specified by:
      fillValuePrices in interface PricingProvider
      Parameters:
      updateModels - each list entry represents a characteristic for which absolute value prices or delta prices are filled
      kbId - KnowledgeBase id belonging to the runtime configuration for which absolute value prices or delta price are calculated
    • fillValuePrices

      public void fillValuePrices(ConfigModel configModel)
      Description copied from interface: PricingProvider
      Fills value prices into the config model
      Specified by:
      fillValuePrices in interface PricingProvider
      Parameters:
      configModel - runtime representation of the configuration