| 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 CouponUpdateParams(TypedDict): |
| 8 |
currency_options: NotRequired[ |
| 9 |
Dict[str, "CouponUpdateParamsCurrencyOptions"] |
| 10 |
] |
| 11 |
""" |
| 12 |
Coupons defined in each available currency option (only supported if the coupon is amount-based). 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). |
| 13 |
""" |
| 14 |
expand: NotRequired[List[str]] |
| 15 |
""" |
| 16 |
Specifies which fields in the response should be expanded. |
| 17 |
""" |
| 18 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 19 |
""" |
| 20 |
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`. |
| 21 |
""" |
| 22 |
name: NotRequired[str] |
| 23 |
""" |
| 24 |
Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set. |
| 25 |
""" |
| 26 |
|
| 27 |
|
| 28 |
class CouponUpdateParamsCurrencyOptions(TypedDict): |
| 29 |
amount_off: int |
| 30 |
""" |
| 31 |
A positive integer representing the amount to subtract from an invoice total. |
| 32 |
""" |