Class ShoppingDealFareTotalsHandler

java.lang.Object
de.hybris.platform.shoppingfacades.fare.search.handlers.impl.ShoppingDealFareTotalsHandler
All Implemented Interfaces:
ShoppingFareSearchHandler

public class ShoppingDealFareTotalsHandler extends Object implements ShoppingFareSearchHandler
Handler to populate totalFare for deals in the itinerary
  • Constructor Details

    • ShoppingDealFareTotalsHandler

      public ShoppingDealFareTotalsHandler()
  • Method Details

    • handle

      public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData)
      Description copied from interface: ShoppingFareSearchHandler
      Handle method
      Specified by:
      handle in interface ShoppingFareSearchHandler
      Parameters:
      searchResponseMessage - the search response message
      fareShopMessage - the fare shop message
      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)
      Add's Ancillaries TotalPrice
      Parameters:
      itineraryPricingInfo -
      Returns:
    • 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 -
    • 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

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

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