Class TravellerBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.TravellerBreakdownHandler
- All Implemented Interfaces:
AncillarySearchHandler
- Direct Known Subclasses:
ShoppingTravellerBreakdownHandler
public class TravellerBreakdownHandler
extends AbstractBreakdownHandler
implements AncillarySearchHandler
Handler class to populate TravellerBreakdownData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OfferPricingInfoData>getFilteredPricingInfos(OriginDestinationOfferInfoData odOfferInfo) Filters the offerGroups by the PER_LEG_PER_PAXAddToCartCriteriaTypeGets offer group to origin destination mapping.protected de.hybris.platform.jalo.order.price.PriceInformationgetOfferPricingInformation(OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo, String productCode) Gets offer pricing information.protected de.hybris.platform.jalo.order.price.PriceInformationgetOfferPricingInformation(String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode) Deprecated.protected List<TravellerBreakdownData>getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo) Gets traveller breakdown data.protected List<TravellerBreakdownData>getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo) Deprecated.deprecated since version 4.0, usegetTravellerBreakdownData(String, OfferRequestData, OfferGroupData, OriginDestinationOfferInfoData)protected List<TravellerData>getTravellerData(OfferRequestData offerRequestData, OriginDestinationOfferInfoData odOfferInfo) Method to get travellers data from ItineraryData of OfferRequestData which match to OriginDestinationOfferInfoDataprotected IntegergetTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo, String productCode) Gets traveller quantity.protected IntegergetTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode) Deprecated.deprecated since version 4.0 usegetTravellerQuantity(OfferRequestData, TravellerData, OfferGroupData, OriginDestinationOfferInfoData, String)voidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Method to populate travellerBreakdown datavoidsetOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping) Sets offer group to origin destination mapping.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
-
TravellerBreakdownHandler
public TravellerBreakdownHandler()
-
-
Method Details
-
handle
Method to populate travellerBreakdown data- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getFilteredPricingInfos
protected List<OfferPricingInfoData> getFilteredPricingInfos(OriginDestinationOfferInfoData odOfferInfo) Filters the offerGroups by the PER_LEG_PER_PAXAddToCartCriteriaType- Parameters:
odOfferInfo- the od offer info- Returns:
- filtered pricing infos
-
getTravellerBreakdownData
@Deprecated protected List<TravellerBreakdownData> getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo) Deprecated.deprecated since version 4.0, usegetTravellerBreakdownData(String, OfferRequestData, OfferGroupData, OriginDestinationOfferInfoData)For each TravellerData in ItineraryData(represents travellers of the Itinerary), create TravellerBreakdownData as Get price for the Product in offer Set TravellerData in TravellerBreakdownData Determine the quantity of offer from the selectedOffers. Calculate and set PassengerFareData for the product in offer.- Parameters:
productCode- product in offerofferRequestData- OfferRequestDataofferGroupCode- category of product in offerodOfferInfo- OriginDestinationOfferInfoData- Returns:
- a list of TravellerBreakdownData.
-
getTravellerBreakdownData
protected List<TravellerBreakdownData> getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo) Gets traveller breakdown data.- Parameters:
productCode- the product codeofferRequestData- the offer request dataofferGroupData- the offer group dataodOfferInfo- the od offer info- Returns:
- traveller breakdown data
-
getTravellerData
protected List<TravellerData> getTravellerData(OfferRequestData offerRequestData, OriginDestinationOfferInfoData odOfferInfo) Method to get travellers data from ItineraryData of OfferRequestData which match to OriginDestinationOfferInfoData- Parameters:
offerRequestData- the offer request dataodOfferInfo- the od offer info- Returns:
- traveller data
-
getTravellerQuantity
@Deprecated protected Integer getTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode) Deprecated.deprecated since version 4.0 usegetTravellerQuantity(OfferRequestData, TravellerData, OfferGroupData, OriginDestinationOfferInfoData, String)This method determines the quantity of product in offer as if the product in offer is already selected by customer (either bundled or selected) then determine the quantity from SelectedOffers in offerRequestData. if no match found, then quantity is zero.- Parameters:
offerRequestData- OfferRequestDatatravellerData- TravellerDataofferGroupCode- category of product in offerodOfferInfo- OriginDestinationOfferInfoDataproductCode- product in offer- Returns:
- traveller quantity
-
getTravellerQuantity
protected Integer getTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo, String productCode) Gets traveller quantity.- Parameters:
offerRequestData- the offer request datatravellerData- the traveller dataofferGroupData- the offer group dataodOfferInfo- the od offer infoproductCode- the product code- Returns:
- traveller quantity
-
getOfferPricingInformation
@Deprecated protected de.hybris.platform.jalo.order.price.PriceInformation getOfferPricingInformation(String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode) Deprecated.deprecated since version 4.0 usegetOfferPricingInformation(OfferGroupData, OriginDestinationOfferInfoData, String)This method determines the PriceInformation of the product in offer as If the Product category (offerGroupCode) is configured at RouteLevel, check if there is a priceRow at TravelRoute and offer, if not, check if there is a priceRow at TransportOffering and offer. if not, check if there is a priceRow for travelSector and offer If the Product category (offerGroupCode) is configured at TransportOfferingLevel, check if there is a priceRow at TransportOffering and offer. if not, check if there is a priceRow for travelSector and offer. In either cases, if we do not find a price, offer default price.- Parameters:
offerGroupCode- the offer group codeodOfferInfo- the od offer infoproductCode- the product codeofferGroupCode-odOfferInfo-productCode-- Returns:
-
getOfferPricingInformation
protected de.hybris.platform.jalo.order.price.PriceInformation getOfferPricingInformation(OfferGroupData offerGroupData, OriginDestinationOfferInfoData odOfferInfo, String productCode) Gets offer pricing information.- Parameters:
offerGroupData- the offer group dataodOfferInfo- the od offer infoproductCode- the product code- Returns:
- offer pricing information
-
getOfferGroupToOriginDestinationMapping
Gets offer group to origin destination mapping.- Returns:
- the offerGroupToOriginDestinationMapping
-
setOfferGroupToOriginDestinationMapping
public void setOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping) Sets offer group to origin destination mapping.- Parameters:
offerGroupToOriginDestinationMapping- the offerGroupToOriginDestinationMapping to set
-
getOfferPricingInformation(OfferGroupData, OriginDestinationOfferInfoData, String)