-
Notifications
You must be signed in to change notification settings - Fork 547
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
Support for APIs in the new API version 2024-09-30.acacia #1458
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Update generated code for v1261 * Update generated code for v1268 * Update generated code for v1268 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
ramya-stripe
changed the title
Sdk release/next major
Support for APIs in the new API version 2024-09-30
Sep 27, 2024
* changed the object_name for v2 events from "event" to "v2.core.event" * improved debug output in stripe_webhook_handler example
ramya-stripe
changed the title
Support for APIs in the new API version 2024-09-30
Support for APIs in the new API version 2024-09-30.acacia
Oct 1, 2024
… internal/deprecated (#1461) * Add meter events base as an option * Deprecate raw_request * Mark APIRequestor.request as deprecated as well * Untype to pass sorbet for now * ignore rubocop
helenye-stripe
approved these changes
Oct 1, 2024
prathmesh-stripe
added a commit
that referenced
this pull request
Oct 3, 2024
* Support for APIs in the new API version 2024-09-30.acacia (#1458) * remove parseSnapshotEvent (#1463) * Bump version to 13.0.0 * Fixed API Version --------- Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: Prathmesh Ranaut <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
This release changes the pinned API version to
2024-09-30.acacia
. Please read the API Upgrade Guide and carefully review the API changes before upgrading.Please refer to our migration guide for v13 for more information about the backwards incompatible changes.
❗
StripeClient
and related changesStripeClient
and requestor logic toAPIRequestor
.StripeClient#request
is still available, but is deprecated and will be removed. We encourageStripeClient#raw_request
as a replacement (see other breaking changes for more detail).StripeClient
as the the entry-point to the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm. Services are available under thev1
andv2
accessors.retrieve
before doing anupdate
.Other breaking changes
0
->2
2
->5
StripeClient#connection_manager
. This was a legacy method from years ago.retrieve
method now requiresparams
to be passed as the first argument. Existing calls to singletonretrieve
method with onlyopts
argument will have to be updated to account for the addition ofparams
argument.Stripe.raw_request()
method that was recently added toStripeClient
. This will use the configuration set on the StripeClient instead of the global configuration used before.APIResource.request
. Instead, useStripeClient#raw_request
now.APIResource.execute_resource_request
. However, we discourage use of this in favor ofStripeClient#raw_request
.APIRequestor.execute_request
(previouslyStripeClient.execute_request
). It now returns all request options from our internal request framework as the second value in the returned tuple, instead of only the API key used:Additions
Billing.MeterEvent
,Billing.MeterEventAdjustments
,Billing.MeterEventSession
,Billing.MeterEventStream
and the new Events APICore.Events
in the v2 namespaceparse_thin_event()
on theStripeClient
class to parse thin events.