Compare commits

...

1 Commits

Author SHA1 Message Date
Lukas Bockstaller
51dc1b6029 add missing slug fields 2026-02-24 10:13:03 +01:00

View File

@@ -183,6 +183,7 @@ class ParametrizedGiftcardWebhookEvent(ParametrizedWebhookEvent):
return { return {
'notification_id': logentry.pk, 'notification_id': logentry.pk,
'issuer_id': logentry.organizer_id, 'issuer_id': logentry.organizer_id,
'issuer_slug': logentry.organizer.slug,
'giftcard': giftcard.pk, 'giftcard': giftcard.pk,
'action': logentry.action_type, 'action': logentry.action_type,
} }
@@ -197,6 +198,7 @@ class ParametrizedGiftcardTransactionWebhookEvent(ParametrizedWebhookEvent):
return { return {
'notification_id': logentry.pk, 'notification_id': logentry.pk,
'issuer_id': logentry.organizer_id, 'issuer_id': logentry.organizer_id,
'issuer_slug': logentry.organizer.slug,
'acceptor_id': logentry.parsed_data.get('acceptor_id'), 'acceptor_id': logentry.parsed_data.get('acceptor_id'),
'acceptor_slug': logentry.parsed_data.get('acceptor_slug'), 'acceptor_slug': logentry.parsed_data.get('acceptor_slug'),
'giftcard': giftcard.pk, 'giftcard': giftcard.pk,