Class BookingBreakdownHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BookingBreakdownDatagetBookingBreakdown(OfferRequestData offerRequestData, OfferPricingInfoData offerPricingInfoData, OfferGroupData offerGroupData) Creates and returns the bookingBreakdownData for the given offerPricingInfoDataprotected List<OfferPricingInfoData>getFilteredOfferPricingInfos(List<OfferPricingInfoData> offerPricingInfos) Returns the list of offerPricingInfos of PER_BOOKING @{link AddToCartCriteriaType}protected IntegergetQuantity(OfferRequestData offerRequestData, String offerGroupCode, String productCode) Returns the quantity of the selected products for the given productCodevoidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Handle method.Methods inherited from class de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
createPriceData, getPassengerFareData, getPriceDataFactory, getPriceInformation, getPriceInformationFromTransportOfferingOrSector, getProductService, getTravelCommercePriceFacade, getTravelCommercePriceService, setPriceDataFactory, setProductService, setTravelCommercePriceFacade, setTravelCommercePriceService
-
Constructor Details
-
BookingBreakdownHandler
public BookingBreakdownHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- 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
-