Webiant Logo Webiant Logo
  1. No results found.

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

CustomerRoleModel.cs

using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Customers;

/// 
/// Represents a customer role model
/// 
public partial record CustomerRoleModel : BaseNopEntityModel
{
    #region Ctor

    public CustomerRoleModel()
    {
        TaxDisplayTypeValues = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.FreeShipping")]
    public bool FreeShipping { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.TaxExempt")]
    public bool TaxExempt { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.Active")]
    public bool Active { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.IsSystemRole")]
    public bool IsSystemRole { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.SystemName")]
    public string SystemName { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.EnablePasswordLifetime")]
    public bool EnablePasswordLifetime { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.OverrideTaxDisplayType")]
    public bool OverrideTaxDisplayType { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.DefaultTaxDisplayType")]
    public int DefaultTaxDisplayTypeId { get; set; }

    public IList TaxDisplayTypeValues { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.PurchasedWithProduct")]
    public int PurchasedWithProductId { get; set; }

    [NopResourceDisplayName("Admin.Customers.CustomerRoles.Fields.PurchasedWithProduct")]
    public string PurchasedWithProductName { get; set; }

    #endregion
}