bunq / sdk_python

Python SDK for bunq API
MIT License
106 stars 25 forks source link

Sample for reading/using shared accounts #90

Closed CharlPels closed 6 years ago

CharlPels commented 6 years ago

Steps to reproduce:

  1. None

What should happen:

  1. Add some examples for shared accounts

What happens:

  1. Make customer happy

Traceback

SDK version and environment

Response id

Extra info:

OGKevin commented 6 years ago

@CharlPels I dont quite understand what you want to do. Define shared accounts. Are you talking about connects or joint ? Eitherway, both will be in the result of https://github.com/bunq/sdk_python/blob/25c6e353dfcefedfd4e1cd01e6cea529c710e7ef/bunq/sdk/model/generated/endpoint.py#L13381-L13406

CharlPels commented 6 years ago

Hello,

Sorry with shared accounts I mean joint accounts :-) did an update of the bunq SDK, that seems to break my solution :-( bunq.sdk.exception.BunqException: ApiContext has not been loaded. Please load ApiContext in BunqContext

no clue why :-(

OGKevin commented 6 years ago

You can use this as example:

https://github.com/bunq/tinker_python/blob/3898543198df8c5a496fdb35dd70c994c556b102/tinker/libs/bunq_lib.py#L69-L73

For monetary account joint you can use: https://github.com/bunq/sdk_python/blob/25c6e353dfcefedfd4e1cd01e6cea529c710e7ef/bunq/sdk/model/generated/endpoint.py#L13476

OGKevin commented 6 years ago

Please create issue in bunq/tinker_python to add script to retrieve joint accounts. Tinker will be used as example.

You must load your ApiContext in bunqContext and then preform a call to the joint account class. Please see the documented code and/or method signature on how to use the methods.