Class OriginDestinationBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OriginDestinationBreakdownHandler
- All Implemented Interfaces:
AncillarySearchHandler
- Direct Known Subclasses:
ShoppingOriginDestinationBreakdownHandler
public class OriginDestinationBreakdownHandler
extends AbstractBreakdownHandler
implements AncillarySearchHandler
Handler class to populate the BookingBreakdown in the offerPricingInfos of the originDestinationOfferInfoData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BookingBreakdownDatagetBookingBreakdown(OfferPricingInfoData offerPricingInfoData, OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo) Creates and returns the bookingBreakdown for the given offerPricingInfoDataprotected List<OfferPricingInfoData>getFilteredOfferPricingInfo(List<OfferPricingInfoData> offerPricingInfos) Returns the list of offerPricingInfoData filtered by PER_LEGAddToCartCriteriaTypeprotected de.hybris.platform.jalo.order.price.PriceInformationgetOfferPricingInformation(OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPricingInfoData) Returns the offerPricingInformation for the given offerPricingInfoDataprotected de.hybris.platform.jalo.order.price.PriceInformationgetOfferPricingInformation(String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPricingInfoData) Deprecated.protected IntegergetQuantity(OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData originDestinationOfferInfoData, String productCode) Returns the quantity 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
-
OriginDestinationBreakdownHandler
public OriginDestinationBreakdownHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getFilteredOfferPricingInfo
protected List<OfferPricingInfoData> getFilteredOfferPricingInfo(List<OfferPricingInfoData> offerPricingInfos) Returns the list of offerPricingInfoData filtered by PER_LEGAddToCartCriteriaType- Parameters:
offerPricingInfos-- Returns:
-
getBookingBreakdown
protected BookingBreakdownData getBookingBreakdown(OfferPricingInfoData offerPricingInfoData, OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo) Creates and returns the bookingBreakdown for the given offerPricingInfoData- Parameters:
offerPricingInfoData-offerRequestData-offerGroupCode-odOfferInfo-- Returns:
-
getQuantity
protected Integer getQuantity(OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData originDestinationOfferInfoData, String productCode) Returns the quantity for the given productCode- Parameters:
offerRequestData-offerGroupCode-originDestinationOfferInfoData-productCode-- Returns:
-
getOfferPricingInformation
@Deprecated protected de.hybris.platform.jalo.order.price.PriceInformation getOfferPricingInformation(String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPricingInfoData) Deprecated.since version 4 usegetOfferPricingInformation(odOfferInfo,offerPricingInfoData)Returns the offerPricingInformation for the given offerPricingInfoData- Parameters:
offerGroupCode-odOfferInfo-offerPricingInfoData-- Returns:
-
getOfferPricingInformation
protected de.hybris.platform.jalo.order.price.PriceInformation getOfferPricingInformation(OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPricingInfoData) Returns the offerPricingInformation for the given offerPricingInfoData- Parameters:
odOfferInfo-offerPricingInfoData-- Returns:
-
getOfferPricingInformation(odOfferInfo,offerPricingInfoData)