stripe 17.3.0 → 17.4.0-beta.1

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 (153) hide show
  1. package/CHANGELOG.md +938 -110
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +8 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources.js +42 -10
  25. package/cjs/stripe.core.js +1 -1
  26. package/esm/resources/AccountNotices.js +18 -0
  27. package/esm/resources/Capital/FinancingOffers.js +18 -0
  28. package/esm/resources/Capital/FinancingSummary.js +9 -0
  29. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  30. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  31. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  32. package/esm/resources/GiftCards/Cards.js +20 -0
  33. package/esm/resources/GiftCards/Transactions.js +30 -0
  34. package/esm/resources/Invoices.js +17 -0
  35. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  36. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  37. package/esm/resources/Margins.js +19 -0
  38. package/esm/resources/Orders.js +21 -0
  39. package/esm/resources/PaymentIntents.js +8 -0
  40. package/esm/resources/Quotes.js +32 -0
  41. package/esm/resources/SubscriptionSchedules.js +4 -0
  42. package/esm/resources/Tax/Associations.js +6 -0
  43. package/esm/resources/Tax/Forms.js +17 -0
  44. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  45. package/esm/resources/Terminal/Readers.js +12 -0
  46. package/esm/resources.js +29 -0
  47. package/esm/stripe.core.js +1 -1
  48. package/package.json +1 -1
  49. package/types/AccountLinksResource.d.ts +5 -1
  50. package/types/AccountNotices.d.ts +113 -0
  51. package/types/AccountNoticesResource.d.ts +98 -0
  52. package/types/AccountSessions.d.ts +45 -0
  53. package/types/AccountSessionsResource.d.ts +332 -0
  54. package/types/Accounts.d.ts +183 -1
  55. package/types/AccountsResource.d.ts +496 -0
  56. package/types/Billing/MeterErrorReports.d.ts +106 -0
  57. package/types/Capital/FinancingOffers.d.ts +188 -0
  58. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  59. package/types/Capital/FinancingSummary.d.ts +106 -0
  60. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  61. package/types/Capital/FinancingTransactions.d.ts +135 -0
  62. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  63. package/types/Charges.d.ts +116 -0
  64. package/types/ChargesResource.d.ts +1294 -0
  65. package/types/Checkout/Sessions.d.ts +302 -4
  66. package/types/Checkout/SessionsResource.d.ts +354 -5
  67. package/types/ConfirmationTokens.d.ts +99 -0
  68. package/types/Coupons.d.ts +1 -1
  69. package/types/CouponsResource.d.ts +1 -1
  70. package/types/CreditNotes.d.ts +21 -0
  71. package/types/CreditNotesResource.d.ts +51 -0
  72. package/types/CustomersResource.d.ts +7 -0
  73. package/types/EventTypes.d.ts +545 -0
  74. package/types/Events.d.ts +90 -0
  75. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  76. package/types/FinancialConnections/Accounts.d.ts +29 -1
  77. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  78. package/types/FinancialConnections/Institutions.d.ts +93 -0
  79. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  80. package/types/FinancialConnections/Sessions.d.ts +49 -1
  81. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  82. package/types/GiftCards/Cards.d.ts +118 -0
  83. package/types/GiftCards/CardsResource.d.ts +159 -0
  84. package/types/GiftCards/Transactions.d.ts +129 -0
  85. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  86. package/types/InvoiceItems.d.ts +5 -0
  87. package/types/InvoiceItemsResource.d.ts +98 -0
  88. package/types/InvoiceLineItems.d.ts +28 -1
  89. package/types/InvoicePayments.d.ts +138 -0
  90. package/types/Invoices.d.ts +131 -2
  91. package/types/InvoicesResource.d.ts +5522 -1844
  92. package/types/Issuing/CardholdersResource.d.ts +2 -1
  93. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  94. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  95. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  96. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  97. package/types/Issuing/Settlements.d.ts +103 -0
  98. package/types/Issuing/Transactions.d.ts +2 -0
  99. package/types/Issuing/TransactionsResource.d.ts +5 -0
  100. package/types/LineItems.d.ts +7 -0
  101. package/types/Mandates.d.ts +77 -0
  102. package/types/Margins.d.ts +56 -0
  103. package/types/MarginsResource.d.ts +114 -0
  104. package/types/Orders.d.ts +1154 -0
  105. package/types/OrdersResource.d.ts +2911 -0
  106. package/types/PaymentIntents.d.ts +637 -1
  107. package/types/PaymentIntentsResource.d.ts +7947 -3706
  108. package/types/PaymentLinks.d.ts +6 -0
  109. package/types/PaymentLinksResource.d.ts +12 -0
  110. package/types/PaymentMethodConfigurations.d.ts +180 -0
  111. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  112. package/types/PaymentMethods.d.ts +99 -0
  113. package/types/PaymentMethodsResource.d.ts +133 -0
  114. package/types/Prices.d.ts +22 -0
  115. package/types/PricesResource.d.ts +22 -0
  116. package/types/Products.d.ts +39 -0
  117. package/types/ProductsResource.d.ts +36 -0
  118. package/types/QuoteLines.d.ts +634 -0
  119. package/types/QuotePreviewInvoices.d.ts +1608 -0
  120. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  121. package/types/Quotes.d.ts +591 -1
  122. package/types/QuotesResource.d.ts +2526 -194
  123. package/types/Refunds.d.ts +14 -0
  124. package/types/SetupAttempts.d.ts +38 -0
  125. package/types/SetupIntents.d.ts +111 -1
  126. package/types/SetupIntentsResource.d.ts +645 -3
  127. package/types/Sources.d.ts +23 -0
  128. package/types/SubscriptionItems.d.ts +21 -0
  129. package/types/SubscriptionItemsResource.d.ts +109 -0
  130. package/types/SubscriptionSchedules.d.ts +200 -0
  131. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  132. package/types/Subscriptions.d.ts +90 -1
  133. package/types/SubscriptionsResource.d.ts +367 -2
  134. package/types/Tax/Associations.d.ts +126 -0
  135. package/types/Tax/AssociationsResource.d.ts +29 -0
  136. package/types/Tax/Forms.d.ts +220 -0
  137. package/types/Tax/FormsResource.d.ts +107 -0
  138. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  139. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  140. package/types/Terminal/Readers.d.ts +278 -0
  141. package/types/Terminal/ReadersResource.d.ts +215 -0
  142. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  143. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  144. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  145. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  146. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  147. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  148. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  149. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  150. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  151. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  152. package/types/WebhookEndpointsResource.d.ts +64 -0
  153. package/types/index.d.ts +53 -0
