Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BunqModel updates for NotificationFilterUrl #158

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

Open
rikvermeer wants to merge 3 commits into bunq:develop
base: develop
Choose a base branch
Loading
from rikvermeer:rikvermeer-patch-2

Conversation

Copy link

@rikvermeer rikvermeer commented Apr 25, 2021

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
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add a test for oauth_authorization_uri
1 participant

AltStyle によって変換されたページ (->オリジナル) /