Class DefaultPricingProviderImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.impl.DefaultPricingProviderImpl
- All Implemented Interfaces:
PricingProvider
Default implementation of the pricing provider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillValuePrices(ConfigModel configModel) 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 backofficegetPriceSummary(String configId, ConfigurationRetrievalOptions options) Retrieves if present current total price, base price and selected options pricebooleanisActive()Indicates whether the pricing provider is activeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.productconfig.runtime.interf.PricingProvider
fillValuePrices, fillValuePrices
-
Constructor Details
-
DefaultPricingProviderImpl
public DefaultPricingProviderImpl()
-
-
Method Details
-
getPriceSummary
public PriceSummaryModel getPriceSummary(String configId, ConfigurationRetrievalOptions options) throws PricingEngineException Description copied from interface:PricingProviderRetrieves if present current total price, base price and selected options price- Specified by:
getPriceSummaryin interfacePricingProvider- Parameters:
configId- runtime id of the configurationoptions- 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:PricingProviderIndicates whether the pricing provider is active- Specified by:
isActivein interfacePricingProvider- Returns:
- true if pricing provider is active in the implementation
-
fillValuePrices
Description copied from interface:PricingProviderFills absolute value prices or delta prices for all passed PriceValueUpdateModels dependent on setting in backoffice- Specified by:
fillValuePricesin interfacePricingProvider- 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
-
fillValuePrices
Description copied from interface:PricingProviderFills value prices into the config model- Specified by:
fillValuePricesin interfacePricingProvider- Parameters:
configModel- runtime representation of the configuration
-