PaymentAddress

The ContactAddress interface of the Contact Picker API represents a physical address.

MDN Reference

Properties

Link copied to clipboard

The addressLine read-only property of the ContactAddress interface is an array of strings, each specifying a line of the address that is not covered by one of the other properties of ContactAddress.

Link copied to clipboard

The city read-only property of the ContactAddress interface returns a string containing the city or town portion of the address.

Link copied to clipboard

The country read-only property of the ContactAddress interface is a string identifying the address's country using the ISO 3166-1 alpha-2 standard.

Link copied to clipboard

The read-only dependentLocality property of the ContactAddress interface is a string containing a locality or sublocality designation within a city, such as a neighborhood, borough, district, or, in the United Kingdom, a dependent locality.

Link copied to clipboard

The organization read-only property of the ContactAddress interface returns a string containing the name of the organization, firm, company, or institution at the address.

Link copied to clipboard

The read-only phone property of the ContactAddress interface returns a string containing the telephone number of the recipient or contact person at the address.

Link copied to clipboard

The postalCode read-only property of the ContactAddress interface returns a string containing a code used by a jurisdiction for mail routing, for example, the ZIP Code in the United States or the Postal Index Number (PIN code) in India.

Link copied to clipboard

The read-only recipient property of the ContactAddress interface returns a string containing the name of the recipient, purchaser, or contact person at the address.

Link copied to clipboard

The read-only region property of the ContactAddress interface returns a string containing the top-level administrative subdivision of the country in which the address is located.

Link copied to clipboard

The sortingCode read-only property of the ContactAddress interface returns a string containing a postal sorting code such as is used in France.

Functions

Link copied to clipboard
fun toJSON(): JsAny

The toJSON() method of the ContactAddress interface is a standard serializer that returns a JSON representation of the ContactAddress object's properties.