Interface NDCOrderService
- All Known Implementing Classes:
DefaultNDCOrderService
public interface NDCOrderService
The ndc 18.2 Order Service interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetOriginalOrderCode(AbstractOrderModel orderModel) Gets original order code.booleanisAmendedOrderEntry(AbstractOrderEntryModel orderEntry) Checks if the order entry has amend status equal to NEW or CHANGED.isAmendmentOrder(AbstractOrderModel orderModel) Is amendment order boolean.voidvalidatePaymentAgainstOrderEntries(CartModel cartModel, BigDecimal paymentAmount) Validates the amount of the payment info against the total amount of the order entries associated to it.voidvalidatePaymentInfoAgainstOrderEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount) Validates the amount of the payment info against the total amount of the order entries associated to it.
-
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 orderorderEntries- the order entriespaymentInfoAmount- 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 modelpaymentAmount- the payment amount- Throws:
NDCException- the ndc exception
-
isAmendedOrderEntry
Checks if the order entry has amend status equal to NEW or CHANGED.- Parameters:
orderEntry- the order entry- Returns:
- the boolean
-
isAmendmentOrder
Is amendment order boolean.- Parameters:
orderModel- the order model- Returns:
- the boolean
-
getOriginalOrderCode
Gets original order code.- Parameters:
orderModel- the order model- Returns:
- the original order code
-