-
Notifications
You must be signed in to change notification settings - Fork 286
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
Do not call deprecated methods on stripe.Customer #622
Conversation
The invoices method was removed on the stripe.Customer object in stripe/stripe-python@d416e9e This replaces that same logic to fetch the invoices and sync them and does it within the method itself. This should be backwards compatible with stripe-python < 2.0 as well as the 2.0 and up release. Fixes pinax#582
e43cacc
to
f9e88b2
Compare
Codecov Report
@@ Coverage Diff @@
## master #622 +/- ##
=======================================
Coverage 99.21% 99.21%
=======================================
Files 33 33
Lines 1911 1911
Branches 175 175
=======================================
Hits 1896 1896
Misses 7 7
Partials 8 8
Continue to review full report at Codecov.
|
Also, use the auto_paging_iter feature of the models
d27a73f
to
96da93e
Compare
@@ -62,3 +62,5 @@ setenv = | |||
passenv = | |||
commands = | |||
django-admin makemigrations --check -v3 --dry-run --noinput pinax_stripe | |||
deps = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once #631 is merged, this can be removed.
What's this PR do?
The invoices method was removed on the stripe.Customer object in stripe/stripe-python@d416e9e
This replaces that same logic to fetch the invoices and sync them and
does it within the method itself. This should be backwards compatible
with stripe-python < 2.0 as well as the 2.0 and up release.
Any background context you want to provide?
What ticket or issue # does this fix?
Closes #582
Closes #623
Definition of Done (check if considered and/or addressed):