Class AddressValidatorProvider
- Namespace
- Dynamicweb.Ecommerce.Orders.AddressValidation
- Assembly
- Dynamicweb.Ecommerce.dll
The class AddressValidatorProvider provides address validation functionality.
public class AddressValidatorProvider : ConfigurableAddIn
- Inheritance
-
AddressValidatorProvider
- Inherited Members
Properties
ValidatorId
Gets or sets the validator id.
public int ValidatorId { get; set; }
Property Value
Methods
SaveLog(string)
protected void SaveLog(string message)
Parameters
message
string
Validate(Order)
Validates addresses for an order.
public virtual void Validate(Order order)
Parameters
order
OrderThe order to validate addresses
Validate(UserAddress, string)
Validates addresses for an order.
public virtual IEnumerable<AddressValidatorResult> Validate(UserAddress userAddress, string languageId)
Parameters
userAddress
UserAddressThe user address to validate.
languageId
stringThe language ID.