ordersUpdateWithHttpInfo method
Update order price estimation.
Note: This method returns the HTTP Response
.
Parameters:
-
int id (required): A unique integer value identifying this Order.
-
OrderUpdate orderUpdate (required):
Implementation
Future<Response> ordersUpdateWithHttpInfo(
int id,
OrderUpdate orderUpdate,
) async {
// ignore: prefer_const_declarations
final path = r'/api/orders/{id}/'.replaceAll('{id}', id.toString());
// ignore: prefer_final_locals
Object? postBody = orderUpdate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}