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 issue where StripeObjects in lists would not be converted to dicts #698

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

ob-stripe
Copy link
Contributor

Fix issue where StripeObjects in lists would not be converted to dicts.

I updated the implementation of StripeObject.to_dict_recursive() to be similar to what we do in stripe-ruby and stripe-php:

https://github.com/stripe/stripe-ruby/blob/9787913b355049af915cf075b29666e55c5ab7f2/lib/stripe/stripe_object.rb#L182-L197

https://github.com/stripe/stripe-php/blob/a2ebaa272a8797b21e81afaf8d5ba0953ff15e13/lib/StripeObject.php#L427-L456

Fixes #695. Replaces #696.

r? @remi-stripe
cc @stripe/api-libraries

@stripe-ci stripe-ci assigned ob-stripe and unassigned remi-stripe Dec 1, 2020
@remi-stripe remi-stripe merged commit 5714996 into master Dec 1, 2020
@remi-stripe remi-stripe deleted the ob-fix-695 branch December 1, 2020 19:49
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.

Using to_dict_recursive() on StripeObject containing with lists of StripeObjects
2 participants