orderItemsGetAmendmentsWithHttpInfo method
List item amendments
Lists every amendment of an order item. Returns the whole list as an array, without paging. Each amendment has id, orderItemId, status, productType, createdAt, amountToPay and amountToRefund. An item of another partner, or an unknown id, returns 404 with code 10004.
Note: This method returns the HTTP Response.
Parameters:
- String id (required):
Order item id (
items[].idfrom the order response).
Implementation
Future<Response> orderItemsGetAmendmentsWithHttpInfo(String id, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/order-items/{id}/amendments'
.replaceAll('{id}', id);
// 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,
);
}