Debian Codegraph @

stripe/params/_promotion_code_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 PromotionCodeUpdateParams(TypedDict):
8 active: NotRequired[bool]
9 """
10 Whether the promotion code is currently active. A promotion code can only be reactivated when the coupon is still valid and the promotion code is otherwise redeemable.
11 """
12 expand: NotRequired[List[str]]
13 """
14 Specifies which fields in the response should be expanded.
15 """
16 metadata: NotRequired["Literal['']|Dict[str, str]"]
17 """
18 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`.
19 """
20 restrictions: NotRequired["PromotionCodeUpdateParamsRestrictions"]
21 """
22 Settings that restrict the redemption of the promotion code.
23 """
24
25
26 class PromotionCodeUpdateParamsRestrictions(TypedDict):
27 currency_options: NotRequired[
28 Dict[str, "PromotionCodeUpdateParamsRestrictionsCurrencyOptions"]
29 ]
30 """
31 Promotion codes 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).
32 """
33
34
35 class PromotionCodeUpdateParamsRestrictionsCurrencyOptions(TypedDict):
36 minimum_amount: NotRequired[int]
37 """
38 Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
39 """