cancelOrder method

Future<void> cancelOrder({
  1. required String orderId,
})

Cancels the specified order for an Outpost.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw NotFoundException. May throw ValidationException.

Parameter orderId : The ID of the order.

Implementation

Future<void> cancelOrder({
  required String orderId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/orders/${Uri.encodeComponent(orderId)}/cancel',
    exceptionFnMap: _exceptionFns,
  );
}