Class PROSLowestPriceSolutionHandler

java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSLowestPriceSolutionHandler
All Implemented Interfaces:
ShoppingFlightSearchHandler

public class PROSLowestPriceSolutionHandler extends Object implements ShoppingFlightSearchHandler
Handler to calculate the lowest price solution.
  • Constructor Details

    • PROSLowestPriceSolutionHandler

      public PROSLowestPriceSolutionHandler()
  • Method Details

    • handle

      public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String,TransportOfferingData> transportOfferingDataMap, Map<Integer,String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData)
      Description copied from interface: ShoppingFlightSearchHandler
      Handle method
      Specified by:
      handle in interface ShoppingFlightSearchHandler
      Parameters:
      searchResponseMessage - the search response message
      fareShopMessage - the fare shop message
      flightSearchResponseData - the flightSearchResponseData
      transportOfferingDataMap - the transportOfferingDataMap
      flightIdCodeMap - the flightIdCodeMap
      flightSearchRequestData - the flight search request data
    • populateLowestPrice

      protected void populateLowestPrice(FlightSearchResponseData flightSearchResponseData)
      populates the lowest solution price by comparing the total solution price.
      Parameters:
      flightSearchResponseData - the flight search response data
    • getLowestPriceSolution

      protected Map.Entry<String,BigDecimal> getLowestPriceSolution(SolutionData solutionData)
      Calculates lowest price solution and creates a pricing option id and price map.
      Parameters:
      solutionData - the solution data
      Returns:
      the lowest price solution
    • getLowestPricePricingOption

      protected BigDecimal getLowestPricePricingOption(PricingOptionData pricingOptionData)
      calculates lowest pricing option price.
      Parameters:
      pricingOptionData - the pricing option data
      Returns:
      the lowest price pricing option