Skip to content
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

splitted Payment into a endpoint and model structure #94

Closed
wants to merge 1 commit into from

Conversation

tubbynl
Copy link
Contributor

@tubbynl tubbynl commented Jun 4, 2018

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

  • separating the model- and endpoint concerns into own hierarchy
  • enabling non-static access on the endpoint methods

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

red (non-compiling); example splitting the responsibilities of model and endpoint into own hierarchy’s,
@tubbynl tubbynl closed this Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant