Async

public class Async

Combine bindings.

Payment Methods

  • Creates a card.

    Declaration

    Swift

    public func createCard(
        token: String,
        accountUuid: String,
        data: CardRequest)
    async throws -> (card: Card, validation: CardValidationResult)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A (card: Card, validation: CardValidationResult) object.

  • Gets a card.

    Declaration

    Swift

    public func getCard(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    async throws -> Card

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Card object.

  • Lists cards.

    Declaration

    Swift

    public func listCards(
        token: String,
        accountUuid: String,
        query: CardsQuery? = nil)
    async throws -> [Card]

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A [Card] object.

  • Deletes a card.

    Declaration

    Swift

    public func deleteCard(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    async throws -> Bool

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Bool object.

  • Creates a bank account.

    Declaration

    Swift

    public func createBankAccount(
        token: String,
        accountUuid: String,
        data: BankRequest)
    async throws -> Bank

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Bank object.

  • Creates a plaid bank account.

    Declaration

    Swift

    public func createPlaidBankAccount(
        token: String,
        accountUuid: String,
        data: PlaidBankRequest)
    async throws -> Bank

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Bank object.

  • Activates a plaid bank account.

    Declaration

    Swift

    public func activatePlaidBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    async throws -> Bool

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Bool object.

  • Gets a bank account.

    Declaration

    Swift

    public func getBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    async throws -> Bank

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Bank object.

  • Lists bank accounts.

    Declaration

    Swift

    public func listBankAccounts(
        token: String,
        accountUuid: String,
        query: BanksQuery? = nil)
    async throws -> [Bank]

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A [Bank] object.

  • Deletes a bank account.

    Declaration

    Swift

    public func deleteBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    async throws -> Bool

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Bool object.

  • Gets a wallet.

    Declaration

    Swift

    public func getWallet(
        token: String,
        accountUuid: String,
        walletUuid: String)
    async throws -> Wallet

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    walletUuid

    The wallet uuid.

    Return Value

    A Wallet object.

  • Lists wallets.

    Declaration

    Swift

    public func listWallets(
        token: String,
        accountUuid: String,
        query: WalletsQuery? = nil)
    async throws -> [Wallet]

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A [Wallet] object.

  • Gets transaction details.

    Declaration

    Swift

    public func getTransactionDetails(
        token: String,
        transactionUuid: String)
    async throws -> Transaction

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

    Return Value

    A Transaction object.

  • Cancel transaction.

    Declaration

    Swift

    public func cancelTransaction(
        token: String,
        transactionUuid: String)
    async throws -> Bool

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

    Return Value

    A Bool object.

  • Lists wallet transactions.

    Declaration

    Swift

    public func listWalletTransactions(
        token: String,
        walletUuid: String,
        query: WalletTransactionsQuery? = nil)
    async throws -> [Transaction]

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A [Transaction] object.

  • Lists child transactions.

    Declaration

    Swift

    public func listChildTransactions(
        token: String,
        transactionUuid: String,
        query: ChildTransactionsQuery? = nil)
    async throws -> [Transaction]

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A [Transaction] object.

  • Gets a receipt.

    Declaration

    Swift

    public func getReceipt(
        token: String,
        transactionUuid: String)
    async throws -> Receipt

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    Return Value

    A Receipt object.

  • Loads funds.

    Declaration

    Swift

    public func loadFunds(
        token: String,
        walletUuid: String,
        data: LoadFundsRequest)
    async throws -> Transaction

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction object.

  • Withdraws funds.

    Declaration

    Swift

    public func withdrawFunds(
        token: String,
        walletUuid: String,
        data: WithdrawFundsRequest)
    async throws -> Transaction

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction object.

  • Sends funds.

    Declaration

    Swift

    public func sendFunds(
        token: String,
        walletUuid: String,
        data: SendFundsRequest)
    async throws -> Transaction

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction object.

  • Transfer funds.

    Declaration

    Swift

    public func transferFunds(
        token: String,
        walletUuid: String,
        data: TransferFundsRequest)
    async throws -> Transaction

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction object.

Check deposit

  • Deposits a check.

    Declaration

    Swift

    public func depositCheck(
        token: String,
        walletUuid: String,
        data: DepositCheckRequest)
    async throws -> Check

    Parameters

    token

    The token to authenticate the SDK

    walletUuid

    The wallet identifier.

    data

    The data needed for the request.

    Return Value

    A Check object.

  • Gets a check.

    Declaration

    Swift

    public func getCheck(
        token: String,
        walletUuid: String,
        checkUuid: String)
    async throws -> Check

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    checkUuid

    The check identifier.

    Return Value

    A Check object.

  • Lists checks.

    Declaration

    Swift

    public func listChecks(
        token: String,
        walletUuid: String,
        query: ChecksQuery? = nil)
    async throws -> [Check]

    Parameters

    token

    The token to authenticate the SDK.

    checkUuid

    The check identifier.

    query

    The query.

    Return Value

    A Check array.