sdk_python
sdk_python copied to clipboard
Update bunq_model.py (bunq/sdk_python#145)
@classmethod BunqModel._from_json_list assumes that the endpoint name is the same as the model name. This does not work for the abstract type NotificationFilterUrl which can be loaded from multiple endpoints (NotificationFilterUrlUser, NotificationFilterUrlMonetaryAccount)
item_unwrapped in "BunqModel._from_json_list" needs to be deserialized to NotificationFilterUrl (wrapper) when cls is NotificationFilterUrlUser or NotificationFilterUrlMonetaryAccount
This PR closes/fixes the following issues:
- Closes bunq/sdk_python#145
- [ ] Tested