stripe 17.5.0-beta.3 → 17.5.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 (175) hide show
  1. package/CHANGELOG.md +131 -1005
  2. package/README.md +33 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -8
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources.js +10 -48
  11. package/cjs/stripe.core.js +1 -1
  12. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  13. package/esm/resources/Invoices.js +0 -17
  14. package/esm/resources/PaymentIntents.js +0 -8
  15. package/esm/resources/Quotes.js +0 -32
  16. package/esm/resources/SubscriptionSchedules.js +0 -4
  17. package/esm/resources/Terminal/Readers.js +0 -12
  18. package/esm/resources.js +0 -33
  19. package/esm/stripe.core.js +1 -1
  20. package/package.json +1 -1
  21. package/types/AccountLinksResource.d.ts +1 -5
  22. package/types/AccountSessions.d.ts +0 -45
  23. package/types/AccountSessionsResource.d.ts +0 -355
  24. package/types/Accounts.d.ts +1 -190
  25. package/types/AccountsResource.d.ts +0 -520
  26. package/types/Charges.d.ts +0 -138
  27. package/types/ChargesResource.d.ts +0 -1294
  28. package/types/Checkout/Sessions.d.ts +6 -340
  29. package/types/Checkout/SessionsResource.d.ts +5 -445
  30. package/types/ConfirmationTokens.d.ts +0 -99
  31. package/types/Coupons.d.ts +1 -1
  32. package/types/CouponsResource.d.ts +1 -1
  33. package/types/CreditNotes.d.ts +0 -21
  34. package/types/CreditNotesResource.d.ts +0 -51
  35. package/types/CustomersResource.d.ts +4 -9
  36. package/types/Disputes.d.ts +2 -2
  37. package/types/DisputesResource.d.ts +2 -2
  38. package/types/EventTypes.d.ts +0 -596
  39. package/types/Events.d.ts +0 -93
  40. package/types/FinancialConnections/Accounts.d.ts +1 -29
  41. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  42. package/types/FinancialConnections/Sessions.d.ts +1 -49
  43. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  44. package/types/InvoiceItems.d.ts +0 -5
  45. package/types/InvoiceItemsResource.d.ts +0 -98
  46. package/types/InvoiceLineItems.d.ts +1 -28
  47. package/types/Invoices.d.ts +4 -138
  48. package/types/InvoicesResource.d.ts +1886 -5568
  49. package/types/Issuing/Authorizations.d.ts +0 -1
  50. package/types/Issuing/CardholdersResource.d.ts +1 -2
  51. package/types/Issuing/Transactions.d.ts +0 -2
  52. package/types/Issuing/TransactionsResource.d.ts +0 -5
  53. package/types/LineItems.d.ts +0 -32
  54. package/types/Mandates.d.ts +0 -77
  55. package/types/PaymentIntents.d.ts +1 -644
  56. package/types/PaymentIntentsResource.d.ts +3768 -8055
  57. package/types/PaymentLinks.d.ts +0 -6
  58. package/types/PaymentLinksResource.d.ts +0 -12
  59. package/types/PaymentMethodConfigurations.d.ts +0 -180
  60. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  61. package/types/PaymentMethods.d.ts +0 -99
  62. package/types/PaymentMethodsResource.d.ts +0 -133
  63. package/types/Prices.d.ts +0 -22
  64. package/types/PricesResource.d.ts +0 -22
  65. package/types/Products.d.ts +0 -39
  66. package/types/ProductsResource.d.ts +0 -36
  67. package/types/Quotes.d.ts +1 -591
  68. package/types/QuotesResource.d.ts +199 -2531
  69. package/types/Refunds.d.ts +0 -14
  70. package/types/SetupAttempts.d.ts +0 -38
  71. package/types/SetupIntents.d.ts +1 -111
  72. package/types/SetupIntentsResource.d.ts +3 -645
  73. package/types/Sources.d.ts +0 -23
  74. package/types/SubscriptionItems.d.ts +0 -21
  75. package/types/SubscriptionItemsResource.d.ts +0 -109
  76. package/types/SubscriptionSchedules.d.ts +0 -200
  77. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  78. package/types/Subscriptions.d.ts +1 -91
  79. package/types/SubscriptionsResource.d.ts +2 -369
  80. package/types/Tax/Calculations.d.ts +2 -1
  81. package/types/Tax/CalculationsResource.d.ts +2 -1
  82. package/types/Tax/Registrations.d.ts +189 -0
  83. package/types/Tax/RegistrationsResource.d.ts +252 -0
  84. package/types/Tax/Transactions.d.ts +2 -1
  85. package/types/TaxIds.d.ts +2 -1
  86. package/types/TaxIdsResource.d.ts +2 -1
  87. package/types/Terminal/Readers.d.ts +0 -310
  88. package/types/Terminal/ReadersResource.d.ts +0 -215
  89. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  90. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  91. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  92. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  93. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  94. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  95. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  96. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  97. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  98. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  99. package/types/WebhookEndpointsResource.d.ts +0 -70
  100. package/types/index.d.ts +0 -62
  101. package/cjs/resources/AccountNotices.js +0 -21
  102. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  103. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  104. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  105. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  106. package/cjs/resources/GiftCards/Cards.js +0 -23
  107. package/cjs/resources/GiftCards/Transactions.js +0 -33
  108. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  109. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  110. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  111. package/cjs/resources/Margins.js +0 -22
  112. package/cjs/resources/Orders.js +0 -24
  113. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  114. package/cjs/resources/PaymentRecords.js +0 -29
  115. package/cjs/resources/Tax/Associations.js +0 -9
  116. package/cjs/resources/Tax/Forms.js +0 -20
  117. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  118. package/esm/resources/AccountNotices.js +0 -18
  119. package/esm/resources/Capital/FinancingOffers.js +0 -18
  120. package/esm/resources/Capital/FinancingSummary.js +0 -9
  121. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  122. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  123. package/esm/resources/GiftCards/Cards.js +0 -20
  124. package/esm/resources/GiftCards/Transactions.js +0 -30
  125. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  126. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  127. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  128. package/esm/resources/Margins.js +0 -19
  129. package/esm/resources/Orders.js +0 -21
  130. package/esm/resources/PaymentAttemptRecords.js +0 -14
  131. package/esm/resources/PaymentRecords.js +0 -26
  132. package/esm/resources/Tax/Associations.js +0 -6
  133. package/esm/resources/Tax/Forms.js +0 -17
  134. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  135. package/types/AccountNotices.d.ts +0 -113
  136. package/types/AccountNoticesResource.d.ts +0 -98
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/Capital/FinancingOffers.d.ts +0 -188
  139. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  140. package/types/Capital/FinancingSummary.d.ts +0 -106
  141. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  142. package/types/Capital/FinancingTransactions.d.ts +0 -135
  143. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  144. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  145. package/types/FinancialConnections/Institutions.d.ts +0 -93
  146. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  147. package/types/GiftCards/Cards.d.ts +0 -118
  148. package/types/GiftCards/CardsResource.d.ts +0 -159
  149. package/types/GiftCards/Transactions.d.ts +0 -129
  150. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  151. package/types/InvoicePayments.d.ts +0 -113
  152. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  153. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  154. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  155. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  156. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  157. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  158. package/types/Issuing/Settlements.d.ts +0 -103
  159. package/types/Margins.d.ts +0 -56
  160. package/types/MarginsResource.d.ts +0 -114
  161. package/types/Orders.d.ts +0 -1178
  162. package/types/OrdersResource.d.ts +0 -2959
  163. package/types/PaymentAttemptRecords.d.ts +0 -242
  164. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  165. package/types/PaymentRecords.d.ts +0 -242
  166. package/types/PaymentRecordsResource.d.ts +0 -455
  167. package/types/QuoteLines.d.ts +0 -634
  168. package/types/QuotePreviewInvoices.d.ts +0 -1652
  169. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  170. package/types/Tax/Associations.d.ts +0 -126
  171. package/types/Tax/AssociationsResource.d.ts +0 -29
  172. package/types/Tax/Forms.d.ts +0 -220
  173. package/types/Tax/FormsResource.d.ts +0 -107
  174. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  175. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -157,11 +157,6 @@ declare module 'stripe' {
157
157
  SubscriptionCreateParams.PendingInvoiceItemInterval
158
158
  >;
159
159
 
160
- /**
161
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
162
- */
163
- prebilling?: SubscriptionCreateParams.Prebilling;
164
-
165
160
  /**
166
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.
167
162
  */
@@ -238,56 +233,12 @@ declare module 'stripe' {
238
233
  */
239
234
  discount?: string;
240
235
 
241
- /**
242
- * Details to determine how long the discount should be applied for.
243
- */
244
- discount_end?: Discount.DiscountEnd;
245
-
246
236
  /**
247
237
  * ID of the promotion code to create a new discount for.
248
238
  */
249
239
  promotion_code?: string;
250
240
  }
251
241
 
252
- namespace Discount {
253
- interface DiscountEnd {
254
- /**
255
- * Time span for the redeemed discount.
256
- */
257
- duration?: DiscountEnd.Duration;
258
-
259
- /**
260
- * A precise Unix timestamp for the discount to end. Must be in the future.
261
- */
262
- timestamp?: number;
263
-
264
- /**
265
- * The type of calculation made to determine when the discount ends.
266
- */
267
- type: DiscountEnd.Type;
268
- }
269
-
270
- namespace DiscountEnd {
271
- interface Duration {
272
- /**
273
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
274
- */
275
- interval: Duration.Interval;
276
-
277
- /**
278
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
279
- */
280
- interval_count: number;
281
- }
282
-
283
- namespace Duration {
284
- type Interval = 'day' | 'month' | 'week' | 'year';
285
- }
286
-
287
- type Type = 'duration' | 'timestamp';
288
- }
289
- }
290
-
291
242
  interface PriceData {
292
243
  /**
293
244
  * 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).
@@ -402,56 +353,12 @@ declare module 'stripe' {
402
353
  */
403
354
  discount?: string;
404
355
 
405
- /**
406
- * Details to determine how long the discount should be applied for.
407
- */
408
- discount_end?: Discount.DiscountEnd;
409
-
410
356
  /**
411
357
  * ID of the promotion code to create a new discount for.
412
358
  */
413
359
  promotion_code?: string;
414
360
  }
415
361
 
416
- namespace Discount {
417
- interface DiscountEnd {
418
- /**
419
- * Time span for the redeemed discount.
420
- */
421
- duration?: DiscountEnd.Duration;
422
-
423
- /**
424
- * A precise Unix timestamp for the discount to end. Must be in the future.
425
- */
426
- timestamp?: number;
427
-
428
- /**
429
- * The type of calculation made to determine when the discount ends.
430
- */
431
- type: DiscountEnd.Type;
432
- }
433
-
434
- namespace DiscountEnd {
435
- interface Duration {
436
- /**
437
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
438
- */
439
- interval: Duration.Interval;
440
-
441
- /**
442
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
443
- */
444
- interval_count: number;
445
- }
446
-
447
- namespace Duration {
448
- type Interval = 'day' | 'month' | 'week' | 'year';
449
- }
450
-
451
- type Type = 'duration' | 'timestamp';
452
- }
453
- }
454
-
455
362
  interface InvoiceSettings {
456
363
  /**
457
364
  * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
@@ -522,11 +429,6 @@ declare module 'stripe' {
522
429
  * A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
523
430
  */
524
431
  tax_rates?: Stripe.Emptyable<Array<string>>;
525
-
526
- /**
527
- * Define options to configure the trial on the subscription item.
528
- */
529
- trial?: Item.Trial;
530
432
  }
531
433
 
532
434
  namespace Item {
@@ -548,56 +450,12 @@ declare module 'stripe' {
548
450
  */
549
451
  discount?: string;
550
452
 
551
- /**
552
- * Details to determine how long the discount should be applied for.
553
- */
554
- discount_end?: Discount.DiscountEnd;
555
-
556
453
  /**
557
454
  * ID of the promotion code to create a new discount for.
558
455
  */
559
456
  promotion_code?: string;
560
457
  }
561
458
 
562
- namespace Discount {
563
- interface DiscountEnd {
564
- /**
565
- * Time span for the redeemed discount.
566
- */
567
- duration?: DiscountEnd.Duration;
568
-
569
- /**
570
- * A precise Unix timestamp for the discount to end. Must be in the future.
571
- */
572
- timestamp?: number;
573
-
574
- /**
575
- * The type of calculation made to determine when the discount ends.
576
- */
577
- type: DiscountEnd.Type;
578
- }
579
-
580
- namespace DiscountEnd {
581
- interface Duration {
582
- /**
583
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
584
- */
585
- interval: Duration.Interval;
586
-
587
- /**
588
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
589
- */
590
- interval_count: number;
591
- }
592
-
593
- namespace Duration {
594
- type Interval = 'day' | 'month' | 'week' | 'year';
595
- }
596
-
597
- type Type = 'duration' | 'timestamp';
598
- }
599
- }
600
-
601
459
  interface PriceData {
602
460
  /**
603
461
  * 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).
@@ -649,22 +507,6 @@ declare module 'stripe' {
649
507
 
650
508
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
651
509
  }
652
-
653
- interface Trial {
654
- /**
655
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
656
- */
657
- converts_to?: Array<string>;
658
-
659
- /**
660
- * Determines the type of trial for this item.
661
- */
662
- type: Trial.Type;
663
- }
664
-
665
- namespace Trial {
666
- type Type = 'free' | 'paid';
667
- }
668
510
  }
669
511
 
670
512
  type PaymentBehavior =
@@ -716,13 +558,6 @@ declare module 'stripe' {
716
558
  PaymentMethodOptions.CustomerBalance
717
559
  >;
718
560
 
719
- /**
720
- * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
721
- */
722
- id_bank_transfer?: Stripe.Emptyable<
723
- PaymentMethodOptions.IdBankTransfer
724
- >;
725
-
726
561
  /**
727
562
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
728
563
  */
@@ -872,8 +707,6 @@ declare module 'stripe' {
872
707
  }
873
708
  }
874
709
 
875
- interface IdBankTransfer {}
876
-
877
710
  interface Konbini {}
878
711
 
879
712
  interface SepaDebit {}
@@ -914,11 +747,6 @@ declare module 'stripe' {
914
747
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
915
748
  */
916
749
  account_subcategories?: Array<Filters.AccountSubcategory>;
917
-
918
- /**
919
- * ID of the institution to use to filter for selectable accounts.
920
- */
921
- institution?: string;
922
750
  }
923
751
 
924
752
  namespace Filters {
@@ -931,11 +759,7 @@ declare module 'stripe' {
931
759
  | 'payment_method'
932
760
  | 'transactions';
933
761
 
934
- type Prefetch =
935
- | 'balances'
936
- | 'inferred_balances'
937
- | 'ownership'
938
- | 'transactions';
762
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
939
763
  }
940
764
 
941
765
  type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
@@ -953,13 +777,11 @@ declare module 'stripe' {
953
777
  | 'boleto'
954
778
  | 'card'
955
779
  | 'cashapp'
956
- | 'custom'
957
780
  | 'customer_balance'
958
781
  | 'eps'
959
782
  | 'fpx'
960
783
  | 'giropay'
961
784
  | 'grabpay'
962
- | 'id_bank_transfer'
963
785
  | 'ideal'
964
786
  | 'jp_credit_transfer'
965
787
  | 'kakao_pay'
@@ -1000,22 +822,6 @@ declare module 'stripe' {
1000
822
  type Interval = 'day' | 'month' | 'week' | 'year';
1001
823
  }
1002
824
 
1003
- interface Prebilling {
1004
- /**
1005
- * This is used to determine the number of billing cycles to prebill.
1006
- */
1007
- iterations: number;
1008
-
1009
- /**
1010
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
1011
- */
1012
- update_behavior?: Prebilling.UpdateBehavior;
1013
- }
1014
-
1015
- namespace Prebilling {
1016
- type UpdateBehavior = 'prebill' | 'reset';
1017
- }
1018
-
1019
825
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
1020
826
 
1021
827
  interface TransferData {
@@ -1201,11 +1007,6 @@ declare module 'stripe' {
1201
1007
  SubscriptionUpdateParams.PendingInvoiceItemInterval
1202
1008
  >;
1203
1009
 
1204
- /**
1205
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
1206
- */
1207
- prebilling?: SubscriptionUpdateParams.Prebilling;
1208
-
1209
1010
  /**
1210
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.
1211
1012
  */
@@ -1282,56 +1083,12 @@ declare module 'stripe' {
1282
1083
  */
1283
1084
  discount?: string;
1284
1085
 
1285
- /**
1286
- * Details to determine how long the discount should be applied for.
1287
- */
1288
- discount_end?: Discount.DiscountEnd;
1289
-
1290
1086
  /**
1291
1087
  * ID of the promotion code to create a new discount for.
1292
1088
  */
1293
1089
  promotion_code?: string;
1294
1090
  }
1295
1091
 
1296
- namespace Discount {
1297
- interface DiscountEnd {
1298
- /**
1299
- * Time span for the redeemed discount.
1300
- */
1301
- duration?: DiscountEnd.Duration;
1302
-
1303
- /**
1304
- * A precise Unix timestamp for the discount to end. Must be in the future.
1305
- */
1306
- timestamp?: number;
1307
-
1308
- /**
1309
- * The type of calculation made to determine when the discount ends.
1310
- */
1311
- type: DiscountEnd.Type;
1312
- }
1313
-
1314
- namespace DiscountEnd {
1315
- interface Duration {
1316
- /**
1317
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1318
- */
1319
- interval: Duration.Interval;
1320
-
1321
- /**
1322
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1323
- */
1324
- interval_count: number;
1325
- }
1326
-
1327
- namespace Duration {
1328
- type Interval = 'day' | 'month' | 'week' | 'year';
1329
- }
1330
-
1331
- type Type = 'duration' | 'timestamp';
1332
- }
1333
- }
1334
-
1335
1092
  interface PriceData {
1336
1093
  /**
1337
1094
  * 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).
@@ -1445,56 +1202,12 @@ declare module 'stripe' {
1445
1202
  */
1446
1203
  discount?: string;
1447
1204
 
1448
- /**
1449
- * Details to determine how long the discount should be applied for.
1450
- */
1451
- discount_end?: Discount.DiscountEnd;
1452
-
1453
1205
  /**
1454
1206
  * ID of the promotion code to create a new discount for.
1455
1207
  */
1456
1208
  promotion_code?: string;
1457
1209
  }
1458
1210
 
1459
- namespace Discount {
1460
- interface DiscountEnd {
1461
- /**
1462
- * Time span for the redeemed discount.
1463
- */
1464
- duration?: DiscountEnd.Duration;
1465
-
1466
- /**
1467
- * A precise Unix timestamp for the discount to end. Must be in the future.
1468
- */
1469
- timestamp?: number;
1470
-
1471
- /**
1472
- * The type of calculation made to determine when the discount ends.
1473
- */
1474
- type: DiscountEnd.Type;
1475
- }
1476
-
1477
- namespace DiscountEnd {
1478
- interface Duration {
1479
- /**
1480
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1481
- */
1482
- interval: Duration.Interval;
1483
-
1484
- /**
1485
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1486
- */
1487
- interval_count: number;
1488
- }
1489
-
1490
- namespace Duration {
1491
- type Interval = 'day' | 'month' | 'week' | 'year';
1492
- }
1493
-
1494
- type Type = 'duration' | 'timestamp';
1495
- }
1496
- }
1497
-
1498
1211
  interface InvoiceSettings {
1499
1212
  /**
1500
1213
  * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
@@ -1601,56 +1314,12 @@ declare module 'stripe' {
1601
1314
  */
1602
1315
  discount?: string;
1603
1316
 
1604
- /**
1605
- * Details to determine how long the discount should be applied for.
1606
- */
1607
- discount_end?: Discount.DiscountEnd;
1608
-
1609
1317
  /**
1610
1318
  * ID of the promotion code to create a new discount for.
1611
1319
  */
1612
1320
  promotion_code?: string;
1613
1321
  }
1614
1322
 
1615
- namespace Discount {
1616
- interface DiscountEnd {
1617
- /**
1618
- * Time span for the redeemed discount.
1619
- */
1620
- duration?: DiscountEnd.Duration;
1621
-
1622
- /**
1623
- * A precise Unix timestamp for the discount to end. Must be in the future.
1624
- */
1625
- timestamp?: number;
1626
-
1627
- /**
1628
- * The type of calculation made to determine when the discount ends.
1629
- */
1630
- type: DiscountEnd.Type;
1631
- }
1632
-
1633
- namespace DiscountEnd {
1634
- interface Duration {
1635
- /**
1636
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1637
- */
1638
- interval: Duration.Interval;
1639
-
1640
- /**
1641
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1642
- */
1643
- interval_count: number;
1644
- }
1645
-
1646
- namespace Duration {
1647
- type Interval = 'day' | 'month' | 'week' | 'year';
1648
- }
1649
-
1650
- type Type = 'duration' | 'timestamp';
1651
- }
1652
- }
1653
-
1654
1323
  interface PriceData {
1655
1324
  /**
1656
1325
  * 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).
@@ -1769,13 +1438,6 @@ declare module 'stripe' {
1769
1438
  PaymentMethodOptions.CustomerBalance
1770
1439
  >;
1771
1440
 
1772
- /**
1773
- * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1774
- */
1775
- id_bank_transfer?: Stripe.Emptyable<
1776
- PaymentMethodOptions.IdBankTransfer
1777
- >;
1778
-
1779
1441
  /**
1780
1442
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1781
1443
  */
@@ -1925,8 +1587,6 @@ declare module 'stripe' {
1925
1587
  }
1926
1588
  }
1927
1589
 
1928
- interface IdBankTransfer {}
1929
-
1930
1590
  interface Konbini {}
1931
1591
 
1932
1592
  interface SepaDebit {}
@@ -1967,11 +1627,6 @@ declare module 'stripe' {
1967
1627
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1968
1628
  */
1969
1629
  account_subcategories?: Array<Filters.AccountSubcategory>;
1970
-
1971
- /**
1972
- * ID of the institution to use to filter for selectable accounts.
1973
- */
1974
- institution?: string;
1975
1630
  }
1976
1631
 
1977
1632
  namespace Filters {
@@ -1984,11 +1639,7 @@ declare module 'stripe' {
1984
1639
  | 'payment_method'
1985
1640
  | 'transactions';
1986
1641
 
1987
- type Prefetch =
1988
- | 'balances'
1989
- | 'inferred_balances'
1990
- | 'ownership'
1991
- | 'transactions';
1642
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1992
1643
  }
1993
1644
 
1994
1645
  type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
@@ -2006,13 +1657,11 @@ declare module 'stripe' {
2006
1657
  | 'boleto'
2007
1658
  | 'card'
2008
1659
  | 'cashapp'
2009
- | 'custom'
2010
1660
  | 'customer_balance'
2011
1661
  | 'eps'
2012
1662
  | 'fpx'
2013
1663
  | 'giropay'
2014
1664
  | 'grabpay'
2015
- | 'id_bank_transfer'
2016
1665
  | 'ideal'
2017
1666
  | 'jp_credit_transfer'
2018
1667
  | 'kakao_pay'
@@ -2053,22 +1702,6 @@ declare module 'stripe' {
2053
1702
  type Interval = 'day' | 'month' | 'week' | 'year';
2054
1703
  }
2055
1704
 
2056
- interface Prebilling {
2057
- /**
2058
- * This is used to determine the number of billing cycles to prebill.
2059
- */
2060
- iterations: number;
2061
-
2062
- /**
2063
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
2064
- */
2065
- update_behavior?: Prebilling.UpdateBehavior;
2066
- }
2067
-
2068
- namespace Prebilling {
2069
- type UpdateBehavior = 'prebill' | 'reset';
2070
- }
2071
-
2072
1705
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
2073
1706
 
2074
1707
  interface TransferData {
@@ -120,7 +120,7 @@ declare module 'stripe' {
120
120
 
121
121
  interface TaxId {
122
122
  /**
123
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
123
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
124
124
  */
125
125
  type: TaxId.Type;
126
126
 
@@ -134,6 +134,7 @@ declare module 'stripe' {
134
134
  type Type =
135
135
  | 'ad_nrt'
136
136
  | 'ae_trn'
137
+ | 'al_tin'
137
138
  | 'am_tin'
138
139
  | 'ao_tin'
139
140
  | 'ar_cuit'
@@ -115,7 +115,7 @@ declare module 'stripe' {
115
115
 
116
116
  interface TaxId {
117
117
  /**
118
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
118
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
119
119
  */
120
120
  type: TaxId.Type;
121
121
 
@@ -129,6 +129,7 @@ declare module 'stripe' {
129
129
  type Type =
130
130
  | 'ad_nrt'
131
131
  | 'ae_trn'
132
+ | 'al_tin'
132
133
  | 'am_tin'
133
134
  | 'ao_tin'
134
135
  | 'ar_cuit'