Table of Contents

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

List<AddressField>

AddressType

Gets or sets type of the address.

public AddressType AddressType { get; set; }

Property Value

AddressType

ErrorMessage

Gets or sets validation error message.

public string ErrorMessage { get; set; }

Property Value

string

IsError

Gets or sets value indicating whether there are any validation errors.

public bool IsError { get; set; }

Property Value

bool

ValidatorId

Gets or sets the validator id.

public int ValidatorId { get; set; }

Property Value

int

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.

To top