Debian Codegraph @

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