stripe 15.12.0-beta.1 → 16.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 (167) hide show
  1. package/CHANGELOG.md +155 -746
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -3
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -25
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  16. package/cjs/resources.js +10 -36
  17. package/cjs/stripe.core.js +3 -6
  18. package/cjs/utils.js +3 -30
  19. package/esm/RequestSender.js +6 -67
  20. package/esm/StripeResource.js +2 -2
  21. package/esm/apiVersion.js +1 -2
  22. package/esm/multipart.js +2 -2
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/Invoices.js +0 -25
  25. package/esm/resources/OAuth.js +2 -2
  26. package/esm/resources/PaymentIntents.js +0 -4
  27. package/esm/resources/Quotes.js +0 -32
  28. package/esm/resources/SubscriptionSchedules.js +0 -4
  29. package/esm/resources/Terminal/Readers.js +0 -12
  30. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  31. package/esm/resources.js +0 -22
  32. package/esm/stripe.core.js +3 -6
  33. package/esm/utils.js +1 -27
  34. package/package.json +5 -1
  35. package/types/AccountLinksResource.d.ts +1 -5
  36. package/types/AccountSessions.d.ts +0 -15
  37. package/types/AccountSessionsResource.d.ts +0 -205
  38. package/types/Accounts.d.ts +1 -88
  39. package/types/AccountsResource.d.ts +1 -205
  40. package/types/BalanceTransactionSources.d.ts +0 -1
  41. package/types/Capabilities.d.ts +27 -7
  42. package/types/Charges.d.ts +0 -67
  43. package/types/ChargesResource.d.ts +0 -1294
  44. package/types/Checkout/Sessions.d.ts +3 -24
  45. package/types/Checkout/SessionsResource.d.ts +3 -17
  46. package/types/ConfirmationTokens.d.ts +0 -83
  47. package/types/Coupons.d.ts +1 -1
  48. package/types/CouponsResource.d.ts +1 -1
  49. package/types/CreditNotes.d.ts +0 -21
  50. package/types/CreditNotesResource.d.ts +0 -51
  51. package/types/CustomerSessions.d.ts +0 -55
  52. package/types/CustomerSessionsResource.d.ts +0 -55
  53. package/types/CustomersResource.d.ts +4 -4
  54. package/types/Disputes.d.ts +0 -167
  55. package/types/DisputesResource.d.ts +0 -120
  56. package/types/EventTypes.d.ts +0 -426
  57. package/types/Events.d.ts +0 -83
  58. package/types/FinancialConnections/Accounts.d.ts +1 -29
  59. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  60. package/types/FinancialConnections/Sessions.d.ts +1 -44
  61. package/types/FinancialConnections/SessionsResource.d.ts +1 -33
  62. package/types/InvoiceItems.d.ts +0 -5
  63. package/types/InvoiceItemsResource.d.ts +0 -98
  64. package/types/InvoiceLineItems.d.ts +0 -22
  65. package/types/Invoices.d.ts +3 -111
  66. package/types/InvoicesResource.d.ts +2171 -6311
  67. package/types/Issuing/Authorizations.d.ts +173 -0
  68. package/types/Issuing/CardholdersResource.d.ts +1 -2
  69. package/types/Issuing/Cards.d.ts +0 -34
  70. package/types/Issuing/CardsResource.d.ts +0 -125
  71. package/types/Issuing/Transactions.d.ts +112 -6
  72. package/types/LineItems.d.ts +0 -7
  73. package/types/Mandates.d.ts +0 -77
  74. package/types/PaymentIntents.d.ts +1 -463
  75. package/types/PaymentIntentsResource.d.ts +3360 -6731
  76. package/types/PaymentLinks.d.ts +1 -0
  77. package/types/PaymentLinksResource.d.ts +15 -1
  78. package/types/PaymentMethods.d.ts +0 -62
  79. package/types/PaymentMethodsResource.d.ts +12 -124
  80. package/types/Prices.d.ts +0 -22
  81. package/types/PricesResource.d.ts +0 -22
  82. package/types/Products.d.ts +0 -39
  83. package/types/ProductsResource.d.ts +0 -36
  84. package/types/Quotes.d.ts +1 -578
  85. package/types/QuotesResource.d.ts +266 -3175
  86. package/types/SetupAttempts.d.ts +0 -8
  87. package/types/SetupIntents.d.ts +1 -104
  88. package/types/SetupIntentsResource.d.ts +9 -527
  89. package/types/Sources.d.ts +0 -23
  90. package/types/SubscriptionItems.d.ts +0 -21
  91. package/types/SubscriptionItemsResource.d.ts +0 -109
  92. package/types/SubscriptionSchedules.d.ts +0 -164
  93. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  94. package/types/Subscriptions.d.ts +1 -41
  95. package/types/SubscriptionsResource.d.ts +2 -337
  96. package/types/Tax/Calculations.d.ts +2 -1
  97. package/types/Tax/CalculationsResource.d.ts +4 -3
  98. package/types/Tax/Transactions.d.ts +2 -1
  99. package/types/TaxIds.d.ts +2 -1
  100. package/types/TaxIdsResource.d.ts +2 -1
  101. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  102. package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
  103. package/types/Terminal/Readers.d.ts +0 -278
  104. package/types/Terminal/ReadersResource.d.ts +0 -208
  105. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  106. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
  107. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
  108. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  109. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/WebhookEndpointsResource.d.ts +2 -51
  115. package/types/index.d.ts +0 -62
  116. package/types/lib.d.ts +1 -13
  117. package/types/test/typescriptTest.ts +3 -3
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/GiftCards/Cards.js +0 -23
  123. package/cjs/resources/GiftCards/Transactions.js +0 -33
  124. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  125. package/cjs/resources/Margins.js +0 -22
  126. package/cjs/resources/Orders.js +0 -24
  127. package/cjs/resources/QuotePhases.js +0 -22
  128. package/cjs/resources/Tax/Forms.js +0 -20
  129. package/esm/resources/AccountNotices.js +0 -18
  130. package/esm/resources/Capital/FinancingOffers.js +0 -18
  131. package/esm/resources/Capital/FinancingSummary.js +0 -9
  132. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  133. package/esm/resources/GiftCards/Cards.js +0 -20
  134. package/esm/resources/GiftCards/Transactions.js +0 -30
  135. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  136. package/esm/resources/Margins.js +0 -19
  137. package/esm/resources/Orders.js +0 -21
  138. package/esm/resources/QuotePhases.js +0 -19
  139. package/esm/resources/Tax/Forms.js +0 -17
  140. package/types/AccountNotices.d.ts +0 -110
  141. package/types/AccountNoticesResource.d.ts +0 -98
  142. package/types/Capital/FinancingOffers.d.ts +0 -188
  143. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  144. package/types/Capital/FinancingSummary.d.ts +0 -106
  145. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  146. package/types/Capital/FinancingTransactions.d.ts +0 -135
  147. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  148. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  149. package/types/GiftCards/Cards.d.ts +0 -118
  150. package/types/GiftCards/CardsResource.d.ts +0 -159
  151. package/types/GiftCards/Transactions.d.ts +0 -129
  152. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  153. package/types/InvoicePayments.d.ts +0 -91
  154. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  155. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  156. package/types/Margins.d.ts +0 -56
  157. package/types/MarginsResource.d.ts +0 -114
  158. package/types/Orders.d.ts +0 -1056
  159. package/types/OrdersResource.d.ts +0 -2709
  160. package/types/PlatformTaxFees.d.ts +0 -35
  161. package/types/QuoteLines.d.ts +0 -634
  162. package/types/QuotePhases.d.ts +0 -198
  163. package/types/QuotePhasesResource.d.ts +0 -67
  164. package/types/QuotePreviewInvoices.d.ts +0 -1514
  165. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  166. package/types/Tax/Forms.d.ts +0 -133
  167. package/types/Tax/FormsResource.d.ts +0 -90
