Skip to content

Commit

Permalink
Update generated code for v1103
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 27, 2024
1 parent bf12abe commit 6f7a4a5
Show file tree
Hide file tree
Showing 13 changed files with 432 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1102
v1103
42 changes: 42 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,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[
Expand All @@ -716,6 +725,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[
Expand Down Expand Up @@ -1783,6 +1793,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[
Expand All @@ -1807,6 +1823,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']"
Expand Down Expand Up @@ -4416,6 +4442,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[
Expand All @@ -4440,6 +4472,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']"
Expand Down
32 changes: 32 additions & 0 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,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[
Expand All @@ -766,6 +772,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']"
Expand Down Expand Up @@ -5717,6 +5733,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[
Expand All @@ -5741,6 +5763,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']"
Expand Down
62 changes: 61 additions & 1 deletion stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2120,12 +2120,21 @@ 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`.
"""

class ManualEntry(StripeObject):
mode: Optional[Literal["automatic", "custom"]]
"""
Settings for configuring manual entry of account details.
"""

filters: Optional[Filters]
manual_entry: Optional[ManualEntry]
permissions: Optional[
List[
Expand Down Expand Up @@ -2157,7 +2166,10 @@ class ManualEntry(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 = {"manual_entry": ManualEntry}
_inner_class_types = {
"filters": Filters,
"manual_entry": ManualEntry,
}

class MandateOptions(StripeObject):
collection_method: Optional[Literal["paper"]]
Expand Down Expand Up @@ -6045,6 +6057,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
"""
manual_entry: NotRequired[
"PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -6079,6 +6097,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 ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down Expand Up @@ -9179,6 +9207,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
"""
manual_entry: NotRequired[
"PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -9213,6 +9247,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 CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down Expand Up @@ -12370,6 +12414,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
"""
manual_entry: NotRequired[
"PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -12404,6 +12454,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 ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down
48 changes: 48 additions & 0 deletions stripe/_payment_intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3711,6 +3711,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
"""
manual_entry: NotRequired[
"PaymentIntentService.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -3745,6 +3751,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 ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down Expand Up @@ -6885,6 +6901,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
"""
manual_entry: NotRequired[
"PaymentIntentService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -6919,6 +6941,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 CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down Expand Up @@ -10146,6 +10178,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
"""
manual_entry: NotRequired[
"PaymentIntentService.UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
]
Expand Down Expand Up @@ -10180,6 +10218,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 UpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
TypedDict,
):
Expand Down
10 changes: 10 additions & 0 deletions stripe/_quote_preview_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,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[
Expand All @@ -698,6 +707,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[
Expand Down
Loading

0 comments on commit 6f7a4a5

Please sign in to comment.