ordersCommentsCreateWithHttpInfo method
Future<Response>
ordersCommentsCreateWithHttpInfo(
- int orderId,
- OrderCommentCreate orderCommentCreate
Add a new comment to order.
Note: This method returns the HTTP Response
.
Parameters:
-
int orderId (required):
-
OrderCommentCreate orderCommentCreate (required):
Implementation
Future<Response> ordersCommentsCreateWithHttpInfo(
int orderId,
OrderCommentCreate orderCommentCreate,
) async {
// ignore: prefer_const_declarations
final path = r'/api/orders/{order_id}/comments/'.replaceAll('{order_id}', orderId.toString());
// ignore: prefer_final_locals
Object? postBody = orderCommentCreate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}