bunq / sdk_java

Java SDK for bunq API
MIT License
49 stars 23 forks source link

splitted Payment into a endpoint and model structure #94

Closed tubbynl closed 6 years ago

tubbynl commented 6 years ago

red (non-compiling); example splitting the responsibilities of model and endpoint into own hierarchy’s, this example code for issue #93

currently due to static methods the sdk/api is limited to single-context use and using it in tests is harder.

this example code is illustrates the following

it is however breaking api, up to some extend it is possible to prevent this, but having model and endpoint concerns in the same package/class (for Payment at least) is not splittable without breaking compatibility