* [1155](https://github.com/stripe/stripe-python/pull/1155) Update generated code
* Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `CreateParams.components`
* Add support for `features` on `AccountSession.components.account_onboarding` and `CreateParams.components.account_onboarding`
* Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
* Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type`
* Change `Climate.Product.metric_tons_available` to be required
* Remove support for value `various` from enum `Climate.Supplier.removal_pathway`
* Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure`
* Add support for `inactive_message` and `restrictions` on `CreateParams`, `ModifyParams`, and `PaymentLink`
* Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `CreateParams.payment_intent_data`, and `ModifyParams.payment_intent_data`
* Add support for `trial_settings` on `PaymentLink.subscription_data`, `CreateParams.subscription_data`, and `ModifyParams.subscription_data`
* [1153](https://github.com/stripe/stripe-python/pull/1153) Move exports for more modules
- `stripe.app_info`, `stripe.http_client`, `stripe.oauth`, `stripe.util`, `stripe.version`, `stripe.webhook`, modules are deprecated. All types are available directly from `stripe` module now.
Before:
python
from stripe.util import convert_to_stripe_object
or
stripe.util.convert_to_stripe_object
`
After:
python
from stripe import convert_to_stripe_object
or
stripe.convert_to_stripe_object
- `stripe.api_version`, `stripe.multipart_data_generator`, `stripe.request_metrics` are deprecated and will be fully removed in the future.
* [1142](https://github.com/stripe/stripe-python/pull/1142) Move resource type exports to stripe.___
- `stripe.error`, `stripe.stripe_object`, `stripe.api_requestor`, `stripe.stripe_response`, `stripe.request_options`, `stripe.api_resources.*`, `stripe.api_resources.abstract.*` modules are deprecated. All types are available directly from `stripe` module now.
Before:
python
from stripe.error import APIError
or
stripe.error.APIError
`
After:
python
from stripe import APIError
or
stripe.APIError