stripe 17.7.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/InvoicePayments.js +17 -0
  6. package/cjs/resources/Invoices.js +0 -9
  7. package/cjs/resources/SubscriptionItems.js +0 -9
  8. package/cjs/resources.js +4 -2
  9. package/cjs/stripe.core.js +3 -14
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/InvoicePayments.js +14 -0
  12. package/esm/resources/Invoices.js +0 -9
  13. package/esm/resources/SubscriptionItems.js +0 -9
  14. package/esm/resources.js +1 -0
  15. package/esm/stripe.core.js +3 -14
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +47 -6
  18. package/types/AccountsResource.d.ts +110 -3
  19. package/types/ApplicationFees.d.ts +1 -1
  20. package/types/BalanceTransactions.d.ts +3 -1
  21. package/types/BalanceTransactionsResource.d.ts +1 -1
  22. package/types/BankAccounts.d.ts +9 -1
  23. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  24. package/types/Billing/CreditGrants.d.ts +2 -2
  25. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  26. package/types/Billing/Meters.d.ts +1 -1
  27. package/types/Billing/MetersResource.d.ts +2 -2
  28. package/types/Capabilities.d.ts +8 -0
  29. package/types/Cards.d.ts +1 -4
  30. package/types/Charges.d.ts +56 -5
  31. package/types/ChargesResource.d.ts +1 -1
  32. package/types/Checkout/Sessions.d.ts +77 -53
  33. package/types/Checkout/SessionsResource.d.ts +232 -15
  34. package/types/ConfirmationTokens.d.ts +50 -0
  35. package/types/CreditNoteLineItems.d.ts +24 -22
  36. package/types/CreditNotes.d.ts +39 -15
  37. package/types/CreditNotesResource.d.ts +48 -12
  38. package/types/CustomerBalanceTransactions.d.ts +8 -1
  39. package/types/Customers.d.ts +3 -3
  40. package/types/CustomersResource.d.ts +3 -14
  41. package/types/EventTypes.d.ts +138 -2
  42. package/types/Events.d.ts +9 -1
  43. package/types/Identity/VerificationSessions.d.ts +1 -1
  44. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  45. package/types/InvoiceItems.d.ts +60 -26
  46. package/types/InvoiceItemsResource.d.ts +26 -22
  47. package/types/InvoiceLineItems.d.ts +160 -70
  48. package/types/InvoicePayments.d.ts +99 -0
  49. package/types/InvoicePaymentsResource.d.ts +74 -0
  50. package/types/Invoices.d.ts +97 -83
  51. package/types/InvoicesResource.d.ts +239 -2846
  52. package/types/Issuing/Authorizations.d.ts +2 -1
  53. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  54. package/types/Mandates.d.ts +8 -0
  55. package/types/PaymentIntents.d.ts +59 -8
  56. package/types/PaymentIntentsResource.d.ts +293 -8
  57. package/types/PaymentLinks.d.ts +49 -0
  58. package/types/PaymentLinksResource.d.ts +77 -0
  59. package/types/PaymentMethodConfigurations.d.ts +108 -0
  60. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  61. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  62. package/types/PaymentMethods.d.ts +50 -0
  63. package/types/PaymentMethodsResource.d.ts +54 -16
  64. package/types/Persons.d.ts +17 -9
  65. package/types/Plans.d.ts +0 -7
  66. package/types/PlansResource.d.ts +0 -7
  67. package/types/Prices.d.ts +0 -11
  68. package/types/PricesResource.d.ts +2 -13
  69. package/types/QuotesResource.d.ts +2 -2
  70. package/types/Refunds.d.ts +18 -0
  71. package/types/Reviews.d.ts +3 -2
  72. package/types/SetupAttempts.d.ts +15 -0
  73. package/types/SetupIntents.d.ts +2 -0
  74. package/types/SetupIntentsResource.d.ts +155 -0
  75. package/types/SubscriptionItems.d.ts +9 -13
  76. package/types/SubscriptionItemsResource.d.ts +2 -94
  77. package/types/SubscriptionSchedules.d.ts +0 -51
  78. package/types/SubscriptionSchedulesResource.d.ts +4 -110
  79. package/types/Subscriptions.d.ts +3 -33
  80. package/types/SubscriptionsResource.d.ts +8 -86
  81. package/types/Tax/Calculations.d.ts +1 -1
  82. package/types/Tax/RegistrationsResource.d.ts +1 -1
  83. package/types/TaxRates.d.ts +1 -1
  84. package/types/Terminal/Configurations.d.ts +86 -3
  85. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
  87. package/types/TokensResource.d.ts +6 -1
  88. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  89. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  90. package/types/V2/Core/EventsResource.d.ts +0 -5
  91. package/types/V2/EventDestinations.d.ts +1 -1
  92. package/types/V2/Events.d.ts +1 -1
  93. package/types/WebhookEndpointsResource.d.ts +21 -3
  94. package/types/index.d.ts +3 -3
  95. package/types/lib.d.ts +1 -1
  96. package/types/test/typescriptTest.ts +3 -6
  97. package/types/Deprecations.d.ts +0 -215
  98. package/types/UsageRecordSummaries.d.ts +0 -56
  99. package/types/UsageRecords.d.ts +0 -45
