Class AddressValidator
- Namespace
- Dynamicweb.Ecommerce.Orders.AddressValidation
- Assembly
- Dynamicweb.Ecommerce.dll
The class AddressValidator represents validator for addresses.
public class AddressValidator
- Inheritance
-
AddressValidator
- Inherited Members
Properties
Active
Gets or sets value indication whether validator is active.
public bool Active { get; set; }
Property Value
Remarks
Validator is inactive by default
AddressValidatorProvider
Gets or sets the validator provider.
public AddressValidatorProvider AddressValidatorProvider { get; set; }
Property Value
Id
Gets the validator id.
public int Id { get; }
Property Value
IsNew
Gets or sets value indication whether validator is newly created.
public bool IsNew { get; }
Property Value
Name
Gets or sets the validator name.
public string Name { get; set; }
Property Value
UserGroupIdsToSkipValidation
Gets or sets the groups to skip address validation.
public ICollection<int> UserGroupIdsToSkipValidation { get; set; }
Property Value
- ICollection<int>
- The user group ids.
Methods
ClearCache()
Clears the cache.
[Obsolete("Use Services.AddressValidators.ClearCache() instead")]
public static void ClearCache()
Delete()
Deletes this instance.
[Obsolete("Use Services.AddressValidators.Delete(Integer) instead")]
public void Delete()
GetActiveAddressValidators()
Gets all active AddressValidators. Limited by the relations to the current country />.
[Obsolete("Use Services.AddressValidators.GetActiveAddressValidators() instead")]
public static IEnumerable<AddressValidator> GetActiveAddressValidators()
Returns
GetAddressValidatorById(int)
Gets the AddressValidator by ID.
[Obsolete("Use Services.AddressValidators.GetAddressValidatorById(Integer) instead")]
public static AddressValidator GetAddressValidatorById(int settingsId)
Parameters
settingsId
int- The ID.
Returns
GetAllAddressValidators()
Gets all AddressValidators.
[Obsolete("Use Services.AddressValidators.GetAddressValidators(String) instead")]
public static IEnumerable<AddressValidator> GetAllAddressValidators()
Returns
Save()
Saves current instance to data base.
[Obsolete("Use Services.AddressValidators.Save(AddressValidator) instead")]
public void Save()