Class DefaultOrderCreatePaymentInfoHandler
java.lang.Object
de.hybris.platform.ndc182facades.facades.order.handlers.impl.DefaultOrderCreatePaymentInfoHandler
- All Implemented Interfaces:
OrderCreateHandler
The ndc 18.2 implementation of of
OrderCreateHandler interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.commerceservices.order.CommerceCardTypeServiceGets commerce card type service.protected de.hybris.platform.commerceservices.order.CommerceCheckoutServiceGets commerce checkout service.protected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected NDCOrderServiceGets ndc order service.protected NDCPaymentFacadeGets ndc payment facade.protected de.hybris.platform.payment.PaymentServiceGets payment service.voidhandle(Map<String, List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) This handler creates the PaymentInformation associated to the order.protected voidpopulateNDCPaymentCardInfo(PaymentInfoType paymentInfoType, NDCPaymentCardInfoData ndcPaymentCardInfo) Populate ndc payment card info.voidsetCommerceCardTypeService(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService) Sets commerce card type service.voidsetCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService) Sets commerce checkout service.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetNdcOrderService(NDCOrderService ndcOrderService) Sets ndc order service.voidsetNdcPaymentFacade(NDCPaymentFacade ndcPaymentFacade) Sets ndc payment facade.voidsetPaymentService(de.hybris.platform.payment.PaymentService paymentService) Sets payment service.
-
Constructor Details
-
DefaultOrderCreatePaymentInfoHandler
public DefaultOrderCreatePaymentInfoHandler()
-
-
Method Details
-
handle
public void handle(Map<String, List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) throws NDCExceptionThis 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:
handlein interfaceOrderCreateHandler- Parameters:
ndcOfferDataMap- the ndcOfferDataMaporder- the orderorderCreateRQ- the orderCreateRQ- Throws:
NDCException
-
populateNDCPaymentCardInfo
protected void populateNDCPaymentCardInfo(PaymentInfoType paymentInfoType, NDCPaymentCardInfoData ndcPaymentCardInfo) throws NDCException Populate ndc payment card info.- Parameters:
paymentInfoType- the payment info typendcPaymentCardInfo- 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
Gets ndc order service.- Returns:
- the ndc order service
-
setNdcOrderService
Sets ndc order service.- Parameters:
ndcOrderService- the ndc order service
-
getNdcPaymentFacade
Gets ndc payment facade.- Returns:
- the ndc payment facade
-
setNdcPaymentFacade
Sets ndc payment facade.- Parameters:
ndcPaymentFacade- the ndc payment facade
-