Class DefaultOrderQuoteDiscountValuesAccessor
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultOrderQuoteDiscountValuesAccessor
-
- All Implemented Interfaces:
OrderQuoteDiscountValuesAccessor
public class DefaultOrderQuoteDiscountValuesAccessor extends java.lang.Object implements OrderQuoteDiscountValuesAccessor
Default implementation ofOrderQuoteDiscountValuesAccessortransforming the string representation of quote discounts to/from a list ofDiscountValue.
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderQuoteDiscountValuesAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DiscountValue>getQuoteDiscountValues(AbstractOrderModel order)Returns a list quote specific discounts for the given order.voidsetQuoteDiscountValues(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
public java.util.List<DiscountValue> getQuoteDiscountValues(AbstractOrderModel order)
Description copied from interface:OrderQuoteDiscountValuesAccessorReturns a list quote specific discounts for the given order.- Specified by:
getQuoteDiscountValuesin interfaceOrderQuoteDiscountValuesAccessor- Parameters:
order- the order to return quote discount values for.- Returns:
- a list of quote specific discount values
-
setQuoteDiscountValues
public void setQuoteDiscountValues(AbstractOrderModel order, java.util.List<DiscountValue> discountValues)
Description copied from interface:OrderQuoteDiscountValuesAccessorSets quote specific discount values for the given order and sets the order's calculated flag to false. The change is not persisted.- Specified by:
setQuoteDiscountValuesin interfaceOrderQuoteDiscountValuesAccessor- Parameters:
order- the order to set quote discount values for.discountValues- the list of discount values to set
-
-