mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
adds webhooks for giftcards (Z#23205473) (#5834)
* adds giftcard webhook events * maps issuer_id of giftcard to organizer_id for logging * adds new giftcard logtypes for transactions that aren't manual * log_action calls cleanup * drop acceptance webhook * add acceptor_id to the giftcard transaction webhook event * add missing log_action statements * add new webhooks to docs * fix tests * fix linting
This commit is contained in:
committed by
GitHub
parent
e2cb83ce28
commit
99c257d392
@@ -1226,7 +1226,11 @@ class OrderRefundView(OrderView):
|
||||
customer=order.customer,
|
||||
testmode=order.testmode
|
||||
)
|
||||
giftcard.log_action('pretix.giftcards.created', user=self.request.user, data={})
|
||||
giftcard.log_action(
|
||||
action='pretix.giftcards.created',
|
||||
user=self.request.user,
|
||||
data={}
|
||||
)
|
||||
refunds.append(OrderRefund(
|
||||
order=order,
|
||||
payment=None,
|
||||
|
||||
Reference in New Issue
Block a user