Webiant Logo Webiant Logo
  1. No results found.

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

AffiliateModel.cs

using Nop.Web.Areas.Admin.Models.Common;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

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

/// 
/// Represents an affiliate model
/// 
public partial record AffiliateModel : BaseNopEntityModel
{
    #region Ctor

    public AffiliateModel()
    {
        Address = new AddressModel();
        AffiliatedOrderSearchModel = new AffiliatedOrderSearchModel();
        AffiliatedCustomerSearchModel = new AffiliatedCustomerSearchModel();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Affiliates.Fields.URL")]
    public string Url { get; set; }

    [NopResourceDisplayName("Admin.Affiliates.Fields.AdminComment")]
    public string AdminComment { get; set; }

    [NopResourceDisplayName("Admin.Affiliates.Fields.FriendlyUrlName")]
    public string FriendlyUrlName { get; set; }

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

    public AddressModel Address { get; set; }

    public AffiliatedOrderSearchModel AffiliatedOrderSearchModel { get; set; }

    public AffiliatedCustomerSearchModel AffiliatedCustomerSearchModel { get; set; }

    #endregion
}