diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 793cc6975..0692ea662 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1154 \ No newline at end of file +v1155 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index c4ae483f8..4b844424d 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -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 @@ -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, @@ -208,6 +232,8 @@ class Features(StripeObject): "payments": Payments, "payouts": Payouts, "payouts_list": PayoutsList, + "tax_registrations": TaxRegistrations, + "tax_settings": TaxSettings, } class CreateParams(RequestOptions): @@ -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 @@ -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 diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 39b7f6407..be5fb0dc0 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -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 @@ -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",