| 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 |
|---|---|
PromotionOrderEntryConsumed |
GeneratedPromotionsManager.createPromotionOrderEntryConsumed(java.util.Map attributeValues) |
PromotionOrderEntryConsumed |
GeneratedPromotionsManager.createPromotionOrderEntryConsumed(SessionContext ctx,
java.util.Map attributeValues) |
PromotionOrderEntryConsumed |
PromotionsManager.createPromotionOrderEntryConsumed(SessionContext ctx,
java.lang.String code,
AbstractOrderEntry orderEntry,
long quantity)
Create a new
PromotionOrderEntryConsumed instance. |
PromotionOrderEntryConsumed |
CachingPromotionsManager.createPromotionOrderEntryConsumed(SessionContext ctx,
java.lang.String code,
AbstractOrderEntry orderEntry,
long quantity) |
PromotionOrderEntryConsumed |
PromotionsManager.createPromotionOrderEntryConsumed(SessionContext ctx,
java.lang.String code,
AbstractOrderEntry orderEntry,
long quantity,
double adjustedUnitPrice)
Create a new
PromotionOrderEntryConsumed instance. |
PromotionOrderEntryConsumed |
CachingPromotionsManager.createPromotionOrderEntryConsumed(SessionContext ctx,
java.lang.String code,
AbstractOrderEntry orderEntry,
long quantity,
double adjustedUnitPrice) |
protected static PromotionOrderEntryConsumed |
PromotionResult.deepCloneConsumedEntryAndAttachToOrder(SessionContext ctx,
PromotionOrderEntryConsumed source,
java.util.List<AbstractOrderEntry> allTargetEntries)
Clones a consumed order entry and attach it to an order entry from the list specified.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.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.
|
java.util.Collection<PromotionOrderEntryConsumed> |
GeneratedPromotionResult.getConsumedEntries()
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
java.util.Collection<PromotionOrderEntryConsumed> |
CachedPromotionResult.getConsumedEntries(SessionContext ctx) |
abstract java.util.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,
java.util.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(java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
abstract void |
GeneratedPromotionResult.setConsumedEntries(SessionContext ctx,
java.util.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 |
|---|---|
java.util.List<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.ConsumptionLogger.completeOperation(AbstractPromotion promotion,
boolean removeFromOrder) |
java.util.List<PromotionOrderEntryConsumed> |
PromotionOrderView.consume(SessionContext ctx,
long quantity)
Consume a specific quantity of products from this view.
|
java.util.List<PromotionOrderEntryConsumed> |
PromotionOrderView.consume(SessionContext ctx,
Product product,
long quantity)
Consume products from this view.
|
java.util.List<PromotionOrderEntryConsumed> |
PromotionOrderView.consumeFromHead(SessionContext ctx,
java.util.Comparator<PromotionOrderEntry> comparator,
long quantity)
Consume products from this view in the specified order.
|
java.util.List<PromotionOrderEntryConsumed> |
PromotionOrderView.consumeFromTail(SessionContext ctx,
java.util.Comparator<PromotionOrderEntry> comparator,
long quantity)
Consume products from this view in the reverse of the specfied order.
|
protected static java.util.List<PromotionOrderEntryConsumed> |
PromotionOrderView.doConsume(SessionContext ctx,
java.util.List<PromotionOrderEntry> workingEntries,
AbstractPromotion promotion,
long quantity) |
java.util.List<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.finishLoggingAndGetConsumed(AbstractPromotion promo,
boolean removeFromOrder)
Complete the logging operation and return a list of all order entry consumptions since logging began.
|
java.lang.Iterable<PromotionOrderEntryConsumed> |
PromotionEvaluationContext.ConsumptionLogger.getAllOperations()
Get every operation performed since the logger was created.
|
java.util.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 java.util.Collection<WrappedOrderEntry> |
PromotionOrderResults.findAllMatchingEntries(SessionContext ctx,
java.util.List<WrappedOrderEntry> wrappedEntries,
java.util.Collection<PromotionOrderEntryConsumed> consumedEntries) |
protected static void |
PromotionOrderResults.removeConsumedEntries(SessionContext ctx,
java.util.List<WrappedOrderEntry> wrappedEntries,
java.util.Collection<PromotionOrderEntryConsumed> consumedEntries) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Helper.adjustUnitPrices(SessionContext ctx,
PromotionEvaluationContext promoContext,
java.util.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 java.math.BigDecimal |
Helper.calculateOrderEntryAdjustedTotal(SessionContext ctx,
Currency currency,
java.util.List<PromotionOrderEntryConsumed> entries)
Helper method to calculate the sum of the AdjustedEntryPrice for each of the PromotionOrderEntryConsumed items.
|
Copyright © 2018 SAP SE. All Rights Reserved.