sdk_python icon indicating copy to clipboard operation
sdk_python copied to clipboard

Update bunq_model.py (bunq/sdk_python#145)

Open rikvermeer opened this issue 3 years ago • 0 comments

@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

rikvermeer avatar Apr 25 '21 20:04 rikvermeer