Address

data class Address(val line1: String? = null, val line2: String? = null, val city: String? = null, val state: String? = null, val postalCode: String? = null, val country: String? = null)

Address fields for nested payment-method billing or shipping.

Constructors

Link copied to clipboard
constructor(line1: String? = null, line2: String? = null, city: String? = null, state: String? = null, postalCode: String? = null, country: String? = null)

Properties

Link copied to clipboard
val city: String? = null

City name.

Link copied to clipboard
val country: String? = null

ISO 3166-1 alpha-2 country code.

Link copied to clipboard
@SerializedName(value = "line_1")
val line1: String? = null

Primary street address.

Link copied to clipboard
@SerializedName(value = "line_2")
val line2: String? = null

Apartment, suite, or other secondary address.

Link copied to clipboard
@SerializedName(value = "postal_code")
val postalCode: String? = null

ZIP or postal code.

Link copied to clipboard
val state: String? = null

State or province code.