mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
webhooks: Handle dispute events with object IDs prefixed with du.
Sometimes the dispute object IDs are prefixed with `du` instead of `dp`. https://freenode.logbot.info/stripe/20200605#c4059469 The correct long-term fix here would be to stop using object IDs to detect the object type of these events and instead maybe make use of "object" key instead. https://stripe.com/docs/api/disputes/object#dispute_object-object
This commit is contained in:
@@ -212,6 +212,7 @@ def linkified_id(object_id: str, lower: bool=False) -> str:
|
|||||||
'ch': ('Charge', 'charges'),
|
'ch': ('Charge', 'charges'),
|
||||||
'cus': ('Customer', 'customers'),
|
'cus': ('Customer', 'customers'),
|
||||||
'dp': ('Dispute', 'disputes'),
|
'dp': ('Dispute', 'disputes'),
|
||||||
|
'du': ('Dispute', 'disputes'),
|
||||||
'file': ('File', 'files'),
|
'file': ('File', 'files'),
|
||||||
'link': ('File link', 'file_links'),
|
'link': ('File link', 'file_links'),
|
||||||
'pi': ('Payment intent', 'payment_intents'),
|
'pi': ('Payment intent', 'payment_intents'),
|
||||||
|
|||||||
Reference in New Issue
Block a user