Address

class Address(country: String)

Builder for an address passed to updateShippingAddress.

Parameters

country

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

Constructors

Link copied to clipboard
constructor(country: String)

Functions

Link copied to clipboard

Sets the city, district, suburb, town, or village.

Link copied to clipboard

Sets address line 1 (e.g., street, PO Box, or company name).

Link copied to clipboard

Sets address line 2 (e.g., apartment, suite, unit, or building).

Link copied to clipboard

Sets the ZIP or postal code.

Link copied to clipboard

Sets the state, county, province, or region.