-
Notifications
You must be signed in to change notification settings - Fork 432
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
Next major release changes #845
Conversation
# Conflicts: # stripe/api_resources/credit_note.py # stripe/api_resources/invoice.py # stripe/api_resources/source.py
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.
LGTM overall!
Let's add a changelog entry for the request logic unification bit as well - a direct link to the PR is fine. This can help people track changes down in case something broke.
@@ -9,17 +9,16 @@ class UpdateableAPIResource(APIResource): | |||
@classmethod | |||
def modify(cls, sid, **params): | |||
url = "%s/%s" % (cls.class_url(), quote_plus(util.utf8(sid))) | |||
return cls._static_request("post", url, **params) |
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.
Sorry, what is the purpose of removing api_key support from the modify method?
How could I call modify without passing api_key explicitly?
Changelog
4.0.0 - 2022-08-01
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v4. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
"⚠️ " symbol highlights breaking changes.
AlipayAccount
,BitcoinReceiver
,BitcoinTransaction
,IssuerFraudRecord
,Recipient
,RecipientTransfer
, andThreeDSecure
classes.Charge.update_dispute
andCharge.close_dispute
methods that were using legacy REST API endpoint. Prefer Dispute.modify and Dispute.closeCard.details
method andCardDetails
resource. The REST API endpoint is not longer supported.Source.source_transactions
method. PreferSubscriptionItem.list_source_transactions
SubscriptionItem.usage_record_summaries
method. PreferSubscriptionItem.list_usage_record_summaries
Charge.refund
method. Prefer Refund.createApplicationFee.refund
returns an instance ofApplicationFee
and doesn't mutate the instance ofApplicationFee
.Customer.delete_discount
no longer resets thediscount
property toNone
and returns the deleted discount instead. If you were relying on this behavior, reset the discount property manually:LineItem
resource now inherits fromStripeObject
as it has no methods of it's own.Subscription.delete_discount
returns an instance of deleted discount and doesn't mutate the instance ofSubscription
.