We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1c7f35 + 6bf9d67 commit b203d16Copy full SHA for b203d16
bunq/sdk/model/core/bunq_model.py
@@ -58,7 +58,11 @@ def _unwrap_response_single(cls,
58
obj: Dict,
59
wrapper: str = None) -> Dict:
60
if wrapper is not None:
61
- return obj[cls._FIELD_RESPONSE][cls._INDEX_FIRST][wrapper]
+ from bunq.sdk.model.generated.endpoint import NotificationFilterUrlUser, NotificationFilterUrlMonetaryAccount
62
+ if cls == NotificationFilterUrlUser or cls == NotificationFilterUrlMonetaryAccount:
63
+ return obj[cls._FIELD_RESPONSE][cls._INDEX_FIRST]['NotificationFilterUrl']
64
+ else:
65
+ return obj[cls._FIELD_RESPONSE][cls._INDEX_FIRST][wrapper]
66
67
return obj[cls._FIELD_RESPONSE][cls._INDEX_FIRST]
68
0 commit comments