From ce234e69f693ab6b18bea30312c94c41dcc61d57 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 24 Apr 2022 19:21:04 +0100 Subject: [PATCH] Make more fields optional for Nordigen --- handler/lib/serde/nordigen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handler/lib/serde/nordigen.py b/handler/lib/serde/nordigen.py index 94e95cf..3c0e738 100644 --- a/handler/lib/serde/nordigen.py +++ b/handler/lib/serde/nordigen.py @@ -32,7 +32,7 @@ class Transaction(Model): proprietaryBankTransactionCode: fields.Optional(fields.Str()) remittanceInformationUnstructured: fields.Optional(fields.Str()) transactionAmount: fields.Nested(Amount) - transactionId: fields.Str() + transactionId: fields.Optional(fields.Str()) class Pending(Transaction): @@ -93,16 +93,16 @@ class Requisitions(Model): class Account(Model): resourceId: fields.Optional(fields.Str()) - iban: fields.Str() + iban: fields.Optional(fields.Str()) bban: fields.Optional(fields.Str()) currency: fields.Str() - ownerName: fields.Str() + ownerName: fields.Optional(fields.Str()) status: fields.Optional(fields.Str()) details: fields.Optional(fields.Str()) class AccountDetails(Model): - account: fields.Nested(Account) + account: fields.Optional(fields.Nested(Account)) class AccountBalanceAmount(Model):