Address
public struct Address
The address object for the individual
-
The street name
Declaration
Swift
public let street1: String? -
An optional, additional street field
Declaration
Swift
public let street2: String? -
The city
Declaration
Swift
public let city: String? -
The subdivision, e.g. state or province
Declaration
Swift
public let subdivision: String? -
The subdivision abbreviated, e.g. “CA” or “PR”
Declaration
Swift
public let subdivisionAbbr: String? -
The postal code or zip code
Declaration
Swift
public let postalCode: String? -
The country code
Declaration
Swift
public let countryCode: String? -
Creates an Address
Declaration
Swift
public init(street1: String? = nil, street2: String? = nil, city: String? = nil, subdivision: String? = nil, subdivisionAbbr: String? = nil, postalCode: String? = nil, countryCode: String? = nil)Parameters
street1The street name
street2The additional street field
cityThe city
subdivisionThe subdivision, e.g. state or province
subdivisionAbbrThe subdivision abbrevated, e.g. “CA” or “PR”
postalCodeThe postal code or zip code
countryCodeThe country code
View on GitHub
Address Structure Reference