public interface CsPromotionService
| Modifier and Type | Method and Description |
|---|---|
List<WrappedPromotionResultModel> |
getAppliedPromotionResults(AbstractOrderModel cart,
boolean includeOrderPromotions,
boolean includeProductPromotions)
Get the applied order level promotions for the order.
|
List<CartLineItem> |
getOrderCombinedPromotionsAndEntries(AbstractOrderModel cart)
Gets the list of order entries and promotion results for a order.
|
List<WrappedPromotionResultModel> |
getPotentialOrderPromotionResults(AbstractOrderModel cart)
Get the potential order level promotions for the order.
|
List<WrappedPromotionModel> |
getProductPromotions(ProductModel product,
boolean evaluateRestrictions,
Date currentTime)
Get the available product promotions for a specific product
|
boolean |
isPromotionServiceAvailable()
Test if the promotions extension integration is available
|
AbstractItemModelReflectionWrapper |
unwrapPromotionTypedObject(TypedObject item)
Helper method to unwrap a TypedObject that contains a model item that should be reflection wrapped.
|
List<TypedObject> |
wrapInTypedObjects(List<? extends AbstractItemModelReflectionWrapper> list)
Helper method to convert promotion wrappers into TypedObject
|
boolean isPromotionServiceAvailable()
List<WrappedPromotionModel> getProductPromotions(ProductModel product, boolean evaluateRestrictions, Date currentTime)
product - The product to checkevaluateRestrictions - Flag to enable checking of promotion restrictions (set to true if you don't know)currentTime - The effective time to evaluate the promotions (can be null for current time)List<WrappedPromotionResultModel> getPotentialOrderPromotionResults(AbstractOrderModel cart)
cart - The orderList<WrappedPromotionResultModel> getAppliedPromotionResults(AbstractOrderModel cart, boolean includeOrderPromotions, boolean includeProductPromotions)
cart - The orderincludeOrderPromotions - Set to true to include order promotionsincludeProductPromotions - Set to true to include product promotionsList<CartLineItem> getOrderCombinedPromotionsAndEntries(AbstractOrderModel cart)
cart - The orderList<TypedObject> wrapInTypedObjects(List<? extends AbstractItemModelReflectionWrapper> list)
list - The list of wrappers to convertAbstractItemModelReflectionWrapper unwrapPromotionTypedObject(TypedObject item)
item - The TypedObject to unwrapCopyright © 2017 SAP SE. All Rights Reserved.