Debian Codegraph @

stripe/params/_plan_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
6
7
8 class PlanModifyParams(RequestOptions):
9 active: NotRequired[bool]
10 """
11 Whether the plan is currently available for new subscriptions.
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 nickname: NotRequired[str]
22 """
23 A brief description of the plan, hidden from customers.
24 """
25 product: NotRequired[str]
26 """
27 The product the plan belongs to. This cannot be changed once it has been used in a subscription or subscription schedule.
28 """
29 trial_period_days: NotRequired[int]
30 """
31 Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan).
32 """