Address

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

Constructors

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

Types

Link copied to clipboard
class Builder

Address builder for cleaner object creation from Java.

Properties

Link copied to clipboard
val city: String?

City, district, suburb, town, or village. The value set is displayed in the payment sheet as-is. Depending on the payment method, the customer may be required to edit this value.

Link copied to clipboard

Two-letter country code (ISO 3166-1 alpha-2).

Link copied to clipboard

Address line 1 (e.g., street, PO Box, or company name). The value set is displayed in the payment sheet as-is. Depending on the payment method, the customer may be required to edit this value.

Link copied to clipboard

Address line 2 (e.g., apartment, suite, unit, or building). The value set is displayed in the payment sheet as-is. Depending on the payment method, the customer may be required to edit this value.

Link copied to clipboard

ZIP or postal code. The value set is displayed in the payment sheet as-is. Depending on the payment method, the customer may be required to edit this value.

Link copied to clipboard

State, county, province, or region. The value set is displayed in the payment sheet as-is. Depending on the payment method, the customer may be required to edit this value.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)