Class PackageSelectedFareBundlesHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageSelectedFareBundlesHandler
- All Implemented Interfaces:
PackageResponseHandler
Concrete implementation of
PackageResponseHandler which checks if there is already a bundle selected, otherwise it
chooses the first available option for each origin destination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItineraryPricingInfoDatagetFirstAvailableItineraryPricingInfo(PricedItineraryData pricedItinerary) Gets the first available itinerary pricing info.voidhandle(PackageRequestData packageRequestData, PackageResponseData packageResponseData) Handle method.protected voidselectPackagePricedItinerary(List<PricedItineraryData> pricedItineraries) Selects the package priced itinerary from the list of priced itineraries for given origin destination.
-
Constructor Details
-
PackageSelectedFareBundlesHandler
public PackageSelectedFareBundlesHandler()
-
-
Method Details
-
handle
Description copied from interface:PackageResponseHandlerHandle method.- Specified by:
handlein interfacePackageResponseHandler- Parameters:
packageRequestData- as the packageRequestDatapackageResponseData- as the packageResponseData
-
selectPackagePricedItinerary
Selects the package priced itinerary from the list of priced itineraries for given origin destination.- Parameters:
pricedItineraries- the priced itineraries
-
getFirstAvailableItineraryPricingInfo
protected ItineraryPricingInfoData getFirstAvailableItineraryPricingInfo(PricedItineraryData pricedItinerary) Gets the first available itinerary pricing info.- Parameters:
pricedItinerary- the priced itinerary- Returns:
- the first available itinerary pricing info
-