Interface OrderQuoteDiscountValuesAccessor

All Known Implementing Classes:
DefaultOrderQuoteDiscountValuesAccessor

public interface OrderQuoteDiscountValuesAccessor
Strategy that provides read and write access to quote specific discounts of an order.
  • Method Details

    • getQuoteDiscountValues

      List<DiscountValue> getQuoteDiscountValues(AbstractOrderModel order)
      Returns a list quote specific discounts for the given order.
      Parameters:
      order - the order to return quote discount values for.
      Returns:
      a list of quote specific discount values
      Throws:
      IllegalArgumentException - in the given order is null
    • setQuoteDiscountValues

      void setQuoteDiscountValues(AbstractOrderModel order, List<DiscountValue> discountValues)
      Sets quote specific discount values for the given order and sets the order's calculated flag to false. The change is not persisted.
      Parameters:
      order - the order to set quote discount values for.
      discountValues - the list of discount values to set
      Throws:
      IllegalArgumentException - in case any of the parameters is null