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
int- The id of validator.
addressType
AddressType- The 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
AddressFieldType- The type of field.
oldValue
string- The current value of the field.
newValue
string- The value that will be provided as suggestion for the field if not valid.