describeAgreement method
Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agreementId :
The unique identifier of the agreement.
Implementation
Future<DescribeAgreementOutput> describeAgreement({
required String agreementId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSMPCommerceService_v20200301.DescribeAgreement'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'agreementId': agreementId,
},
);
return DescribeAgreementOutput.fromJson(jsonResponse.body);
}