mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Add webhooks for quota changes (Z#23232443)
This commit is contained in:
@@ -70,6 +70,7 @@ The following values for ``action_types`` are valid with pretix core:
|
|||||||
* ``pretix.subevent.changed``
|
* ``pretix.subevent.changed``
|
||||||
* ``pretix.subevent.deleted``
|
* ``pretix.subevent.deleted``
|
||||||
* ``pretix.event.item.*``
|
* ``pretix.event.item.*``
|
||||||
|
* ``pretix.event.quota.*``
|
||||||
* ``pretix.event.live.activated``
|
* ``pretix.event.live.activated``
|
||||||
* ``pretix.event.live.deactivated``
|
* ``pretix.event.live.deactivated``
|
||||||
* ``pretix.event.testmode.activated``
|
* ``pretix.event.testmode.activated``
|
||||||
|
|||||||
@@ -408,6 +408,12 @@ def register_default_webhook_events(sender, **kwargs):
|
|||||||
_('This includes product added or deleted and changes to nested objects like '
|
_('This includes product added or deleted and changes to nested objects like '
|
||||||
'variations or bundles.'),
|
'variations or bundles.'),
|
||||||
),
|
),
|
||||||
|
ParametrizedItemWebhookEvent(
|
||||||
|
'pretix.event.quota.*',
|
||||||
|
_('Quota changed'),
|
||||||
|
_('This includes related events like creation, deletion, opening or closing of quotas. '
|
||||||
|
'No webhook is sent for changes to the resulting availability.'),
|
||||||
|
),
|
||||||
ParametrizedEventWebhookEvent(
|
ParametrizedEventWebhookEvent(
|
||||||
'pretix.event.live.activated',
|
'pretix.event.live.activated',
|
||||||
_('Shop taken live'),
|
_('Shop taken live'),
|
||||||
|
|||||||
Reference in New Issue
Block a user