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 Details

    • DefaultNDCMerchandisingBaggageHandler

      public DefaultNDCMerchandisingBaggageHandler()
  • Method Details

    • handle

      public void handle(BaggageResponseData baggageResponseData, MerchandisingResponse merchandisingResponse, Map<Integer,String> passengerIdTypeMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData)
      Description copied from interface: NDCMerchandisingBaggageHandler
      Populates 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:
      handle in interface NDCMerchandisingBaggageHandler
      Parameters:
      baggageResponseData - the baggageResponseData
      merchandisingResponse - the merchandisingResponse
      passengerIdTypeMap - the passengerIdTypeMap
      shoppingMerchandisingHandlerData - 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 response
      passengerIdTypeMap - the passengerIdTypeMap
      shoppingMerchandisingHandlerData - 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 baggage
      merchandisingResponse - the merchandising response
      passengerIdTypeMap - the passengerIdTypeMap
      baggageDataList - the baggage data list which will be populated
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
    • createPricingInfos

      protected List<AncillaryPricingInfoData> createPricingInfos(Charge chargedBaggage, List<String> flightCodes, List<String> paxIds)
      Creates the pricing infos list.
      Parameters:
      chargedBaggage - the charged baggage
      flightCodes - the flightCodes
      paxIds - 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 info
      flightCodes - the flightCodes
      paxIds - the paxIds
      Returns:
      the ancillary pricing info data
    • getProsTravelAncillaryService

      protected PROSTravelAncillaryService getProsTravelAncillaryService()
      Gets pros travel ancillary service.
      Returns:
      the pros travel ancillary service
    • setProsTravelAncillaryService

      public void setProsTravelAncillaryService(PROSTravelAncillaryService prosTravelAncillaryService)
      Sets pros travel ancillary service.
      Parameters:
      prosTravelAncillaryService - the pros travel ancillary service