API/Vouchers: Expose "budget" and "budget_used" (Z#286557) (#5325)

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Martin Gross
2025-07-28 18:53:15 +02:00
committed by GitHub
parent f5b0454e9f
commit e1756a1ebb
4 changed files with 23 additions and 8 deletions

View File

@@ -49,6 +49,8 @@ subevent integer ID of the date
show_hidden_items boolean Only if set to ``true``, this voucher allows to buy products with the property ``hide_without_voucher``. Defaults to ``true``.
all_addons_included boolean If set to ``true``, all add-on products for the product purchased with this voucher are included in the base price.
all_bundles_included boolean If set to ``true``, all bundled products for the product purchased with this voucher are added without their designated price.
budget money (string) The budget a voucher is allowed to consume before being used up (or ``null``)
budget_used money (string) The amount of budget the voucher has already used up.
===================================== ========================== =======================================================
@@ -99,7 +101,9 @@ Endpoints
"subevent": null,
"show_hidden_items": false,
"all_addons_included": false,
"all_bundles_included": false
"all_bundles_included": false,
"budget": None,
"budget_used": "0.00"
}
]
}
@@ -169,7 +173,9 @@ Endpoints
"subevent": null,
"show_hidden_items": false,
"all_addons_included": false,
"all_bundles_included": false
"all_bundles_included": false,
"budget": None,
"budget_used": "0.00"
}
:param organizer: The ``slug`` field of the organizer to fetch
@@ -239,7 +245,9 @@ Endpoints
"subevent": null,
"show_hidden_items": false,
"all_addons_included": false,
"all_bundles_included": false
"all_bundles_included": false,
"budget": None,
"budget_used": "0.00"
}
:param organizer: The ``slug`` field of the organizer to create a voucher for
@@ -376,7 +384,9 @@ Endpoints
"subevent": null,
"show_hidden_items": false,
"all_addons_included": false,
"all_bundles_included": false
"all_bundles_included": false,
"budget": None,
"budget_used": "0.00"
}
:param organizer: The ``slug`` field of the organizer to modify