Class DefaultNDCMerchandisingBaggageHandler
java.lang.Object
de.hybris.platform.prosfacades.ancillary.search.handlers.impl.AbstractMerchandisingResponseHandler
de.hybris.platform.ndc182prosfacades.facades.servicelist.handlers.impl.DefaultNDCMerchandisingBaggageHandler
- All Implemented Interfaces:
NDCMerchandisingBaggageHandler
public class DefaultNDCMerchandisingBaggageHandler
extends AbstractMerchandisingResponseHandler
implements NDCMerchandisingBaggageHandler
Default implementation of
NDCMerchandisingBaggageHandler-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<BaggageData>createBaggages(MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Creates the list of baggages from the merchandising response.protected AncillaryPricingInfoDataCreates the price info.protected List<AncillaryPricingInfoData>Creates the pricing infos list.protected PROSTravelAncillaryServiceGets pros travel ancillary service.voidhandle(BaggageResponseData baggageResponseData, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Populates all the fields in the baggageResponseData from the merchandisingResponse.protected voidpopulateBaggageDataList(Charge chargedBaggage, MerchandisingResponse merchandisingResponse, Set<Integer> flightAssociationIds, List<BaggageData> baggageDataList, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Populate an baggage data list from a charged baggage.voidsetProsTravelAncillaryService(PROSTravelAncillaryService prosTravelAncillaryService) Sets pros travel ancillary service.Methods inherited from class de.hybris.platform.prosfacades.ancillary.search.handlers.impl.AbstractMerchandisingResponseHandler
createBasePrice, createCategories, createFlightCodes, createOriginDestination, createOriginDestinations, createPassengers, createPriceInfo, createTaxes, getCategoryConverter, getProsTransportOfferingFacade, getShoppingTravelStockService, getTransportOfferingService, getTravelCommercePriceFacade, isProductAvailable, populatePassenger, resolvePassenger, setCategoryConverter, setProsTransportOfferingFacade, setShoppingTravelStockService, setTransportOfferingService, setTravelCommercePriceFacade
-
Constructor Details
-
DefaultNDCMerchandisingBaggageHandler
public DefaultNDCMerchandisingBaggageHandler()
-
-
Method Details
-
handle
public void handle(BaggageResponseData baggageResponseData, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Description copied from interface:NDCMerchandisingBaggageHandlerPopulates all the fields in the baggageResponseData from the merchandisingResponse. The charged baggages will be filtered based on a list of transport offering codes.- Specified by:
handlein interfaceNDCMerchandisingBaggageHandler- Parameters:
baggageResponseData- the baggageResponseDatamerchandisingResponse- the merchandisingResponsepassengerIdTypeMap- the passengerIdTypeMapshoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData
-
createBaggages
protected List<BaggageData> createBaggages(MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Creates the list of baggages from the merchandising response. Charges baggages will be filtered accordingly to the list of transport offerings. If the charged baggage contains a list of flight ids in the association, then the baggage is returned only if at least one the ids is contained in the merchandisingResponse. Otherwise, if the charged baggage contains a list of origin destination ids in the association, then the baggage is returned only if all the flights contained in the origin destinations are present in the keySet of the merchandisingResponse.- Parameters:
merchandisingResponse- the merchandising responsepassengerIdTypeMap- the passengerIdTypeMapshoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData- Returns:
- the list of baggage data
-
populateBaggageDataList
protected void populateBaggageDataList(Charge chargedBaggage, MerchandisingResponse merchandisingResponse, Set<Integer> flightAssociationIds, List<BaggageData> baggageDataList, Map<Integer, String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Populate an baggage data list from a charged baggage.- Parameters:
chargedBaggage- the charged baggagemerchandisingResponse- the merchandising responsepassengerIdTypeMap- the passengerIdTypeMapbaggageDataList- the baggage data list which will be populatedshoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData
-
createPricingInfos
protected List<AncillaryPricingInfoData> createPricingInfos(Charge chargedBaggage, List<String> flightCodes, List<String> paxIds) Creates the pricing infos list.- Parameters:
chargedBaggage- the charged baggageflightCodes- the flightCodespaxIds- the paxIds- Returns:
- the list of ancillaryPricingInfoData
-
createPriceInfo
protected AncillaryPricingInfoData createPriceInfo(PriceInfo priceInfo, List<String> flightCodes, List<String> paxIds) Creates the price info.- Parameters:
priceInfo- the price infoflightCodes- the flightCodespaxIds- the paxIds- Returns:
- the ancillary pricing info data
-
getProsTravelAncillaryService
Gets pros travel ancillary service.- Returns:
- the pros travel ancillary service
-
setProsTravelAncillaryService
Sets pros travel ancillary service.- Parameters:
prosTravelAncillaryService- the pros travel ancillary service
-