Interface AddFreeProductDiscountAction


  • @Deprecated(forRemoval=true,
                since="2005")
    public interface AddFreeProductDiscountAction
    Deprecated, for removal: This API element is subject to removal in a future version.
    not used since 6.2 release
    AddFreeProductDiscountAction class that adds order entry level discounts such that a given quantity of products are free
    • Method Detail

      • addDiscount

        java.util.List<DiscountRAO> addDiscount​(EntriesSelectionStrategyRPD entriesSelectionStrategyRPD,
                                                int quantity,
                                                int consumed,
                                                RuleEngineResultRAO result,
                                                java.lang.Object ruleContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Adds order level discounts to order entries contained within selection strategies. Strategies provide data used for selection of entries that will be discounted.
        Parameters:
        entriesSelectionStrategyRPD - Selection strategy holds information about which order entries should be discounted or consumed
        quantity - Number of free items that are discounted
        consumed - Number of entries that are consumed for each free item
        result - DiscountRAOs generated by the action and added to order
        ruleContext - an optional context object that can be used to provide additional information for the returned DiscountRAOs