webhooks/stripe: Blacklist invoice changes under invoiceitem category.

This commit is contained in:
Hemanth V. Alluri 2019-06-09 22:50:10 +05:30 committed by Tim Abbott
parent 325b1fd6c4
commit 611808381f
1 changed files with 1 additions and 1 deletions

View File

@ -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