Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
97ed8f33ac148105eefc5ec2543b66a32367bc1f
4cd98860940da75ae8dfe7384cea405859800e9c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2206
v2240
4 changes: 2 additions & 2 deletions stripe/params/_account_create_external_account_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions stripe/params/_account_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions stripe/params/_account_external_account_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions stripe/params/_account_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
8 changes: 4 additions & 4 deletions stripe/params/v2/core/_account_link_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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):
Expand Down
12 changes: 6 additions & 6 deletions stripe/params/v2/core/_event_destination_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -50,12 +56,6 @@ class EventDestinationCreateParams(TypedDict):
"""
Event destination type.
"""
amazon_eventbridge: NotRequired[
"EventDestinationCreateParamsAmazonEventbridge"
]
"""
Amazon EventBridge configuration.
"""
webhook_endpoint: NotRequired[
"EventDestinationCreateParamsWebhookEndpoint"
]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_generated_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -43875,6 +43874,7 @@ def test_v2_core_account_link_post_service(
"refresh_url": "refresh_url",
"return_url": "return_url",
},
"type": "account_onboarding",
},
}
)
Expand All @@ -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,
)

Expand Down
Loading