Table of Contents

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

bool

Remarks

Validator is inactive by default

AddressValidatorProvider

Gets or sets the validator provider.
public AddressValidatorProvider AddressValidatorProvider { get; set; }

Property Value

AddressValidatorProvider

Id

Gets the validator id.
public int Id { get; }

Property Value

int

IsNew

Gets or sets value indication whether validator is newly created.
public bool IsNew { get; }

Property Value

bool

Name

Gets or sets the validator name.
public string Name { get; set; }

Property Value

string

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

IEnumerable<AddressValidator>

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

AddressValidator

GetAllAddressValidators()

Gets all AddressValidators.
[Obsolete("Use Services.AddressValidators.GetAddressValidators(String) instead")]
public static IEnumerable<AddressValidator> GetAllAddressValidators()

Returns

IEnumerable<AddressValidator>

Save()

Saves current instance to data base.
[Obsolete("Use Services.AddressValidators.Save(AddressValidator) instead")]
public void Save()
To top