summaryrefslogtreecommitdiff
path: root/postgresqleu/transferwise/api.py
diff options
context:
space:
mode:
authorDave Page2025-07-31 12:23:21 +0000
committerMagnus Hagander2025-07-31 12:23:21 +0000
commit763a0e7bbf5fce1175def5927c2ac14d1d2d435b (patch)
tree10cf1d61cb76a6339463042d01432820a279550a /postgresqleu/transferwise/api.py
parent92ed8ef09c7a7a7ac8cef9c42cfeca58c0cde37a (diff)
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.
Diffstat (limited to 'postgresqleu/transferwise/api.py')
-rw-r--r--postgresqleu/transferwise/api.py1
1 files changed, 1 insertions, 0 deletions
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']))