Class FareTotalsHandler
java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.FareTotalsHandler
- All Implemented Interfaces:
FareSearchHandler
- Direct Known Subclasses:
DealFareTotalsHandler
Concrete implementation of the
FareSearchHandler interface. Handler is responsible for populating the totals
on FareSelectionData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.i18n.CommonI18NServiceDeprecated.Deprecated since version 3.0.protected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected BigDecimalgetIncludedAncillariesTotalPrice(ItineraryPricingInfoData itineraryPricingInfo) protected de.hybris.platform.commercefacades.product.PriceDataFactoryDeprecated.Deprecated since version 3.0.protected TravelCommercePriceFacadevoidhandle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Handle method.protected voidpopulatePerPax(ItineraryPricingInfoData itineraryPricingInfo) Method takes the Itinerary Pricing Info.protected voidpopulateTotals(ItineraryPricingInfoData itineraryPricingInfo) Method takes the Itinerary Pricing Info and calculates and sets the BaseFare and TotalFare.voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Deprecated.Deprecated since version 3.0.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Deprecated.Deprecated since version 3.0.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
-
Constructor Details
-
FareTotalsHandler
public FareTotalsHandler()
-
-
Method Details
-
handle
public void handle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Description copied from interface:FareSearchHandlerHandle method.- Specified by:
handlein interfaceFareSearchHandler- Parameters:
scheduledRoutes- the scheduled routesfareSearchRequestData- the fare search request datafareSelectionData- the fare selection data
-
populateTotals
Method takes the Itinerary Pricing Info and calculates and sets the BaseFare and TotalFare.- Parameters:
itineraryPricingInfo-
-
getIncludedAncillariesTotalPrice
protected BigDecimal getIncludedAncillariesTotalPrice(ItineraryPricingInfoData itineraryPricingInfo) -
populatePerPax
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.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
- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-