Webiant Logo Webiant Logo
  1. No results found.

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

DiscountValidationResult.cs

namespace Nop.Services.Discounts;

/// 
/// Represents a result of discount validation
/// 
public partial class DiscountValidationResult
{
    public DiscountValidationResult()
    {
        Errors = new List();
    }

    /// 
    /// Gets or sets a value indicating whether discount is valid
    /// 
    public bool IsValid { get; set; }

    /// 
    /// Gets or sets the errors that a customer should see when entering a coupon code (in case if "IsValid" is set to "false")
    /// 
    public IList Errors { get; set; }
}