Webiant Logo Webiant Logo
  1. No results found.

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

SampleDiscount.cs

using Newtonsoft.Json;
using Nop.Core.Domain.Discounts;
using Newtonsoft.Json.Converters;

namespace Nop.Services.Installation.SampleData;

/// 
/// Represents a sample discount
/// 
public partial class SampleDiscount
{
    /// 
    /// Gets or sets the name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets a value indicating whether to use percentage
    /// 
    public bool UsePercentage { get; set; }

    /// 
    /// Gets or sets the discount percentage
    /// 
    public decimal DiscountPercentage { get; set; }

    /// 
    /// Gets or sets the discount amount
    /// 
    public decimal DiscountAmount { get; set; }

    /// 
    /// Gets or sets a value indicating whether discount requires coupon code
    /// 
    public bool RequiresCouponCode { get; set; }

    /// 
    /// Gets or sets the coupon code
    /// 
    public string CouponCode { get; set; }

    /// 
    /// Gets or sets a value indicating whether the discount is active
    /// 
    public bool IsActive { get; set; }

    /// 
    /// Gets or sets the discount type
    /// 
    [JsonConverter(typeof(StringEnumConverter))]
    public DiscountType DiscountType { get; set; }

    /// 
    /// Gets or sets the discount limitation
    /// 
    [JsonConverter(typeof(StringEnumConverter))]
    public DiscountLimitationType DiscountLimitation { get; set; }
}