java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.BookingBreakdownHandler
All Implemented Interfaces:
AncillarySearchHandler

public class BookingBreakdownHandler extends AbstractBreakdownHandler implements AncillarySearchHandler
Handler class to populate the BookingBreakdown for the OfferResponseData.
  • Constructor Details

    • BookingBreakdownHandler

      public BookingBreakdownHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Description copied from interface: AncillarySearchHandler
      Handle method.
      Specified by:
      handle in interface AncillarySearchHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data
    • getFilteredOfferPricingInfos

      protected List<OfferPricingInfoData> getFilteredOfferPricingInfos(List<OfferPricingInfoData> offerPricingInfos)
      Returns the list of offerPricingInfos of PER_BOOKING @{link AddToCartCriteriaType}
      Parameters:
      offerPricingInfos - as the input offerPricingInfos to be filtered
      Returns:
      the list of PER_BOOKING offerPricingInfos
    • getBookingBreakdown

      protected BookingBreakdownData getBookingBreakdown(OfferRequestData offerRequestData, OfferPricingInfoData offerPricingInfoData, OfferGroupData offerGroupData)
      Creates and returns the bookingBreakdownData for the given offerPricingInfoData
      Parameters:
      offerRequestData -
      offerPricingInfoData -
      offerGroupData -
      Returns:
      the bookingBreakdownData
    • getQuantity

      protected Integer getQuantity(OfferRequestData offerRequestData, String offerGroupCode, String productCode)
      Returns the quantity of the selected products for the given productCode
      Parameters:
      offerRequestData -
      offerGroupCode -
      productCode -
      Returns:
      the quantity of the selected products for the given productCode