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

Fixed raw request deserialization for v1 and v2 Api endpoints #1883

Merged

Conversation

prathmesh-stripe
Copy link
Contributor

Currently StripeClient.deserialize method could not parse V2 endpoints correctly. This caused a type cast exception:

class com.stripe.model.StripeRawJsonObject cannot be cast to class com.stripe.model.v2.billing.MeterEventSession

Fix involved passing ApiMode through to the deserialize function, searching the right EventDataLookup class and updating existing event deserialization calls.

Copy link
Contributor

@helenye-stripe helenye-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm for now but could we file a follow up to clean up the public/private for q4?

@prathmesh-stripe prathmesh-stripe merged commit d5d7d03 into sdk-release/next-major Oct 1, 2024
11 of 12 checks passed
@prathmesh-stripe prathmesh-stripe deleted the prathmesh/fix-java-deserialize branch October 1, 2024 13: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.

3 participants