Skip to content

Commit

Permalink
Update generated code for v1155 (#1368)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 25, 2024
1 parent aa5287f commit 7c5f714
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 1 deletion.
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

0 comments on commit 7c5f714

Please sign in to comment.