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

Removes quantity getter in Stripe::Subscription #28

Conversation

rmarronnier
Copy link
Contributor

While trying to pull and create a Stripe::Subscription from json payload, I got a parsing error :

Missing JSON attribute: quantity\n  parsing Stripe::Subscription at line 1, column 1

The json is correct wrt https://stripe.com/docs/api/subscriptions/object , the Stripe::Subscription object has only a quantity key buried in the item sub object.

@confact
Copy link
Owner

confact commented May 27, 2021

Thanks, @rmarronnier - Good catch!

@confact confact merged commit 7545f69 into confact:master May 27, 2021
rmarronnier added a commit to rmarronnier/stripe.cr that referenced this pull request Jul 11, 2021
stephendolan pushed a commit that referenced this pull request Jul 11, 2021
* Updates

* Code review (typos + comments)

* Removed quantity getter in Stripe::Subscription (#28)

* Bump actions/cache from 2.1.5 to 2.1.6 (#29)

* Adds Stripe::File and Stripe::FileLink (#32)

* file + file_link classes

* Add retrieve methods and specs

* Readme update

* Adds Stripe::Account (#31)

* Stripe::Account class. Needs to be reviewed for nillable types

* WIP - refactoring Address

* Complete Account object

* Added working spec

* Merge Adress and AdressJP

* Adds Event object and Webhook class (#26)

* Adds Event object + spec

* WIP - Adding Webhook class / methods / specs

* WIP - needs proper new  Error objects

* Webhook methods tested and updated.

* Fixed ameba style verbose warning in webhook

* WIP on macroization

* cleanup

* webhook security specs

* Better event spec + previous_attributes field

* Added annotations + respective macros

* Stripe::Account union fields

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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