| Modifier and Type | Method and Description |
|---|---|
java.util.List<OrderDiscount> |
Order.getDiscounts()
Returns all discounts attached to this order.
|
java.util.Map<OrderDiscount,Money> |
Order.getTotalDiscounts()
Calculates totals of all discounts assigned to this order separately.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Order.addDiscount(int index,
OrderDiscount discount)
Assigns a discount to this order at a speific position.
|
void |
Order.addDiscount(OrderDiscount discount)
Assigns a discount to this order.
|
void |
Order.addDiscounts(OrderDiscount... discounts)
Assigns multiple discounts to this order.
|
protected Money |
Order.calculateOrderDiscount(Money currentValue,
OrderDiscount discount)
Calculates order discount
|
void |
Order.removeDiscount(OrderDiscount orderDiscount)
Removes a discount from this order.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Order.addDiscounts(java.util.List<OrderDiscount> discounts)
Assigns multiple discounts to this order.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MinimumAmountValidationStrategy.isOrderLowerLimitValid(Order cart,
OrderDiscount discount)
Checks if the subtotal is valid after application of the Discount to the Cart.
|
| Modifier and Type | Method and Description |
|---|---|
protected OrderDiscount |
DefaultRuleEngineCalculationService.createOrderDiscount(Order cart,
boolean absolute,
java.math.BigDecimal amount)
Creates an OrderDiscount based on the given values and adds it to the given
cart. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultMinimumAmountValidationStrategy.isOrderLowerLimitValid(Order order,
OrderDiscount discount) |
| Modifier and Type | Method and Description |
|---|---|
protected OrderDiscount |
AbstractOrderRaoToOrderConverter.convertToOrderDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
Copyright © 2018 SAP SE. All Rights Reserved.