From 667aadf139944128575825c67b5171baf3305868 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:37:51 +0000 Subject: [PATCH] Update generated code for v2240 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../_account_create_external_account_params.py | 4 ++-- stripe/params/_account_create_params.py | 6 +++--- .../_account_external_account_create_params.py | 4 ++-- stripe/params/_account_update_params.py | 6 +++--- stripe/params/v2/core/_account_link_create_params.py | 8 ++++---- .../v2/core/_event_destination_create_params.py | 12 ++++++------ tests/test_generated_examples.py | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 7d039eeb0..10cc84107 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -97ed8f33ac148105eefc5ec2543b66a32367bc1f \ No newline at end of file +4cd98860940da75ae8dfe7384cea405859800e9c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19b4cc885..ccd8e578d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2206 \ No newline at end of file +v2240 \ No newline at end of file diff --git a/stripe/params/_account_create_external_account_params.py b/stripe/params/_account_create_external_account_params.py index 6cf38179c..f6567a2b2 100644 --- a/stripe/params/_account_create_external_account_params.py +++ b/stripe/params/_account_create_external_account_params.py @@ -42,12 +42,12 @@ class AccountCreateExternalAccountParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountCreateExternalAccountParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 485009a63..679fd59f1 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -1485,15 +1485,15 @@ class AccountCreateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountCreateParamsCardToken(TypedDict): diff --git a/stripe/params/_account_external_account_create_params.py b/stripe/params/_account_external_account_create_params.py index b4ccf6654..480e8a222 100644 --- a/stripe/params/_account_external_account_create_params.py +++ b/stripe/params/_account_external_account_create_params.py @@ -41,12 +41,12 @@ class AccountExternalAccountCreateParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountExternalAccountCreateParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index d01f53400..596a99c89 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1427,15 +1427,15 @@ class AccountUpdateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountUpdateParamsCardToken(TypedDict): diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py index f9446fe97..2d57edb43 100644 --- a/stripe/params/v2/core/_account_link_create_params.py +++ b/stripe/params/v2/core/_account_link_create_params.py @@ -16,10 +16,6 @@ class AccountLinkCreateParams(TypedDict): class AccountLinkCreateParamsUseCase(TypedDict): - type: Literal["account_onboarding", "account_update"] - """ - Open Enum. The type of Account Link the user is requesting. - """ account_onboarding: NotRequired[ "AccountLinkCreateParamsUseCaseAccountOnboarding" ] @@ -30,6 +26,10 @@ class AccountLinkCreateParamsUseCase(TypedDict): """ Hash containing configuration options for an Account Link that updates an existing account. """ + type: Literal["account_onboarding", "account_update"] + """ + Open Enum. The type of Account Link the user is requesting. + """ class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict): diff --git a/stripe/params/v2/core/_event_destination_create_params.py b/stripe/params/v2/core/_event_destination_create_params.py index 9dc5a292e..c8bae9b0a 100644 --- a/stripe/params/v2/core/_event_destination_create_params.py +++ b/stripe/params/v2/core/_event_destination_create_params.py @@ -6,6 +6,12 @@ class EventDestinationCreateParams(TypedDict): + amazon_eventbridge: NotRequired[ + "EventDestinationCreateParamsAmazonEventbridge" + ] + """ + Amazon EventBridge configuration. + """ description: NotRequired[str] """ An optional description of what the event destination is used for. @@ -50,12 +56,6 @@ class EventDestinationCreateParams(TypedDict): """ Event destination type. """ - amazon_eventbridge: NotRequired[ - "EventDestinationCreateParamsAmazonEventbridge" - ] - """ - Amazon EventBridge configuration. - """ webhook_endpoint: NotRequired[ "EventDestinationCreateParamsWebhookEndpoint" ] diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index b1464557e..13ed4502c 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -43856,7 +43856,6 @@ def test_v2_core_account_link_post_service( { "account": "account", "use_case": { - "type": "account_onboarding", "account_onboarding": { "collection_options": { "fields": "eventually_due", @@ -43875,6 +43874,7 @@ def test_v2_core_account_link_post_service( "refresh_url": "refresh_url", "return_url": "return_url", }, + "type": "account_onboarding", }, } ) @@ -43883,7 +43883,7 @@ def test_v2_core_account_link_post_service( path="/v2/core/account_links", query_string="", api_base="https://api.stripe.com", - post_data='{"account":"account","use_case":{"type":"account_onboarding","account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"}}}', + post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_onboarding"}}', is_json=True, )