[//]: # (Thanks for opening this pull request! Before you proceed please make sure that you have an issue that explains what this pull request will do.
Make sure that all your commits link to this issue e.g. "My commit. (bunq/sdk_java#)".
If this pull request is changing files that are located in "com.bunq.sdk.model.generated" then this pull request will be closed as these files must/can only be changed on bunq's side.)
This does not require tests because it only adds a good practice of OOP. I created an abstract method in BunqModel and that can easily be called from the SessionContext. Now there is no need to check the type of the user, since it is done automatically by the inheritance. Hope you find it useful!
[//]: # (Thanks for opening this pull request! Before you proceed please make sure that you have an issue that explains what this pull request will do. Make sure that all your commits link to this issue e.g. "My commit. (bunq/sdk_java#)".
If this pull request is changing files that are located in "com.bunq.sdk.model.generated" then this pull request will be closed as these files must/can only be changed on bunq's side.)
This does not require tests because it only adds a good practice of OOP. I created an abstract method in BunqModel and that can easily be called from the SessionContext. Now there is no need to check the type of the user, since it is done automatically by the inheritance. Hope you find it useful!