| 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 SubscriptionMigrateParams(RequestOptions): |
| 9 |
billing_mode: "SubscriptionMigrateParamsBillingMode" |
| 10 |
""" |
| 11 |
Controls how prorations and invoices for subscriptions are calculated and orchestrated. |
| 12 |
""" |
| 13 |
expand: NotRequired[List[str]] |
| 14 |
""" |
| 15 |
Specifies which fields in the response should be expanded. |
| 16 |
""" |
| 17 |
|
| 18 |
|
| 19 |
class SubscriptionMigrateParamsBillingMode(TypedDict): |
| 20 |
flexible: NotRequired["SubscriptionMigrateParamsBillingModeFlexible"] |
| 21 |
""" |
| 22 |
Configure behavior for flexible billing mode. |
| 23 |
""" |
| 24 |
type: Literal["flexible"] |
| 25 |
""" |
| 26 |
Controls the calculation and orchestration of prorations and invoices for subscriptions. |
| 27 |
""" |
| 28 |
|
| 29 |
|
| 30 |
class SubscriptionMigrateParamsBillingModeFlexible(TypedDict): |
| 31 |
proration_discounts: NotRequired[Literal["included", "itemized"]] |
| 32 |
""" |
| 33 |
Controls how invoices and invoice items display proration amounts and discount amounts. |
| 34 |
""" |