From 763a0e7bbf5fce1175def5927c2ac14d1d2d435b Mon Sep 17 00:00:00 2001 From: Dave Page Date: Thu, 31 Jul 2025 14:23:21 +0200 Subject: [PATCH] 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. --- postgresqleu/transferwise/api.py | 1 + 1 file changed, 1 insertion(+) 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'])) -- 2.39.5