Interface QuoteCartValidationStrategy

    • 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 compare
        order2 - 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