Core Types
Addresses
A structured format for representing addresses.
StructuredAddress
Represents a structured address format used to provide detailed location information.
interface StructuredAddress {
streetName?: string;
buildingNumber?: string;
townName?: string;
countrySubDivision?: string;
postalCode?: string;
country?: Alpha2CountryCode;
}
This interface provides a standardized way to represent address details, including:
streetName
: The name of the streetbuildingNumber
: The building number on the streettownName
: The name of the town or citycountrySubDivision
: The subdivision of the country (e.g., state, province)postalCode
: The postal or ZIP codecountry
: The country, typically represented by a country code (Alpha2CountryCode)
All fields are optional, allowing for flexible address representation based on available information.