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

    street1

    The street name

    street2

    The additional street field

    city

    The city

    subdivision

    The subdivision, e.g. state or province

    subdivisionAbbr

    The subdivision abbrevated, e.g. “CA” or “PR”

    postalCode

    The postal code or zip code

    countryCode

    The country code