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,74 @@
# -*- 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.entitlements._active_entitlement_list_params import (
ActiveEntitlementListParams as ActiveEntitlementListParams,
)
from stripe.params.entitlements._active_entitlement_retrieve_params import (
ActiveEntitlementRetrieveParams as ActiveEntitlementRetrieveParams,
)
from stripe.params.entitlements._feature_create_params import (
FeatureCreateParams as FeatureCreateParams,
)
from stripe.params.entitlements._feature_list_params import (
FeatureListParams as FeatureListParams,
)
from stripe.params.entitlements._feature_modify_params import (
FeatureModifyParams as FeatureModifyParams,
)
from stripe.params.entitlements._feature_retrieve_params import (
FeatureRetrieveParams as FeatureRetrieveParams,
)
from stripe.params.entitlements._feature_update_params import (
FeatureUpdateParams as FeatureUpdateParams,
)
# name -> (import_target, is_submodule)
_import_map = {
"ActiveEntitlementListParams": (
"stripe.params.entitlements._active_entitlement_list_params",
False,
),
"ActiveEntitlementRetrieveParams": (
"stripe.params.entitlements._active_entitlement_retrieve_params",
False,
),
"FeatureCreateParams": (
"stripe.params.entitlements._feature_create_params",
False,
),
"FeatureListParams": (
"stripe.params.entitlements._feature_list_params",
False,
),
"FeatureModifyParams": (
"stripe.params.entitlements._feature_modify_params",
False,
),
"FeatureRetrieveParams": (
"stripe.params.entitlements._feature_retrieve_params",
False,
),
"FeatureUpdateParams": (
"stripe.params.entitlements._feature_update_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,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 ActiveEntitlementListParams(RequestOptions):
customer: str
"""
The ID of the customer.
"""
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.
"""

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 ActiveEntitlementRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List
from typing_extensions import NotRequired
class FeatureCreateParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
lookup_key: str
"""
A unique key you provide as your own system identifier. This may be up to 80 characters.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
name: str
"""
The feature's name, for your own purpose, not meant to be displayable to the customer.
"""

View File

@@ -0,0 +1,32 @@
# -*- 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 FeatureListParams(RequestOptions):
archived: NotRequired[bool]
"""
If set, filter results to only include features with the given archive status.
"""
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.
"""
lookup_key: NotRequired[str]
"""
If set, filter results to only include features with the given lookup_key.
"""
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,24 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List
from typing_extensions import Literal, NotRequired
class FeatureModifyParams(RequestOptions):
active: NotRequired[bool]
"""
Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
name: NotRequired[str]
"""
The feature's name, for your own purpose, not meant to be displayable to the customer.
"""

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 FeatureRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class FeatureUpdateParams(TypedDict):
active: NotRequired[bool]
"""
Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
name: NotRequired[str]
"""
The feature's name, for your own purpose, not meant to be displayable to the customer.
"""