acceptOrder function

Future<ApiResponse<Object?>> acceptOrder(
  1. ExsitedClient client,
  2. Object orderId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

POST /api/{api_version}/orders/{order_id}/accept

Accept an order's pending acceptance; no body sent. It raises an invoice and may require payment.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> acceptOrder(
  ExsitedClient client,
  Object orderId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(OrdersUrls.orderAccept,
        pathParams: {'order_id': orderId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);