Class DealPTCWasRateHandler

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

public class DealPTCWasRateHandler extends TaxHandler implements FareSearchHandler
Concrete implementation of the FareSearchHandler interface. This handler is responsible for populating the wasRate value of each PTCFareBreakdownData for every ItineraryPricingInfoData.
  • Constructor Details

    • DealPTCWasRateHandler

      public DealPTCWasRateHandler()
  • 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
      Overrides:
      handle in class TaxHandler
      Parameters:
      scheduledRoutes - the scheduled routes
      fareSearchRequestData - the fare search request data
      fareSelectionData - the fare selection data
    • calculateWasPriceForPTCs

      protected void calculateWasPriceForPTCs(List<String> transportFacilityCodes, List<String> countryCodes, ItineraryPricingInfoData itineraryPricingInfoData)
      Calculates the wasFare for each ptcFareBreakdownData, based on the full price of the products included.
      Parameters:
      transportFacilityCodes - as the transportFacilityCodes
      countryCodes - as the countryCodes
      itineraryPricingInfoData - as the itineraryPricingInfoData
    • getTaxesForProduct

      protected List<TaxData> getTaxesForProduct(ProductData productData, double basePrice, List<String> transportFacilityCodes, List<String> countryCodes, String passengerType, String currencyIso)
      Returns the list of TaxData for the given parameters
      Parameters:
      productData - as the productData
      basePrice - as the basePrice
      transportFacilityCodes - as the transportFacilityCodes
      countryCodes - as the countryCodes
      passengerType - as the passengerType
      currencyIso - as the currencyIso
      Returns:
      the list of TaxData