Class ShoppingDealFareTotalsHandler
java.lang.Object
de.hybris.platform.shoppingfacades.fare.search.handlers.impl.ShoppingDealFareTotalsHandler
- All Implemented Interfaces:
ShoppingFareSearchHandler
Handler to populate totalFare for deals in the itinerary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BigDecimalcalculatePerPax(BigDecimal basePrice, BigDecimal totalTaxes, BigDecimal totalFees, BigDecimal discount) Calculates Per Passenger priceprotected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected BigDecimalgetIncludedAncillariesTotalPrice(ItineraryPricingInfoData itineraryPricingInfo) Add's Ancillaries TotalPriceprotected TravelCommercePriceFacadevoidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Handle methodprotected 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.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
-
Constructor Details
-
ShoppingDealFareTotalsHandler
public ShoppingDealFareTotalsHandler()
-
-
Method Details
-
handle
public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Description copied from interface:ShoppingFareSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFareSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messagefareSearchRequestData- 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) Add's Ancillaries TotalPrice- Parameters:
itineraryPricingInfo-- Returns:
-
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-
-
calculatePerPax
protected BigDecimal calculatePerPax(BigDecimal basePrice, BigDecimal totalTaxes, BigDecimal totalFees, BigDecimal discount) Calculates Per Passenger price- Parameters:
basePrice-totalTaxes-totalFees-discount-- Returns:
-
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
-