v7.1.0
·
311 commits
to master
since this release
- #1104 Include
py.typedand enable type annotations for the package- This PR includes
py.typedand enables inline type annotations for stripe-python package. Inline type annotations will now take precedence over Typeshed for users who use a type checker or IDE. - See a detailed guide on the Github Wiki.
- This PR includes
- #1103 Inner resource classes
- Behavior change: nested json objects will now deserialize into instances of specific classes that subclass
StripeObject, instead of into genericStripeObjectinstances. ⚠️ Behavior change:PromotionCode.restrictions.currency_optionswill now deserialize intodictand notStripeObject.
- Behavior change: nested json objects will now deserialize into instances of specific classes that subclass
- #1090 Update generated code
- Add support for new value
balance_invalid_parameteron enumsInvoice.LastFinalizationError,PaymentIntent.LastPaymentError,SetupAttempt.SetupError, andSetupIntent.LastSetupError
- Add support for new value
- #1096 Add @util.deprecated decorator and deprecate
save. - #1091 APIRequestor: don't mutate incoming multipart headers