Interface PricingProvider

All Known Implementing Classes:
DefaultPricingProviderImpl, DummyPricingProvider, SimplePricingProviderMockImpl

public interface PricingProvider
Provides access to configuration pricing information from the configuration in an asynchronous manner in relation to the configuration process.
  • Method Details

    • getPriceSummary

      Retrieves if present current total price, base price and selected options price
      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
      ConfigurationEngineException
    • fillValuePrices

      void fillValuePrices(List<PriceValueUpdateModel> updateModels, String kbId) throws PricingEngineException
      Fills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backoffice
      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
      Throws:
      PricingEngineException
    • fillValuePrices

      void fillValuePrices(ConfigModel configModel) throws PricingEngineException
      Fills value prices into the config model
      Parameters:
      configModel - runtime representation of the configuration
      Throws:
      PricingEngineException
    • fillValuePrices

      default void fillValuePrices(List<PriceValueUpdateModel> updateModels, String kbId, ConfigurationRetrievalOptions options) throws PricingEngineException
      Fills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backoffice
      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
      options - options to consider during price retrival/calculation, such as external requested conditions
      Throws:
      PricingEngineException
    • fillValuePrices

      default void fillValuePrices(ConfigModel configModel, ConfigurationRetrievalOptions options) throws PricingEngineException
      Fills value prices into the config model
      Parameters:
      configModel - runtime representation of the configuration
      options - options to consider during price retrival/calculation, such as external requested conditions
      Throws:
      PricingEngineException
    • isActive

      boolean isActive()
      Indicates whether the pricing provider is active
      Returns:
      true if pricing provider is active in the implementation