| 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 Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class ShippingRateModifyParams(RequestOptions): |
| 9 |
active: NotRequired[bool] |
| 10 |
""" |
| 11 |
Whether the shipping rate can be used for new purchases. Defaults to `true`. |
| 12 |
""" |
| 13 |
expand: NotRequired[List[str]] |
| 14 |
""" |
| 15 |
Specifies which fields in the response should be expanded. |
| 16 |
""" |
| 17 |
fixed_amount: NotRequired["ShippingRateModifyParamsFixedAmount"] |
| 18 |
""" |
| 19 |
Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`. |
| 20 |
""" |
| 21 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 22 |
""" |
| 23 |
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`. |
| 24 |
""" |
| 25 |
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] |
| 26 |
""" |
| 27 |
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. |
| 28 |
""" |
| 29 |
|
| 30 |
|
| 31 |
class ShippingRateModifyParamsFixedAmount(TypedDict): |
| 32 |
currency_options: NotRequired[ |
| 33 |
Dict[str, "ShippingRateModifyParamsFixedAmountCurrencyOptions"] |
| 34 |
] |
| 35 |
""" |
| 36 |
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). |
| 37 |
""" |
| 38 |
|
| 39 |
|
| 40 |
class ShippingRateModifyParamsFixedAmountCurrencyOptions(TypedDict): |
| 41 |
amount: NotRequired[int] |
| 42 |
""" |
| 43 |
A non-negative integer in cents representing how much to charge. |
| 44 |
""" |
| 45 |
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] |
| 46 |
""" |
| 47 |
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. |
| 48 |
""" |