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.
Parameters:
-
agreement_id
(AgreementId)
–
The unique identifier of the agreement associated with the billing adjustment request.
-
billing_adjustment_request_id
(BillingAdjustmentRequestId)
–
The unique identifier of the billing adjustment request.
Raises:
Examples:
Get a billing adjustment request
>>> client.get_billing_adjustment_request(billing_adjustment_request_id='ba-1a2b3c4d5e6f7g', agreement_id='agmt-SvIzsqYMyQwI3GWgJAe17URx')
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
| def get_billing_adjustment_request(
self,
agreement_id: "capo_marketplace_agreement.types.agreement_id.AgreementId",
billing_adjustment_request_id: "capo_marketplace_agreement.types.billing_adjustment_request_id.BillingAdjustmentRequestId",
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
) -> "capo_marketplace_agreement.types.get_billing_adjustment_request_output.GetBillingAdjustmentRequestOutput":
"""<p>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.</p>
Args:
agreement_id: <p>The unique identifier of the agreement associated with the billing adjustment request.</p>
billing_adjustment_request_id: <p>The unique identifier of the billing adjustment request.</p>
Raises:
capo_marketplace_agreement.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_marketplace_agreement.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_marketplace_agreement.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_marketplace_agreement.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_marketplace_agreement.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
capo_marketplace_agreement.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get a billing adjustment request
>>> client.get_billing_adjustment_request(billing_adjustment_request_id='ba-1a2b3c4d5e6f7g', agreement_id='agmt-SvIzsqYMyQwI3GWgJAe17URx')
"""
def _handler(
req: "OperationRequest[capo_marketplace_agreement.types.get_billing_adjustment_request_input.GetBillingAdjustmentRequestInput]",
) -> OperationResponse[
"capo_marketplace_agreement.types.get_billing_adjustment_request_output.GetBillingAdjustmentRequestOutput"
]:
import capo_marketplace_agreement._operations.awsmp_commerce_service_v20200301.get_billing_adjustment_request
output, http_response = (
capo_marketplace_agreement._operations.awsmp_commerce_service_v20200301.get_billing_adjustment_request.get_billing_adjustment_request(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetBillingAdjustmentRequest")
)
input_: capo_marketplace_agreement.types.get_billing_adjustment_request_input.GetBillingAdjustmentRequestInput = {
"agreement_id": agreement_id,
"billing_adjustment_request_id": billing_adjustment_request_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|