forked from CGM_Public/pretix_original
Webhooks: Add Shop live/offline and Testmode on/off
This commit is contained in:
@@ -56,6 +56,10 @@ The following values for ``action_types`` are valid with pretix core:
|
|||||||
* ``pretix.subevent.added``
|
* ``pretix.subevent.added``
|
||||||
* ``pretix.subevent.changed``
|
* ``pretix.subevent.changed``
|
||||||
* ``pretix.subevent.deleted``
|
* ``pretix.subevent.deleted``
|
||||||
|
* ``pretix.event.live.activated``
|
||||||
|
* ``pretix.event.live.deactivated``
|
||||||
|
* ``pretix.event.testmode.activated``
|
||||||
|
* ``pretix.event.testmode.deactivated``
|
||||||
|
|
||||||
Installed plugins might register more valid values.
|
Installed plugins might register more valid values.
|
||||||
|
|
||||||
|
|||||||
@@ -299,6 +299,22 @@ def register_default_webhook_events(sender, **kwargs):
|
|||||||
'pretix.subevent.deleted',
|
'pretix.subevent.deleted',
|
||||||
pgettext_lazy('subevent', 'Event series date deleted'),
|
pgettext_lazy('subevent', 'Event series date deleted'),
|
||||||
),
|
),
|
||||||
|
ParametrizedEventWebhookEvent(
|
||||||
|
'pretix.event.live.activated',
|
||||||
|
_('Shop taken live'),
|
||||||
|
),
|
||||||
|
ParametrizedEventWebhookEvent(
|
||||||
|
'pretix.event.live.deactivated',
|
||||||
|
_('Shop taken offline'),
|
||||||
|
),
|
||||||
|
ParametrizedEventWebhookEvent(
|
||||||
|
'pretix.event.testmode.activated',
|
||||||
|
_('Testmode of shop has been activated'),
|
||||||
|
),
|
||||||
|
ParametrizedEventWebhookEvent(
|
||||||
|
'pretix.event.testmode.deactivated',
|
||||||
|
_('Testmode of shop has been deactivated'),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user