deleteWallets method

Future<TDeleteWalletsResponse> deleteWallets({
  1. required TDeleteWalletsBody input,
})

Delete wallets for an organization.

Sign the provided TDeleteWalletsBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_wallets).

See also: stampDeleteWallets.

Implementation

Future<TDeleteWalletsResponse> deleteWallets({
  required TDeleteWalletsBody 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_WALLETS',
  );
  return await request<Map<String, dynamic>, TDeleteWalletsResponse>(
      "/public/v1/submit/delete_wallets",
      body,
      (json) => TDeleteWalletsResponse.fromJson(
          transformActivityResponse(json, 'DeleteWallets')));
}