Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1b3c54c
Update generated code (#1526)
stripe-openapi[bot] Jul 1, 2025
1f4f42c
Bump version to 12.3.0
prathmesh-stripe Jul 1, 2025
83ba1f0
Merge upstream and update generated code for v1819 and 2025-06-30.pre…
stripe-openapi[bot] Jul 2, 2025
559a745
Update generated code for v1820 and 2025-06-30.preview
stripe-openapi[bot] Jul 7, 2025
f2476ec
Update generated code for v1821 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
2ce5101
Update generated code for v1822 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
9d57483
Update generated code for v1822 and 2025-06-30.preview
stripe-openapi[bot] Jul 8, 2025
4f0f4ec
Update generated code for v1826 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
c86e100
Update generated code for v1827 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
83b7ff9
Update generated code for v1829 and 2025-06-30.preview
stripe-openapi[bot] Jul 9, 2025
a74a3fa
Update generated code for v1830 and 2025-06-30.preview
stripe-openapi[bot] Jul 10, 2025
1758911
Update generated code for v1832 and 2025-06-30.preview
stripe-openapi[bot] Jul 11, 2025
4c53c6d
Fix timeout type hint in RequestsClient (#1537)
abe-101 Jul 11, 2025
7203c80
Merge upstream and update generated code for v1833 and 2025-06-30.pre…
stripe-openapi[bot] Jul 11, 2025
9fd5498
Update generated code for v1835 and 2025-06-30.preview
stripe-openapi[bot] Jul 11, 2025
2aa1c1a
Update generated code for v1836 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
1e3b174
Update generated code for v1837 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
c9623a7
Update generated code for v1838 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
70ef7b9
Update generated code for v1839 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
6970412
Update generated code for v1841 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
09d8f32
Update generated code for v1842 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
b96335e
Update generated code for v1843 and 2025-06-30.preview
stripe-openapi[bot] Jul 14, 2025
974ce0a
Update generated code for v1845 and 2025-06-30.preview
stripe-openapi[bot] Jul 15, 2025
af8dbe2
Update generated code for v1847 and 2025-06-30.preview
stripe-openapi[bot] Jul 15, 2025
9f720d5
Update generated code for v1848 and 2025-06-30.preview
stripe-openapi[bot] Jul 16, 2025
7380cf5
Update generated code for v1849 and 2025-06-30.preview
stripe-openapi[bot] Jul 16, 2025
de72cc3
Update generated code for v1850 and 2025-07-30.preview
stripe-openapi[bot] Jul 16, 2025
949aad0
Update generated code for v1852 and 2025-07-30.preview
stripe-openapi[bot] Jul 16, 2025
4b0a680
Update generated code for v1853 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
6162afa
Update generated code for v1854 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
9ec1e3c
Update generated code for v1855 and 2025-07-30.preview
stripe-openapi[bot] Jul 17, 2025
99b6d18
Update generated code for v1864 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
96b6344
Update generated code for v1865 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
1a3ed2c
Update generated code for v1867 and 2025-07-30.preview
stripe-openapi[bot] Jul 21, 2025
b53a728
Update generated code for v1868 and 2025-07-30.preview
stripe-openapi[bot] Jul 22, 2025
341909d
Update generated code for v1868 and 2025-07-30.preview
stripe-openapi[bot] Jul 23, 2025
ec45f4e
Merge branch 'beta' into latest-codegen-beta
ramya-stripe Jul 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-06-30.preview
2025-07-30.preview
41 changes: 40 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,46 @@
* Add support for error code `recipient_email_does_not_exist` on `RecipientNotNotifiableError`
* Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`

## 12.3.0 - 2025-07-01
* [#1526](https://github.com/stripe/stripe-python/pull/1526) Update generated code
* Add support for `migrate` method on resource `Subscription`
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `terminal.Reader`
* Add support for `crypto_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.ModifyParamsCapability`
* Add support for `proof_of_address` on `Account.CreateParamsDocument` and `Account.ModifyParamsDocument`
* Add support for `monthly_payout_days` and `weekly_payout_days` on `Account.CreateParamsSettingPayoutSchedule`, `Account.ModifyParamsSettingPayoutSchedule`, and `Account.Setting.Payout.Schedule`
* Change `Account.Setting.Invoice.hosted_payment_method_save` to be required
* Add support for `crypto` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.ModifyParamsPaymentMethodDatum`, `PaymentIntent.ModifyParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethod`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.ModifyParamsPaymentMethodDatum`
* Change type of `Charge.PaymentMethodDetail.Card.Installment.Plan.type`, `ConfirmationToken.CreateParamsPaymentMethodOptionCardInstallmentPlan.type`, `ConfirmationToken.PaymentMethodOption.Card.Installment.Plan.type`, `Invoice.CreateParamsPaymentSettingPaymentMethodOptionCardInstallmentPlan.type`, `Invoice.ModifyParamsPaymentSettingPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.ConfirmParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.CreateParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.ModifyParamsPaymentMethodOptionCardInstallmentPlan.type`, `PaymentIntent.PaymentMethodOption.Card.Installment.AvailablePlan.type`, and `PaymentIntent.PaymentMethodOption.Card.Installment.Plan.type` from `literal('fixed_count')` to `enum('bonus'|'fixed_count'|'revolving')`
* Add support for new value `buut` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.CreateParamsPaymentMethodDatumIdeal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `PaymentIntent.ConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntent.CreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntent.ModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.CreateParamsIdeal.bank`, `PaymentMethod.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntent.ConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntent.CreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntent.ModifyParamsPaymentMethodDatumIdeal.bank`
* Add support for new value `BUUTNL2A` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentMethod.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic`
* Add support for `subscriptions` on `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna`, `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna`, and `checkout.Session.CreateParamsPaymentMethodOptionKlarna`
* Add support for new value `crypto` on enum `checkout.Session.CreateParams.payment_method_types`
* Add support for `billing_mode` on `Invoice.CreatePreviewParamsScheduleDetail`, `Invoice.CreatePreviewParamsSubscriptionDetail`, `Quote.CreateParamsSubscriptionDatum`, `Quote.SubscriptionDatum`, `Subscription.CreateParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionSchedule`, `Subscription`, and `checkout.Session.CreateParamsSubscriptionDatum`
* Add support for new value `crypto` on enums `ConfirmationToken.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ConfirmParamsPaymentMethodDatum.type`, `PaymentIntent.CreateParamsPaymentMethodDatum.type`, `PaymentIntent.ModifyParamsPaymentMethodDatum.type`, `SetupIntent.ConfirmParamsPaymentMethodDatum.type`, `SetupIntent.CreateParamsPaymentMethodDatum.type`, and `SetupIntent.ModifyParamsPaymentMethodDatum.type`
* Add support for new value `crypto` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type`
* Add support for new value `crypto` on enums `Customer.ListPaymentMethodsParams.type`, `PaymentMethod.CreateParams.type`, and `PaymentMethod.ListParams.type`
* Change type of `Dispute.enhanced_eligibility_types` from `literal('visa_compelling_evidence_3')` to `enum('visa_compelling_evidence_3'|'visa_compliance')`
* Add support for new value `compliance` on enum `Dispute.PaymentMethodDetail.Card.case_type`
* Add support for new value `terminal.reader.action_updated` on enum `Event.type`
* Add support for `related_person` on `Identity.VerificationSession` and `identity.VerificationSession.CreateParams`
* Add support for `matching` on `Identity.VerificationSession.Option`
* Add support for new value `crypto` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.ModifyParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.ModifyParamsPaymentSetting.payment_method_types`, and `Subscription.PaymentSetting.payment_method_types`
* Add support for `klarna` on `Mandate.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodOption`, `SetupIntent.CreateParamsPaymentMethodOption`, `SetupIntent.ModifyParamsPaymentMethodOption`, and `SetupIntent.PaymentMethodOption`
* Add support for `on_demand` on `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna`, and `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna`
* Change type of `PaymentIntent.ConfirmParamsPaymentMethodOptionKlarna.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionKlarna.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionKlarna.setup_future_usage`, and `PaymentIntent.PaymentMethodOption.Klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')`
* Add support for `ua` on `Tax.Registration.CountryOption` and `tax.Registration.CreateParamsCountryOption`
* Change type of `terminal.Location.ModifyParams.display_name` from `string` to `emptyable(string)`
* Add support for `collect_payment_method` and `confirm_payment_intent` on `Terminal.Reader.Action`
* Add support for new values `collect_payment_method` and `confirm_payment_intent` on enum `Terminal.Reader.Action.type`
* Add support for `status` on `treasury.FinancialAccount.ListParams`
* Add support for new value `terminal.reader.action_updated` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.ModifyParams.enabled_events`
* Add support for new value `2025-06-30.basil` on enum `WebhookEndpoint.CreateParams.api_version`
* Add support for snapshot event `terminal.reader.action_updated` with resource `terminal.Reader`
* [#1534](https://github.com/stripe/stripe-python/pull/1534) Fix the link to releases page from readme
* [#1532](https://github.com/stripe/stripe-python/pull/1532) Added lint ignore instruction for deprecated import
* [#1524](https://github.com/stripe/stripe-python/pull/1524) Added import for the new deprecated services in stripe_client
* [#1522](https://github.com/stripe/stripe-python/pull/1522) Add a new deprecated v1 services section

## 12.3.0b2 - 2025-06-26
* [#1531](https://github.com/stripe/stripe-python/pull/1531) Pull in OffSessionPayment changes for the May release

Expand Down Expand Up @@ -100,7 +140,6 @@ This release changes the pinned API version to `2025-05-28.preview`.
* Add support for `confirm_config` on `Terminal.Reader.Action.ConfirmPaymentIntent` and `terminal.Reader.ConfirmPaymentIntentParams`
* Add support for error code `forwarding_api_upstream_error` on `QuotePreviewInvoice.LastFinalizationError`


## 12.2.0 - 2025-05-29
This release changes the pinned API version to `2025-05-28.basil`.

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1819
v1868
20 changes: 10 additions & 10 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class SupportAddress(StripeObject):
]
]
"""
Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
"""
monthly_estimated_revenue: Optional[MonthlyEstimatedRevenue]
name: Optional[str]
Expand Down Expand Up @@ -1722,7 +1722,7 @@ class CreateParamsBusinessProfile(TypedDict):
]
]
"""
Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
"""
monthly_estimated_revenue: NotRequired[
"Account.CreateParamsBusinessProfileMonthlyEstimatedRevenue"
Expand Down Expand Up @@ -5050,7 +5050,7 @@ def _cls_delete(

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5074,7 +5074,7 @@ def delete(

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5087,7 +5087,7 @@ def delete(self, **params: Unpack["Account.DeleteParams"]) -> "Account":

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5102,7 +5102,7 @@ def delete( # pyright: ignore[reportGeneralTypeIssues]

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5121,7 +5121,7 @@ async def _cls_delete_async(

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5145,7 +5145,7 @@ async def delete_async(

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5160,7 +5160,7 @@ async def delete_async(

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand All @@ -5175,7 +5175,7 @@ async def delete_async( # pyright: ignore[reportGeneralTypeIssues]

Test-mode accounts can be deleted at any time.

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.

If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
"""
Expand Down
4 changes: 3 additions & 1 deletion stripe/_account_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class CreateParams(RequestOptions):
"capital_financing_reporting",
]
"""
The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
The type of account link the user is requesting.

You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
"""

class CreateParamsCollectionOptions(TypedDict):
Expand Down
4 changes: 3 additions & 1 deletion stripe/_account_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class CreateParams(TypedDict):
"capital_financing_reporting",
]
"""
The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
The type of account link the user is requesting.

You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
"""

class CreateParamsCollectionOptions(TypedDict):
Expand Down
Loading