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

Deprecate ServiceNested class #3051

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

jar-stripe
Copy link
Contributor

@jar-stripe jar-stripe commented Feb 4, 2025

Why?

The ServiceNested used to contain methods that mirrored functionality from the Service base class but for nested services. These methods have been removed and ServiceNested is now effectively empty. This PR marks it for future deletion.

When working on this issue, I discovered Service is no longer needed as well, as all Service type parameters in use are defined at the method level.

What?

  • added Obsolete tag and message to ServiceNested class and Service class

Changelog

  • Deprecates ServiceNested and Service<T> classes. To implement custom services, use the request methods defined on StripeClient

@jar-stripe jar-stripe enabled auto-merge (squash) February 5, 2025 00:29
@jar-stripe
Copy link
Contributor Author

Compat issues are expected, since we're changing the base class of all of the Service classes.

@jar-stripe jar-stripe changed the base branch from master to sdk-release/next-major February 5, 2025 00:59
@jar-stripe jar-stripe merged commit 966aacd into sdk-release/next-major Feb 5, 2025
2 of 3 checks passed
@jar-stripe jar-stripe deleted the jar/deprecate-servicenested branch February 5, 2025 00:59
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