| 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 PlanUpdateParams(TypedDict): |
| 8 |
active: NotRequired[bool] |
| 9 |
""" |
| 10 |
Whether the plan is currently available for new subscriptions. |
| 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 |
nickname: NotRequired[str] |
| 21 |
""" |
| 22 |
A brief description of the plan, hidden from customers. |
| 23 |
""" |
| 24 |
product: NotRequired[str] |
| 25 |
""" |
| 26 |
The product the plan belongs to. This cannot be changed once it has been used in a subscription or subscription schedule. |
| 27 |
""" |
| 28 |
trial_period_days: NotRequired[int] |
| 29 |
""" |
| 30 |
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). |
| 31 |
""" |