AddressRequest

public struct AddressRequest : AddressModel, Encodable

Beneficiary address model.

  • Address line 1 (e.g., street, PO Box, or company name - NOTE that newline characters are not accepted).

    Declaration

    Swift

    public var lineOne: String
  • Address line 2 (e.g., apartment, suite, unit, or building - NOTE that newline characters are not accepted).

    Declaration

    Swift

    public var lineTwo: String?
  • ZIP or postal code.

    Declaration

    Swift

    public var postalCode: String
  • City, district, suburb, town, or village.

    Declaration

    Swift

    public var city: String
  • State, county, province, or region.

    Declaration

    Swift

    public var state: String
  • Three-letter country code (ISO 3166-1 alpha-3). The keys can be mapped from Country if you want type safety.

    Declaration

    Swift

    public var country: String
  • Auxiliary constructor.

    Declaration

    Swift

    public init(lineOne: String = "",
                lineTwo: String? = nil,
                postalCode: String = "",
                city: String = "",
                state: String = "",
                country: String = "")

    Parameters

    lineOne

    Address line 1.

    lineTwo

    Address line 2. Defaults to nil.

    postalCode

    ZIP or postal code.

    city

    City, district, suburb, town, or village.

    state

    State, county, province, or region.

    country

    Three-letter country code (ISO 3166-1 alpha-3). The keys can be mapped from Country if you want type safety.