cancel method

Future<MollieOrderResponse> cancel(
  1. String orderId
)

Cancels an order

Implementation

Future<MollieOrderResponse> cancel(String orderId) async {
  var res = await http.delete(
    Uri.parse("$_apiEndpoint/$orderId"),
    headers: _headers,
  );

  return MollieOrderResponse.build(json.decode(res.body));
}