This commit is contained in:
Iliyan Angelov
2025-11-17 18:26:30 +02:00
parent 48353cde9c
commit 0c59fe1173
2535 changed files with 278997 additions and 2480 deletions

View File

@@ -0,0 +1,141 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from importlib import import_module
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
from stripe.params.financial_connections._account_disconnect_params import (
AccountDisconnectParams as AccountDisconnectParams,
)
from stripe.params.financial_connections._account_list_owners_params import (
AccountListOwnersParams as AccountListOwnersParams,
)
from stripe.params.financial_connections._account_list_params import (
AccountListParams as AccountListParams,
AccountListParamsAccountHolder as AccountListParamsAccountHolder,
)
from stripe.params.financial_connections._account_owner_list_params import (
AccountOwnerListParams as AccountOwnerListParams,
)
from stripe.params.financial_connections._account_refresh_account_params import (
AccountRefreshAccountParams as AccountRefreshAccountParams,
)
from stripe.params.financial_connections._account_refresh_params import (
AccountRefreshParams as AccountRefreshParams,
)
from stripe.params.financial_connections._account_retrieve_params import (
AccountRetrieveParams as AccountRetrieveParams,
)
from stripe.params.financial_connections._account_subscribe_params import (
AccountSubscribeParams as AccountSubscribeParams,
)
from stripe.params.financial_connections._account_unsubscribe_params import (
AccountUnsubscribeParams as AccountUnsubscribeParams,
)
from stripe.params.financial_connections._session_create_params import (
SessionCreateParams as SessionCreateParams,
SessionCreateParamsAccountHolder as SessionCreateParamsAccountHolder,
SessionCreateParamsFilters as SessionCreateParamsFilters,
)
from stripe.params.financial_connections._session_retrieve_params import (
SessionRetrieveParams as SessionRetrieveParams,
)
from stripe.params.financial_connections._transaction_list_params import (
TransactionListParams as TransactionListParams,
TransactionListParamsTransactedAt as TransactionListParamsTransactedAt,
TransactionListParamsTransactionRefresh as TransactionListParamsTransactionRefresh,
)
from stripe.params.financial_connections._transaction_retrieve_params import (
TransactionRetrieveParams as TransactionRetrieveParams,
)
# name -> (import_target, is_submodule)
_import_map = {
"AccountDisconnectParams": (
"stripe.params.financial_connections._account_disconnect_params",
False,
),
"AccountListOwnersParams": (
"stripe.params.financial_connections._account_list_owners_params",
False,
),
"AccountListParams": (
"stripe.params.financial_connections._account_list_params",
False,
),
"AccountListParamsAccountHolder": (
"stripe.params.financial_connections._account_list_params",
False,
),
"AccountOwnerListParams": (
"stripe.params.financial_connections._account_owner_list_params",
False,
),
"AccountRefreshAccountParams": (
"stripe.params.financial_connections._account_refresh_account_params",
False,
),
"AccountRefreshParams": (
"stripe.params.financial_connections._account_refresh_params",
False,
),
"AccountRetrieveParams": (
"stripe.params.financial_connections._account_retrieve_params",
False,
),
"AccountSubscribeParams": (
"stripe.params.financial_connections._account_subscribe_params",
False,
),
"AccountUnsubscribeParams": (
"stripe.params.financial_connections._account_unsubscribe_params",
False,
),
"SessionCreateParams": (
"stripe.params.financial_connections._session_create_params",
False,
),
"SessionCreateParamsAccountHolder": (
"stripe.params.financial_connections._session_create_params",
False,
),
"SessionCreateParamsFilters": (
"stripe.params.financial_connections._session_create_params",
False,
),
"SessionRetrieveParams": (
"stripe.params.financial_connections._session_retrieve_params",
False,
),
"TransactionListParams": (
"stripe.params.financial_connections._transaction_list_params",
False,
),
"TransactionListParamsTransactedAt": (
"stripe.params.financial_connections._transaction_list_params",
False,
),
"TransactionListParamsTransactionRefresh": (
"stripe.params.financial_connections._transaction_list_params",
False,
),
"TransactionRetrieveParams": (
"stripe.params.financial_connections._transaction_retrieve_params",
False,
),
}
if not TYPE_CHECKING:
def __getattr__(name):
try:
target, is_submodule = _import_map[name]
module = import_module(target)
if is_submodule:
return module
return getattr(
module,
name,
)
except KeyError:
raise AttributeError()

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class AccountDisconnectParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class AccountListOwnersParams(RequestOptions):
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
ownership: str
"""
The ID of the ownership object to fetch owners from.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired, TypedDict
class AccountListParams(RequestOptions):
account_holder: NotRequired["AccountListParamsAccountHolder"]
"""
If present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
session: NotRequired[str]
"""
If present, only return accounts that were collected as part of the given session.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
class AccountListParamsAccountHolder(TypedDict):
account: NotRequired[str]
"""
The ID of the Stripe account whose accounts will be retrieved.
"""
customer: NotRequired[str]
"""
The ID of the Stripe customer whose accounts will be retrieved.
"""

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import List
from typing_extensions import NotRequired, TypedDict
class AccountOwnerListParams(TypedDict):
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
ownership: str
"""
The ID of the ownership object to fetch owners from.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired
class AccountRefreshAccountParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
features: List[Literal["balance", "ownership", "transactions"]]
"""
The list of account features that you would like to refresh.
"""

