From f0f8bc8d1ff804d8bd7700284c5104a5f590e0aa Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:34:53 +0000 Subject: [PATCH] Update generated code for v1103 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 42 ++++++++++++++ stripe/_invoice_service.py | 32 ++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++ stripe/_payment_intent_service.py | 48 +++++++++++++++ stripe/_setup_intent.py | 58 +++++++++++++++++++ stripe/_setup_intent_service.py | 48 +++++++++++++++ stripe/_subscription.py | 42 ++++++++++++++ stripe/_subscription_service.py | 32 ++++++++++ stripe/checkout/_session.py | 10 ++++ stripe/financial_connections/_session.py | 28 +++++++++ .../financial_connections/_session_service.py | 14 +++++ 12 files changed, 413 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index df289c666..1129f2eb6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1101 \ No newline at end of file +v1103 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 609963f3e..0f7a80139 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -649,6 +649,15 @@ class SepaDebit(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -668,6 +677,7 @@ class FinancialConnections(StripeObject): """ Data features requested to be retrieved upon account creation. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] verification_method: Optional[ @@ -1393,6 +1403,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1410,6 +1426,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" @@ -3062,6 +3088,12 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -3079,6 +3111,16 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 41ce4c565..6c654de69 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -421,6 +421,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -438,6 +444,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" @@ -3274,6 +3290,12 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -3291,6 +3313,16 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsRendering(TypedDict): amount_tax_display: NotRequired[ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']" diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 590cddb2a..5c8d804c3 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -1686,6 +1686,15 @@ class Twint(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -1709,6 +1718,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} class MandateOptions(StripeObject): collection_method: Optional[Literal["paper"]] @@ -4071,6 +4081,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -4092,6 +4108,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -6328,6 +6354,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -6349,6 +6381,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -8579,6 +8621,12 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -8600,6 +8648,16 @@ class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index b0fc670d6..23fd5c18d 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -2172,6 +2172,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2193,6 +2199,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -4455,6 +4471,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -4476,6 +4498,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -6760,6 +6792,12 @@ class UpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "PaymentIntentService.UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -6781,6 +6819,16 @@ class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index c969607f5..dedeefd03 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -560,6 +560,15 @@ class MandateOptions(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -583,6 +592,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} class MandateOptions(StripeObject): collection_method: Optional[Literal["paper"]] @@ -1632,6 +1642,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -1653,6 +1669,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -2734,6 +2760,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2755,6 +2787,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -3803,6 +3845,12 @@ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -3824,6 +3872,16 @@ class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index cf675859d..f08d7e158 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -1062,6 +1062,12 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -1083,6 +1089,16 @@ class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -2196,6 +2212,12 @@ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -2217,6 +2239,16 @@ class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): @@ -3307,6 +3339,12 @@ class UpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SetupIntentService.UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method + """ permissions: NotRequired[ List[ Literal[ @@ -3328,6 +3366,16 @@ class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + class UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions( TypedDict, ): diff --git a/stripe/_subscription.py b/stripe/_subscription.py index f75d8170b..218f56c86 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -269,6 +269,15 @@ class SepaDebit(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -288,6 +297,7 @@ class FinancialConnections(StripeObject): """ Data features requested to be retrieved upon account creation. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] verification_method: Optional[ @@ -1103,6 +1113,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1120,6 +1136,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ @@ -1916,6 +1942,12 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1933,6 +1965,16 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class ModifyParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 8ab003b72..c853c8aad 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -680,6 +680,12 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SubscriptionService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -697,6 +703,16 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class CreateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ @@ -1549,6 +1565,12 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount( class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections( TypedDict, ): + filters: NotRequired[ + "SubscriptionService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters" + ] + """ + Provide filters for the linked accounts that the customer can select for the payment method. + """ permissions: NotRequired[ List[ Literal[ @@ -1566,6 +1588,16 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConne List of data features that you would like to retrieve upon account creation. """ + class UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters( + TypedDict, + ): + account_subcategories: NotRequired[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. + """ + class UpdateParamsPendingInvoiceItemInterval(TypedDict): interval: Literal["day", "month", "week", "year"] """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 7b1f3ed88..9fcb892bc 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -967,6 +967,15 @@ class Swish(StripeObject): class UsBankAccount(StripeObject): class FinancialConnections(StripeObject): + class Filters(StripeObject): + account_subcategories: Optional[ + List[Literal["checking", "savings"]] + ] + """ + The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. + """ + + filters: Optional[Filters] permissions: Optional[ List[ Literal[ @@ -990,6 +999,7 @@ class FinancialConnections(StripeObject): """ For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. """ + _inner_class_types = {"filters": Filters} financial_connections: Optional[FinancialConnections] setup_future_usage: Optional[ diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index 8dc534188..1109ccda9 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -46,6 +46,20 @@ class AccountHolder(StripeObject): """ class Filters(StripeObject): + account_subcategories: Optional[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ countries: Optional[List[str]] """ List of countries from which to filter accounts. @@ -98,6 +112,20 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): + account_subcategories: NotRequired[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ countries: NotRequired[List[str]] """ List of countries from which to collect accounts. diff --git a/stripe/financial_connections/_session_service.py b/stripe/financial_connections/_session_service.py index 69a70c80d..3ca67b8bf 100644 --- a/stripe/financial_connections/_session_service.py +++ b/stripe/financial_connections/_session_service.py @@ -56,6 +56,20 @@ class CreateParamsAccountHolder(TypedDict): """ class CreateParamsFilters(TypedDict): + account_subcategories: NotRequired[ + List[ + Literal[ + "checking", + "credit_card", + "line_of_credit", + "mortgage", + "savings", + ] + ] + ] + """ + Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + """ countries: NotRequired[List[str]] """ List of countries from which to collect accounts.