Class AbstractPROSPriceCalculationStrategy

java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
All Implemented Interfaces:
ShoppingPriceCalculationStrategy
Direct Known Subclasses:
AllowancePROSPriceCalculationStrategy, AncillaryChangeFeePROSPriceCalculationStrategy, AncillaryPROSPriceCalculationStrategy, BaggagePROSPriceCalculationStrategy, CarryOnAllowancePROSPriceCalculationStrategy, ChangeFeePROSPriceCalculationStrategy, EvenExchangeFeePROSPriceCalculationStrategy, FarePROSPriceCalculationStrategy, RefundFeePROSPriceCalculationStrategy

public abstract class AbstractPROSPriceCalculationStrategy extends Object implements ShoppingPriceCalculationStrategy
The type Abstract pros price calculation strategy.
  • Constructor Details

    • AbstractPROSPriceCalculationStrategy

      public AbstractPROSPriceCalculationStrategy()
  • Method Details

    • findPricingSolution

      protected PricingSolution findPricingSolution(AbstractOrderEntryModel orderEntry, SearchResponseWrapper searchResponseWrapper) throws de.hybris.platform.order.exceptions.CalculationException
      Find pricing solution. Only one solution should be present in the response since it is just a validation of an itinerary passed in the request.
      Parameters:
      orderEntry - the order entry
      searchResponseWrapper - the search response message
      Returns:
      the pricing solution
      Throws:
      de.hybris.platform.order.exceptions.CalculationException - the calculation exception
    • findPricingSolutionID

      protected Integer findPricingSolutionID(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper) throws de.hybris.platform.order.exceptions.CalculationException
      Find pricing solution id integer. The Solution list is access with get(0) since only one solution is expected to be in the SearchResponseMessage when the IntelliPricer service is called. If the product is a ShoppingFareProductModel, the prosFareReference is used to retrieve the PricingSolution. If not, the ShoppingFareProductModel of the same leg is used to retrieve the correct PricingSolution. Otherwise the first PricingSolutionID is returned.
      Parameters:
      entry - the entry
      searchResponseWrapper - the search response message
      Returns:
      the integer
      Throws:
      de.hybris.platform.order.exceptions.CalculationException - the calculation exception
    • findPricingSolutionByFareReferenceEntry

      protected Integer findPricingSolutionByFareReferenceEntry(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper)
      Find pricing solution by bundle entry integer.
      Parameters:
      entry - the entry
      searchResponseWrapper - the search response wrapper
      Returns:
      the integer
    • findPricingSolutionIDFromSameODEntries

      protected Integer findPricingSolutionIDFromSameODEntries(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper)
      Find pricing solution id from same od entries.
      Parameters:
      orderEntryModel - the order Entry Model
      searchResponseWrapper - the search response wrapper
      Returns:
      the integer
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Gets session service.
      Returns:
      the session service
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Sets session service.
      Parameters:
      sessionService - the session service
    • getCommonI18NService

      protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      Gets common i 18 n service.
      Returns:
      the common i 18 n service
    • setCommonI18NService

      public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      Sets common i 18 n service.
      Parameters:
      commonI18NService - the common i 18 n service
    • getProsTravelBundleTemplateService

      protected PROSTravelBundleTemplateService getProsTravelBundleTemplateService()
      Gets pros travel bundle template service.
      Returns:
      the pros travel bundle template service
    • setProsTravelBundleTemplateService

      public void setProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService)
      Sets pros travel bundle template service.
      Parameters:
      prosTravelBundleTemplateService - the pros travel bundle template service
    • getProsSearchResponseService

      protected PROSSearchResponseService getProsSearchResponseService()
    • setProsSearchResponseService

      public void setProsSearchResponseService(PROSSearchResponseService prosSearchResponseService)
      Sets pros search response service.
      Parameters:
      prosSearchResponseService - the pros search response service
    • getSearchResponseService

      protected SearchResponseService getSearchResponseService()
      get SearchResponseService
      Returns:
      SearchResponseService search response service
    • setSearchResponseService

      public void setSearchResponseService(SearchResponseService searchResponseService)
      set SearchResponseService
      Parameters:
      searchResponseService - the search response service