stripe 16.4.0-beta.1 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +145 -767
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +1 -1
- package/cjs/resources/Checkout/Sessions.js +4 -0
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -13
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/PaymentIntents.js +0 -4
- 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 -38
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +2 -2
- package/esm/resources/Checkout/Sessions.js +4 -0
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -13
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/PaymentIntents.js +0 -4
- 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 -24
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +30 -15
- package/types/AccountSessionsResource.d.ts +0 -163
- package/types/Accounts.d.ts +4 -91
- package/types/AccountsResource.d.ts +26 -230
- package/types/Charges.d.ts +38 -69
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +1 -28
- package/types/Checkout/SessionsResource.d.ts +22 -15
- package/types/ConfirmationTokens.d.ts +23 -62
- 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 -2
- package/types/Disputes.d.ts +9 -168
- package/types/DisputesResource.d.ts +3 -120
- package/types/EventTypes.d.ts +47 -422
- package/types/Events.d.ts +3 -83
- package/types/EventsResource.d.ts +1 -1
- 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/Identity/VerificationReports.d.ts +1 -1
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +0 -22
- package/types/Invoices.d.ts +2 -116
- package/types/InvoicesResource.d.ts +1784 -5359
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +2 -470
- package/types/PaymentIntentsResource.d.ts +3377 -6725
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +18 -62
- package/types/PaymentMethodsResource.d.ts +0 -110
- 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 -578
- package/types/QuotesResource.d.ts +266 -3175
- package/types/RefundsResource.d.ts +1 -1
- package/types/SetupAttempts.d.ts +0 -9
- package/types/SetupIntents.d.ts +1 -110
- package/types/SetupIntentsResource.d.ts +3 -498
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -164
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +3 -47
- package/types/SubscriptionsResource.d.ts +6 -349
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/CalculationsResource.d.ts +1 -3
- package/types/Terminal/Readers.d.ts +2 -279
- package/types/Terminal/ReadersResource.d.ts +1 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +7 -7
- 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 +6 -50
- package/types/index.d.ts +0 -64
- package/types/lib.d.ts +0 -12
- 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/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Forms.js +0 -20
- 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/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -110
- package/types/AccountNoticesResource.d.ts +0 -98
- 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 -91
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1057
- package/types/OrdersResource.d.ts +0 -2711
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1530
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
|
@@ -122,7 +122,7 @@ declare module 'stripe' {
|
|
|
122
122
|
last_payment_error: PaymentIntent.LastPaymentError | null;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
|
|
126
126
|
*/
|
|
127
127
|
latest_charge: string | Stripe.Charge | null;
|
|
128
128
|
|
|
@@ -146,8 +146,6 @@ declare module 'stripe' {
|
|
|
146
146
|
*/
|
|
147
147
|
on_behalf_of: string | Stripe.Account | null;
|
|
148
148
|
|
|
149
|
-
payment_details?: PaymentIntent.PaymentDetails;
|
|
150
|
-
|
|
151
149
|
/**
|
|
152
150
|
* ID of the payment method used in this PaymentIntent.
|
|
153
151
|
*/
|
|
@@ -183,11 +181,6 @@ declare module 'stripe' {
|
|
|
183
181
|
*/
|
|
184
182
|
review: string | Stripe.Review | null;
|
|
185
183
|
|
|
186
|
-
/**
|
|
187
|
-
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
188
|
-
*/
|
|
189
|
-
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
190
|
-
|
|
191
184
|
/**
|
|
192
185
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
193
186
|
*
|
|
@@ -429,15 +422,11 @@ declare module 'stripe' {
|
|
|
429
422
|
| 'email_invalid'
|
|
430
423
|
| 'expired_card'
|
|
431
424
|
| 'financial_connections_account_inactive'
|
|
432
|
-
| 'financial_connections_institution_unavailable'
|
|
433
425
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
434
426
|
| 'forwarding_api_inactive'
|
|
435
427
|
| 'forwarding_api_invalid_parameter'
|
|
436
428
|
| 'forwarding_api_upstream_connection_error'
|
|
437
429
|
| 'forwarding_api_upstream_connection_timeout'
|
|
438
|
-
| 'gift_card_balance_insufficient'
|
|
439
|
-
| 'gift_card_code_exists'
|
|
440
|
-
| 'gift_card_inactive'
|
|
441
430
|
| 'idempotency_key_in_use'
|
|
442
431
|
| 'incorrect_address'
|
|
443
432
|
| 'incorrect_cvc'
|
|
@@ -526,7 +515,6 @@ declare module 'stripe' {
|
|
|
526
515
|
| 'return_intent_already_processed'
|
|
527
516
|
| 'routing_number_invalid'
|
|
528
517
|
| 'secret_key_required'
|
|
529
|
-
| 'sensitive_data_access_expired'
|
|
530
518
|
| 'sepa_unsupported_account'
|
|
531
519
|
| 'setup_attempt_failed'
|
|
532
520
|
| 'setup_intent_authentication_failure'
|
|
@@ -1270,289 +1258,6 @@ declare module 'stripe' {
|
|
|
1270
1258
|
}
|
|
1271
1259
|
}
|
|
1272
1260
|
|
|
1273
|
-
interface PaymentDetails {
|
|
1274
|
-
car_rental?: PaymentDetails.CarRental;
|
|
1275
|
-
|
|
1276
|
-
event_details?: PaymentDetails.EventDetails;
|
|
1277
|
-
|
|
1278
|
-
subscription?: PaymentDetails.Subscription;
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
namespace PaymentDetails {
|
|
1282
|
-
interface CarRental {
|
|
1283
|
-
affiliate?: CarRental.Affiliate;
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* The booking number associated with the car rental.
|
|
1287
|
-
*/
|
|
1288
|
-
booking_number: string;
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
* Class code of the car.
|
|
1292
|
-
*/
|
|
1293
|
-
car_class_code?: string;
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* Make of the car.
|
|
1297
|
-
*/
|
|
1298
|
-
car_make?: string;
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* Model of the car.
|
|
1302
|
-
*/
|
|
1303
|
-
car_model?: string;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* The name of the rental car company.
|
|
1307
|
-
*/
|
|
1308
|
-
company?: string;
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* The customer service phone number of the car rental company.
|
|
1312
|
-
*/
|
|
1313
|
-
customer_service_phone_number?: string;
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* Number of days the car is being rented.
|
|
1317
|
-
*/
|
|
1318
|
-
days_rented: number;
|
|
1319
|
-
|
|
1320
|
-
delivery?: CarRental.Delivery;
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* The details of the drivers associated with the trip.
|
|
1324
|
-
*/
|
|
1325
|
-
drivers?: Array<CarRental.Driver>;
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* List of additional charges being billed.
|
|
1329
|
-
*/
|
|
1330
|
-
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Indicates if the customer did not keep nor cancel their booking.
|
|
1334
|
-
*/
|
|
1335
|
-
no_show?: boolean;
|
|
1336
|
-
|
|
1337
|
-
pickup_address?: Stripe.Address;
|
|
1338
|
-
|
|
1339
|
-
/**
|
|
1340
|
-
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1341
|
-
*/
|
|
1342
|
-
pickup_at: number;
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* Rental rate.
|
|
1346
|
-
*/
|
|
1347
|
-
rate_amount?: number;
|
|
1348
|
-
|
|
1349
|
-
/**
|
|
1350
|
-
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1351
|
-
*/
|
|
1352
|
-
rate_interval?: CarRental.RateInterval;
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* The full name of the person or entity renting the car.
|
|
1356
|
-
*/
|
|
1357
|
-
renter_name?: string;
|
|
1358
|
-
|
|
1359
|
-
return_address?: Stripe.Address;
|
|
1360
|
-
|
|
1361
|
-
/**
|
|
1362
|
-
* Car return time. Measured in seconds since the Unix epoch.
|
|
1363
|
-
*/
|
|
1364
|
-
return_at: number;
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1368
|
-
*/
|
|
1369
|
-
tax_exempt?: boolean;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
namespace CarRental {
|
|
1373
|
-
interface Affiliate {
|
|
1374
|
-
/**
|
|
1375
|
-
* The name of the affiliate that originated the purchase.
|
|
1376
|
-
*/
|
|
1377
|
-
name?: string;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
interface Delivery {
|
|
1381
|
-
/**
|
|
1382
|
-
* The delivery method for the payment
|
|
1383
|
-
*/
|
|
1384
|
-
mode?: Delivery.Mode;
|
|
1385
|
-
|
|
1386
|
-
recipient?: Delivery.Recipient;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
namespace Delivery {
|
|
1390
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1391
|
-
|
|
1392
|
-
interface Recipient {
|
|
1393
|
-
/**
|
|
1394
|
-
* The email of the recipient the ticket is delivered to.
|
|
1395
|
-
*/
|
|
1396
|
-
email?: string;
|
|
1397
|
-
|
|
1398
|
-
/**
|
|
1399
|
-
* The name of the recipient the ticket is delivered to.
|
|
1400
|
-
*/
|
|
1401
|
-
name?: string;
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1405
|
-
*/
|
|
1406
|
-
phone?: string;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
interface Driver {
|
|
1411
|
-
/**
|
|
1412
|
-
* Full name of the driver on the reservation.
|
|
1413
|
-
*/
|
|
1414
|
-
name?: string;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
type ExtraCharge =
|
|
1418
|
-
| 'extra_mileage'
|
|
1419
|
-
| 'gas'
|
|
1420
|
-
| 'late_return'
|
|
1421
|
-
| 'one_way_service'
|
|
1422
|
-
| 'parking_violation';
|
|
1423
|
-
|
|
1424
|
-
type RateInterval = 'day' | 'month' | 'week';
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
interface EventDetails {
|
|
1428
|
-
/**
|
|
1429
|
-
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1430
|
-
*/
|
|
1431
|
-
access_controlled_venue?: boolean;
|
|
1432
|
-
|
|
1433
|
-
address?: Stripe.Address;
|
|
1434
|
-
|
|
1435
|
-
affiliate?: EventDetails.Affiliate;
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
* The name of the company
|
|
1439
|
-
*/
|
|
1440
|
-
company?: string;
|
|
1441
|
-
|
|
1442
|
-
delivery?: EventDetails.Delivery;
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* Event end time. Measured in seconds since the Unix epoch.
|
|
1446
|
-
*/
|
|
1447
|
-
ends_at?: number;
|
|
1448
|
-
|
|
1449
|
-
/**
|
|
1450
|
-
* Type of the event entertainment (concert, sports event etc)
|
|
1451
|
-
*/
|
|
1452
|
-
genre?: string;
|
|
1453
|
-
|
|
1454
|
-
/**
|
|
1455
|
-
* The name of the event.
|
|
1456
|
-
*/
|
|
1457
|
-
name?: string;
|
|
1458
|
-
|
|
1459
|
-
/**
|
|
1460
|
-
* Event start time. Measured in seconds since the Unix epoch.
|
|
1461
|
-
*/
|
|
1462
|
-
starts_at?: number;
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
namespace EventDetails {
|
|
1466
|
-
interface Affiliate {
|
|
1467
|
-
/**
|
|
1468
|
-
* The name of the affiliate that originated the purchase.
|
|
1469
|
-
*/
|
|
1470
|
-
name?: string;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
interface Delivery {
|
|
1474
|
-
/**
|
|
1475
|
-
* The delivery method for the payment
|
|
1476
|
-
*/
|
|
1477
|
-
mode?: Delivery.Mode;
|
|
1478
|
-
|
|
1479
|
-
recipient?: Delivery.Recipient;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
namespace Delivery {
|
|
1483
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1484
|
-
|
|
1485
|
-
interface Recipient {
|
|
1486
|
-
/**
|
|
1487
|
-
* The email of the recipient the ticket is delivered to.
|
|
1488
|
-
*/
|
|
1489
|
-
email?: string;
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
* The name of the recipient the ticket is delivered to.
|
|
1493
|
-
*/
|
|
1494
|
-
name?: string;
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1498
|
-
*/
|
|
1499
|
-
phone?: string;
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
interface Subscription {
|
|
1505
|
-
affiliate?: Subscription.Affiliate;
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* Info whether the subscription will be auto renewed upon expiry.
|
|
1509
|
-
*/
|
|
1510
|
-
auto_renewal?: boolean;
|
|
1511
|
-
|
|
1512
|
-
billing_interval?: Subscription.BillingInterval;
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1516
|
-
*/
|
|
1517
|
-
ends_at?: number;
|
|
1518
|
-
|
|
1519
|
-
/**
|
|
1520
|
-
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1521
|
-
*/
|
|
1522
|
-
name?: string;
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1526
|
-
*/
|
|
1527
|
-
starts_at?: number;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
namespace Subscription {
|
|
1531
|
-
interface Affiliate {
|
|
1532
|
-
/**
|
|
1533
|
-
* The name of the affiliate that originated the purchase.
|
|
1534
|
-
*/
|
|
1535
|
-
name?: string;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
interface BillingInterval {
|
|
1539
|
-
/**
|
|
1540
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1541
|
-
*/
|
|
1542
|
-
count?: number;
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1546
|
-
*/
|
|
1547
|
-
interval?: BillingInterval.Interval;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
namespace BillingInterval {
|
|
1551
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
1261
|
interface PaymentMethodConfigurationDetails {
|
|
1557
1262
|
/**
|
|
1558
1263
|
* ID of the payment method configuration used.
|
|
@@ -1624,14 +1329,10 @@ declare module 'stripe' {
|
|
|
1624
1329
|
|
|
1625
1330
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1626
1331
|
|
|
1627
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1628
|
-
|
|
1629
1332
|
pix?: PaymentMethodOptions.Pix;
|
|
1630
1333
|
|
|
1631
1334
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1632
1335
|
|
|
1633
|
-
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1634
|
-
|
|
1635
1336
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1636
1337
|
|
|
1637
1338
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
@@ -1886,11 +1587,6 @@ declare module 'stripe' {
|
|
|
1886
1587
|
*/
|
|
1887
1588
|
network: Card.Network | null;
|
|
1888
1589
|
|
|
1889
|
-
/**
|
|
1890
|
-
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
1891
|
-
*/
|
|
1892
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1893
|
-
|
|
1894
1590
|
/**
|
|
1895
1591
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1896
1592
|
*/
|
|
@@ -1939,8 +1635,6 @@ declare module 'stripe' {
|
|
|
1939
1635
|
* Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1940
1636
|
*/
|
|
1941
1637
|
statement_descriptor_suffix_kanji?: string;
|
|
1942
|
-
|
|
1943
|
-
statement_details?: Card.StatementDetails;
|
|
1944
1638
|
}
|
|
1945
1639
|
|
|
1946
1640
|
namespace Card {
|
|
@@ -2065,8 +1759,6 @@ declare module 'stripe' {
|
|
|
2065
1759
|
| 'unknown'
|
|
2066
1760
|
| 'visa';
|
|
2067
1761
|
|
|
2068
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2069
|
-
|
|
2070
1762
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2071
1763
|
|
|
2072
1764
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2078,49 +1770,6 @@ declare module 'stripe' {
|
|
|
2078
1770
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2079
1771
|
|
|
2080
1772
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2081
|
-
|
|
2082
|
-
interface StatementDetails {
|
|
2083
|
-
address?: StatementDetails.Address;
|
|
2084
|
-
|
|
2085
|
-
/**
|
|
2086
|
-
* Phone number
|
|
2087
|
-
*/
|
|
2088
|
-
phone?: string;
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
namespace StatementDetails {
|
|
2092
|
-
interface Address {
|
|
2093
|
-
/**
|
|
2094
|
-
* City, district, suburb, town, or village.
|
|
2095
|
-
*/
|
|
2096
|
-
city?: string;
|
|
2097
|
-
|
|
2098
|
-
/**
|
|
2099
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2100
|
-
*/
|
|
2101
|
-
country?: string;
|
|
2102
|
-
|
|
2103
|
-
/**
|
|
2104
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2105
|
-
*/
|
|
2106
|
-
line1?: string;
|
|
2107
|
-
|
|
2108
|
-
/**
|
|
2109
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2110
|
-
*/
|
|
2111
|
-
line2?: string;
|
|
2112
|
-
|
|
2113
|
-
/**
|
|
2114
|
-
* ZIP or postal code.
|
|
2115
|
-
*/
|
|
2116
|
-
postal_code?: string;
|
|
2117
|
-
|
|
2118
|
-
/**
|
|
2119
|
-
* State, county, province, or region.
|
|
2120
|
-
*/
|
|
2121
|
-
state?: string;
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
1773
|
}
|
|
2125
1774
|
|
|
2126
1775
|
interface CardPresent {
|
|
@@ -2455,11 +2104,6 @@ declare module 'stripe' {
|
|
|
2455
2104
|
*/
|
|
2456
2105
|
reference: string | null;
|
|
2457
2106
|
|
|
2458
|
-
/**
|
|
2459
|
-
* A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2460
|
-
*/
|
|
2461
|
-
reference_id?: string | null;
|
|
2462
|
-
|
|
2463
2107
|
/**
|
|
2464
2108
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2465
2109
|
*
|
|
@@ -2468,93 +2112,12 @@ declare module 'stripe' {
|
|
|
2468
2112
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
2469
2113
|
*/
|
|
2470
2114
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2471
|
-
|
|
2472
|
-
/**
|
|
2473
|
-
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
2474
|
-
*/
|
|
2475
|
-
subsellers?: Array<string>;
|
|
2476
2115
|
}
|
|
2477
2116
|
|
|
2478
2117
|
namespace Paypal {
|
|
2479
2118
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2480
2119
|
}
|
|
2481
2120
|
|
|
2482
|
-
interface Payto {
|
|
2483
|
-
mandate_options?: Payto.MandateOptions;
|
|
2484
|
-
|
|
2485
|
-
/**
|
|
2486
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2487
|
-
*
|
|
2488
|
-
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
2489
|
-
*
|
|
2490
|
-
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
2491
|
-
*/
|
|
2492
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
namespace Payto {
|
|
2496
|
-
interface MandateOptions {
|
|
2497
|
-
/**
|
|
2498
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2499
|
-
*/
|
|
2500
|
-
amount: number | null;
|
|
2501
|
-
|
|
2502
|
-
/**
|
|
2503
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
2504
|
-
*/
|
|
2505
|
-
amount_type: MandateOptions.AmountType | null;
|
|
2506
|
-
|
|
2507
|
-
/**
|
|
2508
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2509
|
-
*/
|
|
2510
|
-
end_date: string | null;
|
|
2511
|
-
|
|
2512
|
-
/**
|
|
2513
|
-
* The periodicity at which payments will be collected.
|
|
2514
|
-
*/
|
|
2515
|
-
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
2519
|
-
*/
|
|
2520
|
-
payments_per_period: number | null;
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
2524
|
-
*/
|
|
2525
|
-
purpose: MandateOptions.Purpose | null;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
namespace MandateOptions {
|
|
2529
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2530
|
-
|
|
2531
|
-
type PaymentSchedule =
|
|
2532
|
-
| 'adhoc'
|
|
2533
|
-
| 'annual'
|
|
2534
|
-
| 'daily'
|
|
2535
|
-
| 'fortnightly'
|
|
2536
|
-
| 'monthly'
|
|
2537
|
-
| 'quarterly'
|
|
2538
|
-
| 'semi_annual'
|
|
2539
|
-
| 'weekly';
|
|
2540
|
-
|
|
2541
|
-
type Purpose =
|
|
2542
|
-
| 'dependant_support'
|
|
2543
|
-
| 'government'
|
|
2544
|
-
| 'loan'
|
|
2545
|
-
| 'mortgage'
|
|
2546
|
-
| 'other'
|
|
2547
|
-
| 'pension'
|
|
2548
|
-
| 'personal'
|
|
2549
|
-
| 'retail'
|
|
2550
|
-
| 'salary'
|
|
2551
|
-
| 'tax'
|
|
2552
|
-
| 'utility';
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
2121
|
interface Pix {
|
|
2559
2122
|
/**
|
|
2560
2123
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
@@ -2587,13 +2150,6 @@ declare module 'stripe' {
|
|
|
2587
2150
|
setup_future_usage?: 'none';
|
|
2588
2151
|
}
|
|
2589
2152
|
|
|
2590
|
-
interface Rechnung {
|
|
2591
|
-
/**
|
|
2592
|
-
* A unique identifier that correlates each transaction with the collected risk data.
|
|
2593
|
-
*/
|
|
2594
|
-
risk_correlation_id: string | null;
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
2153
|
interface RevolutPay {
|
|
2598
2154
|
/**
|
|
2599
2155
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2718,8 +2274,6 @@ declare module 'stripe' {
|
|
|
2718
2274
|
interface FinancialConnections {
|
|
2719
2275
|
filters?: FinancialConnections.Filters;
|
|
2720
2276
|
|
|
2721
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
2722
|
-
|
|
2723
2277
|
/**
|
|
2724
2278
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2725
2279
|
*/
|
|
@@ -2742,39 +2296,19 @@ declare module 'stripe' {
|
|
|
2742
2296
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2743
2297
|
*/
|
|
2744
2298
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2745
|
-
|
|
2746
|
-
/**
|
|
2747
|
-
* The institution to use to filter for possible accounts to link.
|
|
2748
|
-
*/
|
|
2749
|
-
institution?: string;
|
|
2750
2299
|
}
|
|
2751
2300
|
|
|
2752
2301
|
namespace Filters {
|
|
2753
2302
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2754
2303
|
}
|
|
2755
2304
|
|
|
2756
|
-
interface ManualEntry {
|
|
2757
|
-
/**
|
|
2758
|
-
* Settings for configuring manual entry of account details.
|
|
2759
|
-
*/
|
|
2760
|
-
mode?: ManualEntry.Mode;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
namespace ManualEntry {
|
|
2764
|
-
type Mode = 'automatic' | 'custom';
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
2305
|
type Permission =
|
|
2768
2306
|
| 'balances'
|
|
2769
2307
|
| 'ownership'
|
|
2770
2308
|
| 'payment_method'
|
|
2771
2309
|
| 'transactions';
|
|
2772
2310
|
|
|
2773
|
-
type Prefetch =
|
|
2774
|
-
| 'balances'
|
|
2775
|
-
| 'inferred_balances'
|
|
2776
|
-
| 'ownership'
|
|
2777
|
-
| 'transactions';
|
|
2311
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2778
2312
|
}
|
|
2779
2313
|
|
|
2780
2314
|
interface MandateOptions {
|
|
@@ -2857,8 +2391,6 @@ declare module 'stripe' {
|
|
|
2857
2391
|
}
|
|
2858
2392
|
}
|
|
2859
2393
|
|
|
2860
|
-
type SecretKeyConfirmation = 'optional' | 'required';
|
|
2861
|
-
|
|
2862
2394
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2863
2395
|
|
|
2864
2396
|
interface Shipping {
|