recallBenefitApplication method
Recalls a submitted benefit application, returning it to draft status for further modifications.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
The catalog identifier that specifies which benefit catalog the
application belongs to.
Parameter identifier :
The unique identifier of the benefit application to recall.
Parameter reason :
A descriptive reason explaining why the benefit application is being
recalled.
Parameter clientToken :
A unique, case-sensitive identifier to ensure idempotent processing of the
recall request.
Implementation
Future<void> recallBenefitApplication({
required String catalog,
required String identifier,
required String reason,
String? clientToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PartnerCentralBenefitsService.RecallBenefitApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Catalog': catalog,
'Identifier': identifier,
'Reason': reason,
if (clientToken != null) 'ClientToken': clientToken,
},
);
}