Interface NDCPaymentFacade
- All Known Implementing Classes:
DefaultNDCPaymentFacade
public interface NDCPaymentFacade
The ndc 18.2 Payment Facade interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePaymentTransaction(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount, boolean isPayLater) Create payment transactions from ndc offer data list.voidcreatePaymentTransactionsFromPaymentInfoNdcOfferDataAssociations(AbstractOrderModel order, List<NDCOfferData> ndcOfferDataList, List<String> offerIdsAssociation, BigDecimal paymentInfoAmount) Create payment transactions from payment info ndc offer data associations.voidpopulatePaymentInfo(AbstractOrderModel order, NDCPaymentCardInfoData ndcPaymentCardInfoData) Creates the creditCardPaymentInfo based on the information contained in the paymentInfos and set the paymentInfo in the cart.voidvalidateTotalOrderAmountAgainstPaymentInfo(AbstractOrderModel order, BigDecimal totalPaymentInfoAmount) Validates the total amount of the order against the paymentInfos.
-
Method Details
-
createPaymentTransactionsFromPaymentInfoNdcOfferDataAssociations
void createPaymentTransactionsFromPaymentInfoNdcOfferDataAssociations(AbstractOrderModel order, List<NDCOfferData> ndcOfferDataList, List<String> offerIdsAssociation, BigDecimal paymentInfoAmount) throws NDCException Create payment transactions from payment info ndc offer data associations.- Parameters:
order- the orderndcOfferDataList- the ndc offer data listofferIdsAssociation- the offer ids associationpaymentInfoAmount- the payment info amount- Throws:
NDCException- the ndc exception
-
validateTotalOrderAmountAgainstPaymentInfo
void validateTotalOrderAmountAgainstPaymentInfo(AbstractOrderModel order, BigDecimal totalPaymentInfoAmount) throws NDCException Validates the total amount of the order against the paymentInfos. Checks if there are orderEntries that are not linked to any paymentTransactions.- Parameters:
order- the ordertotalPaymentInfoAmount- the totalPaymentInfoAmount- Throws:
NDCException- the ndc exception
-
populatePaymentInfo
void populatePaymentInfo(AbstractOrderModel order, NDCPaymentCardInfoData ndcPaymentCardInfoData) throws NDCException Creates the creditCardPaymentInfo based on the information contained in the paymentInfos and set the paymentInfo in the cart.- Parameters:
order- the order- Throws:
NDCException- the ndc exception
-
createPaymentTransaction
void createPaymentTransaction(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount, boolean isPayLater) throws NDCException Create payment transactions from ndc offer data list.- Parameters:
order- the orderorderEntries- the order entriespaymentInfoAmount- the payment info amountisPayLater- true if orderCreate RQ does not have any payment info.- Throws:
NDCException- the ndc exception
-