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 APIResource#retrieve bug not returning instance of custom resources #1476

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

helenye-stripe
Copy link
Contributor

@helenye-stripe helenye-stripe commented Oct 28, 2024

Why?

A bug was introduced in v13.0.0 where we did not return the specific instance type if it wasn't available in our object mapping chart when a v1 resource was refreshed (custom resources). This addresses that.

Changelog

  • Fix bug in APIResource#refresh and APIResource#retrieve where they returned an instance of StripeObject for custom resources. They should now return the instance of the custom resource.

@helenye-stripe helenye-stripe merged commit fb11d83 into master Oct 28, 2024
14 checks passed
@helenye-stripe helenye-stripe deleted the helenye-refresh-inv branch October 28, 2024 17:29
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