Skip to content

Commit 48cd628

Browse files
Update generated code (#1127)
* Update generated code for v655 * Update generated code for v655 * Update generated code for v655 * Update generated code for v657 * Update generated code for v658 * Update generated code for v659 * Update generated code for v659 * Update generated code for v660 * Update generated code for v661 * Update generated code for v661 * Update generated code for v662 * Update generated code for v664 * Update generated code for v666 * Update generated code for v667 * Update generated code for v668 * Update generated code for v669 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: anniel-stripe <[email protected]>
1 parent e22152c commit 48cd628

File tree

94 files changed

+33579
-34018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+33579
-34018
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v655
1+
v669

stripe/api_resources/account.py

Lines changed: 2241 additions & 2257 deletions
Large diffs are not rendered by default.

stripe/api_resources/account_link.py

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from stripe.api_resources.abstract import CreateableAPIResource
44
from stripe.request_options import RequestOptions
55
from typing import ClassVar, List, Optional, cast
6-
from typing_extensions import Literal, NotRequired, Unpack, TYPE_CHECKING
6+
from typing_extensions import Literal, NotRequired, Unpack
77

88

99
class AccountLink(CreateableAPIResource["AccountLink"]):
@@ -15,33 +15,32 @@ class AccountLink(CreateableAPIResource["AccountLink"]):
1515
"""
1616

1717
OBJECT_NAME: ClassVar[Literal["account_link"]] = "account_link"
18-
if TYPE_CHECKING:
1918

20-
class CreateParams(RequestOptions):
21-
account: str
22-
"""
23-
The identifier of the account to create an account link for.
24-
"""
25-
collect: NotRequired["Literal['currently_due', 'eventually_due']"]
26-
"""
27-
Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.
28-
"""
29-
expand: NotRequired["List[str]"]
30-
"""
31-
Specifies which fields in the response should be expanded.
32-
"""
33-
refresh_url: NotRequired["str"]
34-
"""
35-
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
36-
"""
37-
return_url: NotRequired["str"]
38-
"""
39-
The URL that the user will be redirected to upon leaving or completing the linked flow.
40-
"""
41-
type: Literal["account_onboarding", "account_update"]
42-
"""
43-
The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
44-
"""
19+
class CreateParams(RequestOptions):
20+
account: str
21+
"""
22+
The identifier of the account to create an account link for.
23+
"""
24+
collect: NotRequired["Literal['currently_due', 'eventually_due']"]
25+
"""
26+
Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.
27+
"""
28+
expand: NotRequired["List[str]"]
29+
"""
30+
Specifies which fields in the response should be expanded.
31+
"""
32+
refresh_url: NotRequired["str"]
33+
"""
34+
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
35+
"""
36+
return_url: NotRequired["str"]
37+
"""
38+
The URL that the user will be redirected to upon leaving or completing the linked flow.
39+
"""
40+
type: Literal["account_onboarding", "account_update"]
41+
"""
42+
The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
43+
"""
4544

4645
created: int
4746
"""

stripe/api_resources/account_session.py

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
from stripe.request_options import RequestOptions
55
from stripe.stripe_object import StripeObject
66
from typing import ClassVar, List, Optional, cast
7-
from typing_extensions import (
8-
Literal,
9-
NotRequired,
10-
TypedDict,
11-
Unpack,
12-
TYPE_CHECKING,
13-
)
7+
from typing_extensions import Literal, NotRequired, TypedDict, Unpack
148

159

1610
class AccountSession(CreateableAPIResource["AccountSession"]):
@@ -36,35 +30,33 @@ class AccountOnboarding(StripeObject):
3630
account_onboarding: AccountOnboarding
3731
_inner_class_types = {"account_onboarding": AccountOnboarding}
3832

39-
if TYPE_CHECKING:
40-
41-
class CreateParams(RequestOptions):
42-
account: str
43-
"""
44-
The identifier of the account to create an Account Session for.
45-
"""
46-
components: "AccountSession.CreateParamsComponents"
47-
"""
48-
Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not).
49-
"""
50-
expand: NotRequired["List[str]"]
51-
"""
52-
Specifies which fields in the response should be expanded.
53-
"""
33+
class CreateParams(RequestOptions):
34+
account: str
35+
"""
36+
The identifier of the account to create an Account Session for.
37+
"""
38+
components: "AccountSession.CreateParamsComponents"
39+
"""
40+
Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not).
41+
"""
42+
expand: NotRequired["List[str]"]
43+
"""
44+
Specifies which fields in the response should be expanded.
45+
"""
5446

55-
class CreateParamsComponents(TypedDict):
56-
account_onboarding: NotRequired[
57-
"AccountSession.CreateParamsComponentsAccountOnboarding"
58-
]
59-
"""
60-
Configuration for the account onboarding embedded component.
61-
"""
47+
class CreateParamsComponents(TypedDict):
48+
account_onboarding: NotRequired[
49+
"AccountSession.CreateParamsComponentsAccountOnboarding"
50+
]
51+
"""
52+
Configuration for the account onboarding embedded component.
53+
"""
6254

63-
class CreateParamsComponentsAccountOnboarding(TypedDict):
64-
enabled: bool
65-
"""
66-
Whether the embedded component is enabled.
67-
"""
55+
class CreateParamsComponentsAccountOnboarding(TypedDict):
56+
enabled: bool
57+
"""
58+
Whether the embedded component is enabled.
59+
"""
6860

6961
account: str
7062
"""

stripe/api_resources/apple_pay_domain.py

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from stripe.request_options import RequestOptions
1010
from stripe.util import class_method_variant
1111
from typing import ClassVar, List, Optional, cast, overload
12-
from typing_extensions import Literal, NotRequired, Unpack, TYPE_CHECKING
12+
from typing_extensions import Literal, NotRequired, Unpack
1313
from urllib.parse import quote_plus
1414

1515

@@ -19,42 +19,41 @@ class ApplePayDomain(
1919
ListableAPIResource["ApplePayDomain"],
2020
):
2121
OBJECT_NAME: ClassVar[Literal["apple_pay_domain"]] = "apple_pay_domain"
22-
if TYPE_CHECKING:
23-
24-
class CreateParams(RequestOptions):
25-
domain_name: str
26-
expand: NotRequired["List[str]"]
27-
"""
28-
Specifies which fields in the response should be expanded.
29-
"""
30-
31-
class DeleteParams(RequestOptions):
32-
pass
33-
34-
class ListParams(RequestOptions):
35-
domain_name: NotRequired["str"]
36-
ending_before: NotRequired["str"]
37-
"""
38-
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
39-
"""
40-
expand: NotRequired["List[str]"]
41-
"""
42-
Specifies which fields in the response should be expanded.
43-
"""
44-
limit: NotRequired["int"]
45-
"""
46-
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
47-
"""
48-
starting_after: NotRequired["str"]
49-
"""
50-
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
51-
"""
52-
53-
class RetrieveParams(RequestOptions):
54-
expand: NotRequired["List[str]"]
55-
"""
56-
Specifies which fields in the response should be expanded.
57-
"""
22+
23+
class CreateParams(RequestOptions):
24+
domain_name: str
25+
expand: NotRequired["List[str]"]
26+
"""
27+
Specifies which fields in the response should be expanded.
28+
"""
29+
30+
class DeleteParams(RequestOptions):
31+
pass
32+
33+
class ListParams(RequestOptions):
34+
domain_name: NotRequired["str"]
35+
ending_before: NotRequired["str"]
36+
"""
37+
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
38+
"""
39+
expand: NotRequired["List[str]"]
40+
"""
41+
Specifies which fields in the response should be expanded.
42+
"""
43+
limit: NotRequired["int"]
44+
"""
45+
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
46+
"""
47+
starting_after: NotRequired["str"]
48+
"""
49+
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
50+
"""
51+
52+
class RetrieveParams(RequestOptions):
53+
expand: NotRequired["List[str]"]
54+
"""
55+
Specifies which fields in the response should be expanded.
56+
"""
5857

5958
created: int
6059
"""

0 commit comments

Comments
 (0)