From 93570d42c77b6e5ead6fc71ca47827b3b1332e07 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Tue, 25 Feb 2025 13:57:01 +0100 Subject: [PATCH] Consistent order of examples --- doc/api/resources/orders.rst | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/doc/api/resources/orders.rst b/doc/api/resources/orders.rst index 156b68c564..2837a64e3d 100644 --- a/doc/api/resources/orders.rst +++ b/doc/api/resources/orders.rst @@ -2242,11 +2242,11 @@ otherwise, such as splitting an order or changing fees. * ``patch_fees``: A list of objects with the two keys ``fee`` specifying an order fee ID and ``body`` specifying the desired changed values of the position (``value``). + * ``cancel_fees``: A list of objects with the single key ``fee`` specifying an order fee ID. + * ``create_fees``: A list of objects describing new order fees with the fields ``fee_type``, ``value``, ``description``, ``internal_type``, ``tax_rule`` - * ``cancel_fees``: A list of objects with the single key ``fee`` specifying an order fee ID. - * ``recalculate_taxes``: If set to ``"keep_net"``, all taxes will be recalculated based on the tax rule and invoice address, the net price will be kept. If set to ``"keep_gross"``, the gross price will be kept. If set to ``null`` (the default) the taxes are not recalculated. @@ -2266,11 +2266,6 @@ otherwise, such as splitting an order or changing fees. Content-Type: application/json { - "cancel_positions": [ - { - "position": 12373 - } - ], "patch_positions": [ { "position": 12374, @@ -2284,6 +2279,11 @@ otherwise, such as splitting an order or changing fees. } } ], + "cancel_positions": [ + { + "position": 12373 + } + ], "split_positions": [ { "position": 12375 @@ -2300,11 +2300,6 @@ otherwise, such as splitting an order or changing fees. "attendee_name": "Peter", } ], - "cancel_fees": [ - { - "fee": 49 - } - ], "patch_fees": [ { "fee": 51, @@ -2313,6 +2308,12 @@ otherwise, such as splitting an order or changing fees. } } ], + "cancel_fees": [ + { + "fee": 49 + } + ] + ], "reissue_invoice": true, "send_email": true, "recalculate_taxes": "keep_gross"