AddressRequest

data class AddressRequest(@Json(name = "external_id") val externalId: String?, @Json(name = "label") val label: String, @Json(name = "line_1") val line1: String, @Json(name = "line_2") val line2: String? = null, @Json(name = "postal_code") val postalCode: String, @Json(name = "city") val city: String, @Json(name = "state") val state: String? = null, @Json(name = "country") val country: CountryModel) : Address

Model that holds the address data to be added.

Constructors

Link copied to clipboard
constructor(@Json(name = "external_id") externalId: String?, @Json(name = "label") label: String, @Json(name = "line_1") line1: String, @Json(name = "line_2") line2: String? = null, @Json(name = "postal_code") postalCode: String, @Json(name = "city") city: String, @Json(name = "state") state: String? = null, @Json(name = "country") country: CountryModel)

Properties

Link copied to clipboard
open override val city: String

Address City, district, suburb, town, or village

Link copied to clipboard
open override val country: CountryModel

Address country. 3-letter country code (ISO 3166-1 alpha-3)

Link copied to clipboard

External ID of this address in your platform

Link copied to clipboard

Address label

Link copied to clipboard
open override val line1: String

Address Line One

Link copied to clipboard
open override val line2: String? = null

Address Line Two

Link copied to clipboard
open override val postalCode: String

Address ZIP or postal code

Link copied to clipboard
open override val state: String? = null

Address State, county, province, or region