getBillingAdjustmentRequest method

Future<GetBillingAdjustmentRequestOutput> getBillingAdjustmentRequest({
  1. required String agreementId,
  2. required String billingAdjustmentRequestId,
})

Retrieves detailed information about a specific billing adjustment request. Sellers (proposers) can use this operation to view the status and details of a billing adjustment request they submitted.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agreementId : The unique identifier of the agreement associated with the billing adjustment request.

Parameter billingAdjustmentRequestId : The unique identifier of the billing adjustment request.

Implementation

Future<GetBillingAdjustmentRequestOutput> getBillingAdjustmentRequest({
  required String agreementId,
  required String billingAdjustmentRequestId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSMPCommerceService_v20200301.GetBillingAdjustmentRequest'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'agreementId': agreementId,
      'billingAdjustmentRequestId': billingAdjustmentRequestId,
    },
  );

  return GetBillingAdjustmentRequestOutput.fromJson(jsonResponse.body);
}