restrictAccount

Restricts an account, preventing it from processing payments.

Return

A pair of the updated AccountObjects.Account and any NetworkingError.

Parameters

accountId

The ID of the account to restrict.


fun restrictAccount(accountId: String, completionHandler: (AccountObjects.Account?, NetworkingError?) -> Unit)

Restricts an account, preventing it from processing payments.

Parameters

accountId

The ID of the account to restrict.

completionHandler

Called with the updated AccountObjects.Account or a NetworkingError.