Webiant Logo Webiant Logo
  1. No results found.

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

CustomerSettings.cs

using Nop.Core.Configuration;

namespace Nop.Core.Domain.Customers;

/// 
/// Customer settings
/// 
public partial class CustomerSettings : ISettings
{
    /// 
    /// Gets or sets a value indicating whether usernames are used instead of emails
    /// 
    public bool UsernamesEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether users can check the availability of usernames (when registering or changing on the 'My Account' page)
    /// 
    public bool CheckUsernameAvailabilityEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether users are allowed to change their usernames
    /// 
    public bool AllowUsersToChangeUsernames { get; set; }

    /// 
    /// Gets or sets a value indicating whether username will be validated (when registering or changing on the 'My Account' page)
    /// 
    public bool UsernameValidationEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether username will be validated using regex (when registering or changing on the 'My Account' page)
    /// 
    public bool UsernameValidationUseRegex { get; set; }

    /// 
    /// Gets or sets a username validation rule
    /// 
    public string UsernameValidationRule { get; set; }

    /// 
    /// Gets or sets a value indicating whether phone number will be validated (when registering or changing on the 'My Account' page)
    /// 
    public bool PhoneNumberValidationEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether phone number will be validated using regex (when registering or changing on the 'My Account' page)
    /// 
    public bool PhoneNumberValidationUseRegex { get; set; }

    /// 
    /// Gets or sets a phone number validation rule
    /// 
    public string PhoneNumberValidationRule { get; set; }

    /// 
    /// Default password format for customers
    /// 
    public PasswordFormat DefaultPasswordFormat { get; set; }

    /// 
    /// Gets or sets a customer password format (SHA1, MD5) when passwords are hashed (DO NOT edit in production environment)
    /// 
    public string HashedPasswordFormat { get; set; }

    /// 
    /// Gets or sets a minimum password length
    /// 
    public int PasswordMinLength { get; set; }

    /// 
    /// Gets or sets a maximum password length
    /// 
    public int PasswordMaxLength { get; set; }

    /// 
    /// Gets or sets a value indicating whether password are have least one lowercase
    /// 
    public bool PasswordRequireLowercase { get; set; }

    /// 
    /// Gets or sets a value indicating whether password are have least one uppercase
    /// 
    public bool PasswordRequireUppercase { get; set; }

    /// 
    /// Gets or sets a value indicating whether password are have least one non alphanumeric character
    /// 
    public bool PasswordRequireNonAlphanumeric { get; set; }

    /// 
    /// Gets or sets a value indicating whether password are have least one digit
    /// 
    public bool PasswordRequireDigit { get; set; }

    /// 
    /// Gets or sets a number of passwords that should not be the same as the previous one; 0 if the customer can use the same password time after time
    /// 
    public int UnduplicatedPasswordsNumber { get; set; }

    /// 
    /// Gets or sets a number of days for password recovery link. Set to 0 if it doesn't expire.
    /// 
    public int PasswordRecoveryLinkDaysValid { get; set; }

    /// 
    /// Gets or sets a number of days for password expiration
    /// 
    public int PasswordLifetime { get; set; }

    /// 
    /// Gets or sets maximum login failures to lockout account. Set 0 to disable this feature
    /// 
    public int FailedPasswordAllowedAttempts { get; set; }

    /// 
    /// Gets or sets a number of minutes to lockout users (for login failures).
    /// 
    public int FailedPasswordLockoutMinutes { get; set; }

    /// 
    /// Gets or sets a value indicating whether customers are required to re-login after password changing
    /// 
    public bool RequiredReLoginAfterPasswordChange { get; set; }

    /// 
    /// User registration type
    /// 
    public UserRegistrationType UserRegistrationType { get; set; }

    /// 
    /// Gets or sets a value indicating whether customers are allowed to upload avatars.
    /// 
    public bool AllowCustomersToUploadAvatars { get; set; }

    /// 
    /// Gets or sets a maximum avatar size (in bytes)
    /// 
    public int AvatarMaximumSizeBytes { get; set; }

    /// 
    /// Gets or sets a value indicating whether to display default user avatar.
    /// 
    public bool DefaultAvatarEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether customers location is shown
    /// 
    public bool ShowCustomersLocation { get; set; }

    /// 
    /// Gets or sets a value indicating whether to show customers join date
    /// 
    public bool ShowCustomersJoinDate { get; set; }

