Class DefaultOrderCreatePaymentInfoHandler

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

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

    • DefaultOrderCreatePaymentInfoHandler

      public DefaultOrderCreatePaymentInfoHandler()
  • Method Details

    • handle

      public void handle(Map<String,List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) throws NDCException
      This handler creates the PaymentInformation associated to the order. Even if we can pay with more than one credit card, the order can have only one paymentInfo, hence we save only the first payment method found.
      Specified by:
      handle in interface OrderCreateHandler
      Parameters:
      ndcOfferDataMap - the ndcOfferDataMap
      order - the order
      orderCreateRQ - the orderCreateRQ
      Throws:
      NDCException
    • populateNDCPaymentCardInfo

      protected void populateNDCPaymentCardInfo(PaymentInfoType paymentInfoType, NDCPaymentCardInfoData ndcPaymentCardInfo) throws NDCException
      Populate ndc payment card info.
      Parameters:
      paymentInfoType - the payment info type
      ndcPaymentCardInfo - the ndc payment card info
      Throws:
      NDCException - the ndc exception
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Gets model service.
      Returns:
      the model service
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Parameters:
      modelService - the model service
    • getCommerceCardTypeService

      protected de.hybris.platform.commerceservices.order.CommerceCardTypeService getCommerceCardTypeService()
      Gets commerce card type service.
      Returns:
      the commerce card type service
    • setCommerceCardTypeService

      public void setCommerceCardTypeService(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService)
      Sets commerce card type service.
      Parameters:
      commerceCardTypeService - the commerce card type service
    • getPaymentService

      protected de.hybris.platform.payment.PaymentService getPaymentService()
      Gets payment service.
      Returns:
      the payment service
    • setPaymentService

      public void setPaymentService(de.hybris.platform.payment.PaymentService paymentService)
      Sets payment service.
      Parameters:
      paymentService - the payment service
    • getCommerceCheckoutService

      protected de.hybris.platform.commerceservices.order.CommerceCheckoutService getCommerceCheckoutService()
      Gets commerce checkout service.
      Returns:
      the commerce checkout service
    • setCommerceCheckoutService

      public void setCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService)
      Sets commerce checkout service.
      Parameters:
      commerceCheckoutService - the commerce checkout 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
    • getNdcPaymentFacade

      protected NDCPaymentFacade getNdcPaymentFacade()
      Gets ndc payment facade.
      Returns:
      the ndc payment facade
    • setNdcPaymentFacade

      public void setNdcPaymentFacade(NDCPaymentFacade ndcPaymentFacade)
      Sets ndc payment facade.
      Parameters:
      ndcPaymentFacade - the ndc payment facade