| Modifier and Type | Method and Description |
|---|---|
protected Converter<PromotionResultModel,PromotionResultData> |
AbstractOrderPopulator.getPromotionResultConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionResultPopulator.populate(PromotionResultModel source,
PromotionResultData target) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderPopulator.setPromotionResultConverter(Converter<PromotionResultModel,PromotionResultData> promotionResultConverter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<PromotionResultModel> |
PromotionsPopulator.filter(java.util.List<PromotionResultModel> results,
AbstractPromotionModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PromotionsPopulator.addDescriptions(java.util.List<java.lang.String> descriptions,
java.util.List<PromotionResultModel> promotionResults) |
protected java.util.List<PromotionResultModel> |
PromotionsPopulator.filter(java.util.List<PromotionResultModel> results,
AbstractPromotionModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<PromotionResultModel> |
AbstractOrderModel.getAllPromotionResults()
Generated method - Getter of the
AbstractOrder.allPromotionResults attribute defined at extension promotions. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderModel.setAllPromotionResults(java.util.Set<PromotionResultModel> value)
Generated method - Setter of
AbstractOrder.allPromotionResults attribute defined at extension promotions. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultAddCouponActionStrategy.apply(AbstractRuleActionRAO action) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.Set<java.lang.String>> |
DefaultCouponCodeRetrievalStrategy.getCouponCodesFromPromotion(PromotionResultModel promotionResult) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultOrderAdjustTotalActionStrategy.apply(AbstractRuleActionRAO action)
Creates a
PromotionResultModel if the parameter action is of type DiscountRAO the discount is
added to corresponding to the action Order model. |
java.util.List<PromotionResultModel> |
DefaultShippingActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
ShipmentRAO Delivery options set to corresponding fields of Order
model. |
java.util.List<PromotionResultModel> |
DefaultOrderEntryAdjustActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DiscountRAO and is applied to Order Entry the discount is added to
corresponding Order Entry model. |
java.util.List<PromotionResultModel> |
DefaultPotentialPromotionMessageActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DisplayMessageRAO PromotionResultModel for potential promotion message
is created. |
java.util.List<PromotionResultModel> |
DefaultAddProductToCartActionStrategy.apply(AbstractRuleActionRAO action)
If the parameter action is of type
DiscountRAO and is applied to Order Entry the discount is added to
corresponding Order Entry model. |
| Modifier and Type | Method and Description |
|---|---|
protected RuleBasedOrderAddProductActionModel |
DefaultAddProductToCartActionStrategy.createOrderAddProductAction(AbstractRuleActionRAO action,
int quantity,
ProductModel product,
PromotionResultModel promoResult) |
protected RuleBasedOrderAdjustTotalActionModel |
DefaultOrderAdjustTotalActionStrategy.createOrderAdjustTotalAction(PromotionResultModel promoResult,
DiscountRAO discountRao) |
protected RuleBasedOrderEntryAdjustActionModel |
DefaultOrderEntryAdjustActionStrategy.createOrderEntryAdjustAction(PromotionResultModel promoResult,
AbstractRuleActionRAO action,
AbstractOrderEntryModel entry,
java.math.BigDecimal discountAmount) |
protected A |
AbstractRuleActionStrategy.createPromotionAction(PromotionResultModel promotionResult,
AbstractRuleActionRAO action)
Creates an instance of the configured
promotionAction (which is a subtype of RuleBasedPromotionActionModel,
sets a new unique UUID, sets this strategy's id, marks the action as
applied, attaches the given promotionResult and tries to lookup the rule which created the given
AbstractRuleActionRAO. |
protected long |
DefaultOrderEntryAdjustActionStrategy.getConsumedQuantity(PromotionResultModel promoResult)
Sums up quantities of all consumed entries of given order entry.
|
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionActionService.createPromotionResult(AbstractRuleActionRAO action)
Creates a
PromotionResultModel object for the given AbstractRuleActionRAO. |
| Modifier and Type | Method and Description |
|---|---|
default RuleParameterData |
PromotionMessageParameterResolutionStrategy.getReplacedParameter(RuleParameterData paramToReplace,
PromotionResultModel promotionResult,
java.lang.Object actualValueAsObject)
returns
RuleParameterData created from given RuleParameterData with replaced actual value. |
java.lang.Object |
PromotionMessageParameterResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale)
resolves the given
RuleParameterData into a displayable Object. |
void |
PromotionActionService.recalculateFiredPromotionMessage(PromotionResultModel promoResult)
Recalculates promotion fired message and stores it in provided
PromotionResultModel. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.Set<java.lang.String>> |
CouponCodeRetrievalStrategy.getCouponCodesFromPromotion(PromotionResultModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.Set<java.lang.String>> |
NoOpCouponCodeRetrievalStrategy.getCouponCodesFromPromotion(PromotionResultModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
DefaultPromotionActionService.createPromotionResult(AbstractRuleActionRAO actionRao) |
protected PromotionResultModel |
DefaultPromotionActionService.findExistingPromotionResultModel(AbstractRuleEngineRuleModel rule,
AbstractOrderModel order)
Tries to find an existing promotion result that has been fired by the same rule as the given rule.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultPromotionEngineResultService.getFiredOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionEngineResultService.getFiredProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionEngineResultService.getPotentialOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionEngineResultService.getPotentialProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultPromotionEngineResultService.apply(PromotionResultModel promotionResult) |
long |
DefaultPromotionEngineResultService.getConsumedCount(PromotionResultModel promotionResult,
boolean paramBoolean) |
boolean |
DefaultPromotionEngineResultService.getCouldFire(PromotionResultModel promotionResult) |
java.util.Optional<java.util.Set<java.lang.String>> |
DefaultPromotionEngineResultService.getCouponCodesFromPromotion(PromotionResultModel promotionResult) |
java.lang.String |
DefaultPromotionEngineResultService.getDescription(PromotionResultModel promotionResult) |
java.lang.String |
DefaultPromotionEngineResultService.getDescription(PromotionResultModel promotionResult,
java.util.Locale locale) |
boolean |
DefaultPromotionEngineResultService.getFired(PromotionResultModel promotionResult) |
protected java.lang.String |
DefaultPromotionEngineResultService.getMessageWithResolvedParameters(PromotionResultModel promotionResult,
java.util.Locale locale,
java.lang.String messageFiredPositional,
java.util.List<RuleParameterData> parameters)
Formats message by resolving placeholders defined in the message.
|
RuleParameterData |
DefaultObjectResolutionStrategy.getReplacedParameter(RuleParameterData paramToReplace,
PromotionResultModel promotionResult,
java.lang.Object actualValueAsObject) |
RuleParameterData |
DefaultCurrencyAmountResolutionStrategy.getReplacedParameter(RuleParameterData paramToReplace,
PromotionResultModel promotionResult,
java.lang.Object actualValueAsObject) |
double |
DefaultPromotionEngineResultService.getTotalDiscount(PromotionResultModel promotionResult) |
java.lang.String |
DefaultListResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale) |
java.lang.String |
DefaultObjectResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale) |
java.lang.String |
DefaultProductResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale) |
java.lang.String |
DefaultCategoryResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale) |
java.lang.String |
DefaultCurrencyAmountResolutionStrategy.getValue(RuleParameterData data,
PromotionResultModel promotionResult,
java.util.Locale locale) |
boolean |
DefaultPromotionEngineResultService.isApplied(PromotionResultModel promotionResult) |
boolean |
DefaultPromotionEngineResultService.isAppliedToOrder(PromotionResultModel promotionResult) |
protected java.lang.String |
DefaultListResolutionStrategy.itemValue(PromotionResultModel promotionResult,
java.util.Locale locale,
RuleParameterData newData) |
protected void |
DefaultPromotionEngineResultService.logUnresolvedPlaceholder(PromotionResultModel promotionResult,
java.lang.String resolvedMessage) |
void |
DefaultPromotionActionService.recalculateFiredPromotionMessage(PromotionResultModel promoResult) |
protected RuleParameterData |
DefaultPromotionEngineResultService.replaceRuleParameterValue(PromotionResultModel promotionResult,
java.util.Map<java.lang.String,java.lang.Object> messageActionValues,
RuleParameterData parameter) |
protected java.lang.Object |
DefaultPromotionEngineResultService.resolveParameterValue(RuleParameterData parameter,
PromotionResultModel promotionResult,
java.util.Locale locale) |
protected void |
DefaultPromotionActionService.setRuleModuleVersionIfApplicable(PromotionResultModel promoResult,
AbstractRuleEngineRuleModel rule) |
boolean |
DefaultPromotionEngineResultService.undo(PromotionResultModel promotionResult) |
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionResultMockBuilder.createSampleFiredPromotionResult(PromotionResultService promotionResultServiceMock) |
PromotionResultModel |
PromotionResultMockBuilder.createSamplePotentialPromotionResult(PromotionResultService promotionResultServiceMock) |
PromotionResultModel |
PromotionResultMockBuilder.createSamplePotentialPromotionResultForOrderEntry(AbstractOrderEntryModel orderEntry) |
PromotionResultModel |
PromotionResultMockBuilder.createSamplePromotionResult(PromotionResultService promotionResultServiceMock) |
PromotionResultModel |
PromotionResultMockBuilder.createSamplePromotionResultForOrder() |
PromotionResultModel |
PromotionResultMockBuilder.createSamplePromotionResultForOrderEntry(AbstractOrderEntryModel orderEntry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PromotionResultMockBuilder.associateToOrderEntry(PromotionResultModel promotionResultModel,
AbstractOrderEntryModel orderEntry) |
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionEngineResult.getPromotionResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionEngineResult.setPromotionResult(PromotionResultModel promotionResult) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<PromotionResultModel> |
NonDiscountPromotionEngineResultsClassifyingPopulator.collectConvertedPromotionsResult(OrderLevelPromotionEngineResults orderDiscountPromotions,
java.util.List<OrderEntryLevelPromotionEngineResults> orderEntryDiscountPromotions) |
protected java.util.Set<PromotionResultModel> |
NonDiscountPromotionEngineResultsClassifyingPopulator.collectNonDiscountPromotions(java.util.Set<PromotionResultModel> allPromotions,
OrderLevelPromotionEngineResults orderDiscountPromotions,
java.util.List<OrderEntryLevelPromotionEngineResults> orderEntryDiscountPromotions) |
protected Converter<PromotionResultModel,PromotionEngineResult> |
NonDiscountPromotionEngineResultsClassifyingPopulator.getPromotionResultConverter() |
protected Populator<PromotionResultModel,PromotionEngineResult> |
DiscountValuePromotionEngineResultPopulator.getPromotionResultPopulator() |
protected Populator<PromotionResultModel,PromotionEngineResult> |
AbstractPromotionEngineResultPopulator.getPromotionResultPopulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionEngineResultPopulator.populate(PromotionResultModel source,
PromotionEngineResult target)
Populate the target instance with values from the source instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<PromotionResultModel> |
NonDiscountPromotionEngineResultsClassifyingPopulator.collectNonDiscountPromotions(java.util.Set<PromotionResultModel> allPromotions,
OrderLevelPromotionEngineResults orderDiscountPromotions,
java.util.List<OrderEntryLevelPromotionEngineResults> orderEntryDiscountPromotions) |
protected PromotionEngineResult |
AbstractPromotionEngineResultPopulator.createPromotionEngineResult(DiscountValue discountValue,
java.util.List<PromotionResultModel> promotionResults) |
void |
NonDiscountPromotionEngineResultsClassifyingPopulator.setPromotionResultConverter(Converter<PromotionResultModel,PromotionEngineResult> promotionResultConverter) |
void |
DiscountValuePromotionEngineResultPopulator.setPromotionResultPopulator(Populator<PromotionResultModel,PromotionEngineResult> promotionResultPopulator) |
void |
AbstractPromotionEngineResultPopulator.setPromotionResultPopulator(Populator<PromotionResultModel,PromotionEngineResult> promotionResultPopulator) |
| Modifier and Type | Method and Description |
|---|---|
AbstractOrderModel |
PromotionResultUtils.getOrder(PromotionResultModel promotionResult) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
PromotionResultService.getFiredOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion)
Return a list of results for promotions that fired and did not consume products.
|
java.util.List<PromotionResultModel> |
PromotionResultService.getFiredProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion)
Return a list of results for promotions that fired and consumed products.
|
java.util.List<PromotionResultModel> |
PromotionResultService.getPotentialOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion)
Return a list of results for potential promotions that fired and did not consume products and have been applied.
|
java.util.List<PromotionResultModel> |
PromotionResultService.getPotentialProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion)
Return a list of results for potential promotions that fired and consumed products and have been applied.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PromotionResultService.apply(PromotionResultModel promotionResult)
Apply all of the actions that this promotion generated to the order.
|
long |
PromotionResultService.getConsumedCount(PromotionResultModel promotionResult,
boolean includeCouldFirePromotions)
Get the total number of items consumed by this promotion.
|
boolean |
PromotionResultService.getCouldFire(PromotionResultModel promotionResult)
Is this a potential result.
|
java.util.Optional<java.util.Set<java.lang.String>> |
PromotionResultService.getCouponCodesFromPromotion(PromotionResultModel promotionResult)
Return give way coupon code for promotion.
|
java.lang.String |
PromotionResultService.getDescription(PromotionResultModel promotionResult)
Get the description of this promotion result.
|
java.lang.String |
PromotionResultService.getDescription(PromotionResultModel promotionResult,
java.util.Locale locale)
Get the description of this promotion result.
|
boolean |
PromotionResultService.getFired(PromotionResultModel promotionResult)
Returns true if the promotion fired and has produced a result.
|
double |
PromotionResultService.getTotalDiscount(PromotionResultModel promotionResult)
Get the total value of all discounts in this result.
|
boolean |
PromotionResultService.isApplied(PromotionResultModel promotionResult)
Returns true if the promotion fired and all of its actions have been applied to the order.
|
boolean |
PromotionResultService.isAppliedToOrder(PromotionResultModel promotionResult)
Returns true if the promotion fired and all of its actions have been applied to the order.
|
boolean |
PromotionResultService.undo(PromotionResultModel promotionResult)
Undo all of the changes that this promotion made to the order.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PromotionResultModel> |
DefaultPromotionResultService.getFiredOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionResultService.getFiredProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionResultService.getPotentialOrderPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
java.util.List<PromotionResultModel> |
DefaultPromotionResultService.getPotentialProductPromotions(PromotionOrderResults promoResult,
AbstractPromotionModel promotion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultPromotionResultService.apply(PromotionResultModel promotionResult) |
long |
DefaultPromotionResultService.getConsumedCount(PromotionResultModel promotionResult,
boolean includeCouldFirePromotions) |
boolean |
DefaultPromotionResultService.getCouldFire(PromotionResultModel promotionResult) |
java.util.Optional<java.util.Set<java.lang.String>> |
DefaultPromotionResultService.getCouponCodesFromPromotion(PromotionResultModel promotionResult) |
java.lang.String |
DefaultPromotionResultService.getDescription(PromotionResultModel promotionResult) |
java.lang.String |
DefaultPromotionResultService.getDescription(PromotionResultModel promotionResult,
java.util.Locale locale) |
boolean |
DefaultPromotionResultService.getFired(PromotionResultModel promotionResult) |
protected PromotionResult |
AbstractPromotionsService.getResult(PromotionResultModel result) |
double |
DefaultPromotionResultService.getTotalDiscount(PromotionResultModel promotionResult) |
boolean |
DefaultPromotionResultService.isApplied(PromotionResultModel promotionResult) |
boolean |
DefaultPromotionResultService.isAppliedToOrder(PromotionResultModel promotionResult) |
boolean |
DefaultPromotionResultService.undo(PromotionResultModel promotionResult) |
| Modifier and Type | Class and Description |
|---|---|
class |
CachedPromotionResultModel
Generated model class for type CachedPromotionResult first defined at extension promotions.
|
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionOrderEntryConsumedModel.getPromotionResult()
Generated method - Getter of the
PromotionOrderEntryConsumed.promotionResult attribute defined at extension promotions. |
PromotionResultModel |
AbstractPromotionActionModel.getPromotionResult()
Generated method - Getter of the
AbstractPromotionAction.promotionResult attribute defined at extension promotions. |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionOrderEntryConsumedModel.setPromotionResult(PromotionResultModel value)
Generated method - Setter of
PromotionOrderEntryConsumed.promotionResult attribute defined at extension promotions. |
void |
AbstractPromotionActionModel.setPromotionResult(PromotionResultModel value)
Generated method - Setter of
AbstractPromotionAction.promotionResult attribute defined at extension promotions. |
| Modifier and Type | Method and Description |
|---|---|
PromotionResultModel |
PromotionResultResource.getPromotionResultModel()
Convenience method which just delegates to
AbstractResource.getResourceValue() |
protected PromotionResultModel |
PromotionResultResource.readResource(java.lang.String resourceId)
Gets the
PromotionResultModel resource which is addressed by current resource request. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<PromotionResultModel> |
PromotionResultsResource.getPromotionResultsCollection()
Convenience method which just delegates to
AbstractResource.getResourceValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionResultResource.setPromotionResultModel(PromotionResultModel value)
Convenience method which just delegates to
#setResourceValue(PromotionResultModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionResultsResource.setPromotionResultsCollection(java.util.Collection<PromotionResultModel> value)
Convenience method which just delegates to
#setResourceValue(Collection) |
Copyright © 2018 SAP SE. All Rights Reserved.