Interface NDCOrderService

All Known Implementing Classes:
DefaultNDCOrderService

public interface NDCOrderService
The ndc 18.2 Order Service interface.
  • Method Details

    • validatePaymentInfoAgainstOrderEntries

      void validatePaymentInfoAgainstOrderEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount) throws NDCException
      Validates the amount of the payment info against the total amount of the order entries associated to it.
      Parameters:
      order - the order
      orderEntries - the order entries
      paymentInfoAmount - the payment info amount
      Throws:
      NDCException - the ndc exception
    • validatePaymentAgainstOrderEntries

      void validatePaymentAgainstOrderEntries(CartModel cartModel, BigDecimal paymentAmount) throws NDCException
      Validates the amount of the payment info against the total amount of the order entries associated to it.
      Parameters:
      cartModel - the cart model
      paymentAmount - the payment amount
      Throws:
      NDCException - the ndc exception
    • isAmendedOrderEntry

      boolean isAmendedOrderEntry(AbstractOrderEntryModel orderEntry)
      Checks if the order entry has amend status equal to NEW or CHANGED.
      Parameters:
      orderEntry - the order entry
      Returns:
      the boolean
    • isAmendmentOrder

      Boolean isAmendmentOrder(AbstractOrderModel orderModel)
      Is amendment order boolean.
      Parameters:
      orderModel - the order model
      Returns:
      the boolean
    • getOriginalOrderCode

      String getOriginalOrderCode(AbstractOrderModel orderModel)
      Gets original order code.
      Parameters:
      orderModel - the order model
      Returns:
      the original order code