AlPayments

public final class AlPayments : Sendable

SDK Initialization object.

  • AlPayments object instance.

    Declaration

    Swift

    public static let shared: AlPayments

Payment Methods

  • Creates a card.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Card.

  • Gets a card.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Card.

  • Lists cards.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Card list.

  • Deletes a card.

    Declaration

    Swift

    public func deleteCard(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String
    ) async throws(ALEventError)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

  • Creates a bank account.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Bank.

  • Creates a plaid bank account.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    data

    The data needed for the request.

    Return Value

    A Bank.

  • Activates a plaid bank account.

    Declaration

    Swift

    public func activatePlaidBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String
    ) async throws(ALEventError)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

  • Gets a bank account.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

    Return Value

    A Bank.

  • Lists bank accounts.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Bank list.

  • Deletes a bank account.

    Declaration

    Swift

    public func deleteBankAccount(
        token: String,
        accountUuid: String,
        paymentMethodUuid: String
    ) async throws(ALEventError)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    paymentMethodUuid

    The payment method uuid.

Wallets

  • Gets a wallet.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    walletUuid

    The wallet uuid.

    Return Value

    A Wallet.

  • Lists wallets.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid.

    query

    The query.

    Return Value

    A Wallet list.

  • Gets transaction details.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

    Return Value

    A Transaction.

  • Cancel transaction.

    Declaration

    Swift

    public func cancelTransaction(
        token: String,
        transactionUuid: String
    ) async throws(ALEventError)

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The transaction uuid.

  • Lists wallet transactions.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A Transaction list.

  • Lists child transactions.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    query

    The query.

    Return Value

    A Transaction list.

  • Gets a receipt.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    transactionUuid

    The wallet uuid.

    Return Value

    A Receipt.

  • Loads funds.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction.

  • Withdraws funds.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction.

  • Send funds.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction.

  • Send funds.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    walletUuid

    The wallet uuid.

    data

    The data needed for the request.

    Return Value

    A Transaction.

CheckDeposits

  • Deposits a check.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK

    walletUuid

    The wallet identifier.

    data

    The data needed for the request.

    Return Value

    A Check.

  • Gets a check.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK

    walletUuid

    The wallet identifier.

    checkUuid

    The check identifier.

    Return Value

    A Check.

  • Lists checks.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK

    walletUuid

    The wallet identifier.

    query

    The query.

    Return Value

    A Check list.

  • UI.

    See more

    Declaration

    Swift

    final class UserInterface : Sendable
  • UI object instance.

    Declaration

    Swift

    static let userInterface: UserInterface