stripe 16.6.0 → 16.7.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.
- package/CHANGELOG.md +787 -116
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +66 -5
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -1
- package/cjs/multipart.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Alerts.js +27 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/QuotePhases.js +22 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +6 -3
- package/cjs/utils.js +30 -3
- package/esm/RequestSender.js +67 -6
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -0
- package/esm/multipart.js +2 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Alerts.js +24 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/QuotePhases.js +19 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +28 -0
- package/esm/stripe.core.js +6 -3
- package/esm/utils.js +27 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +15 -0
- package/types/AccountSessionsResource.d.ts +215 -0
- package/types/Accounts.d.ts +106 -1
- package/types/AccountsResource.d.ts +246 -0
- package/types/Billing/AlertsResource.d.ts +176 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +67 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +28 -1
- package/types/Checkout/SessionsResource.d.ts +15 -1
- package/types/ConfirmationTokens.d.ts +62 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +2 -0
- package/types/Disputes.d.ts +158 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +460 -0
- package/types/Events.d.ts +85 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +22 -0
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +116 -1
- package/types/InvoicesResource.d.ts +5455 -1797
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1083 -0
- package/types/OrdersResource.d.ts +2763 -0
- package/types/PaymentIntents.d.ts +492 -1
- package/types/PaymentIntentsResource.d.ts +6992 -3461
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +62 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePhases.d.ts +198 -0
- package/types/QuotePhasesResource.d.ts +67 -0
- package/types/QuotePreviewInvoices.d.ts +1529 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +596 -1
- package/types/QuotesResource.d.ts +3174 -265
- package/types/SetupAttempts.d.ts +9 -0
- package/types/SetupIntents.d.ts +110 -1
- package/types/SetupIntentsResource.d.ts +498 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +208 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +54 -0
- package/types/index.d.ts +69 -0
- package/types/lib.d.ts +12 -0
|
@@ -53,6 +53,8 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
application_fee_amount: number | null;
|
|
55
55
|
|
|
56
|
+
async_workflows?: PaymentIntent.AsyncWorkflows;
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
58
60
|
*/
|
|
@@ -146,6 +148,8 @@ declare module 'stripe' {
|
|
|
146
148
|
*/
|
|
147
149
|
on_behalf_of: string | Stripe.Account | null;
|
|
148
150
|
|
|
151
|
+
payment_details?: PaymentIntent.PaymentDetails;
|
|
152
|
+
|
|
149
153
|
/**
|
|
150
154
|
* ID of the payment method used in this PaymentIntent.
|
|
151
155
|
*/
|
|
@@ -181,6 +185,11 @@ declare module 'stripe' {
|
|
|
181
185
|
*/
|
|
182
186
|
review: string | Stripe.Review | null;
|
|
183
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
190
|
+
*/
|
|
191
|
+
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
192
|
+
|
|
184
193
|
/**
|
|
185
194
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
186
195
|
*
|
|
@@ -246,6 +255,25 @@ declare module 'stripe' {
|
|
|
246
255
|
}
|
|
247
256
|
}
|
|
248
257
|
|
|
258
|
+
interface AsyncWorkflows {
|
|
259
|
+
inputs?: AsyncWorkflows.Inputs;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
namespace AsyncWorkflows {
|
|
263
|
+
interface Inputs {
|
|
264
|
+
tax?: Inputs.Tax;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
namespace Inputs {
|
|
268
|
+
interface Tax {
|
|
269
|
+
/**
|
|
270
|
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
271
|
+
*/
|
|
272
|
+
calculation: string;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
249
277
|
interface AutomaticPaymentMethods {
|
|
250
278
|
/**
|
|
251
279
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
@@ -425,11 +453,15 @@ declare module 'stripe' {
|
|
|
425
453
|
| 'email_invalid'
|
|
426
454
|
| 'expired_card'
|
|
427
455
|
| 'financial_connections_account_inactive'
|
|
456
|
+
| 'financial_connections_institution_unavailable'
|
|
428
457
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
429
458
|
| 'forwarding_api_inactive'
|
|
430
459
|
| 'forwarding_api_invalid_parameter'
|
|
431
460
|
| 'forwarding_api_upstream_connection_error'
|
|
432
461
|
| 'forwarding_api_upstream_connection_timeout'
|
|
462
|
+
| 'gift_card_balance_insufficient'
|
|
463
|
+
| 'gift_card_code_exists'
|
|
464
|
+
| 'gift_card_inactive'
|
|
433
465
|
| 'idempotency_key_in_use'
|
|
434
466
|
| 'incorrect_address'
|
|
435
467
|
| 'incorrect_cvc'
|
|
@@ -518,6 +550,7 @@ declare module 'stripe' {
|
|
|
518
550
|
| 'return_intent_already_processed'
|
|
519
551
|
| 'routing_number_invalid'
|
|
520
552
|
| 'secret_key_required'
|
|
553
|
+
| 'sensitive_data_access_expired'
|
|
521
554
|
| 'sepa_unsupported_account'
|
|
522
555
|
| 'setup_attempt_failed'
|
|
523
556
|
| 'setup_intent_authentication_failure'
|
|
@@ -1261,6 +1294,289 @@ declare module 'stripe' {
|
|
|
1261
1294
|
}
|
|
1262
1295
|
}
|
|
1263
1296
|
|
|
1297
|
+
interface PaymentDetails {
|
|
1298
|
+
car_rental?: PaymentDetails.CarRental;
|
|
1299
|
+
|
|
1300
|
+
event_details?: PaymentDetails.EventDetails;
|
|
1301
|
+
|
|
1302
|
+
subscription?: PaymentDetails.Subscription;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
namespace PaymentDetails {
|
|
1306
|
+
interface CarRental {
|
|
1307
|
+
affiliate?: CarRental.Affiliate;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* The booking number associated with the car rental.
|
|
1311
|
+
*/
|
|
1312
|
+
booking_number: string;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Class code of the car.
|
|
1316
|
+
*/
|
|
1317
|
+
car_class_code?: string;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Make of the car.
|
|
1321
|
+
*/
|
|
1322
|
+
car_make?: string;
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Model of the car.
|
|
1326
|
+
*/
|
|
1327
|
+
car_model?: string;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* The name of the rental car company.
|
|
1331
|
+
*/
|
|
1332
|
+
company?: string;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* The customer service phone number of the car rental company.
|
|
1336
|
+
*/
|
|
1337
|
+
customer_service_phone_number?: string;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Number of days the car is being rented.
|
|
1341
|
+
*/
|
|
1342
|
+
days_rented: number;
|
|
1343
|
+
|
|
1344
|
+
delivery?: CarRental.Delivery;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* The details of the drivers associated with the trip.
|
|
1348
|
+
*/
|
|
1349
|
+
drivers?: Array<CarRental.Driver>;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* List of additional charges being billed.
|
|
1353
|
+
*/
|
|
1354
|
+
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Indicates if the customer did not keep nor cancel their booking.
|
|
1358
|
+
*/
|
|
1359
|
+
no_show?: boolean;
|
|
1360
|
+
|
|
1361
|
+
pickup_address?: Stripe.Address;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1365
|
+
*/
|
|
1366
|
+
pickup_at: number;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Rental rate.
|
|
1370
|
+
*/
|
|
1371
|
+
rate_amount?: number;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1375
|
+
*/
|
|
1376
|
+
rate_interval?: CarRental.RateInterval;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* The full name of the person or entity renting the car.
|
|
1380
|
+
*/
|
|
1381
|
+
renter_name?: string;
|
|
1382
|
+
|
|
1383
|
+
return_address?: Stripe.Address;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Car return time. Measured in seconds since the Unix epoch.
|
|
1387
|
+
*/
|
|
1388
|
+
return_at: number;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1392
|
+
*/
|
|
1393
|
+
tax_exempt?: boolean;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
namespace CarRental {
|
|
1397
|
+
interface Affiliate {
|
|
1398
|
+
/**
|
|
1399
|
+
* The name of the affiliate that originated the purchase.
|
|
1400
|
+
*/
|
|
1401
|
+
name?: string;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
interface Delivery {
|
|
1405
|
+
/**
|
|
1406
|
+
* The delivery method for the payment
|
|
1407
|
+
*/
|
|
1408
|
+
mode?: Delivery.Mode;
|
|
1409
|
+
|
|
1410
|
+
recipient?: Delivery.Recipient;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
namespace Delivery {
|
|
1414
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1415
|
+
|
|
1416
|
+
interface Recipient {
|
|
1417
|
+
/**
|
|
1418
|
+
* The email of the recipient the ticket is delivered to.
|
|
1419
|
+
*/
|
|
1420
|
+
email?: string;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* The name of the recipient the ticket is delivered to.
|
|
1424
|
+
*/
|
|
1425
|
+
name?: string;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1429
|
+
*/
|
|
1430
|
+
phone?: string;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
interface Driver {
|
|
1435
|
+
/**
|
|
1436
|
+
* Full name of the driver on the reservation.
|
|
1437
|
+
*/
|
|
1438
|
+
name?: string;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
type ExtraCharge =
|
|
1442
|
+
| 'extra_mileage'
|
|
1443
|
+
| 'gas'
|
|
1444
|
+
| 'late_return'
|
|
1445
|
+
| 'one_way_service'
|
|
1446
|
+
| 'parking_violation';
|
|
1447
|
+
|
|
1448
|
+
type RateInterval = 'day' | 'month' | 'week';
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
interface EventDetails {
|
|
1452
|
+
/**
|
|
1453
|
+
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1454
|
+
*/
|
|
1455
|
+
access_controlled_venue?: boolean;
|
|
1456
|
+
|
|
1457
|
+
address?: Stripe.Address;
|
|
1458
|
+
|
|
1459
|
+
affiliate?: EventDetails.Affiliate;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* The name of the company
|
|
1463
|
+
*/
|
|
1464
|
+
company?: string;
|
|
1465
|
+
|
|
1466
|
+
delivery?: EventDetails.Delivery;
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Event end time. Measured in seconds since the Unix epoch.
|
|
1470
|
+
*/
|
|
1471
|
+
ends_at?: number;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Type of the event entertainment (concert, sports event etc)
|
|
1475
|
+
*/
|
|
1476
|
+
genre?: string;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* The name of the event.
|
|
1480
|
+
*/
|
|
1481
|
+
name?: string;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Event start time. Measured in seconds since the Unix epoch.
|
|
1485
|
+
*/
|
|
1486
|
+
starts_at?: number;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
namespace EventDetails {
|
|
1490
|
+
interface Affiliate {
|
|
1491
|
+
/**
|
|
1492
|
+
* The name of the affiliate that originated the purchase.
|
|
1493
|
+
*/
|
|
1494
|
+
name?: string;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
interface Delivery {
|
|
1498
|
+
/**
|
|
1499
|
+
* The delivery method for the payment
|
|
1500
|
+
*/
|
|
1501
|
+
mode?: Delivery.Mode;
|
|
1502
|
+
|
|
1503
|
+
recipient?: Delivery.Recipient;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
namespace Delivery {
|
|
1507
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1508
|
+
|
|
1509
|
+
interface Recipient {
|
|
1510
|
+
/**
|
|
1511
|
+
* The email of the recipient the ticket is delivered to.
|
|
1512
|
+
*/
|
|
1513
|
+
email?: string;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* The name of the recipient the ticket is delivered to.
|
|
1517
|
+
*/
|
|
1518
|
+
name?: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1522
|
+
*/
|
|
1523
|
+
phone?: string;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
interface Subscription {
|
|
1529
|
+
affiliate?: Subscription.Affiliate;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Info whether the subscription will be auto renewed upon expiry.
|
|
1533
|
+
*/
|
|
1534
|
+
auto_renewal?: boolean;
|
|
1535
|
+
|
|
1536
|
+
billing_interval?: Subscription.BillingInterval;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1540
|
+
*/
|
|
1541
|
+
ends_at?: number;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1545
|
+
*/
|
|
1546
|
+
name?: string;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1550
|
+
*/
|
|
1551
|
+
starts_at?: number;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
namespace Subscription {
|
|
1555
|
+
interface Affiliate {
|
|
1556
|
+
/**
|
|
1557
|
+
* The name of the affiliate that originated the purchase.
|
|
1558
|
+
*/
|
|
1559
|
+
name?: string;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
interface BillingInterval {
|
|
1563
|
+
/**
|
|
1564
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1565
|
+
*/
|
|
1566
|
+
count?: number;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1570
|
+
*/
|
|
1571
|
+
interval?: BillingInterval.Interval;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
namespace BillingInterval {
|
|
1575
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1264
1580
|
interface PaymentMethodConfigurationDetails {
|
|
1265
1581
|
/**
|
|
1266
1582
|
* ID of the payment method configuration used.
|
|
@@ -1332,10 +1648,14 @@ declare module 'stripe' {
|
|
|
1332
1648
|
|
|
1333
1649
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1334
1650
|
|
|
1651
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1652
|
+
|
|
1335
1653
|
pix?: PaymentMethodOptions.Pix;
|
|
1336
1654
|
|
|
1337
1655
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1338
1656
|
|
|
1657
|
+
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1658
|
+
|
|
1339
1659
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1340
1660
|
|
|
1341
1661
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
@@ -1610,6 +1930,11 @@ declare module 'stripe' {
|
|
|
1610
1930
|
*/
|
|
1611
1931
|
network: Card.Network | null;
|
|
1612
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
1935
|
+
*/
|
|
1936
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1937
|
+
|
|
1613
1938
|
/**
|
|
1614
1939
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1615
1940
|
*/
|
|
@@ -1660,6 +1985,8 @@ declare module 'stripe' {
|
|
|
1660
1985
|
* 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.
|
|
1661
1986
|
*/
|
|
1662
1987
|
statement_descriptor_suffix_kanji?: string;
|
|
1988
|
+
|
|
1989
|
+
statement_details?: Card.StatementDetails;
|
|
1663
1990
|
}
|
|
1664
1991
|
|
|
1665
1992
|
namespace Card {
|
|
@@ -1784,6 +2111,8 @@ declare module 'stripe' {
|
|
|
1784
2111
|
| 'unknown'
|
|
1785
2112
|
| 'visa';
|
|
1786
2113
|
|
|
2114
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2115
|
+
|
|
1787
2116
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1788
2117
|
|
|
1789
2118
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1795,6 +2124,49 @@ declare module 'stripe' {
|
|
|
1795
2124
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1796
2125
|
|
|
1797
2126
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2127
|
+
|
|
2128
|
+
interface StatementDetails {
|
|
2129
|
+
address?: StatementDetails.Address;
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* Phone number
|
|
2133
|
+
*/
|
|
2134
|
+
phone?: string;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
namespace StatementDetails {
|
|
2138
|
+
interface Address {
|
|
2139
|
+
/**
|
|
2140
|
+
* City, district, suburb, town, or village.
|
|
2141
|
+
*/
|
|
2142
|
+
city?: string;
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2146
|
+
*/
|
|
2147
|
+
country?: string;
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2151
|
+
*/
|
|
2152
|
+
line1?: string;
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2156
|
+
*/
|
|
2157
|
+
line2?: string;
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* ZIP or postal code.
|
|
2161
|
+
*/
|
|
2162
|
+
postal_code?: string;
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* State, county, province, or region.
|
|
2166
|
+
*/
|
|
2167
|
+
state?: string;
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
1798
2170
|
}
|
|
1799
2171
|
|
|
1800
2172
|
interface CardPresent {
|
|
@@ -2159,6 +2531,11 @@ declare module 'stripe' {
|
|
|
2159
2531
|
*/
|
|
2160
2532
|
reference: string | null;
|
|
2161
2533
|
|
|
2534
|
+
/**
|
|
2535
|
+
* 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.
|
|
2536
|
+
*/
|
|
2537
|
+
reference_id?: string | null;
|
|
2538
|
+
|
|
2162
2539
|
/**
|
|
2163
2540
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2164
2541
|
*
|
|
@@ -2169,12 +2546,95 @@ declare module 'stripe' {
|
|
|
2169
2546
|
* 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).
|
|
2170
2547
|
*/
|
|
2171
2548
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* 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.
|
|
2552
|
+
*/
|
|
2553
|
+
subsellers?: Array<string>;
|
|
2172
2554
|
}
|
|
2173
2555
|
|
|
2174
2556
|
namespace Paypal {
|
|
2175
2557
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2176
2558
|
}
|
|
2177
2559
|
|
|
2560
|
+
interface Payto {
|
|
2561
|
+
mandate_options?: Payto.MandateOptions;
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2565
|
+
*
|
|
2566
|
+
* 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.
|
|
2567
|
+
*
|
|
2568
|
+
* If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
2569
|
+
*
|
|
2570
|
+
* 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).
|
|
2571
|
+
*/
|
|
2572
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
namespace Payto {
|
|
2576
|
+
interface MandateOptions {
|
|
2577
|
+
/**
|
|
2578
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2579
|
+
*/
|
|
2580
|
+
amount: number | null;
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* 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.
|
|
2584
|
+
*/
|
|
2585
|
+
amount_type: MandateOptions.AmountType | null;
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2589
|
+
*/
|
|
2590
|
+
end_date: string | null;
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* The periodicity at which payments will be collected.
|
|
2594
|
+
*/
|
|
2595
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* 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.
|
|
2599
|
+
*/
|
|
2600
|
+
payments_per_period: number | null;
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2604
|
+
*/
|
|
2605
|
+
purpose: MandateOptions.Purpose | null;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
namespace MandateOptions {
|
|
2609
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2610
|
+
|
|
2611
|
+
type PaymentSchedule =
|
|
2612
|
+
| 'adhoc'
|
|
2613
|
+
| 'annual'
|
|
2614
|
+
| 'daily'
|
|
2615
|
+
| 'fortnightly'
|
|
2616
|
+
| 'monthly'
|
|
2617
|
+
| 'quarterly'
|
|
2618
|
+
| 'semi_annual'
|
|
2619
|
+
| 'weekly';
|
|
2620
|
+
|
|
2621
|
+
type Purpose =
|
|
2622
|
+
| 'dependant_support'
|
|
2623
|
+
| 'government'
|
|
2624
|
+
| 'loan'
|
|
2625
|
+
| 'mortgage'
|
|
2626
|
+
| 'other'
|
|
2627
|
+
| 'pension'
|
|
2628
|
+
| 'personal'
|
|
2629
|
+
| 'retail'
|
|
2630
|
+
| 'salary'
|
|
2631
|
+
| 'tax'
|
|
2632
|
+
| 'utility';
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2178
2638
|
interface Pix {
|
|
2179
2639
|
/**
|
|
2180
2640
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
@@ -2211,6 +2671,13 @@ declare module 'stripe' {
|
|
|
2211
2671
|
setup_future_usage?: 'none';
|
|
2212
2672
|
}
|
|
2213
2673
|
|
|
2674
|
+
interface Rechnung {
|
|
2675
|
+
/**
|
|
2676
|
+
* A unique identifier that correlates each transaction with the collected risk data.
|
|
2677
|
+
*/
|
|
2678
|
+
risk_correlation_id: string | null;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2214
2681
|
interface RevolutPay {
|
|
2215
2682
|
/**
|
|
2216
2683
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2347,6 +2814,8 @@ declare module 'stripe' {
|
|
|
2347
2814
|
interface FinancialConnections {
|
|
2348
2815
|
filters?: FinancialConnections.Filters;
|
|
2349
2816
|
|
|
2817
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
2818
|
+
|
|
2350
2819
|
/**
|
|
2351
2820
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2352
2821
|
*/
|
|
@@ -2369,19 +2838,39 @@ declare module 'stripe' {
|
|
|
2369
2838
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2370
2839
|
*/
|
|
2371
2840
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* The institution to use to filter for possible accounts to link.
|
|
2844
|
+
*/
|
|
2845
|
+
institution?: string;
|
|
2372
2846
|
}
|
|
2373
2847
|
|
|
2374
2848
|
namespace Filters {
|
|
2375
2849
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2376
2850
|
}
|
|
2377
2851
|
|
|
2852
|
+
interface ManualEntry {
|
|
2853
|
+
/**
|
|
2854
|
+
* Settings for configuring manual entry of account details.
|
|
2855
|
+
*/
|
|
2856
|
+
mode?: ManualEntry.Mode;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
namespace ManualEntry {
|
|
2860
|
+
type Mode = 'automatic' | 'custom';
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2378
2863
|
type Permission =
|
|
2379
2864
|
| 'balances'
|
|
2380
2865
|
| 'ownership'
|
|
2381
2866
|
| 'payment_method'
|
|
2382
2867
|
| 'transactions';
|
|
2383
2868
|
|
|
2384
|
-
type Prefetch =
|
|
2869
|
+
type Prefetch =
|
|
2870
|
+
| 'balances'
|
|
2871
|
+
| 'inferred_balances'
|
|
2872
|
+
| 'ownership'
|
|
2873
|
+
| 'transactions';
|
|
2385
2874
|
}
|
|
2386
2875
|
|
|
2387
2876
|
interface MandateOptions {
|
|
@@ -2468,6 +2957,8 @@ declare module 'stripe' {
|
|
|
2468
2957
|
}
|
|
2469
2958
|
}
|
|
2470
2959
|
|
|
2960
|
+
type SecretKeyConfirmation = 'optional' | 'required';
|
|
2961
|
+
|
|
2471
2962
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2472
2963
|
|
|
2473
2964
|
interface Shipping {
|