stampDeleteWallets method

Future<TSignedRequest> stampDeleteWallets({
  1. required TDeleteWalletsBody input,
})

Produce a SignedRequest from TDeleteWalletsBody by using the client's stamp function.

See also: DeleteWallets.

Implementation

Future<TSignedRequest> stampDeleteWallets({
  required TDeleteWalletsBody input,
}) async {
  final fullUrl = '${config.baseUrl}/public/v1/submit/delete_wallets';
  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',
  );
  final bodyJson = jsonEncode(body);
  final stamp = await stamper.stamp(bodyJson);

  return TSignedRequest(
    body: bodyJson,
    stamp: stamp,
    url: fullUrl,
  );
}