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 Summary
Modifier and TypeMethodDescriptionvoidfillValuePrices(ConfigModel configModel) Fills value prices into the config modeldefault voidfillValuePrices(ConfigModel configModel, ConfigurationRetrievalOptions options) Fills value prices into the config modelvoidfillValuePrices(List<PriceValueUpdateModel> updateModels, String kbId) Fills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backofficedefault voidfillValuePrices(List<PriceValueUpdateModel> updateModels, String kbId, ConfigurationRetrievalOptions options) Fills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backofficegetPriceSummary(String configId, ConfigurationRetrievalOptions options) Retrieves if present current total price, base price and selected options pricebooleanisActive()Indicates whether the pricing provider is active
-
Method Details
-
getPriceSummary
PriceSummaryModel getPriceSummary(String configId, ConfigurationRetrievalOptions options) throws PricingEngineException, ConfigurationEngineException Retrieves if present current total price, base price and selected options price- Parameters:
configId- runtime id of the configurationoptions- configuration retrieval options- Returns:
- map of current total price, base price and selected options price
- Throws:
PricingEngineExceptionConfigurationEngineException
-
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 filledkbId- KnowledgeBase id belonging to the runtime configuration for which absolute value prices or delta price are calculated- Throws:
PricingEngineException
-
fillValuePrices
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 filledkbId- KnowledgeBase id belonging to the runtime configuration for which absolute value prices or delta price are calculatedoptions- 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 configurationoptions- 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
-