Interface AddProductToCartRAOAction
-
public interface AddProductToCartRAOAction
AddProductToCartRAOAction adds a product to the cart.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FreeProductRAO
addFreeProductsToCart(CartRAO cartRao, java.lang.String productCode, int quantity, OrderEntryRAO triggeringEntry, int triggeringEntryQuantity, RuleEngineResultRAO result, java.lang.Object ruleContext)
Adds free product items to the cart.FreeProductRAO
addFreeProductsToCart(CartRAO cartRao, java.lang.String productCode, int quantity, java.util.Collection<EntriesSelectionStrategyRPD> strategies, RuleEngineResultRAO result, java.lang.Object ruleContext)
Adds free product items to the cart.
-
-
-
Method Detail
-
addFreeProductsToCart
FreeProductRAO addFreeProductsToCart(CartRAO cartRao, java.lang.String productCode, int quantity, OrderEntryRAO triggeringEntry, int triggeringEntryQuantity, RuleEngineResultRAO result, java.lang.Object ruleContext)
Adds free product items to the cart.- Parameters:
cartRao
- the cartRao where a product is addedproductCode
- code of a product to addquantity
- quantity of product items to addtriggeringEntry
- order entry which triggered the ruletriggeringEntryQuantity
- quantity of triggering entry to consumeresult
- the result raoruleContext
- an optional context object that can be used to provide additional information for the returned DiscountRAO
-
addFreeProductsToCart
FreeProductRAO addFreeProductsToCart(CartRAO cartRao, java.lang.String productCode, int quantity, java.util.Collection<EntriesSelectionStrategyRPD> strategies, RuleEngineResultRAO result, java.lang.Object ruleContext)
Adds free product items to the cart.- Parameters:
cartRao
- the cartRao where a product is addedproductCode
- code of a product to addquantity
- quantity of product items to addstrategies
- the selection strategies containing the order entriesresult
- the result raoruleContext
- an optional context object that can be used to provide additional information for the returned DiscountRAO
-
-