Class DefaultOrderCreateAddSolutionHandler

java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.order.handlers.impl.DefaultOrderCreateAddSolutionHandler
All Implemented Interfaces:
OrderCreateHandler

public class DefaultOrderCreateAddSolutionHandler extends Object implements OrderCreateHandler
The default implementation of OrderCreateHandler to add a solution to the cart.
  • Constructor Details

    • DefaultOrderCreateAddSolutionHandler

      public DefaultOrderCreateAddSolutionHandler()
  • Method Details

    • handle

      public void handle(Map<String,List<NDCOfferData>> ndcOfferDataMap, CartModel cartModel, IATAOrderCreateRQ orderCreateRQ) throws NDCException
      Description copied from interface: OrderCreateHandler
      Handler method for creating an orderModel from a list of ndcOfferData. These offers could be either NDCCarrierOfferData or NDCAlaCarteOfferData.
      Specified by:
      handle in interface OrderCreateHandler
      Parameters:
      ndcOfferDataMap - the map of NdcOfferData type and list of offers of that type.
      cartModel - the cart model
      orderCreateRQ - the orderCreateRQ
      Throws:
      NDCException - the ndc exception
    • createAddSolutionRequestData

      protected List<AddSolutionRequestData> createAddSolutionRequestData(List<NDCOfferData> ndcCarrierOffers) throws NDCException
      Create add solution request data list.
      Parameters:
      ndcCarrierOffers - the ndc carrier offers
      Returns:
      the list
      Throws:
      NDCException
    • populateSelectedFares

      protected void populateSelectedFares(List<SelectedFareData> selectedFares, NDCCarrierOfferItemData ndcCarrierOfferItem)
      Populate selected fares.
      Parameters:
      selectedFares - the selected fares
      ndcCarrierOfferItem - the ndc carrier offer item
    • populatePassengers

      protected void populatePassengers(List<PassengerData> passengers, NDCCarrierOfferItemData ndcCarrierOfferItem)
      Populate passengers.
      Parameters:
      passengers - the passengers
      ndcCarrierOfferItem - the ndc carrier offer item
    • populateOriginDestinationGroups

      protected void populateOriginDestinationGroups(List<OriginDestinationGroupData> originDestinationGroups, NDCCarrierOfferItemData ndcCarrierOfferItem) throws NDCException
      Populate origin destination groups.
      Parameters:
      originDestinationGroups - the origin destination groups
      ndcCarrierOfferItem - the ndc carrier offer item
      Throws:
      NDCException
    • getFareBundleCode

      protected String getFareBundleCode(String fareProductCode) throws NDCException
      Returns fare bundle code for fare product.
      Parameters:
      fareProductCode - the fare product code
      Returns:
      fare bundle code
      Throws:
      NDCException
    • getShoppingTravelCartFacade

      protected ShoppingTravelCartFacade getShoppingTravelCartFacade()
      Gets shopping travel cart facade.
      Returns:
      the shopping travel cart facade
    • setShoppingTravelCartFacade

      public void setShoppingTravelCartFacade(ShoppingTravelCartFacade shoppingTravelCartFacade)
      Sets shopping travel cart facade.
      Parameters:
      shoppingTravelCartFacade - the shopping travel cart facade
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
      Gets product service.
      Returns:
      the productService
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Sets product service.
      Parameters:
      productService - the productService to set
    • getTravelBundleTemplateService

      protected TravelBundleTemplateService getTravelBundleTemplateService()
      Gets travel bundle template service.
      Returns:
      the travel bundle template service
    • setTravelBundleTemplateService

      public void setTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService)
      Sets travel bundle template service.
      Parameters:
      travelBundleTemplateService - the travel bundle template service