Class DefaultQuoteCartValidationStrategy

    • Constructor Detail

      • DefaultQuoteCartValidationStrategy

        public DefaultQuoteCartValidationStrategy()
    • Method Detail

      • validate

        public boolean validate​(AbstractOrderModel source,
                                AbstractOrderModel target)
        Description copied from interface: QuoteCartValidationStrategy
        Verifies that there are no differences in

        1) Total Price
        2) Total Discounts
        3) Order Entries and Quantities

        for the given abstract orders.
        Specified by:
        validate in interface QuoteCartValidationStrategy
        Parameters:
        source - abstract order to compare
        target - abstract order to compare
        Returns:
        true if there are no differences in the inspected attributes between the two orders, false otherwise