Class PROSLowestPriceSolutionHandler
java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSLowestPriceSolutionHandler
- All Implemented Interfaces:
ShoppingFlightSearchHandler
Handler to calculate the lowest price solution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BigDecimalgetLowestPricePricingOption(PricingOptionData pricingOptionData) calculates lowest pricing option price.protected Map.Entry<String,BigDecimal> getLowestPriceSolution(SolutionData solutionData) Calculates lowest price solution and creates a pricing option id and price map.voidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String, TransportOfferingData> transportOfferingDataMap, Map<Integer, String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData) Handle methodprotected voidpopulateLowestPrice(FlightSearchResponseData flightSearchResponseData) populates the lowest solution price by comparing the total solution price.
-
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:ShoppingFlightSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFlightSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messageflightSearchResponseData- the flightSearchResponseDatatransportOfferingDataMap- the transportOfferingDataMapflightIdCodeMap- the flightIdCodeMapflightSearchRequestData- the flight search request data
-
populateLowestPrice
populates the lowest solution price by comparing the total solution price.- Parameters:
flightSearchResponseData- the flight search response data
-
getLowestPriceSolution
Calculates lowest price solution and creates a pricing option id and price map.- Parameters:
solutionData- the solution data- Returns:
- the lowest price solution
-
getLowestPricePricingOption
calculates lowest pricing option price.- Parameters:
pricingOptionData- the pricing option data- Returns:
- the lowest price pricing option
-