Debian Codegraph @

stripe/params/_subscription_cancel_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 List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class SubscriptionCancelParams(RequestOptions):
9 cancellation_details: NotRequired[
10 "SubscriptionCancelParamsCancellationDetails"
11 ]
12 """
13 Details about why this subscription was cancelled
14 """
15 expand: NotRequired[List[str]]
16 """
17 Specifies which fields in the response should be expanded.
18 """
19 invoice_now: NotRequired[bool]
20 """
21 Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`.
22 """
23 prorate: NotRequired[bool]
24 """
25 Will generate a proration invoice item that credits remaining unused time until the subscription period end. Defaults to `false`.
26 """
27
28
29 class SubscriptionCancelParamsCancellationDetails(TypedDict):
30 comment: NotRequired["Literal['']|str"]
31 """
32 Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
33 """
34 feedback: NotRequired[
35 "Literal['']|Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']"
36 ]
37 """
38 The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
39 """