update Account
suspend fun updateAccount(accountId: String, request: AccountRequests.UpdateAccountRequest): Pair<AccountObjects.Account?, NetworkingError?>
Updates an existing account.
Return
A pair of the updated AccountObjects.Account and any NetworkingError.
Parameters
account Id
The ID of the account to update.
request
The fields to update.
fun updateAccount(accountId: String, request: AccountRequests.UpdateAccountRequest, completionHandler: (AccountObjects.Account?, NetworkingError?) -> Unit)
Updates an existing account.
Parameters
account Id
The ID of the account to update.
request
The fields to update.
completion Handler
Called with the updated AccountObjects.Account or a NetworkingError.