Class ReservationOfferPricingInfoHandler

java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractReservationOfferPricingInfoHandler
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationOfferPricingInfoHandler
All Implemented Interfaces:
ReservationHandler

public class ReservationOfferPricingInfoHandler extends AbstractReservationOfferPricingInfoHandler implements ReservationHandler
This handler is responsible for instantiating a list of Offer Pricing Infos for given leg which will contain summary of ancillaries selected by user. It populates the OfferPricingInfo of the ReservationData.
  • Constructor Details

    • ReservationOfferPricingInfoHandler

      public ReservationOfferPricingInfoHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel abstractOrderModel, ReservationData reservationData)
      Description copied from interface: ReservationHandler
      Handle method.
      Specified by:
      handle in interface ReservationHandler
      Parameters:
      abstractOrderModel - the abstract order model
      reservationData - the reservation data
    • createOfferPricingInfo

      protected List<OfferPricingInfoData> createOfferPricingInfo(List<AbstractOrderEntryModel> ancillaryEntries)
      Creates a list of offer pricing infos for the given ancillary entries.
      Parameters:
      ancillaryEntries - - ancillary entries for given Abstract Order and leg
      Returns:
      list of offer pricing info for traveller
    • createOfferPricingInfosForTravellerBreakdown

      protected void createOfferPricingInfosForTravellerBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry)
      Creates a list of offerPricingInfos for the travellerBreakdown for the given entry
      Parameters:
      offerPricingInfos - the list of offerPricingInfo to be populated
      entry - the abstractOrderEntry
    • createOfferPricingInfosForBookingBreakdown

      protected void createOfferPricingInfosForBookingBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry)
      Creates a list of offerPricingInfos for the bookingBreakdown for the given entry
      Parameters:
      offerPricingInfos - the list of offerPricingInfo to be populated
      entry - the abstractOrderEntry
    • createNewTravellerBreakdown

      protected TravellerBreakdownData createNewTravellerBreakdown(AbstractOrderEntryModel entry)
      Creates a new TravellerBreakdown instance
      Parameters:
      entry - - entry which needs to be included in traveller breakdown
      Returns:
      new traveller breakdown for traveller in the entry
    • getTraveller

      protected TravellerData getTraveller(AbstractOrderEntryModel entry)
      Finds requested travellerData
      Parameters:
      entry - - entry containing requested traveller
      Returns:
      traveller data matching traveller from the entry
    • createNewOfferPricingInfoForTravellerBreakdown

      protected OfferPricingInfoData createNewOfferPricingInfoForTravellerBreakdown(AbstractOrderEntryModel entry)
      Creates a new instance of OfferPricingInfo for a new ancillary product
      Parameters:
      entry - - new ancillary entry which needs to be translated into offer pricing info
      Returns:
      new offer pricing info containing information about current entry product
    • getTravellerDataConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> getTravellerDataConverter()
      Gets traveller data converter.
      Returns:
      the travellerDataConverter
    • setTravellerDataConverter

      public void setTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> travellerDataConverter)
      Sets traveller data converter.
      Parameters:
      travellerDataConverter - the travellerDataConverter to set