Class AddressValidatorResult
- Namespace
- Dynamicweb.Ecommerce.Orders.AddressValidation
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information from address validators.
[Serializable]
public class AddressValidatorResult
- Inheritance
-
AddressValidatorResult
- Inherited Members
Constructors
AddressValidatorResult(int, AddressType)
Initializes a new instance of the AddressValidatorResult class.
public AddressValidatorResult(int validatorId, AddressType addressType)
Parameters
validatorId
intThe id of validator.
addressType
AddressTypeThe type of address.
Properties
AddressFields
Gets or sets the address fields.
public List<AddressField> AddressFields { get; set; }
Property Value
AddressType
Gets or sets type of the address.
public AddressType AddressType { get; set; }
Property Value
ErrorMessage
Gets or sets validation error message.
public string ErrorMessage { get; set; }
Property Value
IsError
Gets or sets value indicating whether there are any validation errors.
public bool IsError { get; set; }
Property Value
ValidatorId
Gets or sets the validator id.
public int ValidatorId { get; set; }
Property Value
Methods
CheckAddressField(AddressFieldType, string, string)
Checks the address field.
public void CheckAddressField(AddressFieldType fieldType, string oldValue, string newValue)
Parameters
fieldType
AddressFieldTypeThe type of field.
oldValue
stringThe current value of the field.
newValue
stringThe value that will be provided as suggestion for the field if not valid.