stripe 17.6.0-beta.2 → 17.6.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.
- package/CHANGELOG.md +124 -1035
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources.js +10 -48
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources.js +0 -33
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -222
- package/types/Accounts.d.ts +1 -190
- package/types/AccountsResource.d.ts +0 -520
- package/types/Cards.d.ts +0 -5
- package/types/Charges.d.ts +0 -138
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +4 -340
- package/types/Checkout/SessionsResource.d.ts +5 -445
- package/types/ConfirmationTokens.d.ts +0 -99
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +0 -7
- package/types/EventTypes.d.ts +0 -596
- package/types/Events.d.ts +0 -93
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -28
- package/types/Invoices.d.ts +2 -137
- package/types/InvoicesResource.d.ts +1882 -5567
- package/types/Issuing/Authorizations.d.ts +0 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -32
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -644
- package/types/PaymentIntentsResource.d.ts +3734 -8021
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +0 -99
- package/types/PaymentMethodsResource.d.ts +0 -133
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +0 -38
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -645
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -91
- package/types/SubscriptionsResource.d.ts +2 -369
- package/types/Terminal/Readers.d.ts +0 -310
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +0 -70
- package/types/index.d.ts +0 -62
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentAttemptRecords.js +0 -17
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentAttemptRecords.js +0 -14
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -113
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1179
- package/types/OrdersResource.d.ts +0 -2961
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -242
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1658
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -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,284 +139,7 @@ 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
|
-
* Account the payment intent belongs to.
|
|
356
|
-
*/
|
|
357
|
-
account?: string;
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Represents a per-transaction override of a reader configuration
|
|
361
|
-
*/
|
|
362
|
-
collect_config?: CollectPaymentMethod.CollectConfig;
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Most recent PaymentIntent processed by the reader.
|
|
366
|
-
*/
|
|
367
|
-
payment_intent: string | Stripe.PaymentIntent;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* PaymentMethod objects represent your customer's payment instruments.
|
|
371
|
-
* You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
|
|
372
|
-
* Customer objects to store instrument details for future payments.
|
|
373
|
-
*
|
|
374
|
-
* Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
|
|
375
|
-
*/
|
|
376
|
-
payment_method?: Stripe.PaymentMethod;
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* This field will be deprecated. Please use `account` instead.
|
|
380
|
-
*/
|
|
381
|
-
stripe_account?: string;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
namespace CollectPaymentMethod {
|
|
385
|
-
interface CollectConfig {
|
|
386
|
-
/**
|
|
387
|
-
* Enable customer initiated cancellation when processing this payment.
|
|
388
|
-
*/
|
|
389
|
-
enable_customer_cancellation?: boolean;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Override showing a tipping selection screen on this transaction.
|
|
393
|
-
*/
|
|
394
|
-
skip_tipping?: boolean;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Represents a per-transaction tipping configuration
|
|
398
|
-
*/
|
|
399
|
-
tipping?: CollectConfig.Tipping;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
namespace CollectConfig {
|
|
403
|
-
interface Tipping {
|
|
404
|
-
/**
|
|
405
|
-
* 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).
|
|
406
|
-
*/
|
|
407
|
-
amount_eligible?: number;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
interface ConfirmPaymentIntent {
|
|
413
|
-
/**
|
|
414
|
-
* Account the payment intent belongs to.
|
|
415
|
-
*/
|
|
416
|
-
account?: string;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Most recent PaymentIntent processed by the reader.
|
|
420
|
-
*/
|
|
421
|
-
payment_intent: string | Stripe.PaymentIntent;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* This field will be deprecated. Please use `account` instead.
|
|
425
|
-
*/
|
|
426
|
-
stripe_account?: string;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
142
|
interface ProcessPaymentIntent {
|
|
430
|
-
/**
|
|
431
|
-
* Account the payment intent belongs to.
|
|
432
|
-
*/
|
|
433
|
-
account?: string;
|
|
434
|
-
|
|
435
143
|
/**
|
|
436
144
|
* Most recent PaymentIntent processed by the reader.
|
|
437
145
|
*/
|
|
@@ -441,11 +149,6 @@ declare module 'stripe' {
|
|
|
441
149
|
* Represents a per-transaction override of a reader configuration
|
|
442
150
|
*/
|
|
443
151
|
process_config?: ProcessPaymentIntent.ProcessConfig;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* This field will be deprecated. Please use `account` instead.
|
|
447
|
-
*/
|
|
448
|
-
stripe_account?: string;
|
|
449
152
|
}
|
|
450
153
|
|
|
451
154
|
namespace ProcessPaymentIntent {
|
|
@@ -503,11 +206,6 @@ declare module 'stripe' {
|
|
|
503
206
|
}
|
|
504
207
|
|
|
505
208
|
interface RefundPayment {
|
|
506
|
-
/**
|
|
507
|
-
* Account the payment intent belongs to.
|
|
508
|
-
*/
|
|
509
|
-
account?: string;
|
|
510
|
-
|
|
511
209
|
/**
|
|
512
210
|
* The amount being refunded.
|
|
513
211
|
*/
|
|
@@ -552,11 +250,6 @@ declare module 'stripe' {
|
|
|
552
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.
|
|
553
251
|
*/
|
|
554
252
|
reverse_transfer?: boolean;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* This field will be deprecated. Please use `account` instead.
|
|
558
|
-
*/
|
|
559
|
-
stripe_account?: string;
|
|
560
253
|
}
|
|
561
254
|
|
|
562
255
|
namespace RefundPayment {
|
|
@@ -628,9 +321,6 @@ declare module 'stripe' {
|
|
|
628
321
|
type Status = 'failed' | 'in_progress' | 'succeeded';
|
|
629
322
|
|
|
630
323
|
type Type =
|
|
631
|
-
| 'collect_inputs'
|
|
632
|
-
| 'collect_payment_method'
|
|
633
|
-
| 'confirm_payment_intent'
|
|
634
324
|
| 'process_payment_intent'
|
|
635
325
|
| 'process_setup_intent'
|
|
636
326
|
| 'refund_payment'
|
|
@@ -104,194 +104,6 @@ declare module 'stripe' {
|
|
|
104
104
|
expand?: Array<string>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface ReaderCollectInputsParams {
|
|
108
|
-
/**
|
|
109
|
-
* List of inputs to be collected using the Reader
|
|
110
|
-
*/
|
|
111
|
-
inputs: Array<ReaderCollectInputsParams.Input>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Specifies which fields in the response should be expanded.
|
|
115
|
-
*/
|
|
116
|
-
expand?: Array<string>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* 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`.
|
|
120
|
-
*/
|
|
121
|
-
metadata?: Stripe.MetadataParam;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
namespace ReaderCollectInputsParams {
|
|
125
|
-
interface Input {
|
|
126
|
-
/**
|
|
127
|
-
* Customize the text which will be displayed while collecting this input
|
|
128
|
-
*/
|
|
129
|
-
custom_text: Input.CustomText;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Indicate that this input is required, disabling the skip button
|
|
133
|
-
*/
|
|
134
|
-
required?: boolean;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Options for the `selection` input
|
|
138
|
-
*/
|
|
139
|
-
selection?: Input.Selection;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* List of toggles to be displayed and customization for the toggles
|
|
143
|
-
*/
|
|
144
|
-
toggles?: Array<Input.Toggle>;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The type of input to collect
|
|
148
|
-
*/
|
|
149
|
-
type: Input.Type;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
namespace Input {
|
|
153
|
-
interface CustomText {
|
|
154
|
-
/**
|
|
155
|
-
* The description which will be displayed when collecting this input
|
|
156
|
-
*/
|
|
157
|
-
description?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* The skip button text
|
|
161
|
-
*/
|
|
162
|
-
skip_button?: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* The submit button text
|
|
166
|
-
*/
|
|
167
|
-
submit_button?: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* The title which will be displayed when collecting this input
|
|
171
|
-
*/
|
|
172
|
-
title: string;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
interface Selection {
|
|
176
|
-
/**
|
|
177
|
-
* List of choices for the `selection` input
|
|
178
|
-
*/
|
|
179
|
-
choices: Array<Selection.Choice>;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
namespace Selection {
|
|
183
|
-
interface Choice {
|
|
184
|
-
/**
|
|
185
|
-
* The style of the button which will be shown for this choice
|
|
186
|
-
*/
|
|
187
|
-
style?: Choice.Style;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* The text which will be shown on the button for this choice
|
|
191
|
-
*/
|
|
192
|
-
value: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
namespace Choice {
|
|
196
|
-
type Style = 'primary' | 'secondary';
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface Toggle {
|
|
201
|
-
/**
|
|
202
|
-
* The default value of the toggle
|
|
203
|
-
*/
|
|
204
|
-
default_value?: Toggle.DefaultValue;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The description which will be displayed for the toggle
|
|
208
|
-
*/
|
|
209
|
-
description?: string;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* The title which will be displayed for the toggle
|
|
213
|
-
*/
|
|
214
|
-
title?: string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
namespace Toggle {
|
|
218
|
-
type DefaultValue = 'disabled' | 'enabled';
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
type Type =
|
|
222
|
-
| 'email'
|
|
223
|
-
| 'numeric'
|
|
224
|
-
| 'phone'
|
|
225
|
-
| 'selection'
|
|
226
|
-
| 'signature'
|
|
227
|
-
| 'text';
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
interface ReaderCollectPaymentMethodParams {
|
|
232
|
-
/**
|
|
233
|
-
* PaymentIntent ID
|
|
234
|
-
*/
|
|
235
|
-
payment_intent: string;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Configuration overrides
|
|
239
|
-
*/
|
|
240
|
-
collect_config?: ReaderCollectPaymentMethodParams.CollectConfig;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Specifies which fields in the response should be expanded.
|
|
244
|
-
*/
|
|
245
|
-
expand?: Array<string>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
namespace ReaderCollectPaymentMethodParams {
|
|
249
|
-
interface CollectConfig {
|
|
250
|
-
/**
|
|
251
|
-
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
|
|
252
|
-
*/
|
|
253
|
-
allow_redisplay?: CollectConfig.AllowRedisplay;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Enables cancel button on transaction screens.
|
|
257
|
-
*/
|
|
258
|
-
enable_customer_cancellation?: boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Override showing a tipping selection screen on this transaction.
|
|
262
|
-
*/
|
|
263
|
-
skip_tipping?: boolean;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Tipping configuration for this transaction.
|
|
267
|
-
*/
|
|
268
|
-
tipping?: CollectConfig.Tipping;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
namespace CollectConfig {
|
|
272
|
-
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
|
273
|
-
|
|
274
|
-
interface Tipping {
|
|
275
|
-
/**
|
|
276
|
-
* 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).
|
|
277
|
-
*/
|
|
278
|
-
amount_eligible?: number;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
interface ReaderConfirmPaymentIntentParams {
|
|
284
|
-
/**
|
|
285
|
-
* PaymentIntent ID
|
|
286
|
-
*/
|
|
287
|
-
payment_intent: string;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Specifies which fields in the response should be expanded.
|
|
291
|
-
*/
|
|
292
|
-
expand?: Array<string>;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
107
|
interface ReaderProcessPaymentIntentParams {
|
|
296
108
|
/**
|
|
297
109
|
* PaymentIntent ID
|
|
@@ -566,33 +378,6 @@ declare module 'stripe' {
|
|
|
566
378
|
options?: RequestOptions
|
|
567
379
|
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
568
380
|
|
|
569
|
-
/**
|
|
570
|
-
* Initiates an input collection flow on a Reader.
|
|
571
|
-
*/
|
|
572
|
-
collectInputs(
|
|
573
|
-
id: string,
|
|
574
|
-
params: ReaderCollectInputsParams,
|
|
575
|
-
options?: RequestOptions
|
|
576
|
-
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
|
580
|
-
*/
|
|
581
|
-
collectPaymentMethod(
|
|
582
|
-
id: string,
|
|
583
|
-
params: ReaderCollectPaymentMethodParams,
|
|
584
|
-
options?: RequestOptions
|
|
585
|
-
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Finalizes a payment on a Reader.
|
|
589
|
-
*/
|
|
590
|
-
confirmPaymentIntent(
|
|
591
|
-
id: string,
|
|
592
|
-
params: ReaderConfirmPaymentIntentParams,
|
|
593
|
-
options?: RequestOptions
|
|
594
|
-
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
595
|
-
|
|
596
381
|
/**
|
|
597
382
|
* Initiates a payment flow on a Reader.
|
|
598
383
|
*/
|