- #1104 Include
py.typed
and enable type annotations for the package- This PR includes
py.typed
and 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 genericStripeObject
instances. - ⚠️ Behavior change:
PromotionCode.restrictions.currency_options
will now deserialize intodict
and 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_parameter
on 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