terminateOrderTrial function

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

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

End a contract's trial now; no body sent. It starts the contract.

No typed view. Read response.map.

Implementation

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