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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<DiscountValue>
getQuoteDiscountValues(AbstractOrderModel order)
Returns a list quote specific discounts for the given order.void
setQuoteDiscountValues(AbstractOrderModel order, java.util.List<DiscountValue> discountValues)
Sets quote specific discount values for the given order and sets the order's calculated flag to false.
-
-
-
Method Detail
-
getQuoteDiscountValues
java.util.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:
java.lang.IllegalArgumentException
- in the given order is null
-
setQuoteDiscountValues
void setQuoteDiscountValues(AbstractOrderModel order, java.util.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:
java.lang.IllegalArgumentException
- in case any of the parameters is null
-
-