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,61 @@
# -*- 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.forwarding._request_create_params import (
RequestCreateParams as RequestCreateParams,
RequestCreateParamsRequest as RequestCreateParamsRequest,
RequestCreateParamsRequestHeader as RequestCreateParamsRequestHeader,
)
from stripe.params.forwarding._request_list_params import (
RequestListParams as RequestListParams,
RequestListParamsCreated as RequestListParamsCreated,
)
from stripe.params.forwarding._request_retrieve_params import (
RequestRetrieveParams as RequestRetrieveParams,
)
# name -> (import_target, is_submodule)
_import_map = {
"RequestCreateParams": (
"stripe.params.forwarding._request_create_params",
False,
),
"RequestCreateParamsRequest": (
"stripe.params.forwarding._request_create_params",
False,
),
"RequestCreateParamsRequestHeader": (
"stripe.params.forwarding._request_create_params",
False,
),
"RequestListParams": (
"stripe.params.forwarding._request_list_params",
False,
),
"RequestListParamsCreated": (
"stripe.params.forwarding._request_list_params",
False,
),
"RequestRetrieveParams": (
"stripe.params.forwarding._request_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,62 @@
# -*- 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, TypedDict
class RequestCreateParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
payment_method: str
"""
The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
"""
replacements: List[
Literal[
"card_cvc",
"card_expiry",
"card_number",
"cardholder_name",
"request_signature",
]
]
"""
The field kinds to be replaced in the forwarded request.
"""
request: "RequestCreateParamsRequest"
"""
The request body and headers to be sent to the destination endpoint.
"""
url: str
"""
The destination URL for the forwarded request. Must be supported by the config.
"""
class RequestCreateParamsRequest(TypedDict):
body: NotRequired[str]
"""
The body payload to send to the destination endpoint.
"""
headers: NotRequired[List["RequestCreateParamsRequestHeader"]]
"""
The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.
"""
class RequestCreateParamsRequestHeader(TypedDict):
name: str
"""
The header name.
"""
value: str
"""
The header value.
"""

View File

@@ -0,0 +1,47 @@
# -*- 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 RequestListParams(RequestOptions):
created: NotRequired["RequestListParamsCreated"]
"""
Similar to other List endpoints, filters results based on created timestamp. You can pass gt, gte, lt, and lte timestamp values.
"""
ending_before: NotRequired[str]
"""
A pagination cursor to fetch the previous page of the list. The value must be a ForwardingRequest ID.
"""
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 pagination cursor to fetch the next page of the list. The value must be a ForwardingRequest ID.
"""
class RequestListParamsCreated(TypedDict):
gt: NotRequired[int]
"""
Return results where the `created` field is greater than this value.
"""
gte: NotRequired[int]
"""
Return results where the `created` field is greater than or equal to this value.
"""
lt: NotRequired[int]
"""
Return results where the `created` field is less than this value.
"""
lte: NotRequired[int]
"""
Return results where the `created` field is less than or equal to this value.
"""

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