Class SeatAvailabilityAlaCarteOfferRSHandler

java.lang.Object
de.hybris.platform.ndc182facades.facades.seatavailability.handlers.impl.SeatAvailabilityAlaCarteOfferRSHandler
All Implemented Interfaces:
SeatAvailabilityRSHandler

public class SeatAvailabilityAlaCarteOfferRSHandler extends Object implements SeatAvailabilityRSHandler
The implementation of SeatAvailabilityRSHandler to populate Ala Carte Offer.
  • Constructor Details

    • SeatAvailabilityAlaCarteOfferRSHandler

      public SeatAvailabilityAlaCarteOfferRSHandler()
  • Method Details

    • handle

      public void handle(OfferResponseData offerResponseData, IATASeatAvailRS seatAvailRS) throws NDCException
      Description copied from interface: SeatAvailabilityRSHandler
      Handle method to build the IATASeatAvailRS.
      Specified by:
      handle in interface SeatAvailabilityRSHandler
      Parameters:
      offerResponseData - the offerResponseData
      seatAvailRS - the seat avail rs
      Throws:
      NDCException - the ndc exception
    • createPassengerDataListFromTravellerData

      protected List<NDCPassengerData> createPassengerDataListFromTravellerData(List<TravellerData> travellers)
      Create passenger data list from traveller data list.
      Parameters:
      travellers - the travellers
      Returns:
      the list
    • createNdcAlaCarteOffeData

      protected NDCOfferData createNdcAlaCarteOffeData(OfferType offerType, String routeCode, int originDestinationRefNumber, List<NDCPassengerData> cachedPassengers) throws NDCException
      Creates a ndcAlaCarteOfferData from the offerType.
      Parameters:
      offerType - the offer type
      routeCode - the route code
      originDestinationRefNumber - the origin destination ref number
      cachedPassengers - the cached passengers
      Returns:
      the ndc offer data
      Throws:
      NDCException - the ndc exception
    • createNdcPassengerList

      protected List<NDCPassengerData> createNdcPassengerList(List<String> paxRefIDs, List<NDCPassengerData> cachedPassengers) throws NDCException
      Creates ndc passenger list from ndc offer data list.
      Parameters:
      paxRefIDs - the list of passenger Ids
      cachedPassengers - the cached passengers
      Returns:
      the list of NDCPassengerData
      Throws:
      NDCException - the ndc exception
    • setAlaCarteOfferType

      protected void setAlaCarteOfferType(OfferType offerType, List<ConfiguredAccommodationModel> configuredAccommodations, TransportOfferingData transportOfferingData, List<TravellerData> travellers, String routeCode)
      Sets ala carte offer type.
      Parameters:
      offerType - the offer type
      configuredAccommodations - the configured accommodations
      transportOfferingData - the transport offering data
      travellers - the travellers
      routeCode - the route code
    • createTaxSummary

      protected void createTaxSummary(TaxSummaryType taxSummaryType, List<de.hybris.platform.jalo.order.price.TaxInformation> taxInformations, de.hybris.platform.jalo.order.price.PriceInformation priceInformation)
      Create tax summary.
      Parameters:
      taxSummaryType - the tax summary type
      taxInformations - the tax informations
      priceInformation - the price information
    • setEligibilityType

      protected void setEligibilityType(TransportOfferingData transportOfferingData, List<TravellerData> travellers, ALaCarteOfferItemType aLaCarteOfferItemType)
      Sets eligibility type.
      Parameters:
      transportOfferingData - the transport offering data
      travellers - the travellers
      aLaCarteOfferItemType - the a la carte offer item type
    • getNdcAccommodationMapService

      protected NDCAccommodationMapService getNdcAccommodationMapService()
      Gets ndc accommodation map service.
      Returns:
      the ndc accommodation map service
    • setNdcAccommodationMapService

      public void setNdcAccommodationMapService(NDCAccommodationMapService ndcAccommodationMapService)
      Sets ndc accommodation map service.
      Parameters:
      ndcAccommodationMapService - the ndc accommodation map service
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Gets travel commerce price facade.
      Returns:
      the travel commerce price facade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Sets travel commerce price facade.
      Parameters:
      travelCommercePriceFacade - the travel commerce price facade
    • getTravelCommercePriceService

      protected TravelCommercePriceService getTravelCommercePriceService()
      Gets travel commerce price service.
      Returns:
      the travel commerce price service
    • setTravelCommercePriceService

      public void setTravelCommercePriceService(TravelCommercePriceService travelCommercePriceService)
      Sets travel commerce price service.
      Parameters:
      travelCommercePriceService - the travel commerce price service
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configuration service
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configuration service
    • getNdcOfferItemIDCodeGenerator

      protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getNdcOfferItemIDCodeGenerator()
      Gets ndc offer item id code generator.
      Returns:
      the ndc offer item id code generator
    • setNdcOfferItemIDCodeGenerator

      public void setNdcOfferItemIDCodeGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator ndcOfferItemIDCodeGenerator)
      Sets ndc offer item id code generator.
      Parameters:
      ndcOfferItemIDCodeGenerator - the ndc offer item id code generator
    • getNdcOfferFacade

      protected NDCOfferFacade getNdcOfferFacade()
      Gets ndc offer facade.
      Returns:
      the ndc offer facade
    • setNdcOfferFacade

      public void setNdcOfferFacade(NDCOfferFacade ndcOfferFacade)
      Sets ndc offer facade.
      Parameters:
      ndcOfferFacade - the ndc offer facade