@@ -61,13 +61,6 @@ declare module 'stripe' {
61
61
  */
62
62
  billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor;
63
63
 
64
- /**
65
- * 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.
66
- */
67
- billing_thresholds?: Stripe.Emptyable<
68
- DefaultSettings.BillingThresholds
69
- >;
70
-
71
64
  /**
72
65
  * 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.
73
66
  */
@@ -132,18 +125,6 @@ declare module 'stripe' {
132
125
 
133
126
  type BillingCycleAnchor = 'automatic' | 'phase_start';
134
127
 
135
- interface BillingThresholds {
136
- /**
137
- * Monetary threshold that triggers the subscription to advance to a new billing period
138
- */
139
- amount_gte?: number;
140
-
141
- /**
142
- * 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.
143
- */
144
- reset_billing_cycle_anchor?: boolean;
145
- }
146
-
147
128
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
148
129
 
149
130
  interface InvoiceSettings {
@@ -217,21 +198,11 @@ declare module 'stripe' {
217
198
  */
218
199
  billing_cycle_anchor?: Phase.BillingCycleAnchor;
219
200
 
220
- /**
221
- * 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.
222
- */
223
- billing_thresholds?: Stripe.Emptyable<Phase.BillingThresholds>;
224
-
225
201
  /**
226
202
  * 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.
227
203
  */
228
204
  collection_method?: Phase.CollectionMethod;
229
205
 
230
- /**
231
- * The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
232
- */
233
- coupon?: string;
234
-
235
206
  /**
236
207
  * 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).
237
208
  */
@@ -361,7 +332,7 @@ declare module 'stripe' {
361
332
  currency: string;
362
333
 
363
334
  /**
364
- * The ID of the product that this price will belong to.
335
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
365
336
  */
366
337
  product: string;
367
338
 
@@ -418,18 +389,6 @@ declare module 'stripe' {
418
389
 
419
390
  type BillingCycleAnchor = 'automatic' | 'phase_start';
420
391
 
421
- interface BillingThresholds {
422
- /**
423
- * Monetary threshold that triggers the subscription to advance to a new billing period
424
- */
425
- amount_gte?: number;
426
-
427
- /**
428
- * 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.
429
- */
430
- reset_billing_cycle_anchor?: boolean;
431
- }
432
-
433
392
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
434
393
 
435
394
  interface Discount {
@@ -485,11 +444,6 @@ declare module 'stripe' {
485
444
  }
486
445
 
487
446
  interface Item {
488
- /**
489
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
490
- */
491
- billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
492
-
493
447
  /**
494
448
  * The coupons to redeem into discounts for the subscription item.
495
449
  */
@@ -527,13 +481,6 @@ declare module 'stripe' {
527
481
  }
528
482
 
529
483
  namespace Item {
530
- interface BillingThresholds {
531
- /**
532
- * 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://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
533
- */
534
- usage_gte: number;
535
- }
536
-
537
484
  interface Discount {
538
485
  /**
539
486
  * ID of the coupon to create a new discount for.
@@ -558,7 +505,7 @@ declare module 'stripe' {
558
505
  currency: string;
559
506
 
560
507
  /**
561
- * The ID of the product that this price will belong to.
508
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
562
509
  */
563
510
  product: string;
564
511
 
@@ -679,13 +626,6 @@ declare module 'stripe' {
679
626
  */
680
627
  billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor;
681
628
 
682
- /**
683
- * 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.
684
- */
685
- billing_thresholds?: Stripe.Emptyable<
686
- DefaultSettings.BillingThresholds
687
- >;
688
-
689
629
  /**
690
630
  * 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.
691
631
  */
@@ -750,18 +690,6 @@ declare module 'stripe' {
750
690
 
751
691
  type BillingCycleAnchor = 'automatic' | 'phase_start';
752
692
 
753
- interface BillingThresholds {
754
- /**
755
- * Monetary threshold that triggers the subscription to advance to a new billing period
756
- */
757
- amount_gte?: number;
758
-
759
- /**
760
- * 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.
761
- */
762
- reset_billing_cycle_anchor?: boolean;
763
- }
764
-
765
693
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
766
694
 
767
695
  interface InvoiceSettings {
@@ -835,21 +763,11 @@ declare module 'stripe' {
835
763
  */
836
764
  billing_cycle_anchor?: Phase.BillingCycleAnchor;
837
765
 
838
- /**
839
- * 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.
840
- */
841
- billing_thresholds?: Stripe.Emptyable<Phase.BillingThresholds>;
842
-
843
766
  /**
844
767
  * 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.
845
768
  */
846
769
  collection_method?: Phase.CollectionMethod;
847
770
 
848
- /**
849
- * The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
850
- */
851
- coupon?: string;
852
-
853
771
  /**
854
772
  * 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).
855
773
  */
@@ -984,7 +902,7 @@ declare module 'stripe' {
984
902
  currency: string;
985
903
 
986
904
  /**
987
- * The ID of the product that this price will belong to.
905
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
988
906
  */
989
907
  product: string;
990
908
 
@@ -1041,18 +959,6 @@ declare module 'stripe' {
1041
959
 
1042
960
  type BillingCycleAnchor = 'automatic' | 'phase_start';
1043
961
 
1044
- interface BillingThresholds {
1045
- /**
1046
- * Monetary threshold that triggers the subscription to advance to a new billing period
1047
- */
1048
- amount_gte?: number;
1049
-
1050
- /**
1051
- * 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.
1052
- */
1053
- reset_billing_cycle_anchor?: boolean;
1054
- }
1055
-
1056
962
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
1057
963
 
1058
964
  interface Discount {
@@ -1108,11 +1014,6 @@ declare module 'stripe' {
1108
1014
  }
1109
1015
 
1110
1016
  interface Item {
1111
- /**
1112
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
1113
- */
1114
- billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
1115
-
1116
1017
  /**
1117
1018
  * The coupons to redeem into discounts for the subscription item.
1118
1019
  */
@@ -1150,13 +1051,6 @@ declare module 'stripe' {
1150
1051
  }
1151
1052
 
1152
1053
  namespace Item {
1153
- interface BillingThresholds {
1154
- /**
1155
- * 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://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
1156
- */
1157
- usage_gte: number;
1158
- }
1159
-
1160
1054
  interface Discount {
1161
1055
  /**
1162
1056
  * ID of the coupon to create a new discount for.
@@ -1181,7 +1075,7 @@ declare module 'stripe' {
1181
1075
  currency: string;
1182
1076
 
1183
1077
  /**
1184
- * The ID of the product that this price will belong to.
1078
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
1185
1079
  */
1186
1080
  product: string;
1187
1081
 
@@ -44,11 +44,6 @@ declare module 'stripe' {
44
44
  */
45
45
  billing_cycle_anchor_config: Subscription.BillingCycleAnchorConfig | null;
46
46
 
47
- /**
48
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
49
- */
50
- billing_thresholds: Subscription.BillingThresholds | null;
51
-
52
47
  /**
53
48
  * A date in the future at which the subscription will automatically get canceled
54
49
  */
@@ -84,16 +79,6 @@ declare module 'stripe' {
84
79
  */
85
80
  currency: string;
86
81
 
87
- /**
88
- * End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
89
- */
90
- current_period_end: number;
91
-
92
- /**
93
- * Start of the current period that the subscription has been invoiced for.
94
- */
95
- current_period_start: number;
96
-
97
82
  /**
98
83
  * ID of the customer who owns the subscription.
99
84
  */
@@ -124,11 +109,6 @@ declare module 'stripe' {
124
109
  */
125
110
  description: string | null;
126
111
 
127
- /**
128
- * Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
129
- */
130
- discount: Stripe.Discount | null;
131
-
132
112
  /**
133
113
  * The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
134
114
  */
@@ -167,7 +147,7 @@ declare module 'stripe' {
167
147
  next_pending_invoice_item_invoice: number | null;
168
148
 
169
149
  /**
170
- * The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details.
150
+ * The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://stripe.com/docs/connect/subscriptions#on-behalf-of) for details.
171
151
  */
172
152
  on_behalf_of: string | Stripe.Account | null;
173
153
 
@@ -310,18 +290,6 @@ declare module 'stripe' {
310
290
  second: number | null;
311
291
  }
312
292
 
313
- interface BillingThresholds {
314
- /**
315
- * Monetary threshold that triggers the subscription to create an invoice
316
- */
317
- amount_gte: number | null;
318
-
319
- /**
320
- * 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. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
321
- */
322
- reset_billing_cycle_anchor: boolean | null;
323
- }
324
-
325
293
  interface CancellationDetails {
326
294
  /**
327
295
  * Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
@@ -653,11 +621,13 @@ declare module 'stripe' {
653
621
  | 'ideal'
654
622
  | 'jp_credit_transfer'
655
623
  | 'kakao_pay'
624
+ | 'klarna'
656
625
  | 'konbini'
657
626
  | 'kr_card'
658
627
  | 'link'
659
628
  | 'multibanco'
660
629
  | 'naver_pay'
630
+ | 'nz_bank_account'
661
631
  | 'p24'
662
632
  | 'payco'
663
633
  | 'paynow'
@@ -38,13 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  billing_cycle_anchor_config?: SubscriptionCreateParams.BillingCycleAnchorConfig;
40
40
 
41
- /**
42
- * 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.
43
- */
44
- billing_thresholds?: Stripe.Emptyable<
45
- SubscriptionCreateParams.BillingThresholds
46
- >;
47
-
48
41
  /**
49
42
  * A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
50
43
  */
@@ -60,11 +53,6 @@ declare module 'stripe' {
60
53
  */
61
54
  collection_method?: SubscriptionCreateParams.CollectionMethod;
62
55
 
63
- /**
64
- * The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
65
- */
66
- coupon?: string;
67
-
68
56
  /**
69
57
  * 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).
70
58
  */
@@ -157,11 +145,6 @@ declare module 'stripe' {
157
145
  SubscriptionCreateParams.PendingInvoiceItemInterval
158
146
  >;
159
147
 
160
- /**
161
- * The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
162
- */
163
- promotion_code?: string;
164
-
165
148
  /**
166
149
  * Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
167
150
  */
@@ -246,7 +229,7 @@ declare module 'stripe' {
246
229
  currency: string;
247
230
 
248
231
  /**
249
- * The ID of the product that this price will belong to.
232
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
250
233
  */
251
234
  product: string;
252
235
 
@@ -328,18 +311,6 @@ declare module 'stripe' {
328
311
  second?: number;
329
312
  }
330
313
 
331
- interface BillingThresholds {
332
- /**
333
- * Monetary threshold that triggers the subscription to advance to a new billing period
334
- */
335
- amount_gte?: number;
336
-
337
- /**
338
- * 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.
339
- */
340
- reset_billing_cycle_anchor?: boolean;
341
- }
342
-
343
314
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
344
315
 
345
316
  interface Discount {
@@ -390,11 +361,6 @@ declare module 'stripe' {
390
361
  }
391
362
 
392
363
  interface Item {
393
- /**
394
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
395
- */
396
- billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
397
-
398
364
  /**
399
365
  * The coupons to redeem into discounts for the subscription item.
400
366
  */
@@ -432,13 +398,6 @@ declare module 'stripe' {
432
398
  }
433
399
 
434
400
  namespace Item {
435
- interface BillingThresholds {
436
- /**
437
- * 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://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
438
- */
439
- usage_gte: number;
440
- }
441
-
442
401
  interface Discount {
443
402
  /**
444
403
  * ID of the coupon to create a new discount for.
@@ -463,7 +422,7 @@ declare module 'stripe' {
463
422
  currency: string;
464
423
 
465
424
  /**
466
- * The ID of the product that this price will belong to.
425
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
467
426
  */
468
427
  product: string;
469
428
 
@@ -785,11 +744,13 @@ declare module 'stripe' {
785
744
  | 'ideal'
786
745
  | 'jp_credit_transfer'
787
746
  | 'kakao_pay'
747
+ | 'klarna'
788
748
  | 'konbini'
789
749
  | 'kr_card'
790
750
  | 'link'
791
751
  | 'multibanco'
792
752
  | 'naver_pay'
753
+ | 'nz_bank_account'
793
754
  | 'p24'
794
755
  | 'payco'
795
756
  | 'paynow'
@@ -885,13 +846,6 @@ declare module 'stripe' {
885
846
  */
886
847
  billing_cycle_anchor?: SubscriptionUpdateParams.BillingCycleAnchor;
887
848
 
888
- /**
889
- * 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.
890
- */
891
- billing_thresholds?: Stripe.Emptyable<
892
- SubscriptionUpdateParams.BillingThresholds
893
- >;
894
-
895
849
  /**
896
850
  * A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
897
851
  */
@@ -912,11 +866,6 @@ declare module 'stripe' {
912
866
  */
913
867
  collection_method?: SubscriptionUpdateParams.CollectionMethod;
914
868
 
915
- /**
916
- * The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
917
- */
918
- coupon?: string;
919
-
920
869
  /**
921
870
  * Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
922
871
  */
@@ -1007,11 +956,6 @@ declare module 'stripe' {
1007
956
  SubscriptionUpdateParams.PendingInvoiceItemInterval
1008
957
  >;
1009
958
 
1010
- /**
1011
- * The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
1012
- */
1013
- promotion_code?: string;
1014
-
1015
959
  /**
1016
960
  * Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
1017
961
  */
@@ -1096,7 +1040,7 @@ declare module 'stripe' {
1096
1040
  currency: string;
1097
1041
 
1098
1042
  /**
1099
- * The ID of the product that this price will belong to.
1043
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
1100
1044
  */
1101
1045
  product: string;
1102
1046
 
@@ -1153,18 +1097,6 @@ declare module 'stripe' {
1153
1097
 
1154
1098
  type BillingCycleAnchor = 'now' | 'unchanged';
1155
1099
 
1156
- interface BillingThresholds {
1157
- /**
1158
- * Monetary threshold that triggers the subscription to advance to a new billing period
1159
- */
1160
- amount_gte?: number;
1161
-
1162
- /**
1163
- * 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.
1164
- */
1165
- reset_billing_cycle_anchor?: boolean;
1166
- }
1167
-
1168
1100
  interface CancellationDetails {
1169
1101
  /**
1170
1102
  * Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
@@ -1239,11 +1171,6 @@ declare module 'stripe' {
1239
1171
  }
1240
1172
 
1241
1173
  interface Item {
1242
- /**
1243
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
1244
- */
1245
- billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
1246
-
1247
1174
  /**
1248
1175
  * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
1249
1176
  */
@@ -1296,13 +1223,6 @@ declare module 'stripe' {
1296
1223
  }
1297
1224
 
1298
1225
  namespace Item {
1299
- interface BillingThresholds {
1300
- /**
1301
- * 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://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
1302
- */
1303
- usage_gte: number;
1304
- }
1305
-
1306
1226
  interface Discount {
1307
1227
  /**
1308
1228
  * ID of the coupon to create a new discount for.
@@ -1327,7 +1247,7 @@ declare module 'stripe' {
1327
1247
  currency: string;
1328
1248
 
1329
1249
  /**
1330
- * The ID of the product that this price will belong to.
1250
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
1331
1251
  */
1332
1252
  product: string;
1333
1253
 
@@ -1665,11 +1585,13 @@ declare module 'stripe' {
1665
1585
  | 'ideal'
1666
1586
  | 'jp_credit_transfer'
1667
1587
  | 'kakao_pay'
1588
+ | 'klarna'
1668
1589
  | 'konbini'
1669
1590
  | 'kr_card'
1670
1591
  | 'link'
1671
1592
  | 'multibanco'
1672
1593
  | 'naver_pay'
1594
+ | 'nz_bank_account'
1673
1595
  | 'p24'
1674
1596
  | 'payco'
1675
1597
  | 'paynow'
@@ -446,7 +446,7 @@ declare module 'stripe' {
446
446
  percentage_decimal: string;
447
447
 
448
448
  /**
449
- * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
449
+ * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
450
450
  */
451
451
  rate_type: TaxRateDetails.RateType | null;
452
452
 
@@ -1603,7 +1603,7 @@ declare module 'stripe' {
1603
1603
  namespace Us {
1604
1604
  interface LocalAmusementTax {
1605
1605
  /**
1606
- * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), and `68081` (Schiller Park).
1606
+ * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `64343` (River Grove), and `68081` (Schiller Park).
1607
1607
  */
1608
1608
  jurisdiction: string;
1609
1609
  }
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  percentage: number;
87
87
 
88
88
  /**
89
- * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
89
+ * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
90
90
  */
91
91
  rate_type: TaxRate.RateType | null;
92
92