View File

@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import List
from typing_extensions import Literal, NotRequired, TypedDict
class AccountRefreshParams(TypedDict):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
features: List[Literal["balance", "ownership", "transactions"]]
"""
The list of account features that you would like to refresh.
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class AccountRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired
class AccountSubscribeParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
features: List[Literal["transactions"]]
"""
The list of account features to which you would like to subscribe.
"""

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired
class AccountUnsubscribeParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
features: List[Literal["transactions"]]
"""
The list of account features from which you would like to unsubscribe.
"""

View File

@@ -0,0 +1,74 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired, TypedDict
class SessionCreateParams(RequestOptions):
account_holder: "SessionCreateParamsAccountHolder"
"""
The account holder to link accounts for.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
filters: NotRequired["SessionCreateParamsFilters"]
"""
Filters to restrict the kinds of accounts to collect.
"""
permissions: List[
Literal["balances", "ownership", "payment_method", "transactions"]
]
"""
List of data features that you would like to request access to.
Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
"""
prefetch: NotRequired[
List[Literal["balances", "ownership", "transactions"]]
]
"""
List of data features that you would like to retrieve upon account creation.
"""
return_url: NotRequired[str]
"""
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 SessionCreateParamsAccountHolder(TypedDict):
account: NotRequired[str]
"""
The ID of the Stripe account whose accounts will be retrieved. Should only be present if `type` is `account`.
"""
customer: NotRequired[str]
"""
The ID of the Stripe customer whose accounts will be retrieved. Should only be present if `type` is `customer`.
"""
type: Literal["account", "customer"]
"""
Type of account holder to collect accounts for.
"""
class SessionCreateParamsFilters(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.
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class SessionRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired, TypedDict
class TransactionListParams(RequestOptions):
account: str
"""
The ID of the Financial Connections Account whose transactions will be retrieved.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
transacted_at: NotRequired["TransactionListParamsTransactedAt|int"]
"""
A filter on the list based on the object `transacted_at` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with the following options:
"""
transaction_refresh: NotRequired["TransactionListParamsTransactionRefresh"]
"""
A filter on the list based on the object `transaction_refresh` field. The value can be a dictionary with the following options:
"""
class TransactionListParamsTransactedAt(TypedDict):
gt: NotRequired[int]
"""
Minimum value to filter by (exclusive)
"""
gte: NotRequired[int]
"""
Minimum value to filter by (inclusive)
"""
lt: NotRequired[int]
"""
Maximum value to filter by (exclusive)
"""
lte: NotRequired[int]
"""
Maximum value to filter by (inclusive)
"""
class TransactionListParamsTransactionRefresh(TypedDict):
after: str
"""
Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive).
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class TransactionRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""