Class DefaultOrderCreateOrderEntriesHandler

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

public class DefaultOrderCreateOrderEntriesHandler extends Object implements OrderCreateHandler
The ndc 18.2 implementation of of OrderCreateHandler interface.
  • Constructor Details

    • DefaultOrderCreateOrderEntriesHandler

      public DefaultOrderCreateOrderEntriesHandler()
  • Method Details

    • handle

      public void handle(Map<String,List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) throws NDCException
      This handler creates all the order entries by applying a strategy based on the type of the ndcOfferData. The first entries to be added must be of the type NDCCarrierOfferData, since we need to add the bundles before the ancillaries.
      Specified by:
      handle in interface OrderCreateHandler
      Parameters:
      ndcOfferDataMap - the ndcOfferDataMap
      order - the order
      orderCreateRQ - the orderCreateRQ
      Throws:
      NDCException
    • getOrderCreateOrderEntriesStrategyMap

      protected Map<String,OrderCreateOrderEntriesStrategy> getOrderCreateOrderEntriesStrategyMap()
      Gets order create order entries strategy map.
      Returns:
      the order create order entries strategy map
    • setOrderCreateOrderEntriesStrategyMap

      public void setOrderCreateOrderEntriesStrategyMap(Map<String,OrderCreateOrderEntriesStrategy> orderCreateOrderEntriesStrategyMap)
      Sets order create order entries strategy map.
      Parameters:
      orderCreateOrderEntriesStrategyMap - the order create order entries strategy map
    • getCalculationService

      protected de.hybris.platform.order.CalculationService getCalculationService()
      Gets calculation service.
      Returns:
      the calculation service
    • setCalculationService

      public void setCalculationService(de.hybris.platform.order.CalculationService calculationService)
      Sets calculation service.
      Parameters:
      calculationService - the calculation service
    • getNdcOrderService

      protected NDCOrderService getNdcOrderService()
      Gets ndc order service.
      Returns:
      the ndc order service
    • setNdcOrderService

      public void setNdcOrderService(NDCOrderService ndcOrderService)
      Sets ndc order service.
      Parameters:
      ndcOrderService - the ndc order service