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

Mark ServiceNested as Obsolete #2983

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

jar-stripe
Copy link
Contributor

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.

What?

  • added Obsolete tag and message to ServiceNested class

ramya-stripe and others added 10 commits September 20, 2024 11:55
* Update generated code for v1267

* Update generated code for v1268

* Update generated code for v1268

* Update generated code for v1268

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
NOTE: manually merged StripeClient.cs, StripeTypeRegistry.cs, and StripeException.cs from ramya/test branch to ensure codegen would succeed
* removed extra nested service methods from Checkout/Sessions/SessionService and Invoices/InvoiceService

* added missing Update methods to InvoiceService.partial.cs

* updated comments in v2 event files
* updated test names (due to renamed services)

* corrected replacement name in Obsolete comments

* Missing reference to System when using Obsolete tag

* removed Obsolete from constructors that take IStripeClient (we will add this back in later if needed)

* marked obsolete method with Obsolete and split them into CreditNoteService.partial.cs (to match existing pattern of service + partial service)

* marked obsolete method with Obsolete and split them into SourceService.partial.cs (to match existing pattern of service + partial service)

---------

Co-authored-by: Ramya Rao <[email protected]>
@jar-stripe jar-stripe changed the base branch from master to sdk-release/next-major October 1, 2024 15:12
ramya-stripe
ramya-stripe previously approved these changes Oct 1, 2024
@ramya-stripe ramya-stripe dismissed their stale review October 1, 2024 15:59

Build is failing

Base automatically changed from sdk-release/next-major to master October 1, 2024 16:37
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.

3 participants