Interface NDCPaymentFacade

All Known Implementing Classes:
DefaultNDCPaymentFacade

public interface NDCPaymentFacade
The ndc 18.2 Payment Facade interface.
  • 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 order
      ndcOfferDataList - the ndc offer data list
      offerIdsAssociation - the offer ids association
      paymentInfoAmount - 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 order
      totalPaymentInfoAmount - 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 order
      orderEntries - the order entries
      paymentInfoAmount - the payment info amount
      isPayLater - true if orderCreate RQ does not have any payment info.
      Throws:
      NDCException - the ndc exception