Interface ProductConfigurationPricingStrategy
-
- All Known Implementing Classes:
ProductConfigurationPricingStrategyImpl,ProductConfigurationSynchronousPricingStrategyImpl
public interface ProductConfigurationPricingStrategyFacilitates pricing integration for configurable products
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisCartPricingErrorPresent(ConfigModel configModel)Indicates whether there is a problem to obtain correct prices for cart/orderbooleanupdateCartEntryBasePrice(AbstractOrderEntryModel entry)Updates cart entry's base price from configuration model if a price is available in configuration model.booleanupdateCartEntryPrices(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)Updates cart entry's base price (in case it deviates from the current configuration price) from configuration model/pricing service.
-
-
-
Method Detail
-
updateCartEntryBasePrice
boolean updateCartEntryBasePrice(AbstractOrderEntryModel entry)
Updates cart entry's base price from configuration model if a price is available in configuration model. ConfigId has to be present in current session for given cart entry to retrieve configuration model. The caller has to take care for triggering recalculate of cart afterwards.- Parameters:
entry- cart entry- Returns:
- true if cart entry has been updated
-
updateCartEntryPrices
boolean updateCartEntryPrices(AbstractOrderEntryModel entry, boolean calculateCart, CommerceCartParameter passedParameter)
Updates cart entry's base price (in case it deviates from the current configuration price) from configuration model/pricing service. ConfigId has to be present in current session for given cart entry to retrieve configuration model. This includes recalculation and saving of the cart if entry prices were updated.- Parameters:
entry- cart entrycalculateCart- specifies whether cart is calculated on successful updatepassedParameter- parameters for recalculation of the cart- Returns:
- true if cart entry has been updated
-
isCartPricingErrorPresent
boolean isCartPricingErrorPresent(ConfigModel configModel)
Indicates whether there is a problem to obtain correct prices for cart/order- Parameters:
configModel- configuration model that represents the runtime state of the configuration- Returns:
- true if no prices can be obtained at the moment
-
-