stripe 17.2.0 → 17.3.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 (191) hide show
  1. package/CHANGELOG.md +926 -109
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentIntents.js +4 -0
  19. package/cjs/resources/Quotes.js +32 -0
  20. package/cjs/resources/SubscriptionSchedules.js +4 -0
  21. package/cjs/resources/Tax/Associations.js +9 -0
  22. package/cjs/resources/Tax/Forms.js +20 -0
  23. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  24. package/cjs/resources/Terminal/Readers.js +12 -0
  25. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  26. package/cjs/resources.js +42 -10
  27. package/cjs/stripe.core.js +1 -1
  28. package/esm/Webhooks.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Margins.js +19 -0
  41. package/esm/resources/Orders.js +21 -0
  42. package/esm/resources/PaymentIntents.js +4 -0
  43. package/esm/resources/Quotes.js +32 -0
  44. package/esm/resources/SubscriptionSchedules.js +4 -0
  45. package/esm/resources/Tax/Associations.js +6 -0
  46. package/esm/resources/Tax/Forms.js +17 -0
  47. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  48. package/esm/resources/Terminal/Readers.js +12 -0
  49. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  50. package/esm/resources.js +29 -0
  51. package/esm/stripe.core.js +1 -1
  52. package/package.json +1 -1
  53. package/types/AccountLinksResource.d.ts +5 -1
  54. package/types/AccountNotices.d.ts +113 -0
  55. package/types/AccountNoticesResource.d.ts +98 -0
  56. package/types/AccountSessions.d.ts +75 -5
  57. package/types/AccountSessionsResource.d.ts +354 -5
  58. package/types/Accounts.d.ts +211 -3
  59. package/types/AccountsResource.d.ts +584 -2
  60. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  61. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  62. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  63. package/types/Billing/CreditGrants.d.ts +11 -8
  64. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Billing/Meters.d.ts +2 -0
  67. package/types/BillingPortal/Configurations.d.ts +22 -0
  68. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Charges.d.ts +168 -0
  76. package/types/ChargesResource.d.ts +1294 -0
  77. package/types/Checkout/Sessions.d.ts +309 -5
  78. package/types/Checkout/SessionsResource.d.ts +360 -5
  79. package/types/ConfirmationTokens.d.ts +157 -0
  80. package/types/Coupons.d.ts +1 -1
  81. package/types/CouponsResource.d.ts +1 -1
  82. package/types/CreditNoteLineItems.d.ts +3 -0
  83. package/types/CreditNotes.d.ts +24 -0
  84. package/types/CreditNotesResource.d.ts +54 -3
  85. package/types/CustomersResource.d.ts +27 -3
  86. package/types/Disputes.d.ts +152 -0
  87. package/types/DisputesResource.d.ts +120 -0
  88. package/types/EventTypes.d.ts +564 -2
  89. package/types/Events.d.ts +91 -0
  90. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  91. package/types/FinancialConnections/Accounts.d.ts +29 -1
  92. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  93. package/types/FinancialConnections/Institutions.d.ts +93 -0
  94. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  95. package/types/FinancialConnections/Sessions.d.ts +49 -1
  96. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  97. package/types/Forwarding/Requests.d.ts +5 -0
  98. package/types/Forwarding/RequestsResource.d.ts +5 -0
  99. package/types/GiftCards/Cards.d.ts +118 -0
  100. package/types/GiftCards/CardsResource.d.ts +159 -0
  101. package/types/GiftCards/Transactions.d.ts +129 -0
  102. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  103. package/types/InvoiceItems.d.ts +5 -0
  104. package/types/InvoiceItemsResource.d.ts +98 -0
  105. package/types/InvoiceLineItems.d.ts +31 -1
  106. package/types/InvoicePayments.d.ts +138 -0
  107. package/types/Invoices.d.ts +139 -3
  108. package/types/InvoicesResource.d.ts +5488 -1799
  109. package/types/Issuing/CardholdersResource.d.ts +2 -1
  110. package/types/Issuing/CardsResource.d.ts +1 -1
  111. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  112. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  113. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  114. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  115. package/types/Issuing/Settlements.d.ts +103 -0
  116. package/types/Issuing/Transactions.d.ts +2 -0
  117. package/types/Issuing/TransactionsResource.d.ts +5 -0
  118. package/types/LineItems.d.ts +7 -0
  119. package/types/Mandates.d.ts +85 -0
  120. package/types/Margins.d.ts +56 -0
  121. package/types/MarginsResource.d.ts +114 -0
  122. package/types/Orders.d.ts +1154 -0
  123. package/types/OrdersResource.d.ts +2911 -0
  124. package/types/PaymentIntents.d.ts +697 -1
  125. package/types/PaymentIntentsResource.d.ts +7977 -3377
  126. package/types/PaymentLinks.d.ts +7 -0
  127. package/types/PaymentLinksResource.d.ts +14 -0
  128. package/types/PaymentMethodConfigurations.d.ts +72 -0
  129. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  130. package/types/PaymentMethodDomains.d.ts +28 -0
  131. package/types/PaymentMethods.d.ts +157 -0
  132. package/types/PaymentMethodsResource.d.ts +195 -1
  133. package/types/Persons.d.ts +1 -1
  134. package/types/Prices.d.ts +22 -0
  135. package/types/PricesResource.d.ts +22 -0
  136. package/types/Products.d.ts +39 -0
  137. package/types/ProductsResource.d.ts +36 -0
  138. package/types/QuoteLines.d.ts +634 -0
  139. package/types/QuotePreviewInvoices.d.ts +1601 -0
  140. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  141. package/types/Quotes.d.ts +591 -1
  142. package/types/QuotesResource.d.ts +2526 -194
  143. package/types/Refunds.d.ts +4 -0
  144. package/types/SetupAttempts.d.ts +19 -0
  145. package/types/SetupIntents.d.ts +112 -1
  146. package/types/SetupIntentsResource.d.ts +768 -6
  147. package/types/Sources.d.ts +23 -0
  148. package/types/SubscriptionItems.d.ts +21 -0
  149. package/types/SubscriptionItemsResource.d.ts +109 -0
  150. package/types/SubscriptionSchedules.d.ts +200 -0
  151. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  152. package/types/Subscriptions.d.ts +87 -1
  153. package/types/SubscriptionsResource.d.ts +359 -4
  154. package/types/Tax/Associations.d.ts +126 -0
  155. package/types/Tax/AssociationsResource.d.ts +29 -0
  156. package/types/Tax/CalculationLineItems.d.ts +1 -0
  157. package/types/Tax/Calculations.d.ts +33 -1
  158. package/types/Tax/CalculationsResource.d.ts +7 -1
  159. package/types/Tax/Forms.d.ts +220 -0
  160. package/types/Tax/FormsResource.d.ts +107 -0
  161. package/types/Tax/Registrations.d.ts +82 -0
  162. package/types/Tax/RegistrationsResource.d.ts +109 -0
  163. package/types/Tax/Transactions.d.ts +8 -1
  164. package/types/TaxIds.d.ts +7 -1
  165. package/types/TaxIdsResource.d.ts +7 -1
  166. package/types/TaxRates.d.ts +25 -0
  167. package/types/TaxRatesResource.d.ts +2 -0
  168. package/types/Terminal/Configurations.d.ts +19 -0
  169. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  170. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  171. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  172. package/types/Terminal/Readers.d.ts +278 -0
  173. package/types/Terminal/ReadersResource.d.ts +215 -0
  174. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  175. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  176. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  177. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  178. package/types/TokensResource.d.ts +2 -2
  179. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  180. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  181. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  182. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  183. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  184. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  185. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  186. package/types/UsageRecordSummaries.d.ts +1 -1
  187. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  188. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  189. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  190. package/types/WebhookEndpointsResource.d.ts +66 -0
  191. package/types/index.d.ts +53 -0
