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 Details

    • TravellerBreakdownHandler

      public TravellerBreakdownHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Method to populate travellerBreakdown data
      Specified by:
      handle in interface AncillarySearchHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data
    • getFilteredPricingInfos

      protected List<OfferPricingInfoData> getFilteredPricingInfos(OriginDestinationOfferInfoData odOfferInfo)
      Filters the offerGroups by the PER_LEG_PER_PAX AddToCartCriteriaType
      Parameters:
      odOfferInfo - the od offer info
      Returns:
      filtered pricing infos
    • getTravellerBreakdownData

      @Deprecated protected List<TravellerBreakdownData> getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo)
      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 offer
      offerRequestData - OfferRequestData
      offerGroupCode - category of product in offer
      odOfferInfo - 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 code
      offerRequestData - the offer request data
      offerGroupData - the offer group data
      odOfferInfo - 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 data
      odOfferInfo - the od offer info
      Returns:
      traveller data
    • getTravellerQuantity

      @Deprecated protected Integer getTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode)
      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 - OfferRequestData
      travellerData - TravellerData
      offerGroupCode - category of product in offer
      odOfferInfo - OriginDestinationOfferInfoData
      productCode - 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 data
      travellerData - the traveller data
      offerGroupData - the offer group data
      odOfferInfo - the od offer info
      productCode - the product code
      Returns:
      traveller quantity
    • getOfferPricingInformation

      @Deprecated protected de.hybris.platform.jalo.order.price.PriceInformation getOfferPricingInformation(String offerGroupCode, OriginDestinationOfferInfoData odOfferInfo, String productCode)
      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 code
      odOfferInfo - the od offer info
      productCode - the product code
      offerGroupCode -
      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 data
      odOfferInfo - the od offer info
      productCode - the product code
      Returns:
      offer pricing information
    • getOfferGroupToOriginDestinationMapping

      protected Map<String,String> 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