updateOrderLine method
This endpoint can be used to update an order line. Only the lines that belong to an order with status created, pending or authorized can be updated.
Implementation
Future<MollieOrderResponse> updateOrderLine(MollieOrderLine orderLine) async {
var res = await http.patch(
Uri.parse(
"$_apiEndpoint/${orderLine.orderId!}/lines/${orderLine.orderLineId!}",
),
headers: _headers,
body: orderLine.toJson());
return MollieOrderResponse.build(json.decode(res.body));
}