Class DefaultOrderCreateAddPaymentHandler

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

public class DefaultOrderCreateAddPaymentHandler extends Object implements OrderCreateHandler
The default OrderCreateHandler to add payment to cart.
  • Constructor Details

    • DefaultOrderCreateAddPaymentHandler

      public DefaultOrderCreateAddPaymentHandler()
  • Method Details

    • handle

      public void handle(Map<String,List<NDCOfferData>> ndcOfferDataMap, CartModel cartModel, IATAOrderCreateRQ orderCreateRQ) throws NDCException, MerchandisingRequestException
      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
      MerchandisingRequestException
    • createPaymentInfo

      protected CCPaymentInfoData createPaymentInfo(IATAOrderCreateRQ orderCreateRQ, PaymentInfoType paymentInfoType) throws NDCException
      Create payment info cc payment info data.
      Parameters:
      orderCreateRQ - the order create rq
      paymentInfoType - the payment info type
      Returns:
      the cc payment info data
      Throws:
      NDCException - the ndc exception
    • getCheckoutFacade

      protected de.hybris.platform.commercefacades.order.CheckoutFacade getCheckoutFacade()
      Gets checkout facade.
      Returns:
      the checkout facade
    • setCheckoutFacade

      public void setCheckoutFacade(de.hybris.platform.commercefacades.order.CheckoutFacade checkoutFacade)
      Sets checkout facade.
      Parameters:
      checkoutFacade - the checkout facade
    • 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
    • getCartService

      protected de.hybris.platform.order.CartService getCartService()
      Gets cart service.
      Returns:
      the cart service
    • setCartService

      public void setCartService(de.hybris.platform.order.CartService cartService)
      Sets cart service.
      Parameters:
      cartService - the cart 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