mirror of https://github.com/zulip/zulip.git
webhooks/stripe: Blacklist invoice changes under invoiceitem category.
This commit is contained in:
parent
325b1fd6c4
commit
611808381f
|
@ -170,7 +170,7 @@ def topic_and_body(payload: Dict[str, Any]) -> Tuple[str, str]:
|
||||||
total=amount_string(object_['total'], object_['currency']),
|
total=amount_string(object_['total'], object_['currency']),
|
||||||
due=amount_string(object_['amount_due'], object_['currency']))
|
due=amount_string(object_['amount_due'], object_['currency']))
|
||||||
if category == 'invoiceitem':
|
if category == 'invoiceitem':
|
||||||
body = default_body(update_blacklist=['description'])
|
body = default_body(update_blacklist=['description', 'invoice'])
|
||||||
if event == 'created':
|
if event == 'created':
|
||||||
body += ' for {amount}'.format(amount=amount_string(object_['amount'], object_['currency']))
|
body += ' for {amount}'.format(amount=amount_string(object_['amount'], object_['currency']))
|
||||||
if category.startswith('issuing'): # nocoverage
|
if category.startswith('issuing'): # nocoverage
|
||||||
|
|
Loading…
Reference in New Issue