Interface ProductConfigurationPricingStrategy

    • 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 entry
        calculateCart - specifies whether cart is calculated on successful update
        passedParameter - 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