API: CartPositions (#948)

This commit is contained in:
Raphael Michel
2018-06-11 13:18:37 +02:00
committed by GitHub
parent 2e906b0bf5
commit 5d7931fcaf
10 changed files with 782 additions and 10 deletions

View File

@@ -20,3 +20,4 @@ Resources and endpoints
vouchers
checkinlists
waitinglist
carts

View File

@@ -490,6 +490,9 @@ Order endpoints
``"n"`` for pending or ``"p"`` for paid. If you create a paid order, the ``order_paid`` signal will **not** be
sent out to plugins and no email will be sent. If you want that behavior, create an unpaid order and then call
the ``mark_paid`` API method.
* ``consume_carts`` (optional) A list of cart IDs. All cart positions with these IDs will be deleted if the
order creation is successful. Any quotas that become free by this operation will be credited to your order
creation.
* ``email``
* ``locale``
* ``payment_provider`` The identifier of the payment provider set for this order. This needs to be an existing
@@ -580,11 +583,11 @@ Order endpoints
{
"positionid": 1,
"item": 1,
"variation": None,
"variation": null,
"price": "23.00",
"attendee_name": "Peter",
"attendee_email": None,
"addon_to": None,
"attendee_email": null,
"addon_to": null,
"answers": [
{
"question": 1,
@@ -592,7 +595,7 @@ Order endpoints
"options": []
}
],
"subevent": None
"subevent": null
}
],
}