forked from CGM_Public/pretix_original
Webhooks: Add vouchers (Z#23203072) (#5360)
* Webhooks: Add vouchers (Z#23203072) This also requires more consistent usage of webhook types to avoid vouchers not being known to the external system. * Update src/pretix/api/webhooks.py Co-authored-by: luelista <weller@rami.io> * Fix shredder test --------- Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
@@ -571,11 +571,11 @@ class CoreOrderLogEntryType(OrderLogEntryType):
|
||||
@log_entry_types.new_from_dict({
|
||||
'pretix.voucher.added': _('The voucher has been created.'),
|
||||
'pretix.voucher.sent': _('The voucher has been sent to {recipient}.'),
|
||||
'pretix.voucher.added.waitinglist': _('The voucher has been created and sent to a person on the waiting list.'),
|
||||
'pretix.voucher.expired.waitinglist': _(
|
||||
'The voucher has been set to expire because the recipient removed themselves from the waiting list.'),
|
||||
'pretix.voucher.changed': _('The voucher has been changed.'),
|
||||
'pretix.voucher.deleted': _('The voucher has been deleted.'),
|
||||
'pretix.voucher.added.waitinglist': _('The voucher has been sent to {email} through the waiting list.'),
|
||||
})
|
||||
class CoreVoucherLogEntryType(VoucherLogEntryType):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user