@@ -33,6 +33,8 @@ declare module 'stripe' {
33
33
  */
34
34
  allow_redisplay?: PaymentMethod.AllowRedisplay;
35
35
 
36
+ alma?: PaymentMethod.Alma;
37
+
36
38
  amazon_pay?: PaymentMethod.AmazonPay;
37
39
 
38
40
  au_becs_debit?: PaymentMethod.AuBecsDebit;
@@ -71,16 +73,22 @@ declare module 'stripe' {
71
73
 
72
74
  giropay?: PaymentMethod.Giropay;
73
75
 
76
+ gopay?: PaymentMethod.Gopay;
77
+
74
78
  grabpay?: PaymentMethod.Grabpay;
75
79
 
76
80
  ideal?: PaymentMethod.Ideal;
77
81
 
78
82
  interac_present?: PaymentMethod.InteracPresent;
79
83
 
84
+ kakao_pay?: PaymentMethod.KakaoPay;
85
+
80
86
  klarna?: PaymentMethod.Klarna;
81
87
 
82
88
  konbini?: PaymentMethod.Konbini;
83
89
 
90
+ kr_card?: PaymentMethod.KrCard;
91
+
84
92
  link?: PaymentMethod.Link;
85
93
 
86
94
  /**
@@ -88,6 +96,8 @@ declare module 'stripe' {
88
96
  */
89
97
  livemode: boolean;
90
98
 
99
+ mb_way?: PaymentMethod.MbWay;
100
+
91
101
  /**
92
102
  * 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.
93
103
  */
@@ -97,27 +107,41 @@ declare module 'stripe' {
97
107
 
98
108
  multibanco?: PaymentMethod.Multibanco;
99
109
 
110
+ naver_pay?: PaymentMethod.NaverPay;
111
+
100
112
  oxxo?: PaymentMethod.Oxxo;
101
113
 
102
114
  p24?: PaymentMethod.P24;
103
115
 
116
+ payco?: PaymentMethod.Payco;
117
+
104
118
  paynow?: PaymentMethod.Paynow;
105
119
 
106
120
  paypal?: PaymentMethod.Paypal;
107
121
 
122
+ payto?: PaymentMethod.Payto;
123
+
108
124
  pix?: PaymentMethod.Pix;
109
125
 
110
126
  promptpay?: PaymentMethod.Promptpay;
111
127
 
128
+ qris?: PaymentMethod.Qris;
129
+
112
130
  /**
113
131
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
114
132
  */
115
133
  radar_options?: PaymentMethod.RadarOptions;
116
134
 
135
+ rechnung?: PaymentMethod.Rechnung;
136
+
117
137
  revolut_pay?: PaymentMethod.RevolutPay;
118
138
 
139
+ samsung_pay?: PaymentMethod.SamsungPay;
140
+
119
141
  sepa_debit?: PaymentMethod.SepaDebit;
120
142
 
143
+ shopeepay?: PaymentMethod.Shopeepay;
144
+
121
145
  sofort?: PaymentMethod.Sofort;
122
146
 
123
147
  swish?: PaymentMethod.Swish;
@@ -172,6 +196,8 @@ declare module 'stripe' {
172
196
 
173
197
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
174
198
 
199
+ interface Alma {}
200
+
175
201
  interface AmazonPay {}
176
202
 
177
203
  interface AuBecsDebit {
@@ -926,6 +952,8 @@ declare module 'stripe' {
926
952
 
927
953
  interface Giropay {}
928
954
 
955
+ interface Gopay {}
956
+
929
957
  interface Grabpay {}
930
958
 
931
959
  interface Ideal {
@@ -1074,6 +1102,8 @@ declare module 'stripe' {
1074
1102
  | 'magnetic_stripe_track2';
1075
1103
  }
1076
1104
 
1105
+ interface KakaoPay {}
1106
+
1077
1107
  interface Klarna {
1078
1108
  /**
1079
1109
  * The customer's date of birth, if provided.
@@ -1102,6 +1132,44 @@ declare module 'stripe' {
1102
1132
 
1103
1133
  interface Konbini {}
1104
1134
 
1135
+ interface KrCard {
1136
+ /**
1137
+ * The local credit or debit card brand.
1138
+ */
1139
+ brand: KrCard.Brand | null;
1140
+
1141
+ /**
1142
+ * The last four digits of the card. This may not be present for American Express cards.
1143
+ */
1144
+ last4: string | null;
1145
+ }
1146
+
1147
+ namespace KrCard {
1148
+ type Brand =
1149
+ | 'bc'
1150
+ | 'citi'
1151
+ | 'hana'
1152
+ | 'hyundai'
1153
+ | 'jeju'
1154
+ | 'jeonbuk'
1155
+ | 'kakaobank'
1156
+ | 'kbank'
1157
+ | 'kdbbank'
1158
+ | 'kookmin'
1159
+ | 'kwangju'
1160
+ | 'lotte'
1161
+ | 'mg'
1162
+ | 'nh'
1163
+ | 'post'
1164
+ | 'samsung'
1165
+ | 'savingsbank'
1166
+ | 'shinhan'
1167
+ | 'shinhyup'
1168
+ | 'suhyup'
1169
+ | 'tossbank'
1170
+ | 'woori';
1171
+ }
1172
+
1105
1173
  interface Link {
1106
1174
  /**
1107
1175
  * Account owner's email address.
@@ -1115,10 +1183,23 @@ declare module 'stripe' {
1115
1183
  persistent_token?: string;
1116
1184
  }
1117
1185
 
1186
+ interface MbWay {}
1187
+
1118
1188
  interface Mobilepay {}
1119
1189
 
1120
1190
  interface Multibanco {}
1121
1191
 
1192
+ interface NaverPay {
1193
+ /**
1194
+ * Whether to fund this transaction with Naver Pay points or a card.
1195
+ */
1196
+ funding: NaverPay.Funding;
1197
+ }
1198
+
1199
+ namespace NaverPay {
1200
+ type Funding = 'card' | 'points';
1201
+ }
1202
+
1122
1203
  interface Oxxo {}
1123
1204
 
1124
1205
  interface P24 {
@@ -1158,9 +1239,16 @@ declare module 'stripe' {
1158
1239
  | 'volkswagen_bank';
1159
1240
  }
1160
1241
 
1242
+ interface Payco {}
1243
+
1161
1244
  interface Paynow {}
1162
1245
 
1163
1246
  interface Paypal {
1247
+ /**
1248
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1249
+ */
1250
+ fingerprint?: string | null;
1251
+
1164
1252
  /**
1165
1253
  * Owner's email. Values are provided by PayPal directly
1166
1254
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1171,12 +1259,37 @@ declare module 'stripe' {
1171
1259
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1172
1260
  */
1173
1261
  payer_id: string | null;
1262
+
1263
+ /**
1264
+ * Owner's verified email. Values are verified or provided by PayPal directly
1265
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1266
+ */
1267
+ verified_email?: string | null;
1268
+ }
1269
+
1270
+ interface Payto {
1271
+ /**
1272
+ * Bank-State-Branch number of the bank account.
1273
+ */
1274
+ bsb_number: string | null;
1275
+
1276
+ /**
1277
+ * Last four digits of the bank account number.
1278
+ */
1279
+ last4: string | null;
1280
+
1281
+ /**
1282
+ * The PayID alias for the bank account.
1283
+ */
1284
+ pay_id: string | null;
1174
1285
  }
1175
1286
 
1176
1287
  interface Pix {}
1177
1288
 
1178
1289
  interface Promptpay {}
1179
1290
 
1291
+ interface Qris {}
1292
+
1180
1293
  interface RadarOptions {
1181
1294
  /**
1182
1295
  * 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.
@@ -1184,8 +1297,33 @@ declare module 'stripe' {
1184
1297
  session?: string;
1185
1298
  }
1186
1299
 
1300
+ interface Rechnung {
1301
+ dob?: Rechnung.Dob;
1302
+ }
1303
+
1304
+ namespace Rechnung {
1305
+ interface Dob {
1306
+ /**
1307
+ * The day of birth, between 1 and 31.
1308
+ */
1309
+ day: number;
1310
+
1311
+ /**
1312
+ * The month of birth, between 1 and 12.
1313
+ */
1314
+ month: number;
1315
+
1316
+ /**
1317
+ * The four-digit year of birth.
1318
+ */
1319
+ year: number;
1320
+ }
1321
+ }
1322
+
1187
1323
  interface RevolutPay {}
1188
1324
 
1325
+ interface SamsungPay {}
1326
+
1189
1327
  interface SepaDebit {
1190
1328
  /**
1191
1329
  * Bank code of bank associated with the bank account.
@@ -1232,6 +1370,8 @@ declare module 'stripe' {
1232
1370
  }
1233
1371
  }
1234
1372
 
1373
+ interface Shopeepay {}
1374
+
1235
1375
  interface Sofort {
1236
1376
  /**
1237
1377
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1248,6 +1388,7 @@ declare module 'stripe' {
1248
1388
  | 'affirm'
1249
1389
  | 'afterpay_clearpay'
1250
1390
  | 'alipay'
1391
+ | 'alma'
1251
1392
  | 'amazon_pay'
1252
1393
  | 'au_becs_debit'
1253
1394
  | 'bacs_debit'
@@ -1261,22 +1402,33 @@ declare module 'stripe' {
1261
1402
  | 'eps'
1262
1403
  | 'fpx'
1263
1404
  | 'giropay'
1405
+ | 'gopay'
1264
1406
  | 'grabpay'
1265
1407
  | 'ideal'
1266
1408
  | 'interac_present'
1409
+ | 'kakao_pay'
1267
1410
  | 'klarna'
1268
1411
  | 'konbini'
1412
+ | 'kr_card'
1269
1413
  | 'link'
1414
+ | 'mb_way'
1270
1415
  | 'mobilepay'
1271
1416
  | 'multibanco'
1417
+ | 'naver_pay'
1272
1418
  | 'oxxo'
1273
1419
  | 'p24'
1420
+ | 'payco'
1274
1421
  | 'paynow'
1275
1422
  | 'paypal'
1423
+ | 'payto'
1276
1424
  | 'pix'
1277
1425
  | 'promptpay'
1426
+ | 'qris'
1427
+ | 'rechnung'
1278
1428
  | 'revolut_pay'
1429
+ | 'samsung_pay'
1279
1430
  | 'sepa_debit'
1431
+ | 'shopeepay'
1280
1432
  | 'sofort'
1281
1433
  | 'swish'
1282
1434
  | 'twint'
@@ -1290,6 +1442,11 @@ declare module 'stripe' {
1290
1442
  */
1291
1443
  account_holder_type: UsBankAccount.AccountHolderType | null;
1292
1444
 
1445
+ /**
1446
+ * Account number of the bank account.
1447
+ */
1448
+ account_number?: string | null;
1449
+
1293
1450
  /**
1294
1451
  * Account type: checkings or savings. Defaults to checking if omitted.
1295
1452
  */