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

Better handling of namespaced resources #657

Merged
merged 1 commit into from Feb 4, 2019
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries

Better handling of namespaced resources, by using the sub-package's name as the namespace (e.g. if the sub-package is com.stripe.model.issuing, issuing is the resource's namespace).

This way we don't have to manually add new namespaces.

This is still a bit too implicit / magic for my taste and I'd rather we explicitly declare the full Stripe object name in each model class, but we can do that later.

@remi-stripe
Copy link
Contributor

LGTM though I wonder if that will break at some point to rely on that 4 levels. Again I prefer to not approve core changes so re-assigning to @mickjermsurawong-stripe

@mickjermsurawong-stripe
Copy link
Contributor

Left a nit comment, but I don't feel too strongly about; I doubt we will have subpackage within current package.
LGTM
thank you @ob-stripe!

@ob-stripe ob-stripe merged commit 978e71c into master Feb 4, 2019
@ob-stripe ob-stripe deleted the ob-namespaced-resources branch February 4, 2019 10:53
@ob-stripe
Copy link
Contributor Author

Released as 7.18.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants