Webiant Logo Webiant Logo
  1. No results found.

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

GdprConsentModel.cs

using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

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

/// 
/// Represents a GDPR consent model
/// 
public partial record GdprConsentModel : BaseNopEntityModel, ILocalizedModel
{
    #region Ctor

    public GdprConsentModel()
    {
        Locales = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.Message")]
    public string Message { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.IsRequired")]
    public bool IsRequired { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.RequiredMessage")]
    public string RequiredMessage { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.DisplayDuringRegistration")]
    public bool DisplayDuringRegistration { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.DisplayOnCustomerInfoPage")]
    public bool DisplayOnCustomerInfoPage { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.Gdpr.Consent.DisplayOrder")]
    public int DisplayOrder { get; set; }

    public IList Locales { get; set; }

    #endregion
}