Futures

public class Futures

Combine bindings.

Payment Methods

  • Creates a card.

    Declaration

    Swift

    public func createCard(
        token: String,
        accountUuid: String,
        data: CardRequest)
    -> Future<(card: Card, validation: CardValidationResult), EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Gets a card.

    Declaration

    Swift

    public func getCard(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    -> Future<Card, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Future object.

  • Lists cards.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Future object.

  • Deletes a card.

    Declaration

    Swift

    public func deleteCard(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Future object.

  • Creates a bank account.

    Declaration

    Swift

    public func createBankAccount(
        token: String,
        accountUuid: String,
        data: BankRequest)
    -> Future<Bank, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Creates a plaid bank account.

    Declaration

    Swift

    public func createPlaidBankAccount(
        token: String,
        accountUuid: String,
        data: PlaidBankRequest)
    -> Future<Bank, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Activates a plaid bank account.

    Declaration

    Swift

    public func activatePlaidBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Future object.

  • Gets a bank account.

    Declaration

    Swift

    public func getBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    -> Future<Bank, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Future object.

  • Lists bank accounts.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Future object.

  • Deletes a bank account.

    Declaration

    Swift

    public func deleteBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Future object.

  • Gets a wallet.

    Declaration

    Swift

    public func getWallet(
        token: String,
        accountUuid: String,
        walletUuid: String)
    -> Future<Wallet, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    walletUuid

    The wallet uuid.

    Return Value

    A Future object.

  • Lists wallets.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Future object.

  • Gets transaction details.

    Declaration

    Swift

    public func getTransactionDetails(
        token: String,
        transactionUuid: String)
    -> Future<Transaction, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

    Return Value

    A Future object.

  • Cancel transaction.

    Declaration

    Swift

    public func cancelTransaction(
        token: String,
        transactionUuid: String)
    -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

    Return Value

    A Future object.

  • Lists wallet transactions.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A Future object.

  • Lists child transactions.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A Future object.

  • Get a receipt.

    Declaration

    Swift

    public func getReceipt(
        token: String,
        transactionUuid: String)
    -> Future<Receipt, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    Return Value

    A Future object.

  • Loads funds.

    Declaration

    Swift

    public func loadFunds(
        token: String,
        walletUuid: String,
        data: LoadFundsRequest)
    -> Future<Transaction, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Withdraws funds.

    Declaration

    Swift

    public func withdrawFunds(
        token: String,
        walletUuid: String,
        data: WithdrawFundsRequest)
    -> Future<Transaction, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Sends funds.

    Declaration

    Swift

    public func sendFunds(
        token: String,
        walletUuid: String,
        data: SendFundsRequest)
    -> Future<Transaction, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Transfer funds.

    Declaration

    Swift

    public func transferFunds(
        token: String,
        walletUuid: String,
        data: TransferFundsRequest)
    -> Future<Transaction, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Future object.

Check deposit

  • Deposits a check.

    Declaration

    Swift

    public func depositCheck(
        token: String,
        walletUuid: String,
        data: DepositCheckRequest)
    -> Future<Check, EventError>

    Parameters

    token

    The token to authenticate the SDK

    walletUuid

    The wallet identifier.

    data

    The data needed for the request.

    Return Value

    A Future object.

  • Get a check.

    Declaration

    Swift

    public func getCheck(
        token: String,
        walletUuid: String,
        checkUuid: String)
    -> Future<Check, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    checkUuid

    The check uuid.

    Return Value

    A Future object.

  • Lists checks.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    checkUuid

    The check identifier.

    query

    The query.

    Return Value

    A Future object.