File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,16 @@ def _from_json_list(cls,
101101
102102 for item in array :
103103 item_unwrapped = item if wrapper is None else item [wrapper ]
104+ # item_unwrapped needs to be deserialized to NotificationFilterUrl (wrapper)
105+ # when cls is NotificationFilterUrlUser or NotificationFilterUrlMonetaryAccount
106+ if wrapper == 'NotificationFilterUrl' :
107+ from bunq .sdk .model .generated .endpoint import NotificationFilterUrlUser , NotificationFilterUrlMonetaryAccount
108+ from bunq .sdk .model .generated .object_ import NotificationFilterUrl
109+ if cls == NotificationFilterUrlUser or cls == NotificationFilterUrlMonetaryAccount :
110+ cls_orig = cls
111+ cls = NotificationFilterUrl
112+ #print(f'NotificationFilterUrlUser deserialization, changing cls from: {cls_orig} to: {cls}')
113+ #TODO: Test deserialize for NotificationFilterUrlUser and NotificationFilterUrlMonetaryAccount
104114 item_deserialized = converter .deserialize (cls , item_unwrapped )
105115 array_deserialized .append (item_deserialized )
106116
You can’t perform that action at this time.
0 commit comments