    /// 
    /// Gets or sets a value indicating whether customers are allowed to view profiles of other customers
    /// 
    public bool AllowViewingProfiles { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'New customer' notification message should be sent to a store owner
    /// 
    public bool NotifyNewCustomerRegistration { get; set; }

    /// 
    /// Gets or sets a value indicating whether to hide 'Downloadable products' tab on 'My account' page
    /// 
    public bool HideDownloadableProductsTab { get; set; }

    /// 
    /// Gets or sets a value indicating whether to hide 'Back in stock subscriptions' tab on 'My account' page
    /// 
    public bool HideBackInStockSubscriptionsTab { get; set; }

    /// 
    /// Gets or sets a value indicating whether to validate user when downloading products
    /// 
    public bool DownloadableProductsValidateUser { get; set; }

    /// 
    /// Customer name formatting
    /// 
    public CustomerNameFormat CustomerNameFormat { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Newsletter' form field is enabled
    /// 
    public bool NewsletterEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Newsletter' checkbox is ticked by default on the registration page
    /// 
    public bool NewsletterTickedByDefault { get; set; }

    /// 
    /// Gets or sets a value indicating whether to hide newsletter box
    /// 
    public bool HideNewsletterBlock { get; set; }

    /// 
    /// Gets or sets a value indicating whether newsletter block should allow to unsubscribe
    /// 
    public bool NewsletterBlockAllowToUnsubscribe { get; set; }

    /// 
    /// Gets or sets a value indicating the number of minutes for 'online customers' module
    /// 
    public int OnlineCustomerMinutes { get; set; }

    /// 
    /// Gets or sets a value indicating we should store last visited page URL for each customer
    /// 
    public bool StoreLastVisitedPage { get; set; }

    /// 
    /// Gets or sets a value indicating we should store IP addresses of customers
    /// 
    public bool StoreIpAddresses { get; set; }

    /// 
    /// Gets or sets a value indicating the number of minutes for 'last activity' module
    /// 
    public int LastActivityMinutes { get; set; }

    /// 
    /// Gets or sets a value indicating whether deleted customer records should be prefixed suffixed with "-DELETED"
    /// 
    public bool SuffixDeletedCustomers { get; set; }

    /// 
    /// Gets or sets a value indicating whether to force entering email twice
    /// 
    public bool EnteringEmailTwice { get; set; }

    /// 
    /// Gets or sets a value indicating whether registration is required for downloadable products
    /// 
    public bool RequireRegistrationForDownloadableProducts { get; set; }

    /// 
    /// Gets or sets a value indicating whether to check gift card balance
    /// 
    public bool AllowCustomersToCheckGiftCardBalance { get; set; }

    /// 
    /// Gets or sets interval (in minutes) with which the Delete Guest Task runs
    /// 
    public int DeleteGuestTaskOlderThanMinutes { get; set; }

    #region Form fields

    /// 
    /// Gets or sets a value indicating whether 'First Name' is enabled
    /// 
    public bool FirstNameEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'First Name' is required
    /// 
    public bool FirstNameRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Last Name' is enabled
    /// 
    public bool LastNameEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Last Name' is required
    /// 
    public bool LastNameRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Gender' is enabled
    /// 
    public bool GenderEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Neutral Gender' is enabled
    /// 
    public bool NeutralGenderEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Date of Birth' is enabled
    /// 
    public bool DateOfBirthEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Date of Birth' is required
    /// 
    public bool DateOfBirthRequired { get; set; }

    /// 
    /// Gets or sets a minimum age. Null if ignored
    /// 
    public int? DateOfBirthMinimumAge { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Company' is enabled
    /// 
    public bool CompanyEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Company' is required
    /// 
    public bool CompanyRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Street address' is enabled
    /// 
    public bool StreetAddressEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Street address' is required
    /// 
    public bool StreetAddressRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Street address 2' is enabled
    /// 
    public bool StreetAddress2Enabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Street address 2' is required
    /// 
    public bool StreetAddress2Required { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Zip / postal code' is enabled
    /// 
    public bool ZipPostalCodeEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Zip / postal code' is required
    /// 
    public bool ZipPostalCodeRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'City' is enabled
    /// 
    public bool CityEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'City' is required
    /// 
    public bool CityRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'County' is enabled
    /// 
    public bool CountyEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'County' is required
    /// 
    public bool CountyRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Country' is enabled
    /// 
    public bool CountryEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Country' is required
    /// 
    public bool CountryRequired { get; set; }

    /// 
    /// Gets or sets a Default Country
    /// 
    public int? DefaultCountryId { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'State / province' is enabled
    /// 
    public bool StateProvinceEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'State / province' is required
    /// 
    public bool StateProvinceRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Phone number' is enabled
    /// 
    public bool PhoneEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Phone number' is required
    /// 
    public bool PhoneRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Fax number' is enabled
    /// 
    public bool FaxEnabled { get; set; }

    /// 
    /// Gets or sets a value indicating whether 'Fax number' is required
    /// 
    public bool FaxRequired { get; set; }

    /// 
    /// Gets or sets a value indicating whether privacy policy should accepted during registration
    /// 
    public bool AcceptPrivacyPolicyEnabled { get; set; }

    #endregion
}