From: Dave Page Date: Thu, 31 Jul 2025 12:23:21 +0000 (+0200) Subject: Treat wise DIRECT_DEBIT_TRANSACTION as a TRANSFER X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=763a0e7bbf5fce1175def5927c2ac14d1d2d435b;p=pgeu-system.git Treat wise DIRECT_DEBIT_TRANSACTION as a TRANSFER They seem to be similar except we don't have permissions to read the details. But we shouldn't crash on it. --- diff --git a/postgresqleu/transferwise/api.py b/postgresqleu/transferwise/api.py index 0f16ca38..621e97a4 100644 --- a/postgresqleu/transferwise/api.py +++ b/postgresqleu/transferwise/api.py @@ -125,6 +125,7 @@ class TransferwiseApi(object): for activity in r['activities']: if activity['type'] == 'TRANSFER' or \ + activity['type'] == 'DIRECT_DEBIT_TRANSACTION' or \ (activity['type'] == 'BALANCE_DEPOSIT' and activity['resource']['type'] == 'TRANSFER'): try: details = self.get('transfers/{}'.format(activity['resource']['id']))