Class ReservationPricingInfoOfferBreakdownHandler

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

public class ReservationPricingInfoOfferBreakdownHandler extends AbstractOfferBreakdownHandler implements ReservationHandler
This handler is responsible for creating an overview of ancillaries from Abstract Order with an interpretation of whether it is included ini bundle or added manually by customer. It populates the OfferBreakdowns of the ReservationPricingInfo.
  • Constructor Details

    • ReservationPricingInfoOfferBreakdownHandler

      public ReservationPricingInfoOfferBreakdownHandler()
  • 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
    • createOfferBreakdowns

      protected List<OfferBreakdownData> createOfferBreakdowns(AbstractOrderModel abstractOrderModel, int originDestinationRefNumber)
      Creates a list of Offer Breakdowns for each ancillary product
      Parameters:
      abstractOrderModel - the abstract order model
      originDestinationRefNumber - the origin destination ref number
      Returns:
      list of offer breakdowns
    • isAncillaryEntry

      protected boolean isAncillaryEntry(AbstractOrderEntryModel entry)
      Checks if the given abstractOrderEntry is an ancillary entry.
      Parameters:
      entry - the entry
      Returns:
      true if the abstractOrderEntry is an ancillary entry, false otherwise
    • getNotAncillaryProductTypes

      protected List<ProductType> getNotAncillaryProductTypes()
      Gets not ancillary product types.
      Returns:
      the not ancillary product types
    • setNotAncillaryProductTypes

      public void setNotAncillaryProductTypes(List<ProductType> notAncillaryProductTypes)
      Sets not ancillary product types.
      Parameters:
      notAncillaryProductTypes - the not ancillary product types
    • getProductTypeInstanceMap

      protected Map<String,ProductType> getProductTypeInstanceMap()
      Gets the product type instance map.
      Returns:
      the productTypeInstanceMap
    • setProductTypeInstanceMap

      public void setProductTypeInstanceMap(Map<String,ProductType> productTypeInstanceMap)
      Sets the product type instance map.
      Parameters:
      productTypeInstanceMap - the productTypeInstanceMap to set