Class PROSFareDetailsHandler

java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSFareDetailsHandler
All Implemented Interfaces:
ShoppingFlightSearchHandler

public class PROSFareDetailsHandler extends Object implements ShoppingFlightSearchHandler
The type Pros Fare details handler populates the fare details in the flight search response.
  • Constructor Details

    • PROSFareDetailsHandler

      public PROSFareDetailsHandler()
  • Method Details

    • handle

      public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String,TransportOfferingData> transportOfferingDataMap, Map<Integer,String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData)
      Description copied from interface: ShoppingFlightSearchHandler
      Handle method
      Specified by:
      handle in interface ShoppingFlightSearchHandler
      Parameters:
      searchResponseMessage - the search response message
      fareShopMessage - the fare shop message
      flightSearchResponseData - the flightSearchResponseData
      transportOfferingDataMap - the transportOfferingDataMap
      flightIdCodeMap - the flightIdCodeMap
      flightSearchRequestData - the flight search request data
    • populateFareBundles

      protected void populateFareBundles(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData, String username)
    • findBundleTemplate

      protected BundleTemplateModel findBundleTemplate(String shoppingFareReference, String apiUser, String bundleTypeCode)
      Find a fare product bundle template by bundleType, shopping reference code and api user.
      Parameters:
      shoppingFareReference - the shopping fare reference
      apiUser - the api user
      bundleTypeCode - the bundle type code
      Returns:
      the bundle template model
    • getBundleProductData

      protected void getBundleProductData(List<BasicProductData> basicProductDataList, BundleTemplateModel bundleTemplateModel)
      Get the bundle product data
      Parameters:
      basicProductDataList - list of product data
      bundleTemplateModel - bundle template
    • getCategories

      protected List<CategoryData> getCategories(Collection<CategoryModel> superCategories)
      Get the category data list
      Parameters:
      superCategories - collection of Categories of the product
      Returns:
      list of category data
    • populateFeeDetails

      protected void populateFeeDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData)
      Populate fee datails
      Parameters:
      prosSearchResponse - pros search response
      flightSearchResponseData - flight search response data
    • populateFareDetails

      protected void populateFareDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData)
      Populate the fare details
      Parameters:
      prosSearchResponse - pros search response
      flightSearchResponseData - flight search response data
    • getProsTravelBundleTemplateService

      protected PROSTravelBundleTemplateService getProsTravelBundleTemplateService()
      Get the PROS Travel Bundle Template Service
      Returns:
      pros travel bundle template service
    • setProsTravelBundleTemplateService

      public void setProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService)
      Set PROS Travel Bundle Template Service
      Parameters:
      prosTravelBundleTemplateService - the pros travel bundle template service
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Gets travel commerce price facade.
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

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

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

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configuration service