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,58 @@
# -*- 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.apps._secret_create_params import (
SecretCreateParams as SecretCreateParams,
SecretCreateParamsScope as SecretCreateParamsScope,
)
from stripe.params.apps._secret_delete_where_params import (
SecretDeleteWhereParams as SecretDeleteWhereParams,
SecretDeleteWhereParamsScope as SecretDeleteWhereParamsScope,
)
from stripe.params.apps._secret_find_params import (
SecretFindParams as SecretFindParams,
SecretFindParamsScope as SecretFindParamsScope,
)
from stripe.params.apps._secret_list_params import (
SecretListParams as SecretListParams,
SecretListParamsScope as SecretListParamsScope,
)
# name -> (import_target, is_submodule)
_import_map = {
"SecretCreateParams": ("stripe.params.apps._secret_create_params", False),
"SecretCreateParamsScope": (
"stripe.params.apps._secret_create_params",
False,
),
"SecretDeleteWhereParams": (
"stripe.params.apps._secret_delete_where_params",
False,
),
"SecretDeleteWhereParamsScope": (
"stripe.params.apps._secret_delete_where_params",
False,
),
"SecretFindParams": ("stripe.params.apps._secret_find_params", False),
"SecretFindParamsScope": ("stripe.params.apps._secret_find_params", False),
"SecretListParams": ("stripe.params.apps._secret_list_params", False),
"SecretListParamsScope": ("stripe.params.apps._secret_list_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,39 @@
# -*- 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 SecretCreateParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
expires_at: NotRequired[int]
"""
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
"""
name: str
"""
A name for the secret that's unique within the scope.
"""
payload: str
"""
The plaintext secret value to be stored.
"""
scope: "SecretCreateParamsScope"
"""
Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
"""
class SecretCreateParamsScope(TypedDict):
type: Literal["account", "user"]
"""
The secret scope type.
"""
user: NotRequired[str]
"""
The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
"""

View File

@@ -0,0 +1,31 @@
# -*- 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 SecretDeleteWhereParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
name: str
"""
A name for the secret that's unique within the scope.
"""
scope: "SecretDeleteWhereParamsScope"
"""
Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
"""
class SecretDeleteWhereParamsScope(TypedDict):
type: Literal["account", "user"]
"""
The secret scope type.
"""
user: NotRequired[str]
"""
The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
"""

View File

@@ -0,0 +1,31 @@
# -*- 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 SecretFindParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
name: str
"""
A name for the secret that's unique within the scope.
"""
scope: "SecretFindParamsScope"
"""
Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
"""
class SecretFindParamsScope(TypedDict):
type: Literal["account", "user"]
"""
The secret scope type.
"""
user: NotRequired[str]
"""
The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
"""

View File

@@ -0,0 +1,39 @@
# -*- 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 SecretListParams(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.
"""
scope: "SecretListParamsScope"
"""
Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
"""
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 SecretListParamsScope(TypedDict):
type: Literal["account", "user"]
"""
The secret scope type.
"""
user: NotRequired[str]
"""
The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
"""