createOrder method

Future<Response> createOrder(
  1. Map<String, dynamic> orderDetails
)

Sends a request to create a new order.

orderDetails: The details of the order to be created. Returns an http.Response from the API.

Implementation

Future<http.Response> createOrder(Map<String, dynamic> orderDetails) {
  return makeApiRequest(ApiEndpoints.createOrder, orderDetails, 'POST');
}