Async
public class Async
Combine bindings.
-
createCard(token:
AsynchronousaccountUuid: data: ) 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. -
getCard(token:
AsynchronousaccountUuid: paymentMethodUuid: ) -
listCards(token:
AsynchronousaccountUuid: query: ) 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. -
deleteCard(token:
AsynchronousaccountUuid: paymentMethodUuid: ) 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. -
createBankAccount(token:
AsynchronousaccountUuid: data: ) 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. -
createPlaidBankAccount(token:
AsynchronousaccountUuid: data: ) 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. -
getBankAccount(token:
AsynchronousaccountUuid: paymentMethodUuid: ) 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. -
listBankAccounts(token:
AsynchronousaccountUuid: query: ) 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. -
getWallet(token:
AsynchronousaccountUuid: walletUuid: ) -
listWallets(token:
AsynchronousaccountUuid: query: ) 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. -
getTransactionDetails(token:
AsynchronoustransactionUuid: ) 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. -
cancelTransaction(token:
AsynchronoustransactionUuid: ) 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. -
listWalletTransactions(token:
AsynchronouswalletUuid: query: ) 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. -
listChildTransactions(token:
AsynchronoustransactionUuid: query: ) 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. -
getReceipt(token:
AsynchronoustransactionUuid: ) -
loadFunds(token:
AsynchronouswalletUuid: data: ) 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. -
withdrawFunds(token:
AsynchronouswalletUuid: data: ) 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. -
sendFunds(token:
AsynchronouswalletUuid: data: ) 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. -
transferFunds(token:
AsynchronouswalletUuid: data: ) 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.
-
depositCheck(token:
AsynchronouswalletUuid: data: ) 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. -
getCheck(token:
AsynchronouswalletUuid: checkUuid: ) -
listChecks(token:
AsynchronouswalletUuid: query: ) 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.