Debian Codegraph @

stripe/params/_subscription_schedule_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 SubscriptionScheduleModifyParams(RequestOptions):
9 default_settings: NotRequired[
10 "SubscriptionScheduleModifyParamsDefaultSettings"
11 ]
12 """
13 Object representing the subscription schedule's default settings.
14 """
15 end_behavior: NotRequired[Literal["cancel", "none", "release", "renew"]]
16 """
17 Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
18 """
19 expand: NotRequired[List[str]]
20 """
21 Specifies which fields in the response should be expanded.
22 """
23 metadata: NotRequired["Literal['']|Dict[str, str]"]
24 """
25 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`.
26 """
27 phases: NotRequired[List["SubscriptionScheduleModifyParamsPhase"]]
28 """
29 List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
30 """
31 proration_behavior: NotRequired[
32 Literal["always_invoice", "create_prorations", "none"]
33 ]
34 """
35 If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
36 """
37
38
39 class SubscriptionScheduleModifyParamsDefaultSettings(TypedDict):
40 application_fee_percent: NotRequired[float]
41 """
42 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
43 """
44 automatic_tax: NotRequired[
45 "SubscriptionScheduleModifyParamsDefaultSettingsAutomaticTax"
46 ]
47 """
48 Default settings for automatic tax computation.
49 """
50 billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
51 """
52 Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
53 """
54 billing_thresholds: NotRequired[
55 "Literal['']|SubscriptionScheduleModifyParamsDefaultSettingsBillingThresholds"
56 ]
57 """
58 Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
59 """
60 collection_method: NotRequired[
61 Literal["charge_automatically", "send_invoice"]
62 ]
63 """
64 Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
65 """
66 default_payment_method: NotRequired[str]
67 """
68 ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
69 """
70 description: NotRequired["Literal['']|str"]
71 """
72 Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
73 """
74 invoice_settings: NotRequired[
75 "SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettings"
76 ]
77 """
78 All invoices will be billed using the specified settings.
79 """
80 on_behalf_of: NotRequired["Literal['']|str"]
81 """
82 The account on behalf of which to charge, for each of the associated subscription's invoices.
83 """
84 transfer_data: NotRequired[
85 "Literal['']|SubscriptionScheduleModifyParamsDefaultSettingsTransferData"
86 ]
87 """
88 The data with which to automatically create a Transfer for each of the associated subscription's invoices.
89 """
90
91
92 class SubscriptionScheduleModifyParamsDefaultSettingsAutomaticTax(TypedDict):
93 enabled: bool
94 """
95 Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
96 """
97 liability: NotRequired[
98 "SubscriptionScheduleModifyParamsDefaultSettingsAutomaticTaxLiability"
99 ]
100 """
101 The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
102 """
103
104
105 class SubscriptionScheduleModifyParamsDefaultSettingsAutomaticTaxLiability(
106 TypedDict,
107 ):
108 account: NotRequired[str]
109 """
110 The connected account being referenced when `type` is `account`.
111 """
112 type: Literal["account", "self"]
113 """
114 Type of the account referenced in the request.
115 """
116
117
118 class SubscriptionScheduleModifyParamsDefaultSettingsBillingThresholds(
119 TypedDict,
120 ):
121 amount_gte: NotRequired[int]
122 """
123 Monetary threshold that triggers the subscription to advance to a new billing period
124 """
125 reset_billing_cycle_anchor: NotRequired[bool]
126 """
127 Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
128 """
129
130
131 class SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettings(
132 TypedDict
133 ):
134 account_tax_ids: NotRequired["Literal['']|List[str]"]
135 """
136 The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
137 """
138 days_until_due: NotRequired[int]
139 """
140 Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
141 """
142 issuer: NotRequired[
143 "SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsIssuer"
144 ]
145 """
146 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
147 """
148
149
150 class SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsIssuer(
151 TypedDict,
152 ):
153 account: NotRequired[str]
154 """
155 The connected account being referenced when `type` is `account`.
156 """
157 type: Literal["account", "self"]
158 """
159 Type of the account referenced in the request.
160 """
161
162
163 class SubscriptionScheduleModifyParamsDefaultSettingsTransferData(TypedDict):
164 amount_percent: NotRequired[float]
165 """
166 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
167 """
168 destination: str
169 """
170 ID of an existing, connected Stripe account.
171 """
172
173
174 class SubscriptionScheduleModifyParamsPhase(TypedDict):
175 add_invoice_items: NotRequired[
176 List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItem"]
177 ]
178 """
179 A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
180 """
181 application_fee_percent: NotRequired[float]
182 """
183 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
184 """
185 automatic_tax: NotRequired[
186 "SubscriptionScheduleModifyParamsPhaseAutomaticTax"
187 ]
188 """
189 Automatic tax settings for this phase.
190 """
191 billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
192 """
193 Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
194 """
195 billing_thresholds: NotRequired[
196 "Literal['']|SubscriptionScheduleModifyParamsPhaseBillingThresholds"
197 ]
198 """
199 Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
200 """
201 collection_method: NotRequired[
202 Literal["charge_automatically", "send_invoice"]
203 ]
204 """
205 Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
206 """
207 currency: NotRequired[str]
208 """
209 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
210 """
211 default_payment_method: NotRequired[str]
212 """
213 ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
214 """
215 default_tax_rates: NotRequired["Literal['']|List[str]"]
216 """
217 A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
218 """
219 description: NotRequired["Literal['']|str"]
220 """
221 Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
222 """
223 discounts: NotRequired[
224 "Literal['']|List[SubscriptionScheduleModifyParamsPhaseDiscount]"
225 ]
226 """
227 The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
228 """
229 duration: NotRequired["SubscriptionScheduleModifyParamsPhaseDuration"]
230 """
231 The number of intervals the phase should last. If set, `end_date` must not be set.
232 """
233 end_date: NotRequired["int|Literal['now']"]
234 """
235 The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
236 """
237 invoice_settings: NotRequired[
238 "SubscriptionScheduleModifyParamsPhaseInvoiceSettings"
239 ]
240 """
241 All invoices will be billed using the specified settings.
242 """
243 items: List["SubscriptionScheduleModifyParamsPhaseItem"]
244 """
245 List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
246 """
247 metadata: NotRequired[Dict[str, str]]
248 """
249 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
250 """
251 on_behalf_of: NotRequired[str]
252 """
253 The account on behalf of which to charge, for each of the associated subscription's invoices.
254 """
255 proration_behavior: NotRequired[
256 Literal["always_invoice", "create_prorations", "none"]
257 ]
258 """
259 Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
260 """
261 start_date: NotRequired["int|Literal['now']"]
262 """
263 The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
264 """
265 transfer_data: NotRequired[
266 "SubscriptionScheduleModifyParamsPhaseTransferData"
267 ]
268 """
269 The data with which to automatically create a Transfer for each of the associated subscription's invoices.
270 """
271 trial: NotRequired[bool]
272 """
273 If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
274 """
275 trial_end: NotRequired["int|Literal['now']"]
276 """
277 Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
278 """
279
280
281 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItem(TypedDict):
282 discounts: NotRequired[
283 List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount"]
284 ]
285 """
286 The coupons to redeem into discounts for the item.
287 """
288 metadata: NotRequired[Dict[str, str]]
289 """
290 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`.
291 """
292 period: NotRequired[
293 "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod"
294 ]
295 """
296 The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
297 """
298 price: NotRequired[str]
299 """
300 The ID of the price object. One of `price` or `price_data` is required.
301 """
302 price_data: NotRequired[
303 "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPriceData"
304 ]
305 """
306 Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
307 """
308 quantity: NotRequired[int]
309 """
310 Quantity for this item. Defaults to 1.
311 """
312 tax_rates: NotRequired["Literal['']|List[str]"]
313 """
314 The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
315 """
316
317
318 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount(TypedDict):
319 coupon: NotRequired[str]
320 """
321 ID of the coupon to create a new discount for.
322 """
323 discount: NotRequired[str]
324 """
325 ID of an existing discount on the object (or one of its ancestors) to reuse.
326 """
327 promotion_code: NotRequired[str]
328 """
329 ID of the promotion code to create a new discount for.
330 """
331
332
333 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod(TypedDict):
334 end: "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodEnd"
335 """
336 End of the invoice item period.
337 """
338 start: "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodStart"
339 """
340 Start of the invoice item period.
341 """
342
343
344 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodEnd(TypedDict):
345 timestamp: NotRequired[int]
346 """
347 A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
348 """
349 type: Literal["min_item_period_end", "phase_end", "timestamp"]
350 """
351 Select how to calculate the end of the invoice item period.
352 """
353
354
355 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodStart(
356 TypedDict
357 ):
358 timestamp: NotRequired[int]
359 """
360 A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
361 """
362 type: Literal["max_item_period_start", "phase_start", "timestamp"]
363 """
364 Select how to calculate the start of the invoice item period.
365 """
366
367
368 class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPriceData(TypedDict):
369 currency: str
370 """
371 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
372 """
373 product: str
374 """
375 The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
376 """
377 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
378 """
379 Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
380 """
381 unit_amount: NotRequired[int]
382 """
383 A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
384 """
385 unit_amount_decimal: NotRequired[str]
386 """
387 Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
388 """
389
390
391 class SubscriptionScheduleModifyParamsPhaseAutomaticTax(TypedDict):
392 enabled: bool
393 """
394 Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
395 """
396 liability: NotRequired[
397 "SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability"
398 ]
399 """
400 The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
401 """
402
403
404 class SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability(TypedDict):
405 account: NotRequired[str]
406 """
407 The connected account being referenced when `type` is `account`.
408 """
409 type: Literal["account", "self"]
410 """
411 Type of the account referenced in the request.
412 """
413
414
415 class SubscriptionScheduleModifyParamsPhaseBillingThresholds(TypedDict):
416 amount_gte: NotRequired[int]
417 """
418 Monetary threshold that triggers the subscription to advance to a new billing period
419 """
420 reset_billing_cycle_anchor: NotRequired[bool]
421 """
422 Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
423 """
424
425
426 class SubscriptionScheduleModifyParamsPhaseDiscount(TypedDict):
427 coupon: NotRequired[str]
428 """
429 ID of the coupon to create a new discount for.
430 """
431 discount: NotRequired[str]
432 """
433 ID of an existing discount on the object (or one of its ancestors) to reuse.
434 """
435 promotion_code: NotRequired[str]
436 """
437 ID of the promotion code to create a new discount for.
438 """
439
440
441 class SubscriptionScheduleModifyParamsPhaseDuration(TypedDict):
442 interval: Literal["day", "month", "week", "year"]
443 """
444 Specifies phase duration. Either `day`, `week`, `month` or `year`.
445 """
446 interval_count: NotRequired[int]
447 """
448 The multiplier applied to the interval.
449 """
450
451
452 class SubscriptionScheduleModifyParamsPhaseInvoiceSettings(TypedDict):
453 account_tax_ids: NotRequired["Literal['']|List[str]"]
454 """
455 The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
456 """
457 days_until_due: NotRequired[int]
458 """
459 Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
460 """
461 issuer: NotRequired[
462 "SubscriptionScheduleModifyParamsPhaseInvoiceSettingsIssuer"
463 ]
464 """
465 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
466 """
467
468
469 class SubscriptionScheduleModifyParamsPhaseInvoiceSettingsIssuer(TypedDict):
470 account: NotRequired[str]
471 """
472 The connected account being referenced when `type` is `account`.
473 """
474 type: Literal["account", "self"]
475 """
476 Type of the account referenced in the request.
477 """
478
479
480 class SubscriptionScheduleModifyParamsPhaseItem(TypedDict):
481 billing_thresholds: NotRequired[
482 "Literal['']|SubscriptionScheduleModifyParamsPhaseItemBillingThresholds"
483 ]
484 """
485 Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
486 """
487 discounts: NotRequired[
488 "Literal['']|List[SubscriptionScheduleModifyParamsPhaseItemDiscount]"
489 ]
490 """
491 The coupons to redeem into discounts for the subscription item.
492 """
493 metadata: NotRequired[Dict[str, str]]
494 """
495 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
496 """
497 plan: NotRequired[str]
498 """
499 The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
500 """
501 price: NotRequired[str]
502 """
503 The ID of the price object.
504 """
505 price_data: NotRequired[
506 "SubscriptionScheduleModifyParamsPhaseItemPriceData"
507 ]
508 """
509 Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
510 """
511 quantity: NotRequired[int]
512 """
513 Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
514 """
515 tax_rates: NotRequired["Literal['']|List[str]"]
516 """
517 A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
518 """
519
520
521 class SubscriptionScheduleModifyParamsPhaseItemBillingThresholds(TypedDict):
522 usage_gte: int
523 """
524 Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
525 """
526
527
528 class SubscriptionScheduleModifyParamsPhaseItemDiscount(TypedDict):
529 coupon: NotRequired[str]
530 """
531 ID of the coupon to create a new discount for.
532 """
533 discount: NotRequired[str]
534 """
535 ID of an existing discount on the object (or one of its ancestors) to reuse.
536 """
537 promotion_code: NotRequired[str]
538 """
539 ID of the promotion code to create a new discount for.
540 """
541
542
543 class SubscriptionScheduleModifyParamsPhaseItemPriceData(TypedDict):
544 currency: str
545 """
546 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
547 """
548 product: str
549 """
550 The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
551 """
552 recurring: "SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring"
553 """
554 The recurring components of a price such as `interval` and `interval_count`.
555 """
556 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
557 """
558 Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
559 """
560 unit_amount: NotRequired[int]
561 """
562 A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
563 """
564 unit_amount_decimal: NotRequired[str]
565 """
566 Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
567 """
568
569
570 class SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring(TypedDict):
571 interval: Literal["day", "month", "week", "year"]
572 """
573 Specifies billing frequency. Either `day`, `week`, `month` or `year`.
574 """
575 interval_count: NotRequired[int]
576 """
577 The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
578 """
579
580
581 class SubscriptionScheduleModifyParamsPhaseTransferData(TypedDict):
582 amount_percent: NotRequired[float]
583 """
584 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
585 """
586 destination: str
587 """
588 ID of an existing, connected Stripe account.
589 """