Interface QuoteCartValidationStrategy
- All Known Implementing Classes:
DefaultQuoteCartValidationStrategy
public interface QuoteCartValidationStrategy
Strategy to help validate if quote related cart is modified or not compared to the quote
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(AbstractOrderModel order1, AbstractOrderModel order2) Verifies that there are no differences in
1) Total Price
2) Total Discounts
3) Order Entries and Quantities
for the given abstract orders.
-
Method Details
-
validate
Verifies that there are no differences in
1) Total Price
2) Total Discounts
3) Order Entries and Quantities
for the given abstract orders.- Parameters:
order1- abstract order to compareorder2- abstract order to compare- Returns:
- true if there are no differences in the inspected attributes between the two orders, false otherwise
- Throws:
IllegalArgumentException- if any of the abstract orders is null
-