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,92 @@
# -*- 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.climate._order_cancel_params import (
OrderCancelParams as OrderCancelParams,
)
from stripe.params.climate._order_create_params import (
OrderCreateParams as OrderCreateParams,
OrderCreateParamsBeneficiary as OrderCreateParamsBeneficiary,
)
from stripe.params.climate._order_list_params import (
OrderListParams as OrderListParams,
)
from stripe.params.climate._order_modify_params import (
OrderModifyParams as OrderModifyParams,
OrderModifyParamsBeneficiary as OrderModifyParamsBeneficiary,
)
from stripe.params.climate._order_retrieve_params import (
OrderRetrieveParams as OrderRetrieveParams,
)
from stripe.params.climate._order_update_params import (
OrderUpdateParams as OrderUpdateParams,
OrderUpdateParamsBeneficiary as OrderUpdateParamsBeneficiary,
)
from stripe.params.climate._product_list_params import (
ProductListParams as ProductListParams,
)
from stripe.params.climate._product_retrieve_params import (
ProductRetrieveParams as ProductRetrieveParams,
)
from stripe.params.climate._supplier_list_params import (
SupplierListParams as SupplierListParams,
)
from stripe.params.climate._supplier_retrieve_params import (
SupplierRetrieveParams as SupplierRetrieveParams,
)
# name -> (import_target, is_submodule)
_import_map = {
"OrderCancelParams": ("stripe.params.climate._order_cancel_params", False),
"OrderCreateParams": ("stripe.params.climate._order_create_params", False),
"OrderCreateParamsBeneficiary": (
"stripe.params.climate._order_create_params",
False,
),
"OrderListParams": ("stripe.params.climate._order_list_params", False),
"OrderModifyParams": ("stripe.params.climate._order_modify_params", False),
"OrderModifyParamsBeneficiary": (
"stripe.params.climate._order_modify_params",
False,
),
"OrderRetrieveParams": (
"stripe.params.climate._order_retrieve_params",
False,
),
"OrderUpdateParams": ("stripe.params.climate._order_update_params", False),
"OrderUpdateParamsBeneficiary": (
"stripe.params.climate._order_update_params",
False,
),
"ProductListParams": ("stripe.params.climate._product_list_params", False),
"ProductRetrieveParams": (
"stripe.params.climate._product_retrieve_params",
False,
),
"SupplierListParams": (
"stripe.params.climate._supplier_list_params",
False,
),
"SupplierRetrieveParams": (
"stripe.params.climate._supplier_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 OrderCancelParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,43 @@
# -*- 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, TypedDict
class OrderCreateParams(RequestOptions):
amount: NotRequired[int]
"""
Requested amount of carbon removal units. Either this or `metric_tons` must be specified.
"""
beneficiary: NotRequired["OrderCreateParamsBeneficiary"]
"""
Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
"""
currency: NotRequired[str]
"""
Request currency for the order as a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a supported [settlement currency for your account](https://stripe.com/docs/currencies). If omitted, the account's default currency will be used.
"""
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`.
"""
metric_tons: NotRequired[str]
"""
Requested number of tons for the order. Either this or `amount` must be specified.
"""
product: str
"""
Unique identifier of the Climate product.
"""
class OrderCreateParamsBeneficiary(TypedDict):
public_name: str
"""
Publicly displayable name for the end beneficiary of carbon removal.
"""

View File

@@ -0,0 +1,24 @@
# -*- 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 OrderListParams(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.
"""
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,27 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
class OrderModifyParams(RequestOptions):
beneficiary: NotRequired["Literal['']|OrderModifyParamsBeneficiary"]
"""
Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
"""
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`.
"""
class OrderModifyParamsBeneficiary(TypedDict):
public_name: Union[Literal[""], str]
"""
Publicly displayable name for the end beneficiary of carbon removal.
"""

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

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
class OrderUpdateParams(TypedDict):
beneficiary: NotRequired["Literal['']|OrderUpdateParamsBeneficiary"]
"""
Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
"""
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`.
"""
class OrderUpdateParamsBeneficiary(TypedDict):
public_name: Union[Literal[""], str]
"""
Publicly displayable name for the end beneficiary of carbon removal.
"""

View File

@@ -0,0 +1,24 @@
# -*- 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 ProductListParams(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.
"""
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 ProductRetrieveParams(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 List
from typing_extensions import NotRequired
class SupplierListParams(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.
"""
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 SupplierRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""