orderItemsGetAmendmentByIdWithHttpInfo method

Future<Response> orderItemsGetAmendmentByIdWithHttpInfo(
  1. String id,
  2. String amendmentId, {
  3. Future<void>? abortTrigger,
})

Get an amendment

Gets one amendment of an order item. Returns the same fields as the amendment list. An unknown amendment, or one that belongs to another item or partner, returns 404 with code 10004.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): Order item id (items[].id from the order response).

  • String amendmentId (required): Amendment id (amendmentId from the confirm response, or id from the amendment list).

Implementation

Future<Response> orderItemsGetAmendmentByIdWithHttpInfo(String id, String amendmentId, { Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/order-items/{id}/amendments/{amendmentId}'
    .replaceAll('{id}', id)
    .replaceAll('{amendmentId}', amendmentId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}