Interface AddProductToCartRAOAction


  • public interface AddProductToCartRAOAction
    AddProductToCartRAOAction adds a product 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 added
        productCode - code of a product to add
        quantity - quantity of product items to add
        triggeringEntry - order entry which triggered the rule
        triggeringEntryQuantity - quantity of triggering entry to consume
        result - the result rao
        ruleContext - 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 added
        productCode - code of a product to add
        quantity - quantity of product items to add
        strategies - the selection strategies containing the order entries
        result - the result rao
        ruleContext - an optional context object that can be used to provide additional information for the returned DiscountRAO