Skip to content

Conversation

rikvermeer
Copy link

This PR closes/fixes the following issues: NotificationFilterUrl creation / listing on NotificationFilterUrlUser and NotificationFilterUrlMonetaryAccount.

The endpoint and model differ for NotificationFilterUrl since there are two endpoints for this model. NotificationFilterUrlUser and NotificationFilterUrlMonetaryAccount.

(These changes does import subclasses into the superclass to do condition checks)

@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
Fixes the creation of NotificationFilterUrl by NotificationFilterUrlUser and NotificationFilterUrlMonetaryAccount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a test for oauth_authorization_uri
1 participant