Class DefaultNDCMerchandisingResponseAncillaryDataHandler

All Implemented Interfaces:
NDCMerchandisingResponseHandler, MerchandisingResponseHandler

public class DefaultNDCMerchandisingResponseAncillaryDataHandler extends DefaultMerchandisingResponseAncillaryDataHandler implements NDCMerchandisingResponseHandler
The NDC shopping implementation of MerchandisingResponseHandler interface. This class populates the ancillary data from the merchandising response message.
  • Constructor Details

    • DefaultNDCMerchandisingResponseAncillaryDataHandler

      public DefaultNDCMerchandisingResponseAncillaryDataHandler()
  • Method Details

    • handle

      public void handle(AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes, MerchandisingResponse merchandisingResponse, Map<Integer,String> passengerIdTypeMap, Map<Integer,TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData)
      Populates the ancillary data from the merchandising response message.
      Specified by:
      handle in interface NDCMerchandisingResponseHandler
      Parameters:
      ancillaryResponseData - the ancillaryResponseData
      transportOfferingCodes - the transportOfferingCodes
      merchandisingResponse - the merchandisingResponse
      passengerIdTypeMap - the passengerIdTypeMap
      flightIdTransportOfferingMap - the flightIdTransportOfferingMap
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
    • createAncillaries

      protected List<AncillaryData> createAncillaries(MerchandisingResponse merchandisingResponse, Map<Integer,TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData)
      Creates the list of ancillaries from the merchandising response
      Parameters:
      merchandisingResponse - the merchandising response
      flightIdTransportOfferingMap - the flightIdTransportOfferingMap
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
      Returns:
      the list of ancillary data
    • createPricingInfos

      protected List<AncillaryPricingInfoData> createPricingInfos(OptionalService optionalService, Map<Integer,TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds)
      Create List from the given parameters
      Parameters:
      optionalService - the optionalService
      flightIdTransportOfferingMap - the flightIdTransportOfferingMap
      flightIds - the flightIds
      Returns:
      List
    • createPriceInfo

      protected AncillaryPricingInfoData createPriceInfo(PriceInfo priceInfo, Map<Integer,TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds)
      Create AncillaryPricingInfoData from the given parameters
      Parameters:
      priceInfo - the priceInfo
      flightIdTransportOfferingMap - the flightIdTransportOfferingMap
      flightIds - the flightIds
      Returns:
      AncillaryPricingInfoData
    • populateAncillaryDataList

      protected void populateAncillaryDataList(OptionalService optionalService, Map<Integer,TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds, List<AncillaryData> ancillaryDataList)
      Populate ancillaryDataList using the given parameters
      Parameters:
      optionalService - the optionalService
      flightIdTransportOfferingMap - the flightIdTransportOfferingMap
      flightIds - the flightIds
      ancillaryDataList - the ancillaryDataList