deleteWalletAccounts method
Future<TDeleteWalletAccountsResponse>
deleteWalletAccounts({
- required TDeleteWalletAccountsBody input,
Delete wallet accounts for an organization.
Sign the provided TDeleteWalletAccountsBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_wallet_accounts).
See also: stampDeleteWalletAccounts.
Implementation
Future<TDeleteWalletAccountsResponse> deleteWalletAccounts({
required TDeleteWalletAccountsBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS',
);
return await request<Map<String, dynamic>, TDeleteWalletAccountsResponse>(
"/public/v1/submit/delete_wallet_accounts",
body,
(json) => TDeleteWalletAccountsResponse.fromJson(
transformActivityResponse(json, 'DeleteWalletAccounts')));
}