Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1199

Merged
merged 20 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Update generated code for v778
  • Loading branch information
stripe-openapi[bot] committed Jan 22, 2024
commit 63c2bee78e4c3eac3f2043e334876924071f6bdc
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v776
v778
20 changes: 18 additions & 2 deletions stripe/_account_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from stripe._createable_api_resource import CreateableAPIResource
from stripe._request_options import RequestOptions
from typing import ClassVar, List, Optional, cast
from typing_extensions import Literal, NotRequired, Unpack
from typing_extensions import Literal, NotRequired, TypedDict, Unpack


class AccountLink(CreateableAPIResource["AccountLink"]):
Expand All @@ -23,7 +23,13 @@ class CreateParams(RequestOptions):
"""
collect: NotRequired["Literal['currently_due', 'eventually_due']"]
"""
Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.
The collect parameter is deprecated. Use `collection_options` instead.
"""
collection_options: NotRequired[
"AccountLink.CreateParamsCollectionOptions"
]
"""
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
"""
expand: NotRequired["List[str]"]
"""
Expand All @@ -42,6 +48,16 @@ class CreateParams(RequestOptions):
The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
"""

class CreateParamsCollectionOptions(TypedDict):
fields: Literal["currently_due", "eventually_due"]
"""
Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
"""
future_requirements: NotRequired["Literal['include', 'omit']"]
"""
Options for collecting future_requirements in Connect Onboarding
"""

created: int
"""
Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down