deleteFiatOnRampCredential method
Future<TDeleteFiatOnRampCredentialResponse>
deleteFiatOnRampCredential({
- required TDeleteFiatOnRampCredentialBody input,
Delete a fiat on ramp provider credential
Sign the provided TDeleteFiatOnRampCredentialBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_fiat_on_ramp_credential).
See also: stampDeleteFiatOnRampCredential.
Implementation
Future<TDeleteFiatOnRampCredentialResponse> deleteFiatOnRampCredential({
required TDeleteFiatOnRampCredentialBody 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_FIAT_ON_RAMP_CREDENTIAL',
);
return await request<Map<String, dynamic>,
TDeleteFiatOnRampCredentialResponse>(
"/public/v1/submit/delete_fiat_on_ramp_credential",
body,
(json) => TDeleteFiatOnRampCredentialResponse.fromJson(
transformActivityResponse(json, 'DeleteFiatOnRampCredential')));
}