@@ -73,8 +73,12 @@ declare module 'stripe' {
73
73
 
74
74
  giropay?: PaymentMethod.Giropay;
75
75
 
76
+ gopay?: PaymentMethod.Gopay;
77
+
76
78
  grabpay?: PaymentMethod.Grabpay;
77
79
 
80
+ id_bank_transfer?: PaymentMethod.IdBankTransfer;
81
+
78
82
  ideal?: PaymentMethod.Ideal;
79
83
 
80
84
  interac_present?: PaymentMethod.InteracPresent;
@@ -94,6 +98,8 @@ declare module 'stripe' {
94
98
  */
95
99
  livemode: boolean;
96
100
 
101
+ mb_way?: PaymentMethod.MbWay;
102
+
97
103
  /**
98
104
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
99
105
  */
@@ -115,21 +121,29 @@ declare module 'stripe' {
115
121
 
116
122
  paypal?: PaymentMethod.Paypal;
117
123
 
124
+ payto?: PaymentMethod.Payto;
125
+
118
126
  pix?: PaymentMethod.Pix;
119
127
 
120
128
  promptpay?: PaymentMethod.Promptpay;
121
129
 
130
+ qris?: PaymentMethod.Qris;
131
+
122
132
  /**
123
133
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
124
134
  */
125
135
  radar_options?: PaymentMethod.RadarOptions;
126
136
 
137
+ rechnung?: PaymentMethod.Rechnung;
138
+
127
139
  revolut_pay?: PaymentMethod.RevolutPay;
128
140
 
129
141
  samsung_pay?: PaymentMethod.SamsungPay;
130
142
 
131
143
  sepa_debit?: PaymentMethod.SepaDebit;
132
144
 
145
+ shopeepay?: PaymentMethod.Shopeepay;
146
+
133
147
  sofort?: PaymentMethod.Sofort;
134
148
 
135
149
  swish?: PaymentMethod.Swish;
@@ -940,8 +954,24 @@ declare module 'stripe' {
940
954
 
941
955
  interface Giropay {}
942
956
 
957
+ interface Gopay {}
958
+
943
959
  interface Grabpay {}
944
960
 
961
+ interface IdBankTransfer {
962
+ bank: IdBankTransfer.Bank | null;
963
+
964
+ bank_code: string | null;
965
+
966
+ bank_name: string | null;
967
+
968
+ display_name: string | null;
969
+ }
970
+
971
+ namespace IdBankTransfer {
972
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
973
+ }
974
+
945
975
  interface Ideal {
946
976
  /**
947
977
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1169,6 +1199,8 @@ declare module 'stripe' {
1169
1199
  persistent_token?: string;
1170
1200
  }
1171
1201
 
1202
+ interface MbWay {}
1203
+
1172
1204
  interface Mobilepay {}
1173
1205
 
1174
1206
  interface Multibanco {}
@@ -1228,6 +1260,11 @@ declare module 'stripe' {
1228
1260
  interface Paynow {}
1229
1261
 
1230
1262
  interface Paypal {
1263
+ /**
1264
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1265
+ */
1266
+ fingerprint?: string | null;
1267
+
1231
1268
  /**
1232
1269
  * Owner's email. Values are provided by PayPal directly
1233
1270
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1238,12 +1275,37 @@ declare module 'stripe' {
1238
1275
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1239
1276
  */
1240
1277
  payer_id: string | null;
1278
+
1279
+ /**
1280
+ * Owner's verified email. Values are verified or provided by PayPal directly
1281
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1282
+ */
1283
+ verified_email?: string | null;
1284
+ }
1285
+
1286
+ interface Payto {
1287
+ /**
1288
+ * Bank-State-Branch number of the bank account.
1289
+ */
1290
+ bsb_number: string | null;
1291
+
1292
+ /**
1293
+ * Last four digits of the bank account number.
1294
+ */
1295
+ last4: string | null;
1296
+
1297
+ /**
1298
+ * The PayID alias for the bank account.
1299
+ */
1300
+ pay_id: string | null;
1241
1301
  }
1242
1302
 
1243
1303
  interface Pix {}
1244
1304
 
1245
1305
  interface Promptpay {}
1246
1306
 
1307
+ interface Qris {}
1308
+
1247
1309
  interface RadarOptions {
1248
1310
  /**
1249
1311
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -1251,6 +1313,29 @@ declare module 'stripe' {
1251
1313
  session?: string;
1252
1314
  }
1253
1315
 
1316
+ interface Rechnung {
1317
+ dob?: Rechnung.Dob;
1318
+ }
1319
+
1320
+ namespace Rechnung {
1321
+ interface Dob {
1322
+ /**
1323
+ * The day of birth, between 1 and 31.
1324
+ */
1325
+ day: number;
1326
+
1327
+ /**
1328
+ * The month of birth, between 1 and 12.
1329
+ */
1330
+ month: number;
1331
+
1332
+ /**
1333
+ * The four-digit year of birth.
1334
+ */
1335
+ year: number;
1336
+ }
1337
+ }
1338
+
1254
1339
  interface RevolutPay {}
1255
1340
 
1256
1341
  interface SamsungPay {}
@@ -1301,6 +1386,8 @@ declare module 'stripe' {
1301
1386
  }
1302
1387
  }
1303
1388
 
1389
+ interface Shopeepay {}
1390
+
1304
1391
  interface Sofort {
1305
1392
  /**
1306
1393
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1331,7 +1418,9 @@ declare module 'stripe' {
1331
1418
  | 'eps'
1332
1419
  | 'fpx'
1333
1420
  | 'giropay'
1421
+ | 'gopay'
1334
1422
  | 'grabpay'
1423
+ | 'id_bank_transfer'
1335
1424
  | 'ideal'
1336
1425
  | 'interac_present'
1337
1426
  | 'kakao_pay'
@@ -1339,6 +1428,7 @@ declare module 'stripe' {
1339
1428
  | 'konbini'
1340
1429
  | 'kr_card'
1341
1430
  | 'link'
1431
+ | 'mb_way'
1342
1432
  | 'mobilepay'
1343
1433
  | 'multibanco'
1344
1434
  | 'naver_pay'
@@ -1347,11 +1437,15 @@ declare module 'stripe' {
1347
1437
  | 'payco'
1348
1438
  | 'paynow'
1349
1439
  | 'paypal'
1440
+ | 'payto'
1350
1441
  | 'pix'
1351
1442
  | 'promptpay'
1443
+ | 'qris'
1444
+ | 'rechnung'
1352
1445
  | 'revolut_pay'
1353
1446
  | 'samsung_pay'
1354
1447
  | 'sepa_debit'
1448
+ | 'shopeepay'
1355
1449
  | 'sofort'
1356
1450
  | 'swish'
1357
1451
  | 'twint'
@@ -1365,6 +1459,11 @@ declare module 'stripe' {
1365
1459
  */
1366
1460
  account_holder_type: UsBankAccount.AccountHolderType | null;
1367
1461
 
1462
+ /**
1463
+ * Account number of the bank account.
1464
+ */
1465
+ account_number?: string | null;
1466
+
1368
1467
  /**
1369
1468
  * Account type: checkings or savings. Defaults to checking if omitted.
1370
1469
  */
@@ -108,11 +108,21 @@ declare module 'stripe' {
108
108
  */
109
109
  giropay?: PaymentMethodCreateParams.Giropay;
110
110
 
111
+ /**
112
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
113
+ */
114
+ gopay?: PaymentMethodCreateParams.Gopay;
115
+
111
116
  /**
112
117
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
113
118
  */
114
119
  grabpay?: PaymentMethodCreateParams.Grabpay;
115
120
 
121
+ /**
122
+ * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
123
+ */
124
+ id_bank_transfer?: PaymentMethodCreateParams.IdBankTransfer;
125
+
116
126
  /**
117
127
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
118
128
  */
@@ -148,6 +158,11 @@ declare module 'stripe' {
148
158
  */
149
159
  link?: PaymentMethodCreateParams.Link;
150
160
 
161
+ /**
162
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
163
+ */
164
+ mb_way?: PaymentMethodCreateParams.MbWay;
165
+
151
166
  /**
152
167
  * Set of [key-value pairs](https://stripe.com/docs/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`.
153
168
  */
@@ -198,6 +213,11 @@ declare module 'stripe' {
198
213
  */
199
214
  paypal?: PaymentMethodCreateParams.Paypal;
200
215
 
216
+ /**
217
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
218
+ */
219
+ payto?: PaymentMethodCreateParams.Payto;
220
+
201
221
  /**
202
222
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
203
223
  */
@@ -208,11 +228,21 @@ declare module 'stripe' {
208
228
  */
209
229
  promptpay?: PaymentMethodCreateParams.Promptpay;
210
230
 
231
+ /**
232
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
233
+ */
234
+ qris?: PaymentMethodCreateParams.Qris;
235
+
211
236
  /**
212
237
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
213
238
  */
214
239
  radar_options?: PaymentMethodCreateParams.RadarOptions;
215
240
 
241
+ /**
242
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
243
+ */
244
+ rechnung?: PaymentMethodCreateParams.Rechnung;
245
+
216
246
  /**
217
247
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
218
248
  */
@@ -228,6 +258,11 @@ declare module 'stripe' {
228
258
  */
229
259
  sepa_debit?: PaymentMethodCreateParams.SepaDebit;
230
260
 
261
+ /**
262
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
263
+ */
264
+ shopeepay?: PaymentMethodCreateParams.Shopeepay;
265
+
231
266
  /**
232
267
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
233
268
  */
@@ -481,8 +516,21 @@ declare module 'stripe' {
481
516
 
482
517
  interface Giropay {}
483
518
 
519
+ interface Gopay {}
520
+
484
521
  interface Grabpay {}
485
522
 
523
+ interface IdBankTransfer {
524
+ /**
525
+ * Bank where the account is held.
526
+ */
527
+ bank?: IdBankTransfer.Bank;
528
+ }
529
+
530
+ namespace IdBankTransfer {
531
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
532
+ }
533
+
486
534
  interface Ideal {
487
535
  /**
488
536
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -546,6 +594,8 @@ declare module 'stripe' {
546
594
 
547
595
  interface Link {}
548
596
 
597
+ interface MbWay {}
598
+
549
599
  interface Mobilepay {}
550
600
 
551
601
  interface Multibanco {}
@@ -606,10 +656,29 @@ declare module 'stripe' {
606
656
 
607
657
  interface Paypal {}
608
658
 
659
+ interface Payto {
660
+ /**
661
+ * The account number for the bank account.
662
+ */
663
+ account_number?: string;
664
+
665
+ /**
666
+ * Bank-State-Branch number of the bank account.
667
+ */
668
+ bsb_number?: string;
669
+
670
+ /**
671
+ * The PayID alias for the bank account.
672
+ */
673
+ pay_id?: string;
674
+ }
675
+
609
676
  interface Pix {}
610
677
 
611
678
  interface Promptpay {}
612
679
 
680
+ interface Qris {}
681
+
613
682
  interface RadarOptions {
614
683
  /**
615
684
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -617,6 +686,32 @@ declare module 'stripe' {
617
686
  session?: string;
618
687
  }
619
688
 
689
+ interface Rechnung {
690
+ /**
691
+ * Customer's date of birth
692
+ */
693
+ dob: Rechnung.Dob;
694
+ }
695
+
696
+ namespace Rechnung {
697
+ interface Dob {
698
+ /**
699
+ * The day of birth, between 1 and 31.
700
+ */
701
+ day: number;
702
+
703
+ /**
704
+ * The month of birth, between 1 and 12.
705
+ */
706
+ month: number;
707
+
708
+ /**
709
+ * The four-digit year of birth.
710
+ */
711
+ year: number;
712
+ }
713
+ }
714
+
620
715
  interface RevolutPay {}
621
716
 
622
717
  interface SamsungPay {}
@@ -628,6 +723,8 @@ declare module 'stripe' {
628
723
  iban: string;
629
724
  }
630
725
 
726
+ interface Shopeepay {}
727
+
631
728
  interface Sofort {
632
729
  /**
633
730
  * Two-letter ISO code representing the country the bank account is located in.
@@ -661,13 +758,16 @@ declare module 'stripe' {
661
758
  | 'eps'
662
759
  | 'fpx'
663
760
  | 'giropay'
761
+ | 'gopay'
664
762
  | 'grabpay'
763
+ | 'id_bank_transfer'
665
764
  | 'ideal'
666
765
  | 'kakao_pay'
667
766
  | 'klarna'
668
767
  | 'konbini'
669
768
  | 'kr_card'
670
769
  | 'link'
770
+ | 'mb_way'
671
771
  | 'mobilepay'
672
772
  | 'multibanco'
673
773
  | 'naver_pay'
@@ -676,11 +776,15 @@ declare module 'stripe' {
676
776
  | 'payco'
677
777
  | 'paynow'
678
778
  | 'paypal'
779
+ | 'payto'
679
780
  | 'pix'
680
781
  | 'promptpay'
782
+ | 'qris'
783
+ | 'rechnung'
681
784
  | 'revolut_pay'
682
785
  | 'samsung_pay'
683
786
  | 'sepa_debit'
787
+ | 'shopeepay'
684
788
  | 'sofort'
685
789
  | 'swish'
686
790
  | 'twint'
@@ -769,6 +873,11 @@ declare module 'stripe' {
769
873
  */
770
874
  naver_pay?: PaymentMethodUpdateParams.NaverPay;
771
875
 
876
+ /**
877
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
878
+ */
879
+ payto?: PaymentMethodUpdateParams.Payto;
880
+
772
881
  /**
773
882
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
774
883
  */
@@ -843,6 +952,23 @@ declare module 'stripe' {
843
952
  type Funding = 'card' | 'points';
844
953
  }
845
954
 
955
+ interface Payto {
956
+ /**
957
+ * The account number for the bank account.
958
+ */
959
+ account_number?: string;
960
+
961
+ /**
962
+ * Bank-State-Branch number of the bank account.
963
+ */
964
+ bsb_number?: string;
965
+
966
+ /**
967
+ * The PayID alias for the bank account.
968
+ */
969
+ pay_id?: string;
970
+ }
971
+
846
972
  interface UsBankAccount {
847
973
  /**
848
974
  * Bank account holder type.
@@ -898,13 +1024,16 @@ declare module 'stripe' {
898
1024
  | 'eps'
899
1025
  | 'fpx'
900
1026
  | 'giropay'
1027
+ | 'gopay'
901
1028
  | 'grabpay'
1029
+ | 'id_bank_transfer'
902
1030
  | 'ideal'
903
1031
  | 'kakao_pay'
904
1032
  | 'klarna'
905
1033
  | 'konbini'
906
1034
  | 'kr_card'
907
1035
  | 'link'
1036
+ | 'mb_way'
908
1037
  | 'mobilepay'
909
1038
  | 'multibanco'
910
1039
  | 'naver_pay'
@@ -913,11 +1042,15 @@ declare module 'stripe' {
913
1042
  | 'payco'
914
1043
  | 'paynow'
915
1044
  | 'paypal'
1045
+ | 'payto'
916
1046
  | 'pix'
917
1047
  | 'promptpay'
1048
+ | 'qris'
1049
+ | 'rechnung'
918
1050
  | 'revolut_pay'
919
1051
  | 'samsung_pay'
920
1052
  | 'sepa_debit'
1053
+ | 'shopeepay'
921
1054
  | 'sofort'
922
1055
  | 'swish'
923
1056
  | 'twint'
package/types/Prices.d.ts CHANGED
@@ -93,6 +93,11 @@ declare module 'stripe' {
93
93
  */
94
94
  metadata: Stripe.Metadata;
95
95
 
96
+ /**
97
+ * Subscriptions using this price will be migrated to use the new referenced price.
98
+ */
99
+ migrate_to?: Price.MigrateTo | null;
100
+
96
101
  /**
97
102
  * A brief description of the price, hidden from customers.
98
103
  */
@@ -239,6 +244,23 @@ declare module 'stripe' {
239
244
  preset: number | null;
240
245
  }
241
246
 
247
+ interface MigrateTo {
248
+ /**
249
+ * The behavior controlling at what point in the subscription lifecycle to migrate the price
250
+ */
251
+ behavior: 'at_cycle_end';
252
+
253
+ /**
254
+ * The unix timestamp after at which subscriptions will start to migrate to the new price.
255
+ */
256
+ effective_after: number;
257
+
258
+ /**
259
+ * The id of the price being migrated to
260
+ */
261
+ price: string;
262
+ }
263
+
242
264
  interface Recurring {
243
265
  /**
244
266
  * Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
@@ -372,6 +372,11 @@ declare module 'stripe' {
372
372
  */
373
373
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
374
374
 
375
+ /**
376
+ * If specified, subscriptions using this price will be updated to use the new referenced price.
377
+ */
378
+ migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
379
+
375
380
  /**
376
381
  * A brief description of the price, hidden from customers.
377
382
  */
@@ -469,6 +474,23 @@ declare module 'stripe' {
469
474
  }
470
475
  }
471
476
 
477
+ interface MigrateTo {
478
+ /**
479
+ * The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
480
+ */
481
+ behavior: 'at_cycle_end';
482
+
483
+ /**
484
+ * The time after which subscriptions should start using the new price.
485
+ */
486
+ effective_after?: number;
487
+
488
+ /**
489
+ * The ID of the price object.
490
+ */
491
+ price: string;
492
+ }
493
+
472
494
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
473
495
  }
474
496
 
@@ -98,6 +98,11 @@ declare module 'stripe' {
98
98
  */
99
99
  package_dimensions: Product.PackageDimensions | null;
100
100
 
101
+ /**
102
+ * Provisioning configuration for this product.
103
+ */
104
+ provisioning?: Product.Provisioning | null;
105
+
101
106
  /**
102
107
  * Whether this product is shipped (i.e., physical goods).
103
108
  */
@@ -164,6 +169,40 @@ declare module 'stripe' {
164
169
  width: number;
165
170
  }
166
171
 
172
+ interface Provisioning {
173
+ gift_card: Provisioning.GiftCard | null;
174
+
175
+ /**
176
+ * The type of provisioning, only `gift_card` currently supported.
177
+ */
178
+ type: 'gift_card';
179
+ }
180
+
181
+ namespace Provisioning {
182
+ interface GiftCard {
183
+ fixed_amount: GiftCard.FixedAmount | null;
184
+
185
+ /**
186
+ * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
187
+ */
188
+ type: 'fixed_amount';
189
+ }
190
+
191
+ namespace GiftCard {
192
+ interface FixedAmount {
193
+ /**
194
+ * The initial amount with which the provisioned gift card will be created.
195
+ */
196
+ amount: number;
197
+
198
+ /**
199
+ * 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).
200
+ */
201
+ currency: string;
202
+ }
203
+ }
204
+ }
205
+
167
206
  type Type = 'good' | 'service';
168
207
  }
169
208
  }
@@ -53,6 +53,11 @@ declare module 'stripe' {
53
53
  */
54
54
  package_dimensions?: ProductCreateParams.PackageDimensions;
55
55
 
56
+ /**
57
+ * Provisioning configuration for this product.
58
+ */
59
+ provisioning?: ProductCreateParams.Provisioning;
60
+
56
61
  /**
57
62
  * Whether this product is shipped (i.e., physical goods).
58
63
  */
@@ -278,6 +283,37 @@ declare module 'stripe' {
278
283
  width: number;
279
284
  }
280
285
 
286
+ interface Provisioning {
287
+ gift_card?: Provisioning.GiftCard;
288
+
289
+ /**
290
+ * The type of provisioning, only `gift_card` currently supported.
291
+ */
292
+ type: 'gift_card';
293
+ }
294
+
295
+ namespace Provisioning {
296
+ interface GiftCard {
297
+ fixed_amount?: GiftCard.FixedAmount;
298
+
299
+ /**
300
+ * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
301
+ */
302
+ type: 'fixed_amount';
303
+ }
304
+
305
+ namespace GiftCard {
306
+ interface FixedAmount {
307
+ /**
308
+ * The initial amount with which the provisioned gift card will be created.
309
+ */
310
+ amount: number;
311
+
312
+ currency: string;
313
+ }
314
+ }
315
+ }
316
+
281
317
  type Type = 'good' | 'service';
282
318
  }
283
319