Skip to content

Commit 1cf9e38

Browse files
Update generated code for v2240 and
1 parent 8cba2ba commit 1cf9e38

13 files changed

Lines changed: 49 additions & 49 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
07a637150db06f45fbad8d9919800dd9e5c58f87
1+
4cd98860940da75ae8dfe7384cea405859800e9c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2217
1+
v2240

stripe/params/_account_create_external_account_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class AccountCreateExternalAccountParamsCard(TypedDict):
4242
cvc: NotRequired[str]
4343
exp_month: int
4444
exp_year: int
45-
name: NotRequired[str]
46-
number: str
4745
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
4846
"""
4947
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.
5048
"""
49+
name: NotRequired[str]
50+
number: str
5151

5252

5353
class AccountCreateExternalAccountParamsBankAccount(TypedDict):

stripe/params/_account_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,15 +1688,15 @@ class AccountCreateParamsCard(TypedDict):
16881688
address_zip: NotRequired[str]
16891689
currency: NotRequired[str]
16901690
cvc: NotRequired[str]
1691+
default_for_currency: NotRequired[bool]
16911692
exp_month: int
16921693
exp_year: int
1693-
name: NotRequired[str]
1694-
number: str
16951694
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
16961695
"""
16971696
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.
16981697
"""
1699-
default_for_currency: NotRequired[bool]
1698+
name: NotRequired[str]
1699+
number: str
17001700

17011701

17021702
class AccountCreateParamsCardToken(TypedDict):

stripe/params/_account_external_account_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class AccountExternalAccountCreateParamsCard(TypedDict):
4141
cvc: NotRequired[str]
4242
exp_month: int
4343
exp_year: int
44-
name: NotRequired[str]
45-
number: str
4644
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
4745
"""
4846
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.
4947
"""
48+
name: NotRequired[str]
49+
number: str
5050

5151

5252
class AccountExternalAccountCreateParamsBankAccount(TypedDict):

stripe/params/_account_update_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,15 +1600,15 @@ class AccountUpdateParamsCard(TypedDict):
16001600
address_zip: NotRequired[str]
16011601
currency: NotRequired[str]
16021602
cvc: NotRequired[str]
1603+
default_for_currency: NotRequired[bool]
16031604
exp_month: int
16041605
exp_year: int
1605-
name: NotRequired[str]
1606-
number: str
16071606
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
16081607
"""
16091608
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.
16101609
"""
1611-
default_for_currency: NotRequired[bool]
1610+
name: NotRequired[str]
1611+
number: str
16121612

16131613

16141614
class AccountUpdateParamsCardToken(TypedDict):

stripe/params/_external_account_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class ExternalAccountCreateParamsCard(TypedDict):
4141
cvc: NotRequired[str]
4242
exp_month: int
4343
exp_year: int
44-
name: NotRequired[str]
45-
number: str
4644
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
4745
"""
4846
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.
4947
"""
48+
name: NotRequired[str]
49+
number: str
5050

5151

5252
class ExternalAccountCreateParamsBankAccount(TypedDict):

stripe/params/v2/billing/_cadence_create_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ class CadenceCreateParams(TypedDict):
2929

3030

3131
class CadenceCreateParamsBillingCycle(TypedDict):
32+
day: NotRequired["CadenceCreateParamsBillingCycleDay"]
33+
"""
34+
Specific configuration for determining billing dates when type=day.
35+
"""
3236
interval_count: NotRequired[int]
3337
"""
3438
The number of intervals (specified in the interval attribute) between
3539
cadence billings. For example, type=month and interval_count=3 bills every
3640
3 months. If this is not provided, it will default to 1.
3741
"""
38-
type: Literal["day", "month", "week", "year"]
39-
"""
40-
The frequency at which a cadence bills.
41-
"""
42-
day: NotRequired["CadenceCreateParamsBillingCycleDay"]
43-
"""
44-
Specific configuration for determining billing dates when type=day.
45-
"""
4642
month: NotRequired["CadenceCreateParamsBillingCycleMonth"]
4743
"""
4844
Specific configuration for determining billing dates when type=month.
4945
"""
46+
type: Literal["day", "month", "week", "year"]
47+
"""
48+
The frequency at which a cadence bills.
49+
"""
5050
week: NotRequired["CadenceCreateParamsBillingCycleWeek"]
5151
"""
5252
Specific configuration for determining billing dates when type=week.

stripe/params/v2/core/_account_link_create_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ class AccountLinkCreateParams(TypedDict):
1616

1717

1818
class AccountLinkCreateParamsUseCase(TypedDict):
19-
type: Literal["account_onboarding", "account_update"]
20-
"""
21-
Open Enum. The type of Account Link the user is requesting.
22-
"""
2319
account_onboarding: NotRequired[
2420
"AccountLinkCreateParamsUseCaseAccountOnboarding"
2521
]
@@ -30,6 +26,10 @@ class AccountLinkCreateParamsUseCase(TypedDict):
3026
"""
3127
Hash containing configuration options for an Account Link that updates an existing account.
3228
"""
29+
type: Literal["account_onboarding", "account_update"]
30+
"""
31+
Open Enum. The type of Account Link the user is requesting.
32+
"""
3333

3434

3535
class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict):

stripe/params/v2/core/_event_destination_create_params.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77

88
class EventDestinationCreateParams(TypedDict):
9+
amazon_eventbridge: NotRequired[
10+
"EventDestinationCreateParamsAmazonEventbridge"
11+
]
12+
"""
13+
Amazon EventBridge configuration.
14+
"""
15+
azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"]
16+
"""
17+
Azure Event Grid configuration.
18+
"""
919
description: NotRequired[str]
1020
"""
1121
An optional description of what the event destination is used for.
@@ -50,16 +60,6 @@ class EventDestinationCreateParams(TypedDict):
5060
"""
5161
Event destination type.
5262
"""
53-
amazon_eventbridge: NotRequired[
54-
"EventDestinationCreateParamsAmazonEventbridge"
55-
]
56-
"""
57-
Amazon EventBridge configuration.
58-
"""
59-
azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"]
60-
"""
61-
Azure Event Grid configuration.
62-
"""
6363
webhook_endpoint: NotRequired[
6464
"EventDestinationCreateParamsWebhookEndpoint"
6565
]

0 commit comments

Comments
 (0)