stripe-python
stripe-python copied to clipboard
Python library for the Stripe API.
Codegen for openapi v861. ## Changelog
Codegen for openapi v860. ## Changelog
### Describe the bug In 2.22 a function `convert_to_dict` was added: https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#2220---2019-03-14 https://github.com/stripe/stripe-python/pull/541 After upgrading to 8.x we've started getting warnings that we cannot import from stripe.util anymore, which is...
### Describe the bug `Account` class has `tos_acceptance: Optional[TosAcceptance]`. `TosAcceptance` class has `service_agreement: Optional[str]` The following code: ``` if ( connected_account.tos_acceptance is not None and connected_account.tos_acceptance.service_agreement == "recipient" ): ```...
## Background Stripe resources have properties that are sometimes *absent*. The way stripe-python handles this is, it gives you an AttributeError if you try and access the property. Unfortunately, we...
### Describe the bug The type hints introduced in 7.3.0 appear to be incomplete and enabling the `reportIncompatibleMethodOverride = true` setting in pyright highlights this (mypy detects this out-of-the-box). For...
Codegen for openapi v998. ## Changelog * Change type of `transactions` on `stripe.gift_cards.Card` from `ListObject[Transaction]` to `Optional[ListObject[Transaction]]`
Codegen for openapi v997. ## Changelog * Add support for `ship_from_details` on parameter class `stripe.tax.Calculation.CreateParams` and resources `stripe.tax.Calculation` and `stripe.tax.Transaction` * Add support for `shipping_address_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`,...