Debian Codegraph @

stripe/params/_subscription_schedule_update_params.py

raw
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 SubscriptionScheduleUpdateParams(TypedDict):
8 default_settings: NotRequired[
9 "SubscriptionScheduleUpdateParamsDefaultSettings"
10 ]
11 """
12 Object representing the subscription schedule's default settings.
13 """
14 end_behavior: NotRequired[Literal["cancel", "none", "release", "renew"]]
15 """
16 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.
17 """
18 expand: NotRequired[List[str]]
19 """
20 Specifies which fields in the response should be expanded.
21 """
22 metadata: NotRequired["Literal['']|Dict[str, str]"]
23 """
24 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`.
25 """
26 phases: NotRequired[List["SubscriptionScheduleUpdateParamsPhase"]]
27 """
28 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.
29 """
30 proration_behavior: NotRequired[
31 Literal["always_invoice", "create_prorations", "none"]
32 ]
33 """
34 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`.
35 """
36
37
38 class SubscriptionScheduleUpdateParamsDefaultSettings(TypedDict):
39 application_fee_percent: NotRequired[float]
40 """
41 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).
42 """
43 automatic_tax: NotRequired[
44 "SubscriptionScheduleUpdateParamsDefaultSettingsAutomaticTax"
45 ]
46 """
47 Default settings for automatic tax computation.
48 """
49 billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
50 """
51 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).
52 """
53 billing_thresholds: NotRequired[
54 "Literal['']|SubscriptionScheduleUpdateParamsDefaultSettingsBillingThresholds"
55 ]
56 """
57 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.
58 """
59 collection_method: NotRequired[
60 Literal["charge_automatically", "send_invoice"]
61 ]
62 """
63 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.
64 """
65 default_payment_method: NotRequired[str]
66 """
67 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.
68 """
69 description: NotRequired["Literal['']|str"]
70 """
71 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.
72 """
73 invoice_settings: NotRequired[
74 "SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettings"
75 ]
76 """
77 All invoices will be billed using the specified settings.
78 """
79 on_behalf_of: NotRequired["Literal['']|str"]
80 """
81 The account on behalf of which to charge, for each of the associated subscription's invoices.
82 """
83 transfer_data: NotRequired[
84 "Literal['']|SubscriptionScheduleUpdateParamsDefaultSettingsTransferData"
85 ]
86 """
87 The data with which to automatically create a Transfer for each of the associated subscription's invoices.
88 """
89
90
91 class SubscriptionScheduleUpdateParamsDefaultSettingsAutomaticTax(TypedDict):
92 enabled: bool
93 """
94 Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
95 """
96 liability: NotRequired[
97 "SubscriptionScheduleUpdateParamsDefaultSettingsAutomaticTaxLiability"
98 ]
99 """
100 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.
101 """
102
103
104 class SubscriptionScheduleUpdateParamsDefaultSettingsAutomaticTaxLiability(
105 TypedDict,
106 ):
107 account: NotRequired[str]
108 """
109 The connected account being referenced when `type` is `account`.
110 """
111 type: Literal["account", "self"]
112 """
113 Type of the account referenced in the request.
114 """
115
116
117 class SubscriptionScheduleUpdateParamsDefaultSettingsBillingThresholds(
118 TypedDict,
119 ):
120 amount_gte: NotRequired[int]
121 """
122 Monetary threshold that triggers the subscription to advance to a new billing period
123 """
124 reset_billing_cycle_anchor: NotRequired[bool]
125 """
126 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.
127 """
128
129
130 class SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettings(
131 TypedDict
132 ):
133 account_tax_ids: NotRequired["Literal['']|List[str]"]
134 """
135 The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
136 """
137 days_until_due: NotRequired[int]
138 """
139 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`.
140 """
141 issuer: NotRequired[
142 "SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsIssuer"
143 ]
144 """
145 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
146 """
147
148
149 class SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsIssuer(
150 TypedDict,
151 ):
152 account: NotRequired[str]
153 """
154 The connected account being referenced when `type` is `account`.
155 """
156 type: Literal["account", "self"]
157 """
158 Type of the account referenced in the request.
159 """
160
161
162 class SubscriptionScheduleUpdateParamsDefaultSettingsTransferData(TypedDict):
163 amount_percent: NotRequired[float]
164 """
165 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.
166 """
167 destination: str
168 """
169 ID of an existing, connected Stripe account.
170 """
171
172
173 class SubscriptionScheduleUpdateParamsPhase(TypedDict):
174 add_invoice_items: NotRequired[
175 List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem"]
176 ]
177 """
178 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.
179 """
180 application_fee_percent: NotRequired[float]
181 """
182 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).
183 """
184 automatic_tax: NotRequired[
185 "SubscriptionScheduleUpdateParamsPhaseAutomaticTax"
186 ]
187 """
188 Automatic tax settings for this phase.
189 """
190 billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
191 """
192 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).
193 """
194 billing_thresholds: NotRequired[
195 "Literal['']|SubscriptionScheduleUpdateParamsPhaseBillingThresholds"
196 ]
197 """
198 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.
199 """
200 collection_method: NotRequired[
201 Literal["charge_automatically", "send_invoice"]
202 ]
203 """
204 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.
205 """
206 currency: NotRequired[str]
207 """
208 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).
209 """
210 default_payment_method: NotRequired[str]
211 """
212 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.
213 """
214 default_tax_rates: NotRequired["Literal['']|List[str]"]
215 """
216 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.
217 """
218 description: NotRequired["Literal['']|str"]
219 """
220 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.
221 """
222 discounts: NotRequired[
223 "Literal['']|List[SubscriptionScheduleUpdateParamsPhaseDiscount]"
224 ]
225 """
226 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.
227 """
228 duration: NotRequired["SubscriptionScheduleUpdateParamsPhaseDuration"]
229 """
230 The number of intervals the phase should last. If set, `end_date` must not be set.
231 """
232 end_date: NotRequired["int|Literal['now']"]
233 """
234 The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
235 """
236 invoice_settings: NotRequired[
237 "SubscriptionScheduleUpdateParamsPhaseInvoiceSettings"
238 ]
239 """
240 All invoices will be billed using the specified settings.
241 """
242 items: List["SubscriptionScheduleUpdateParamsPhaseItem"]
243 """
244 List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
245 """
246 metadata: NotRequired[Dict[str, str]]
247 """
248 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`.
249 """
250 on_behalf_of: NotRequired[str]
251 """
252 The account on behalf of which to charge, for each of the associated subscription's invoices.
253 """
254 proration_behavior: NotRequired[
255 Literal["always_invoice", "create_prorations", "none"]
256 ]
257 """
258 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.
259 """
260 start_date: NotRequired["int|Literal['now']"]
261 """
262 The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
263 """
264 transfer_data: NotRequired[
265 "SubscriptionScheduleUpdateParamsPhaseTransferData"
266 ]
267 """
268 The data with which to automatically create a Transfer for each of the associated subscription's invoices.
269 """
270 trial: NotRequired[bool]
271 """
272 If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
273 """
274 trial_end: NotRequired["int|Literal['now']"]
275 """
276 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`
277 """
278
279
280 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem(TypedDict):
281 discounts: NotRequired[
282 List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount"]
283 ]
284 """
285 The coupons to redeem into discounts for the item.
286 """
287 metadata: NotRequired[Dict[str, str]]
288 """
289 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`.
290 """
291 period: NotRequired[
292 "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod"
293 ]
294 """
295 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`.
296 """
297 price: NotRequired[str]
298 """
299 The ID of the price object. One of `price` or `price_data` is required.
300 """
301 price_data: NotRequired[
302 "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPriceData"
303 ]
304 """
305 Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
306 """
307 quantity: NotRequired[int]
308 """
309 Quantity for this item. Defaults to 1.
310 """
311 tax_rates: NotRequired["Literal['']|List[str]"]
312 """
313 The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
314 """
315
316
317 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount(TypedDict):
318 coupon: NotRequired[str]
319 """
320 ID of the coupon to create a new discount for.
321 """
322 discount: NotRequired[str]
323 """
324 ID of an existing discount on the object (or one of its ancestors) to reuse.
325 """
326 promotion_code: NotRequired[str]
327 """
328 ID of the promotion code to create a new discount for.
329 """
330
331
332 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod(TypedDict):
333 end: "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodEnd"
334 """
335 End of the invoice item period.
336 """
337 start: "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodStart"
338 """
339 Start of the invoice item period.
340 """
341
342
343 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodEnd(TypedDict):
344 timestamp: NotRequired[int]
345 """
346 A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
347 """
348 type: Literal["min_item_period_end", "phase_end", "timestamp"]
349 """
350 Select how to calculate the end of the invoice item period.
351 """
352
353
354 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodStart(
355 TypedDict
356 ):
357 timestamp: NotRequired[int]
358 """
359 A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
360 """
361 type: Literal["max_item_period_start", "phase_start", "timestamp"]
362 """
363 Select how to calculate the start of the invoice item period.
364 """
365
366
367 class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPriceData(TypedDict):
368 currency: str
369 """
370 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).
371 """
372 product: str
373 """
374 The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
375 """
376 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
377 """
378 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.
379 """
380 unit_amount: NotRequired[int]
381 """
382 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.
383 """
384 unit_amount_decimal: NotRequired[str]
385 """
386 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.
387 """
388
389
390 class SubscriptionScheduleUpdateParamsPhaseAutomaticTax(TypedDict):
391 enabled: bool
392 """
393 Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
394 """
395 liability: NotRequired[
396 "SubscriptionScheduleUpdateParamsPhaseAutomaticTaxLiability"
397 ]
398 """
399 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.
400 """
401
402
403 class SubscriptionScheduleUpdateParamsPhaseAutomaticTaxLiability(TypedDict):
404 account: NotRequired[str]
405 """
406 The connected account being referenced when `type` is `account`.
407 """
408 type: Literal["account", "self"]
409 """
410 Type of the account referenced in the request.
411 """
412
413
414 class SubscriptionScheduleUpdateParamsPhaseBillingThresholds(TypedDict):
415 amount_gte: NotRequired[int]
416 """
417 Monetary threshold that triggers the subscription to advance to a new billing period
418 """
419 reset_billing_cycle_anchor: NotRequired[bool]
420 """
421 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.
422 """
423
424
425 class SubscriptionScheduleUpdateParamsPhaseDiscount(TypedDict):
426 coupon: NotRequired[str]
427 """
428 ID of the coupon to create a new discount for.
429 """
430 discount: NotRequired[str]
431 """
432 ID of an existing discount on the object (or one of its ancestors) to reuse.
433 """
434 promotion_code: NotRequired[str]
435 """
436 ID of the promotion code to create a new discount for.
437 """
438
439
440 class SubscriptionScheduleUpdateParamsPhaseDuration(TypedDict):
441 interval: Literal["day", "month", "week", "year"]
442 """
443 Specifies phase duration. Either `day`, `week`, `month` or `year`.
444 """
445 interval_count: NotRequired[int]
446 """
447 The multiplier applied to the interval.
448 """
449
450
451 class SubscriptionScheduleUpdateParamsPhaseInvoiceSettings(TypedDict):
452 account_tax_ids: NotRequired["Literal['']|List[str]"]
453 """
454 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.
455 """
456 days_until_due: NotRequired[int]
457 """
458 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`.
459 """
460 issuer: NotRequired[
461 "SubscriptionScheduleUpdateParamsPhaseInvoiceSettingsIssuer"
462 ]
463 """
464 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
465 """
466
467
468 class SubscriptionScheduleUpdateParamsPhaseInvoiceSettingsIssuer(TypedDict):
469 account: NotRequired[str]
470 """
471 The connected account being referenced when `type` is `account`.
472 """
473 type: Literal["account", "self"]
474 """
475 Type of the account referenced in the request.
476 """
477
478
479 class SubscriptionScheduleUpdateParamsPhaseItem(TypedDict):
480 billing_thresholds: NotRequired[
481 "Literal['']|SubscriptionScheduleUpdateParamsPhaseItemBillingThresholds"
482 ]
483 """
484 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.
485 """
486 discounts: NotRequired[
487 "Literal['']|List[SubscriptionScheduleUpdateParamsPhaseItemDiscount]"
488 ]
489 """
490 The coupons to redeem into discounts for the subscription item.
491 """
492 metadata: NotRequired[Dict[str, str]]
493 """
494 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`.
495 """
496 plan: NotRequired[str]
497 """
498 The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
499 """
500 price: NotRequired[str]
501 """
502 The ID of the price object.
503 """
504 price_data: NotRequired[
505 "SubscriptionScheduleUpdateParamsPhaseItemPriceData"
506 ]
507 """
508 Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
509 """
510 quantity: NotRequired[int]
511 """
512 Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
513 """
514 tax_rates: NotRequired["Literal['']|List[str]"]
515 """
516 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.
517 """
518
519
520 class SubscriptionScheduleUpdateParamsPhaseItemBillingThresholds(TypedDict):
521 usage_gte: int
522 """
523 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))
524 """
525
526
527 class SubscriptionScheduleUpdateParamsPhaseItemDiscount(TypedDict):
528 coupon: NotRequired[str]
529 """
530 ID of the coupon to create a new discount for.
531 """
532 discount: NotRequired[str]
533 """
534 ID of an existing discount on the object (or one of its ancestors) to reuse.
535 """
536 promotion_code: NotRequired[str]
537 """
538 ID of the promotion code to create a new discount for.
539 """
540
541
542 class SubscriptionScheduleUpdateParamsPhaseItemPriceData(TypedDict):
543 currency: str
544 """
545 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).
546 """
547 product: str
548 """
549 The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
550 """
551 recurring: "SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring"
552 """
553 The recurring components of a price such as `interval` and `interval_count`.
554 """
555 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
556 """
557 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.
558 """
559 unit_amount: NotRequired[int]
560 """
561 A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
562 """
563 unit_amount_decimal: NotRequired[str]
564 """
565 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.
566 """
567
568
569 class SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring(TypedDict):
570 interval: Literal["day", "month", "week", "year"]
571 """
572 Specifies billing frequency. Either `day`, `week`, `month` or `year`.
573 """
574 interval_count: NotRequired[int]
575 """
576 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).
577 """
578
579
580 class SubscriptionScheduleUpdateParamsPhaseTransferData(TypedDict):
581 amount_percent: NotRequired[float]
582 """
583 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.
584 """
585 destination: str
586 """
587 ID of an existing, connected Stripe account.
588 """