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

Fix v2 event object name #1459

Merged
merged 6 commits into from
Sep 28, 2024

Conversation

jar-stripe
Copy link
Contributor

@jar-stripe jar-stripe commented Sep 27, 2024

Why?

The SDK uses object strings in the API response to decide what class to parse a resource returned from the Stripe API into. Recently, the object string for the V2 event base class changed from "event" to "v2.core.event". We have to update the SDK to match.

What?

  • Changed "event" to "v2.core.event" in util.rb convert_to_stripe_object_with_params

Verified using the stripe_webhook_handler.rb example with events triggered from and forwarded by the Stripe CLI

See Also

http://go/j/DEVSDK-2202

improved debug output in stripe_webhook_handler example
@jar-stripe jar-stripe merged commit fb9bc30 into sdk-release/next-major Sep 28, 2024
14 checks passed
@jar-stripe jar-stripe deleted the jar/fix-v2-event-object-string branch September 28, 2024 00:28
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.

2 participants