java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.AbstractFareInfoHandler
de.hybris.platform.travelfacades.fare.search.handlers.impl.DealFareInfoHandler
All Implemented Interfaces:
FareSearchHandler

public class DealFareInfoHandler extends AbstractFareInfoHandler
Concrete implementation of the FareSearchHandler interface. Handler is responsible for populating the Fare Prices for scheduled route and populates the Passenger breakdown prices on FareSelectionData
  • Constructor Details

    • DealFareInfoHandler

      public DealFareInfoHandler()
  • Method Details

    • populateProductPricesAndSort

      protected void populateProductPricesAndSort(PricedItineraryData pricedItinerary, ItineraryPricingInfoData itineraryPricingInfoData)
      Description copied from class: AbstractFareInfoHandler
      Method to populate the price information for all the fare products and ancillary products. The retrieved products are then sorted using strategy.
      Specified by:
      populateProductPricesAndSort in class AbstractFareInfoHandler
      Parameters:
      pricedItinerary - the priced itinerary
      itineraryPricingInfoData - the itinerary pricing info data
    • populateProductPricesForOptions

      protected void populateProductPricesForOptions(List<? extends ProductData> productList, String transportOfferingCode, String sectorCode, String routeCode, BundleTemplateModel bundleTemplate)
      Description copied from class: AbstractFareInfoHandler
      This method populates the price information for all the fare products and ancillary products. The prices are searched in the order of transportoffering, sector, route and default price. The first available price will be set to the product.
      Specified by:
      populateProductPricesForOptions in class AbstractFareInfoHandler
      Parameters:
      productList - the product list
      transportOfferingCode - the transport offering code
      sectorCode - the sector code
      routeCode - the route code
      bundleTemplate - the bundle template
    • populatePTCFareBreakDownData

      protected void populatePTCFareBreakDownData(ItineraryPricingInfoData itineraryPricingInfoData, FareSearchRequestData fareSearchRequestData)
      Description copied from class: AbstractFareInfoHandler
      This method populates the fare information (base fare) per passenger, for every itinerary and pricing point, e.g. economy, economy plus.
      Overrides:
      populatePTCFareBreakDownData in class AbstractFareInfoHandler
      Parameters:
      itineraryPricingInfoData - the itinerary pricing info data
      fareSearchRequestData - the fare search request data
    • getTotalWasRateFromFareAndAncillaryProducts

      protected double getTotalWasRateFromFareAndAncillaryProducts(TravelBundleTemplateData bundleTemplateData, FareProductData fareProductData)
      Returns the value of the wasRate calculated from Fare products and Ancillary products
      Parameters:
      bundleTemplateData - as the bundleTemplateData
      fareProductData - as the selectedFareProductData
      Returns:
      the double value of the total wasRate
    • getTransportOfferingFacade

      protected TransportOfferingFacade getTransportOfferingFacade()
      Gets transport offering facade.
      Returns:
      the transportOfferingFacade
    • setTransportOfferingFacade

      public void setTransportOfferingFacade(TransportOfferingFacade transportOfferingFacade)
      Sets transport offering facade.
      Parameters:
      transportOfferingFacade - the transportOfferingFacade to set