AddressDetailsModel

data class AddressDetailsModel(@Json(name = "address_uuid") val addressUuid: String, @Json(name = "external_id") val externalId: String?, @Json(name = "account_uuid") val accountUuid: String, @Json(name = "primary") val primary: Boolean, @Json(name = "label") val label: String, @Json(name = "line_1") val line1: String, @Json(name = "line_2") val line2: String?, @Json(name = "postal_code") val postalCode: String, @Json(name = "city") val city: String, @Json(name = "state") val state: String, @Json(name = "country") val countryString: String, @Json(ignore = true) val country: CountryModel? = countryString.getEnum<CountryModel>(), @Json(name = "created_at") val createdAt: String, @Json(name = "updated_at") val updatedAt: String) : Address

Address details.

Constructors

Link copied to clipboard
constructor(@Json(name = "address_uuid") addressUuid: String, @Json(name = "external_id") externalId: String?, @Json(name = "account_uuid") accountUuid: String, @Json(name = "primary") primary: Boolean, @Json(name = "label") label: String, @Json(name = "line_1") line1: String, @Json(name = "line_2") line2: String?, @Json(name = "postal_code") postalCode: String, @Json(name = "city") city: String, @Json(name = "state") state: String, @Json(name = "country") countryString: String, @Json(ignore = true) country: CountryModel? = countryString.getEnum<CountryModel>(), @Json(name = "created_at") createdAt: String, @Json(name = "updated_at") updatedAt: String)

Properties

Link copied to clipboard

User account unique identifier

Link copied to clipboard

User address unique identifier

Link copied to clipboard
open override val city: String

User address city, district, suburb, town, or village

Link copied to clipboard
open override val country: CountryModel?

Card country, 3-letter code of the country (ISO 3166-1 alpha-3). Check countryString if null

Link copied to clipboard

Card country, 3-letter code of the country (ISO 3166-1 alpha-3).

Link copied to clipboard

Address creation date.

Link copied to clipboard

External identifier in your platform

Link copied to clipboard

User address description

Link copied to clipboard
open override val line1: String

User address Line One

Link copied to clipboard
open override val line2: String?

User address Line Two

Link copied to clipboard
open override val postalCode: String

User address ZIP or postal code

Link copied to clipboard

If user address is primary or not

Link copied to clipboard
open override val state: String

User address state, county, province, or region

Link copied to clipboard

Address modification date.