Webiant Logo Webiant Logo
  1. No results found.

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

SampleCustomer.cs

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

namespace Nop.Services.Installation.SampleData;

/// 
/// Represents a sample customer
/// 
public partial class SampleCustomer : SampleAddress
{
    /// 
    /// Gets or sets a value indicating whether the customer is active
    /// 
    public bool Active { get; set; } = true;

    /// 
    /// Gets or sets customers role system names
    /// 
    public List CustomerRoleSystemNames { get; set; } = new();

    /// 
    /// Gets or sets the password
    /// 
    public string Password { get; set; }

    /// 
    /// Gets or sets the password format
    /// 
    [JsonConverter(typeof(StringEnumConverter))]
    public PasswordFormat PasswordFormat { get; set; }

    /// 
    /// Gets or sets the password salt
    /// 
    public string PasswordSalt { get; set; } = string.Empty;
}