namespace Grand.Business.Core.Utilities.Catalog;

/// <summary>
///     Represents a result of discount validation
/// </summary>
public class DiscountValidationResult
{
    /// <summary>
    ///     Gets or sets a value that indicates if discount is valid
    /// </summary>
    public bool IsValid { get; set; }

    /// <summary>
    ///     Gets or sets an error for a customer that should be visible when a coupon code is entered (in case if "IsValid" is
    ///     set to "false")
    /// </summary>
    public string UserErrorResource { get; set; }

    /// <summary>
    ///     Gets or sets a coupon code value
    /// </summary>
    public string CouponCode { get; set; }
}