Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BunqModel updates for NotificationFilterUrl #158

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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