Class DefaultConfigurationFindPriceHook

java.lang.Object
de.hybris.platform.cpq.productconfig.services.hooks.DefaultConfigurationFindPriceHook
All Implemented Interfaces:
de.hybris.platform.order.strategies.calculation.FindPriceHook, de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier

public class DefaultConfigurationFindPriceHook extends Object implements de.hybris.platform.order.strategies.calculation.FindPriceHook
Responsible for reading price from configuration summary
  • Constructor Details

    • DefaultConfigurationFindPriceHook

      public DefaultConfigurationFindPriceHook(ConfigurationService configurationService)
      Parameters:
      configurationService - Configuration service
  • Method Details

    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • findCustomBasePrice

      public de.hybris.platform.util.PriceValue findCustomBasePrice(AbstractOrderEntryModel entry, de.hybris.platform.util.PriceValue defaultPrice)
      Specified by:
      findCustomBasePrice in interface de.hybris.platform.order.strategies.calculation.FindPriceHook
    • findBasePriceFromProductInfo

      protected de.hybris.platform.util.PriceValue findBasePriceFromProductInfo(AbstractOrderEntryModel entry, de.hybris.platform.util.PriceValue defaultPrice)
    • isApplicable

      public boolean isApplicable(AbstractOrderEntryModel cartEntry)
      Specified by:
      isApplicable in interface de.hybris.platform.order.strategies.calculation.FindPriceHook
    • getRelevantProductInfos

      protected List<CloudCPQOrderEntryProductInfoModel> getRelevantProductInfos(List<AbstractOrderEntryProductInfoModel> productInfos)