@@ -97,21 +97,6 @@ declare module 'stripe' {
97
97
 
98
98
  namespace Reader {
99
99
  interface Action {
100
- /**
101
- * Represents a reader action to collect customer inputs
102
- */
103
- collect_inputs?: Action.CollectInputs;
104
-
105
- /**
106
- * Represents a reader action to collect a payment method
107
- */
108
- collect_payment_method?: Action.CollectPaymentMethod;
109
-
110
- /**
111
- * Represents a reader action to confirm a payment
112
- */
113
- confirm_payment_intent?: Action.ConfirmPaymentIntent;
114
-
115
100
  /**
116
101
  * Failure code, only set if status is `failed`.
117
102
  */
@@ -154,262 +139,6 @@ declare module 'stripe' {
154
139
  }
155
140
 
156
141
  namespace Action {
157
- interface CollectInputs {
158
- /**
159
- * List of inputs to be collected.
160
- */
161
- inputs: Array<CollectInputs.Input>;
162
-
163
- /**
164
- * 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.
165
- */
166
- metadata: Stripe.Metadata | null;
167
- }
168
-
169
- namespace CollectInputs {
170
- interface Input {
171
- /**
172
- * Default text of input being collected.
173
- */
174
- custom_text: Input.CustomText | null;
175
-
176
- /**
177
- * Information about a email being collected using a reader
178
- */
179
- email?: Input.Email;
180
-
181
- /**
182
- * Information about a number being collected using a reader
183
- */
184
- numeric?: Input.Numeric;
185
-
186
- /**
187
- * Information about a phone number being collected using a reader
188
- */
189
- phone?: Input.Phone;
190
-
191
- /**
192
- * Indicate that this input is required, disabling the skip button.
193
- */
194
- required: boolean | null;
195
-
196
- /**
197
- * Information about a selection being collected using a reader
198
- */
199
- selection?: Input.Selection;
200
-
201
- /**
202
- * Information about a signature being collected using a reader
203
- */
204
- signature?: Input.Signature;
205
-
206
- /**
207
- * Indicate that this input was skipped by the user.
208
- */
209
- skipped?: boolean;
210
-
211
- /**
212
- * Information about text being collected using a reader
213
- */
214
- text?: Input.Text;
215
-
216
- /**
217
- * List of toggles being collected. Values are present if collection is complete.
218
- */
219
- toggles: Array<Input.Toggle> | null;
220
-
221
- /**
222
- * Type of input being collected.
223
- */
224
- type: Input.Type;
225
- }
226
-
227
- namespace Input {
228
- interface CustomText {
229
- /**
230
- * Customize the default description for this input
231
- */
232
- description: string | null;
233
-
234
- /**
235
- * Customize the default label for this input's skip button
236
- */
237
- skip_button: string | null;
238
-
239
- /**
240
- * Customize the default label for this input's submit button
241
- */
242
- submit_button: string | null;
243
-
244
- /**
245
- * Customize the default title for this input
246
- */
247
- title: string | null;
248
- }
249
-
250
- interface Email {
251
- /**
252
- * The collected email address
253
- */
254
- value: string | null;
255
- }
256
-
257
- interface Numeric {
258
- /**
259
- * The collected number
260
- */
261
- value: string | null;
262
- }
263
-
264
- interface Phone {
265
- /**
266
- * The collected phone number
267
- */
268
- value: string | null;
269
- }
270
-
271
- interface Selection {
272
- /**
273
- * List of possible choices to be selected
274
- */
275
- choices: Array<Selection.Choice>;
276
-
277
- /**
278
- * The value of the selected choice
279
- */
280
- value: string | null;
281
- }
282
-
283
- namespace Selection {
284
- interface Choice {
285
- /**
286
- * The button style for the choice
287
- */
288
- style: Choice.Style | null;
289
-
290
- /**
291
- * A value to be selected
292
- */
293
- value: string;
294
- }
295
-
296
- namespace Choice {
297
- type Style = 'primary' | 'secondary';
298
- }
299
- }
300
-
301
- interface Signature {
302
- /**
303
- * The File ID of a collected signature image
304
- */
305
- value: string | null;
306
- }
307
-
308
- interface Text {
309
- /**
310
- * The collected text value
311
- */
312
- value: string | null;
313
- }
314
-
315
- interface Toggle {
316
- /**
317
- * The toggle's default value
318
- */
319
- default_value: Toggle.DefaultValue | null;
320
-
321
- /**
322
- * The toggle's description text
323
- */
324
- description: string | null;
325
-
326
- /**
327
- * The toggle's title text
328
- */
329
- title: string | null;
330
-
331
- /**
332
- * The toggle's collected value
333
- */
334
- value: Toggle.Value | null;
335
- }
336
-
337
- namespace Toggle {
338
- type DefaultValue = 'disabled' | 'enabled';
339
-
340
- type Value = 'disabled' | 'enabled';
341
- }
342
-
343
- type Type =
344
- | 'email'
345
- | 'numeric'
346
- | 'phone'
347
- | 'selection'
348
- | 'signature'
349
- | 'text';
350
- }
351
- }
352
-
353
- interface CollectPaymentMethod {
354
- /**
355
- * Represents a per-transaction override of a reader configuration
356
- */
357
- collect_config?: CollectPaymentMethod.CollectConfig;
358
-
359
- /**
360
- * Most recent PaymentIntent processed by the reader.
361
- */
362
- payment_intent: string | Stripe.PaymentIntent;
363
-
364
- /**
365
- * PaymentMethod objects represent your customer's payment instruments.
366
- * You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
367
- * Customer objects to store instrument details for future payments.
368
- *
369
- * Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
370
- */
371
- payment_method?: Stripe.PaymentMethod;
372
-
373
- stripe_account?: string;
374
- }
375
-
376
- namespace CollectPaymentMethod {
377
- interface CollectConfig {
378
- /**
379
- * Enable customer initiated cancellation when processing this payment.
380
- */
381
- enable_customer_cancellation?: boolean;
382
-
383
- /**
384
- * Override showing a tipping selection screen on this transaction.
385
- */
386
- skip_tipping?: boolean;
387
-
388
- /**
389
- * Represents a per-transaction tipping configuration
390
- */
391
- tipping?: CollectConfig.Tipping;
392
- }
393
-
394
- namespace CollectConfig {
395
- interface Tipping {
396
- /**
397
- * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
398
- */
399
- amount_eligible?: number;
400
- }
401
- }
402
- }
403
-
404
- interface ConfirmPaymentIntent {
405
- /**
406
- * Most recent PaymentIntent processed by the reader.
407
- */
408
- payment_intent: string | Stripe.PaymentIntent;
409
-
410
- stripe_account?: string;
411
- }
412
-
413
142
  interface ProcessPaymentIntent {
414
143
  /**
415
144
  * Most recent PaymentIntent processed by the reader.
@@ -420,8 +149,6 @@ declare module 'stripe' {
420
149
  * Represents a per-transaction override of a reader configuration
421
150
  */
422
151
  process_config?: ProcessPaymentIntent.ProcessConfig;
423
-
424
- stripe_account?: string;
425
152
  }
426
153
 
427
154
  namespace ProcessPaymentIntent {
@@ -523,8 +250,6 @@ declare module 'stripe' {
523
250
  * Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
524
251
  */
525
252
  reverse_transfer?: boolean;
526
-
527
- stripe_account?: string;
528
253
  }
529
254
 
530
255
  namespace RefundPayment {
@@ -596,9 +321,6 @@ declare module 'stripe' {
596
321
  type Status = 'failed' | 'in_progress' | 'succeeded';
597
322
 
598
323
  type Type =
599
- | 'collect_inputs'
600
- | 'collect_payment_method'
601
- | 'confirm_payment_intent'
602
324
  | 'process_payment_intent'
603
325
  | 'process_setup_intent'
604
326
  | 'refund_payment'
@@ -103,187 +103,6 @@ declare module 'stripe' {
103
103
  expand?: Array<string>;
104
104
  }
105
105
 
106
- interface ReaderCollectInputsParams {
107
- /**
108
- * List of inputs to be collected using the Reader
109
- */
110
- inputs: Array<ReaderCollectInputsParams.Input>;
111
-
112
- /**
113
- * Specifies which fields in the response should be expanded.
114
- */
115
- expand?: Array<string>;
116
-
117
- /**
118
- * 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`.
119
- */
120
- metadata?: Stripe.MetadataParam;
121
- }
122
-
123
- namespace ReaderCollectInputsParams {
124
- interface Input {
125
- /**
126
- * Customize the text which will be displayed while collecting this input
127
- */
128
- custom_text: Input.CustomText;
129
-
130
- /**
131
- * Indicate that this input is required, disabling the skip button
132
- */
133
- required?: boolean;
134
-
135
- /**
136
- * Options for the `selection` input
137
- */
138
- selection?: Input.Selection;
139
-
140
- /**
141
- * List of toggles to be displayed and customization for the toggles
142
- */
143
- toggles?: Array<Input.Toggle>;
144
-
145
- /**
146
- * The type of input to collect
147
- */
148
- type: Input.Type;
149
- }
150
-
151
- namespace Input {
152
- interface CustomText {
153
- /**
154
- * The description which will be displayed when collecting this input
155
- */
156
- description?: string;
157
-
158
- /**
159
- * The skip button text
160
- */
161
- skip_button?: string;
162
-
163
- /**
164
- * The submit button text
165
- */
166
- submit_button?: string;
167
-
168
- /**
169
- * The title which will be displayed when collecting this input
170
- */
171
- title: string;
172
- }
173
-
174
- interface Selection {
175
- /**
176
- * List of choices for the `selection` input
177
- */
178
- choices: Array<Selection.Choice>;
179
- }
180
-
181
- namespace Selection {
182
- interface Choice {
183
- /**
184
- * The style of the button which will be shown for this choice
185
- */
186
- style?: Choice.Style;
187
-
188
- /**
189
- * The text which will be shown on the button for this choice
190
- */
191
- value: string;
192
- }
193
-
194
- namespace Choice {
195
- type Style = 'primary' | 'secondary';
196
- }
197
- }
198
-
199
- interface Toggle {
200
- /**
201
- * The default value of the toggle
202
- */
203
- default_value?: Toggle.DefaultValue;
204
-
205
- /**
206
- * The description which will be displayed for the toggle
207
- */
208
- description?: string;
209
-
210
- /**
211
- * The title which will be displayed for the toggle
212
- */
213
- title?: string;
214
- }
215
-
216
- namespace Toggle {
217
- type DefaultValue = 'disabled' | 'enabled';
218
- }
219
-
220
- type Type =
221
- | 'email'
222
- | 'numeric'
223
- | 'phone'
224
- | 'selection'
225
- | 'signature'
226
- | 'text';
227
- }
228
- }
229
-
230
- interface ReaderCollectPaymentMethodParams {
231
- /**
232
- * PaymentIntent ID
233
- */
234
- payment_intent: string;
235
-
236
- /**
237
- * Configuration overrides
238
- */
239
- collect_config?: ReaderCollectPaymentMethodParams.CollectConfig;
240
-
241
- /**
242
- * Specifies which fields in the response should be expanded.
243
- */
244
- expand?: Array<string>;
245
- }
246
-
247
- namespace ReaderCollectPaymentMethodParams {
248
- interface CollectConfig {
249
- /**
250
- * Enables cancel button on transaction screens.
251
- */
252
- enable_customer_cancellation?: boolean;
253
-
254
- /**
255
- * Override showing a tipping selection screen on this transaction.
256
- */
257
- skip_tipping?: boolean;
258
-
259
- /**
260
- * Tipping configuration for this transaction.
261
- */
262
- tipping?: CollectConfig.Tipping;
263
- }
264
-
265
- namespace CollectConfig {
266
- interface Tipping {
267
- /**
268
- * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
269
- */
270
- amount_eligible?: number;
271
- }
272
- }
273
- }
274
-
275
- interface ReaderConfirmPaymentIntentParams {
276
- /**
277
- * PaymentIntent ID
278
- */
279
- payment_intent: string;
280
-
281
- /**
282
- * Specifies which fields in the response should be expanded.
283
- */
284
- expand?: Array<string>;
285
- }
286
-
287
106
  interface ReaderProcessPaymentIntentParams {
288
107
  /**
289
108
  * PaymentIntent ID
@@ -549,33 +368,6 @@ declare module 'stripe' {
549
368
  options?: RequestOptions
550
369
  ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
551
370
 
552
- /**
553
- * Initiates an input collection flow on a Reader.
554
- */
555
- collectInputs(
556
- id: string,
557
- params: ReaderCollectInputsParams,
558
- options?: RequestOptions
559
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
560
-
561
- /**
562
- * Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
563
- */
564
- collectPaymentMethod(
565
- id: string,
566
- params: ReaderCollectPaymentMethodParams,
567
- options?: RequestOptions
568
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
569
-
570
- /**
571
- * Finalizes a payment on a Reader.
572
- */
573
- confirmPaymentIntent(
574
- id: string,
575
- params: ReaderConfirmPaymentIntentParams,
576
- options?: RequestOptions
577
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
578
-
579
371
  /**
580
372
  * Initiates a payment flow on a Reader.
581
373
  */
@@ -189,11 +189,6 @@ declare module 'stripe' {
189
189
  */
190
190
  paypal?: PaymentMethodData.Paypal;
191
191
 
192
- /**
193
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
194
- */
195
- payto?: PaymentMethodData.Payto;
196
-
197
192
  /**
198
193
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
199
194
  */
@@ -209,11 +204,6 @@ declare module 'stripe' {
209
204
  */
210
205
  radar_options?: PaymentMethodData.RadarOptions;
211
206
 
212
- /**
213
- * If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
214
- */
215
- rechnung?: PaymentMethodData.Rechnung;
216
-
217
207
  /**
218
208
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
219
209
  */
@@ -538,23 +528,6 @@ declare module 'stripe' {
538
528
 
539
529
  interface Paypal {}
540
530
 
541
- interface Payto {
542
- /**
543
- * The account number for the bank account.
544
- */
545
- account_number?: string;
546
-
547
- /**
548
- * Bank-State-Branch number of the bank account.
549
- */
550
- bsb_number?: string;
551
-
552
- /**
553
- * The PayID alias for the bank account.
554
- */
555
- pay_id?: string;
556
- }
557
-
558
531
  interface Pix {}
559
532
 
560
533
  interface Promptpay {}
@@ -566,32 +539,6 @@ declare module 'stripe' {
566
539
  session?: string;
567
540
  }
568
541
 
569
- interface Rechnung {
570
- /**
571
- * Customer's date of birth
572
- */
573
- dob: Rechnung.Dob;
574
- }
575
-
576
- namespace Rechnung {
577
- interface Dob {
578
- /**
579
- * The day of birth, between 1 and 31.
580
- */
581
- day: number;
582
-
583
- /**
584
- * The month of birth, between 1 and 12.
585
- */
586
- month: number;
587
-
588
- /**
589
- * The four-digit year of birth.
590
- */
591
- year: number;
592
- }
593
- }
594
-
595
542
  interface RevolutPay {}
596
543
 
597
544
  interface SepaDebit {
@@ -643,10 +590,8 @@ declare module 'stripe' {
643
590
  | 'p24'
644
591
  | 'paynow'
645
592
  | 'paypal'
646
- | 'payto'
647
593
  | 'pix'
648
594
  | 'promptpay'
649
- | 'rechnung'
650
595
  | 'revolut_pay'
651
596
  | 'sepa_debit'
652
597
  | 'sofort'