Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IDiscountRequirementRule.cs

using Nop.Services.Plugins;

namespace Nop.Services.Discounts;

/// 
/// Represents a discount requirement rule
/// 
public partial interface IDiscountRequirementRule : IPlugin
{
    /// 
    /// Check discount requirement
    /// 
    /// Object that contains all information required to check the requirement (Current customer, discount, etc)
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the result
    /// 
    Task CheckRequirementAsync(DiscountRequirementValidationRequest request);

    /// 
    /// Get URL for rule configuration
    /// 
    /// Discount identifier
    /// Discount requirement identifier (if editing)
    /// URL
    string GetConfigurationUrl(int discountId, int? discountRequirementId);
}