get Plaid Link Token
suspend fun getPlaidLinkToken(accountId: String): Pair<AccountResponses.PlaidLinkTokenResponse?, NetworkingError?>
Retrieves a Plaid Link token for the given account to initiate a bank-account connection flow.
Return
A pair of the AccountResponses.PlaidLinkTokenResponse and any NetworkingError.
Parameters
account Id
The ID of the account for which to generate the token.
fun getPlaidLinkToken(accountId: String, completionHandler: (AccountResponses.PlaidLinkTokenResponse?, NetworkingError?) -> Unit)
Retrieves a Plaid Link token for the given account to initiate a bank-account connection flow.
Parameters
account Id
The ID of the account for which to generate the token.
completion Handler
Called with the AccountResponses.PlaidLinkTokenResponse or a NetworkingError.