public class DefaultQuoteCartValidationStrategy extends java.lang.Object implements QuoteCartValidationStrategy
QuoteCartValidationStrategy.| Constructor and Description |
|---|
DefaultQuoteCartValidationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareEntries(java.util.List<AbstractOrderEntryModel> sourceEntries,
java.util.List<AbstractOrderEntryModel> targetEntries) |
boolean |
validate(AbstractOrderModel source,
AbstractOrderModel target)
Verifies that there are no differences in
1) Total Price 2) Total Discounts 3) Order Entries and Quantities for the given abstract orders. |
public boolean validate(AbstractOrderModel source, AbstractOrderModel target)
QuoteCartValidationStrategyvalidate in interface QuoteCartValidationStrategysource - abstract order to comparetarget - abstract order to compareprotected boolean compareEntries(java.util.List<AbstractOrderEntryModel> sourceEntries, java.util.List<AbstractOrderEntryModel> targetEntries)
Copyright © 2018 SAP SE. All Rights Reserved.