Debian Codegraph @

stripe/params/_shipping_rate_update_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class ShippingRateUpdateParams(TypedDict):
8 active: NotRequired[bool]
9 """
10 Whether the shipping rate can be used for new purchases. Defaults to `true`.
11 """
12 expand: NotRequired[List[str]]
13 """
14 Specifies which fields in the response should be expanded.
15 """
16 fixed_amount: NotRequired["ShippingRateUpdateParamsFixedAmount"]
17 """
18 Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
19 """
20 metadata: NotRequired["Literal['']|Dict[str, str]"]
21 """
22 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`.
23 """
24 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
25 """
26 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
27 """
28
29
30 class ShippingRateUpdateParamsFixedAmount(TypedDict):
31 currency_options: NotRequired[
32 Dict[str, "ShippingRateUpdateParamsFixedAmountCurrencyOptions"]
33 ]
34 """
35 Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
36 """
37
38
39 class ShippingRateUpdateParamsFixedAmountCurrencyOptions(TypedDict):
40 amount: NotRequired[int]
41 """
42 A non-negative integer in cents representing how much to charge.
43 """
44 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
45 """
46 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
47 """