Debian Codegraph @

stripe/params/climate/_order_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import Dict, List
5 from typing_extensions import NotRequired, TypedDict
6
7
8 class OrderCreateParams(RequestOptions):
9 amount: NotRequired[int]
10 """
11 Requested amount of carbon removal units. Either this or `metric_tons` must be specified.
12 """
13 beneficiary: NotRequired["OrderCreateParamsBeneficiary"]
14 """
15 Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
16 """
17 currency: NotRequired[str]
18 """
19 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.
20 """
21 expand: NotRequired[List[str]]
22 """
23 Specifies which fields in the response should be expanded.
24 """
25 metadata: NotRequired[Dict[str, str]]
26 """
27 Set of [key-value pairs](https://docs.stripe.com/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`.
28 """
29 metric_tons: NotRequired[str]
30 """
31 Requested number of tons for the order. Either this or `amount` must be specified.
32 """
33 product: str
34 """
35 Unique identifier of the Climate product.
36 """
37
38
39 class OrderCreateParamsBeneficiary(TypedDict):
40 public_name: str
41 """
42 Publicly displayable name for the end beneficiary of carbon removal.
43 """