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

Adds Stripe::Account #31

Merged
merged 5 commits into from
Jul 11, 2021
Merged

Adds Stripe::Account #31

merged 5 commits into from
Jul 11, 2021

Conversation

rmarronnier
Copy link
Contributor

@rmarronnier rmarronnier commented Jun 22, 2021

WIP

Stripe::Account is a big baby which might need some refactoring (I've started with Stripe::Address which was the same as Shipping::Address) if we don't want a 300+ LOC file (and most importantly if some types are shared with other Stripe objects) which might be refined as we further implement Stripe Connect and test it live.

No specs / not working yet

EDIT : Ready for review

@confact
Copy link
Owner

confact commented Jul 1, 2021

@rmarronnier, I know this is just a draft, but just curious after looking a bit in the code. Do we need to have a specific Address class for the Japanese addresses? I think Crystal can handle it fine anyway? Or is it for any other reason?

@rmarronnier
Copy link
Contributor Author

Good question : the difference between a standard address and japanese one in a Stripe context is the getter town : String property.

We could have a single Stripe::Address with a nillable town and call it a day.

It was maybe too zealous on my part to create two different classes :-)

@rmarronnier rmarronnier changed the title WIP - Adds Stripe::Account Adds Stripe::Account Jul 8, 2021
@rmarronnier
Copy link
Contributor Author

Stripe::Account is a big baby which might need some refactoring

I'm not convinced anymore the Stripe::Account class file needs to be broken up (no obvious sub-objects were found in other objects).

No specs / not working yet

Working spec written.

WIP

I'm done with it. Ready for review :-)

@confact confact merged commit 2d0b7f9 into confact:master Jul 11, 2021
rmarronnier added a commit to rmarronnier/stripe.cr that referenced this pull request Jul 11, 2021
* Stripe::Account class. Needs to be reviewed for nillable types

* WIP - refactoring Address

* Complete Account object

* Added working spec

* Merge Adress and AdressJP
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