Class DefaultOrderCreateAddPaymentHandler
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.order.handlers.impl.DefaultOrderCreateAddPaymentHandler
- All Implemented Interfaces:
OrderCreateHandler
The default
OrderCreateHandler to add payment to cart.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CCPaymentInfoDatacreatePaymentInfo(IATAOrderCreateRQ orderCreateRQ, PaymentInfoType paymentInfoType) Create payment info cc payment info data.protected de.hybris.platform.order.CartServiceGets cart service.protected de.hybris.platform.commercefacades.order.CheckoutFacadeGets checkout facade.protected de.hybris.platform.commerceservices.order.CommerceCardTypeServiceGets commerce card type service.protected NDCOrderServiceGets ndc order service.voidhandle(Map<String, List<NDCOfferData>> ndcOfferDataMap, CartModel cartModel, IATAOrderCreateRQ orderCreateRQ) Handler method for creating an orderModel from a list of ndcOfferData.voidsetCartService(de.hybris.platform.order.CartService cartService) Sets cart service.voidsetCheckoutFacade(de.hybris.platform.commercefacades.order.CheckoutFacade checkoutFacade) Sets checkout facade.voidsetCommerceCardTypeService(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService) Sets commerce card type service.voidsetNdcOrderService(NDCOrderService ndcOrderService) Sets ndc order service.
-
Constructor Details
-
DefaultOrderCreateAddPaymentHandler
public DefaultOrderCreateAddPaymentHandler()
-
-
Method Details
-
handle
public void handle(Map<String, List<NDCOfferData>> ndcOfferDataMap, CartModel cartModel, IATAOrderCreateRQ orderCreateRQ) throws NDCException, MerchandisingRequestExceptionDescription copied from interface:OrderCreateHandlerHandler method for creating an orderModel from a list of ndcOfferData. These offers could be either NDCCarrierOfferData or NDCAlaCarteOfferData.- Specified by:
handlein interfaceOrderCreateHandler- Parameters:
ndcOfferDataMap- the map of NdcOfferData type and list of offers of that type.cartModel- the cart modelorderCreateRQ- the orderCreateRQ- Throws:
NDCException- the ndc exceptionMerchandisingRequestException
-
createPaymentInfo
protected CCPaymentInfoData createPaymentInfo(IATAOrderCreateRQ orderCreateRQ, PaymentInfoType paymentInfoType) throws NDCException Create payment info cc payment info data.- Parameters:
orderCreateRQ- the order create rqpaymentInfoType- 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
Gets ndc order service.- Returns:
- the ndc order service
-
setNdcOrderService
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
-