Class AbstractAddressValidationRequest
- Namespace
- Visus.AddressValidation.Models
- Assembly
- Visus.AddressValidation.dll
Base class for implementing a unified address validation request.
public abstract class AbstractAddressValidationRequest
- Inheritance
-
AbstractAddressValidationRequest
- Derived
- Inherited Members
Properties
AddressLines
Gets the set of address lines for the address; comparisons are case-insensitive.
public ISet<string> AddressLines { get; }
Property Value
CityOrTown
Gets or sets the city or town name.
public string? CityOrTown { get; set; }
Property Value
Country
Gets or sets the country code
public CountryCode? Country { get; set; }
Property Value
Remarks
Refer to CountryCode for accepted values. Setting the country to GU, PR or VI will automatically change the country to US and set the appropriate StateOrProvince value.
NoPostalCodeFallback
Gets an optional fallback value to use as the postal code for countries that have no concept of a postal code.
public virtual string? NoPostalCodeFallback { get; }
Property Value
Remarks
Returns null by default. Override this property to supply a custom fallback value. Refer to Visus.AddressValidation.Constants.NoPostalCode for the list of countries where this fallback applies.
PostalCode
Gets or sets the Zip (Postal) Code
public string? PostalCode { get; set; }
Property Value
Remarks
Value will be dropped for countries that have no concept of a postal code. Refer to the Visus.AddressValidation.Constants.NoPostalCode collection for details.
StateOrProvince
Gets or sets the State (Province)
public string? StateOrProvince { get; set; }
Property Value
Remarks
Value will be dropped for countries that are considered city-states. Refer to the Visus.AddressValidation.Constants.CityStates collection for details.