Debian Codegraph @

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