WalletAccountComponents

public struct WalletAccountComponents

Components used to build WalletAccountData.

  • The account ID.

    Declaration

    Swift

    public let accountID: String
  • The name of the cardholder.

    Declaration

    Swift

    public var name: String?
  • The email address of the cardholder.

    Declaration

    Swift

    public var email: String?
  • The residing address of the cardholder.

    Declaration

    Swift

    public var address: WalletAccount.Address?
  • Initializes the wallet account components.

    Declaration

    Swift

    public init(
        accountID: String,
        name: String? = nil,
        email: String? = nil,
        address: WalletAccount.Address? = nil
    )

    Parameters

    accountID

    The account ID, up to 24 characters for Visa (VTS) and 64 characters long for other TSPs. This is mandatory when WalletAccount is used.

    name

    The name of the cardholder, up to 64 characters long.

    email

    The email address of the cardholder, up to 48 characters long.

    address

    The residing address of the cardholder.

  • Builds the wallet account.

    Declaration

    Swift

    public func walletAccount() -> WalletAccount

    Return Value

    WalletAccount.