java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.FareTotalsHandler
All Implemented Interfaces:
FareSearchHandler
Direct Known Subclasses:
DealFareTotalsHandler

public class FareTotalsHandler extends Object implements FareSearchHandler
Concrete implementation of the FareSearchHandler interface. Handler is responsible for populating the totals on FareSelectionData
  • Constructor Details

    • FareTotalsHandler

      public FareTotalsHandler()
  • Method Details

    • handle

      public void handle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData)
      Description copied from interface: FareSearchHandler
      Handle method.
      Specified by:
      handle in interface FareSearchHandler
      Parameters:
      scheduledRoutes - the scheduled routes
      fareSearchRequestData - the fare search request data
      fareSelectionData - the fare selection data
    • populateTotals

      protected void populateTotals(ItineraryPricingInfoData itineraryPricingInfo)
      Method takes the Itinerary Pricing Info and calculates and sets the BaseFare and TotalFare.
      Parameters:
      itineraryPricingInfo -
    • getIncludedAncillariesTotalPrice

      protected BigDecimal getIncludedAncillariesTotalPrice(ItineraryPricingInfoData itineraryPricingInfo)
    • populatePerPax

      protected void populatePerPax(ItineraryPricingInfoData itineraryPricingInfo)
      Method takes the Itinerary Pricing Info. Calculates and sets Per Passenger Fare Value including base fare, taxes/fees, discounts.

      Price per passenger = Base price + Total Taxes + Total Fees - Discounts.

      Parameters:
      itineraryPricingInfo -
    • getPriceDataFactory

      @Deprecated protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
      the priceDataFactory
    • setPriceDataFactory

      @Deprecated public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      priceDataFactory - the priceDataFactory to set
    • getCommonI18NService

      @Deprecated protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
      the commonI18NService
    • setCommonI18NService

      @Deprecated public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      commonI18NService - the commonI18NService to set
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Parameters:
      configurationService - the configurationService to set
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Parameters:
      travelCommercePriceFacade - the travelCommercePriceFacade to set