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 #1368

Merged
merged 1 commit into from
Jul 25, 2024
Merged
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1154
v1155
68 changes: 68 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,28 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class TaxRegistrations(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

class TaxSettings(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

account_management: AccountManagement
account_onboarding: AccountOnboarding
balances: Balances
Expand All @@ -198,6 +220,8 @@ class Features(StripeObject):
payments: Payments
payouts: Payouts
payouts_list: PayoutsList
tax_registrations: TaxRegistrations
tax_settings: TaxSettings
_inner_class_types = {
"account_management": AccountManagement,
"account_onboarding": AccountOnboarding,
Expand All @@ -208,6 +232,8 @@ class Features(StripeObject):
"payments": Payments,
"payouts": Payouts,
"payouts_list": PayoutsList,
"tax_registrations": TaxRegistrations,
"tax_settings": TaxSettings,
}

class CreateParams(RequestOptions):
Expand Down Expand Up @@ -273,6 +299,18 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the payouts list embedded component.
"""
tax_registrations: NotRequired[
"AccountSession.CreateParamsComponentsTaxRegistrations"
]
"""
Configuration for the tax registrations embedded component.
"""
tax_settings: NotRequired[
"AccountSession.CreateParamsComponentsTaxSettings"
]
"""
Configuration for the tax settings embedded component.
"""

class CreateParamsComponentsAccountManagement(TypedDict):
enabled: bool
Expand Down Expand Up @@ -478,6 +516,36 @@ class CreateParamsComponentsPayoutsList(TypedDict):
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
pass

class CreateParamsComponentsTaxRegistrations(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsTaxRegistrationsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
pass

class CreateParamsComponentsTaxSettings(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsTaxSettingsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxSettingsFeatures(TypedDict):
pass

account: str
"""
The ID of the account the AccountSession was created for
Expand Down
42 changes: 42 additions & 0 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the payouts list embedded component.
"""
tax_registrations: NotRequired[
"AccountSessionService.CreateParamsComponentsTaxRegistrations"
]
"""
Configuration for the tax registrations embedded component.
"""
tax_settings: NotRequired[
"AccountSessionService.CreateParamsComponentsTaxSettings"
]
"""
Configuration for the tax settings embedded component.
"""

class CreateParamsComponentsAccountManagement(TypedDict):
enabled: bool
Expand Down Expand Up @@ -282,6 +294,36 @@ class CreateParamsComponentsPayoutsList(TypedDict):
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
pass

class CreateParamsComponentsTaxRegistrations(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsTaxRegistrationsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
pass

class CreateParamsComponentsTaxSettings(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsTaxSettingsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsTaxSettingsFeatures(TypedDict):
pass

def create(
self,
params: "AccountSessionService.CreateParams",
Expand Down
Loading