Interface QuoteCartValidationStrategy
-
- All Known Implementing Classes:
DefaultC4cQuoteCartValidationStrategy,DefaultQuoteCartValidationStrategy,DefaultSapQuoteCartValidationStrategy
public interface QuoteCartValidationStrategyStrategy to help validate if quote related cart is modified or not compared to the quote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidate(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 Detail
-
validate
boolean validate(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.- 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:
java.lang.IllegalArgumentException- if any of the abstract orders is null
-
-