updateFiatOnRampCredential method
Future<TUpdateFiatOnRampCredentialResponse>
updateFiatOnRampCredential({
- required TUpdateFiatOnRampCredentialBody input,
Update a fiat on ramp provider credential
Sign the provided TUpdateFiatOnRampCredentialBody with the client's stamp function and submit the request (POST /public/v1/submit/update_fiat_on_ramp_credential).
See also: stampUpdateFiatOnRampCredential.
Implementation
Future<TUpdateFiatOnRampCredentialResponse> updateFiatOnRampCredential({
required TUpdateFiatOnRampCredentialBody 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_UPDATE_FIAT_ON_RAMP_CREDENTIAL',
);
return await request<Map<String, dynamic>,
TUpdateFiatOnRampCredentialResponse>(
"/public/v1/submit/update_fiat_on_ramp_credential",
body,
(json) => TUpdateFiatOnRampCredentialResponse.fromJson(
transformActivityResponse(json, 'UpdateFiatOnRampCredential')));
}