| Package | Description |
|---|---|
| de.hybris.platform.promotions.jalo | |
| de.hybris.platform.promotions.result | |
| de.hybris.platform.promotions.util |
| Modifier and Type | Class and Description |
|---|---|
class |
CachedPromotionOrderEntryConsumed |
class |
GeneratedCachedPromotionOrderEntryConsumed
Generated class for type
CachedPromotionOrderEntryConsumed. |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<PromotionOrderEntryConsumed> |
PromotionResult.deepCloneConsumedEntriesAndAttachToOrder(SessionContext ctx,
Order target)
Clones of the consumed order entries attached to this promotion result and attach them to order entries in the
specified order.
|
Collection<PromotionOrderEntryConsumed> |
GeneratedPromotionResult.getConsumedEntries()
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
Collection<PromotionOrderEntryConsumed> |
CachedPromotionResult.getConsumedEntries(SessionContext ctx) |
abstract Collection<PromotionOrderEntryConsumed> |
GeneratedPromotionResult.getConsumedEntries(SessionContext ctx)
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
| Modifier and Type | Method and Description |
|---|---|
void |
CachedPromotionResult.addConsumedEntry(SessionContext ctx,
PromotionOrderEntryConsumed poec) |
void |
PromotionResult.addConsumedEntry(SessionContext ctx,
PromotionOrderEntryConsumed poec)
Adds a consumed entry to the current result.
|
protected static PromotionOrderEntryConsumed |
PromotionResult.deepCloneConsumedEntryAndAttachToOrder(SessionContext ctx,
PromotionOrderEntryConsumed source,
List<AbstractOrderEntry> allTargetEntries)
Clones a consumed order entry and attach it to an order entry from the list specified.
|
void |
CachedPromotionResult.removeConsumedEntry(SessionContext ctx,
PromotionOrderEntryConsumed poec) |
void |
PromotionResult.removeConsumedEntry(SessionContext ctx,
PromotionOrderEntryConsumed poec)
Removes a consumed entry from the current result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GeneratedPromotionResult.setConsumedEntries(Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
abstract void |
GeneratedPromotionResult.setConsumedEntries(SessionContext ctx,
Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
| Modifier and Type | Method and Description |
|---|---|
PromotionOrderEntryConsumed |
PromotionOrderEntry.consume(SessionContext ctx,
AbstractPromotion promotion,
long quantity)
Inform the context that a promotion wishes to consume the specified property of.
|
| Modifier and Type | Method and Description |
|---|---|
List<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.ConsumptionLogger.completeOperation(AbstractPromotion promotion,
boolean removeFromOrder) |
List<PromotionOrderEntryConsumed> |
PromotionOrderView.consume(SessionContext ctx,
long quantity)
Consume a specific quantity of products from this view.
|
List<PromotionOrderEntryConsumed> |
PromotionOrderView.consume(SessionContext ctx,
Product product,
long quantity)
Consume products from this view.
|
List<PromotionOrderEntryConsumed> |
PromotionOrderView.consumeFromHead(SessionContext ctx,
Comparator<PromotionOrderEntry> comparator,
long quantity)
Consume products from this view in the specified order.
|
List<PromotionOrderEntryConsumed> |
PromotionOrderView.consumeFromTail(SessionContext ctx,
Comparator<PromotionOrderEntry> comparator,
long quantity)
Consume products from this view in the reverse of the specfied order.
|
protected static List<PromotionOrderEntryConsumed> |
PromotionOrderView.doConsume(SessionContext ctx,
List<PromotionOrderEntry> workingEntries,
AbstractPromotion promotion,
long quantity) |
List<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.finishLoggingAndGetConsumed(AbstractPromotion promo,
boolean removeFromOrder)
Complete the logging operation and return a list of all order entry consumptions since logging began.
|
Iterable<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.ConsumptionLogger.getAllOperations()
Get every operation performed since the logger was created.
|
List<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.ConsumptionLogger.getHistory() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
WrappedOrderEntry.consumePromotionOrderEntryConsumed(SessionContext ctx,
PromotionOrderEntryConsumed poec) |
protected boolean |
WrappedOrderEntry.isLegacyPromotion(PromotionOrderEntryConsumed poec)
Returns false if the Promotion of the Promotion Result is/extends one from promotionengineservices.
|
void |
PromotionEvaluationContext.ConsumptionLogger.logOperation(PromotionOrderEntryConsumed entry) |
| Modifier and Type | Method and Description |
|---|---|
protected static Collection<WrappedOrderEntry> |
PromotionOrderResults.findAllMatchingEntries(SessionContext ctx,
List<WrappedOrderEntry> wrappedEntries,
Collection<PromotionOrderEntryConsumed> consumedEntries) |
protected static void |
PromotionOrderResults.removeConsumedEntries(SessionContext ctx,
List<WrappedOrderEntry> wrappedEntries,
Collection<PromotionOrderEntryConsumed> consumedEntries) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Helper.adjustUnitPrices(SessionContext ctx,
PromotionEvaluationContext promoContext,
List<PromotionOrderEntryConsumed> consumedEntries,
double targetTotal,
double originalTotal)
Adjust the unit prices of the PromotionOrderEntryConsumed items specified to match the target total
Applies unit price adjustments to the PromotionOrderEntryConsumed items to take the total value of the items from
the originalTotal to the targetTotal specified.
|
protected static BigDecimal |
Helper.calculateOrderEntryAdjustedTotal(SessionContext ctx,
Currency currency,
List<PromotionOrderEntryConsumed> entries)
Helper method to calculate the sum of the AdjustedEntryPrice for each of the PromotionOrderEntryConsumed items.
|
Copyright © 2017 SAP SE. All Rights Reserved.