stripe 17.0.0 → 17.2.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 +895 -148
- package/README.md +6 -7
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -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/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -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/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -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/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -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/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +29 -0
- package/esm/stripe.core.js +1 -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 +45 -0
- package/types/AccountSessionsResource.d.ts +309 -0
- package/types/Accounts.d.ts +113 -1
- package/types/AccountsResource.d.ts +270 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -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 +71 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +296 -4
- package/types/Checkout/SessionsResource.d.ts +351 -5
- package/types/ConfirmationTokens.d.ts +67 -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 +3 -0
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +545 -0
- package/types/Events.d.ts +90 -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 +23 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +118 -2
- package/types/InvoicesResource.d.ts +5454 -1796
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1084 -0
- package/types/OrdersResource.d.ts +2765 -0
- package/types/PaymentIntents.d.ts +503 -1
- package/types/PaymentIntentsResource.d.ts +7000 -3400
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +67 -0
- package/types/PaymentMethodsResource.d.ts +88 -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/QuotePreviewInvoices.d.ts +1586 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +10 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +522 -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/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -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 +64 -0
- package/types/index.d.ts +52 -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
|
*
|
|
@@ -248,6 +257,25 @@ declare module 'stripe' {
|
|
|
248
257
|
}
|
|
249
258
|
}
|
|
250
259
|
|
|
260
|
+
interface AsyncWorkflows {
|
|
261
|
+
inputs?: AsyncWorkflows.Inputs;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
namespace AsyncWorkflows {
|
|
265
|
+
interface Inputs {
|
|
266
|
+
tax?: Inputs.Tax;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
namespace Inputs {
|
|
270
|
+
interface Tax {
|
|
271
|
+
/**
|
|
272
|
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
273
|
+
*/
|
|
274
|
+
calculation: string;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
251
279
|
interface AutomaticPaymentMethods {
|
|
252
280
|
/**
|
|
253
281
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
@@ -427,11 +455,15 @@ declare module 'stripe' {
|
|
|
427
455
|
| 'email_invalid'
|
|
428
456
|
| 'expired_card'
|
|
429
457
|
| 'financial_connections_account_inactive'
|
|
458
|
+
| 'financial_connections_institution_unavailable'
|
|
430
459
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
431
460
|
| 'forwarding_api_inactive'
|
|
432
461
|
| 'forwarding_api_invalid_parameter'
|
|
433
462
|
| 'forwarding_api_upstream_connection_error'
|
|
434
463
|
| 'forwarding_api_upstream_connection_timeout'
|
|
464
|
+
| 'gift_card_balance_insufficient'
|
|
465
|
+
| 'gift_card_code_exists'
|
|
466
|
+
| 'gift_card_inactive'
|
|
435
467
|
| 'idempotency_key_in_use'
|
|
436
468
|
| 'incorrect_address'
|
|
437
469
|
| 'incorrect_cvc'
|
|
@@ -521,6 +553,7 @@ declare module 'stripe' {
|
|
|
521
553
|
| 'return_intent_already_processed'
|
|
522
554
|
| 'routing_number_invalid'
|
|
523
555
|
| 'secret_key_required'
|
|
556
|
+
| 'sensitive_data_access_expired'
|
|
524
557
|
| 'sepa_unsupported_account'
|
|
525
558
|
| 'setup_attempt_failed'
|
|
526
559
|
| 'setup_intent_authentication_failure'
|
|
@@ -538,6 +571,7 @@ declare module 'stripe' {
|
|
|
538
571
|
| 'taxes_calculation_failed'
|
|
539
572
|
| 'terminal_location_country_unsupported'
|
|
540
573
|
| 'terminal_reader_busy'
|
|
574
|
+
| 'terminal_reader_collected_data_invalid'
|
|
541
575
|
| 'terminal_reader_hardware_fault'
|
|
542
576
|
| 'terminal_reader_invalid_location_for_activation'
|
|
543
577
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -1265,6 +1299,289 @@ declare module 'stripe' {
|
|
|
1265
1299
|
}
|
|
1266
1300
|
}
|
|
1267
1301
|
|
|
1302
|
+
interface PaymentDetails {
|
|
1303
|
+
car_rental?: PaymentDetails.CarRental;
|
|
1304
|
+
|
|
1305
|
+
event_details?: PaymentDetails.EventDetails;
|
|
1306
|
+
|
|
1307
|
+
subscription?: PaymentDetails.Subscription;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
namespace PaymentDetails {
|
|
1311
|
+
interface CarRental {
|
|
1312
|
+
affiliate?: CarRental.Affiliate;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* The booking number associated with the car rental.
|
|
1316
|
+
*/
|
|
1317
|
+
booking_number: string;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Class code of the car.
|
|
1321
|
+
*/
|
|
1322
|
+
car_class_code?: string;
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Make of the car.
|
|
1326
|
+
*/
|
|
1327
|
+
car_make?: string;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Model of the car.
|
|
1331
|
+
*/
|
|
1332
|
+
car_model?: string;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* The name of the rental car company.
|
|
1336
|
+
*/
|
|
1337
|
+
company?: string;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* The customer service phone number of the car rental company.
|
|
1341
|
+
*/
|
|
1342
|
+
customer_service_phone_number?: string;
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* Number of days the car is being rented.
|
|
1346
|
+
*/
|
|
1347
|
+
days_rented: number;
|
|
1348
|
+
|
|
1349
|
+
delivery?: CarRental.Delivery;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* The details of the drivers associated with the trip.
|
|
1353
|
+
*/
|
|
1354
|
+
drivers?: Array<CarRental.Driver>;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* List of additional charges being billed.
|
|
1358
|
+
*/
|
|
1359
|
+
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Indicates if the customer did not keep nor cancel their booking.
|
|
1363
|
+
*/
|
|
1364
|
+
no_show?: boolean;
|
|
1365
|
+
|
|
1366
|
+
pickup_address?: Stripe.Address;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1370
|
+
*/
|
|
1371
|
+
pickup_at: number;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Rental rate.
|
|
1375
|
+
*/
|
|
1376
|
+
rate_amount?: number;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1380
|
+
*/
|
|
1381
|
+
rate_interval?: CarRental.RateInterval;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* The full name of the person or entity renting the car.
|
|
1385
|
+
*/
|
|
1386
|
+
renter_name?: string;
|
|
1387
|
+
|
|
1388
|
+
return_address?: Stripe.Address;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Car return time. Measured in seconds since the Unix epoch.
|
|
1392
|
+
*/
|
|
1393
|
+
return_at: number;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1397
|
+
*/
|
|
1398
|
+
tax_exempt?: boolean;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
namespace CarRental {
|
|
1402
|
+
interface Affiliate {
|
|
1403
|
+
/**
|
|
1404
|
+
* The name of the affiliate that originated the purchase.
|
|
1405
|
+
*/
|
|
1406
|
+
name?: string;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
interface Delivery {
|
|
1410
|
+
/**
|
|
1411
|
+
* The delivery method for the payment
|
|
1412
|
+
*/
|
|
1413
|
+
mode?: Delivery.Mode;
|
|
1414
|
+
|
|
1415
|
+
recipient?: Delivery.Recipient;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
namespace Delivery {
|
|
1419
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1420
|
+
|
|
1421
|
+
interface Recipient {
|
|
1422
|
+
/**
|
|
1423
|
+
* The email of the recipient the ticket is delivered to.
|
|
1424
|
+
*/
|
|
1425
|
+
email?: string;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* The name of the recipient the ticket is delivered to.
|
|
1429
|
+
*/
|
|
1430
|
+
name?: string;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1434
|
+
*/
|
|
1435
|
+
phone?: string;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
interface Driver {
|
|
1440
|
+
/**
|
|
1441
|
+
* Full name of the driver on the reservation.
|
|
1442
|
+
*/
|
|
1443
|
+
name?: string;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
type ExtraCharge =
|
|
1447
|
+
| 'extra_mileage'
|
|
1448
|
+
| 'gas'
|
|
1449
|
+
| 'late_return'
|
|
1450
|
+
| 'one_way_service'
|
|
1451
|
+
| 'parking_violation';
|
|
1452
|
+
|
|
1453
|
+
type RateInterval = 'day' | 'month' | 'week';
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
interface EventDetails {
|
|
1457
|
+
/**
|
|
1458
|
+
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1459
|
+
*/
|
|
1460
|
+
access_controlled_venue?: boolean;
|
|
1461
|
+
|
|
1462
|
+
address?: Stripe.Address;
|
|
1463
|
+
|
|
1464
|
+
affiliate?: EventDetails.Affiliate;
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* The name of the company
|
|
1468
|
+
*/
|
|
1469
|
+
company?: string;
|
|
1470
|
+
|
|
1471
|
+
delivery?: EventDetails.Delivery;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Event end time. Measured in seconds since the Unix epoch.
|
|
1475
|
+
*/
|
|
1476
|
+
ends_at?: number;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Type of the event entertainment (concert, sports event etc)
|
|
1480
|
+
*/
|
|
1481
|
+
genre?: string;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* The name of the event.
|
|
1485
|
+
*/
|
|
1486
|
+
name?: string;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Event start time. Measured in seconds since the Unix epoch.
|
|
1490
|
+
*/
|
|
1491
|
+
starts_at?: number;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
namespace EventDetails {
|
|
1495
|
+
interface Affiliate {
|
|
1496
|
+
/**
|
|
1497
|
+
* The name of the affiliate that originated the purchase.
|
|
1498
|
+
*/
|
|
1499
|
+
name?: string;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
interface Delivery {
|
|
1503
|
+
/**
|
|
1504
|
+
* The delivery method for the payment
|
|
1505
|
+
*/
|
|
1506
|
+
mode?: Delivery.Mode;
|
|
1507
|
+
|
|
1508
|
+
recipient?: Delivery.Recipient;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
namespace Delivery {
|
|
1512
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1513
|
+
|
|
1514
|
+
interface Recipient {
|
|
1515
|
+
/**
|
|
1516
|
+
* The email of the recipient the ticket is delivered to.
|
|
1517
|
+
*/
|
|
1518
|
+
email?: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* The name of the recipient the ticket is delivered to.
|
|
1522
|
+
*/
|
|
1523
|
+
name?: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1527
|
+
*/
|
|
1528
|
+
phone?: string;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
interface Subscription {
|
|
1534
|
+
affiliate?: Subscription.Affiliate;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Info whether the subscription will be auto renewed upon expiry.
|
|
1538
|
+
*/
|
|
1539
|
+
auto_renewal?: boolean;
|
|
1540
|
+
|
|
1541
|
+
billing_interval?: Subscription.BillingInterval;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1545
|
+
*/
|
|
1546
|
+
ends_at?: number;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1550
|
+
*/
|
|
1551
|
+
name?: string;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1555
|
+
*/
|
|
1556
|
+
starts_at?: number;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
namespace Subscription {
|
|
1560
|
+
interface Affiliate {
|
|
1561
|
+
/**
|
|
1562
|
+
* The name of the affiliate that originated the purchase.
|
|
1563
|
+
*/
|
|
1564
|
+
name?: string;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
interface BillingInterval {
|
|
1568
|
+
/**
|
|
1569
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1570
|
+
*/
|
|
1571
|
+
count?: number;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1575
|
+
*/
|
|
1576
|
+
interval?: BillingInterval.Interval;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
namespace BillingInterval {
|
|
1580
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1268
1585
|
interface PaymentMethodConfigurationDetails {
|
|
1269
1586
|
/**
|
|
1270
1587
|
* ID of the payment method configuration used.
|
|
@@ -1324,6 +1641,8 @@ declare module 'stripe' {
|
|
|
1324
1641
|
|
|
1325
1642
|
link?: PaymentMethodOptions.Link;
|
|
1326
1643
|
|
|
1644
|
+
mb_way?: PaymentMethodOptions.MbWay;
|
|
1645
|
+
|
|
1327
1646
|
mobilepay?: PaymentMethodOptions.Mobilepay;
|
|
1328
1647
|
|
|
1329
1648
|
multibanco?: PaymentMethodOptions.Multibanco;
|
|
@@ -1336,10 +1655,14 @@ declare module 'stripe' {
|
|
|
1336
1655
|
|
|
1337
1656
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1338
1657
|
|
|
1658
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1659
|
+
|
|
1339
1660
|
pix?: PaymentMethodOptions.Pix;
|
|
1340
1661
|
|
|
1341
1662
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1342
1663
|
|
|
1664
|
+
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1665
|
+
|
|
1343
1666
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1344
1667
|
|
|
1345
1668
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
@@ -1618,6 +1941,11 @@ declare module 'stripe' {
|
|
|
1618
1941
|
*/
|
|
1619
1942
|
network: Card.Network | null;
|
|
1620
1943
|
|
|
1944
|
+
/**
|
|
1945
|
+
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
1946
|
+
*/
|
|
1947
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1948
|
+
|
|
1621
1949
|
/**
|
|
1622
1950
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1623
1951
|
*/
|
|
@@ -1668,6 +1996,8 @@ declare module 'stripe' {
|
|
|
1668
1996
|
* 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.
|
|
1669
1997
|
*/
|
|
1670
1998
|
statement_descriptor_suffix_kanji?: string;
|
|
1999
|
+
|
|
2000
|
+
statement_details?: Card.StatementDetails;
|
|
1671
2001
|
}
|
|
1672
2002
|
|
|
1673
2003
|
namespace Card {
|
|
@@ -1793,6 +2123,8 @@ declare module 'stripe' {
|
|
|
1793
2123
|
| 'unknown'
|
|
1794
2124
|
| 'visa';
|
|
1795
2125
|
|
|
2126
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2127
|
+
|
|
1796
2128
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1797
2129
|
|
|
1798
2130
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1804,6 +2136,49 @@ declare module 'stripe' {
|
|
|
1804
2136
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1805
2137
|
|
|
1806
2138
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2139
|
+
|
|
2140
|
+
interface StatementDetails {
|
|
2141
|
+
address?: StatementDetails.Address;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Phone number
|
|
2145
|
+
*/
|
|
2146
|
+
phone?: string;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
namespace StatementDetails {
|
|
2150
|
+
interface Address {
|
|
2151
|
+
/**
|
|
2152
|
+
* City, district, suburb, town, or village.
|
|
2153
|
+
*/
|
|
2154
|
+
city?: string;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2158
|
+
*/
|
|
2159
|
+
country?: string;
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2163
|
+
*/
|
|
2164
|
+
line1?: string;
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2168
|
+
*/
|
|
2169
|
+
line2?: string;
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* ZIP or postal code.
|
|
2173
|
+
*/
|
|
2174
|
+
postal_code?: string;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* State, county, province, or region.
|
|
2178
|
+
*/
|
|
2179
|
+
state?: string;
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
1807
2182
|
}
|
|
1808
2183
|
|
|
1809
2184
|
interface CardPresent {
|
|
@@ -2077,6 +2452,19 @@ declare module 'stripe' {
|
|
|
2077
2452
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2078
2453
|
}
|
|
2079
2454
|
|
|
2455
|
+
interface MbWay {
|
|
2456
|
+
/**
|
|
2457
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2458
|
+
*
|
|
2459
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2460
|
+
*
|
|
2461
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2462
|
+
*
|
|
2463
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2464
|
+
*/
|
|
2465
|
+
setup_future_usage?: 'none';
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2080
2468
|
interface Mobilepay {
|
|
2081
2469
|
/**
|
|
2082
2470
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2168,6 +2556,11 @@ declare module 'stripe' {
|
|
|
2168
2556
|
*/
|
|
2169
2557
|
reference: string | null;
|
|
2170
2558
|
|
|
2559
|
+
/**
|
|
2560
|
+
* 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.
|
|
2561
|
+
*/
|
|
2562
|
+
reference_id?: string | null;
|
|
2563
|
+
|
|
2171
2564
|
/**
|
|
2172
2565
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2173
2566
|
*
|
|
@@ -2178,12 +2571,95 @@ declare module 'stripe' {
|
|
|
2178
2571
|
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2179
2572
|
*/
|
|
2180
2573
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* 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.
|
|
2577
|
+
*/
|
|
2578
|
+
subsellers?: Array<string>;
|
|
2181
2579
|
}
|
|
2182
2580
|
|
|
2183
2581
|
namespace Paypal {
|
|
2184
2582
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2185
2583
|
}
|
|
2186
2584
|
|
|
2585
|
+
interface Payto {
|
|
2586
|
+
mandate_options?: Payto.MandateOptions;
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2590
|
+
*
|
|
2591
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2592
|
+
*
|
|
2593
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2594
|
+
*
|
|
2595
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2596
|
+
*/
|
|
2597
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
namespace Payto {
|
|
2601
|
+
interface MandateOptions {
|
|
2602
|
+
/**
|
|
2603
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2604
|
+
*/
|
|
2605
|
+
amount: number | null;
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* 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.
|
|
2609
|
+
*/
|
|
2610
|
+
amount_type: MandateOptions.AmountType | null;
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2614
|
+
*/
|
|
2615
|
+
end_date: string | null;
|
|
2616
|
+
|
|
2617
|
+
/**
|
|
2618
|
+
* The periodicity at which payments will be collected.
|
|
2619
|
+
*/
|
|
2620
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2621
|
+
|
|
2622
|
+
/**
|
|
2623
|
+
* 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.
|
|
2624
|
+
*/
|
|
2625
|
+
payments_per_period: number | null;
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2629
|
+
*/
|
|
2630
|
+
purpose: MandateOptions.Purpose | null;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
namespace MandateOptions {
|
|
2634
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2635
|
+
|
|
2636
|
+
type PaymentSchedule =
|
|
2637
|
+
| 'adhoc'
|
|
2638
|
+
| 'annual'
|
|
2639
|
+
| 'daily'
|
|
2640
|
+
| 'fortnightly'
|
|
2641
|
+
| 'monthly'
|
|
2642
|
+
| 'quarterly'
|
|
2643
|
+
| 'semi_annual'
|
|
2644
|
+
| 'weekly';
|
|
2645
|
+
|
|
2646
|
+
type Purpose =
|
|
2647
|
+
| 'dependant_support'
|
|
2648
|
+
| 'government'
|
|
2649
|
+
| 'loan'
|
|
2650
|
+
| 'mortgage'
|
|
2651
|
+
| 'other'
|
|
2652
|
+
| 'pension'
|
|
2653
|
+
| 'personal'
|
|
2654
|
+
| 'retail'
|
|
2655
|
+
| 'salary'
|
|
2656
|
+
| 'tax'
|
|
2657
|
+
| 'utility';
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2187
2663
|
interface Pix {
|
|
2188
2664
|
/**
|
|
2189
2665
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
@@ -2220,6 +2696,8 @@ declare module 'stripe' {
|
|
|
2220
2696
|
setup_future_usage?: 'none';
|
|
2221
2697
|
}
|
|
2222
2698
|
|
|
2699
|
+
interface Rechnung {}
|
|
2700
|
+
|
|
2223
2701
|
interface RevolutPay {
|
|
2224
2702
|
/**
|
|
2225
2703
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2356,6 +2834,8 @@ declare module 'stripe' {
|
|
|
2356
2834
|
interface FinancialConnections {
|
|
2357
2835
|
filters?: FinancialConnections.Filters;
|
|
2358
2836
|
|
|
2837
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
2838
|
+
|
|
2359
2839
|
/**
|
|
2360
2840
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2361
2841
|
*/
|
|
@@ -2378,19 +2858,39 @@ declare module 'stripe' {
|
|
|
2378
2858
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2379
2859
|
*/
|
|
2380
2860
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* The institution to use to filter for possible accounts to link.
|
|
2864
|
+
*/
|
|
2865
|
+
institution?: string;
|
|
2381
2866
|
}
|
|
2382
2867
|
|
|
2383
2868
|
namespace Filters {
|
|
2384
2869
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2385
2870
|
}
|
|
2386
2871
|
|
|
2872
|
+
interface ManualEntry {
|
|
2873
|
+
/**
|
|
2874
|
+
* Settings for configuring manual entry of account details.
|
|
2875
|
+
*/
|
|
2876
|
+
mode?: ManualEntry.Mode;
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
namespace ManualEntry {
|
|
2880
|
+
type Mode = 'automatic' | 'custom';
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2387
2883
|
type Permission =
|
|
2388
2884
|
| 'balances'
|
|
2389
2885
|
| 'ownership'
|
|
2390
2886
|
| 'payment_method'
|
|
2391
2887
|
| 'transactions';
|
|
2392
2888
|
|
|
2393
|
-
type Prefetch =
|
|
2889
|
+
type Prefetch =
|
|
2890
|
+
| 'balances'
|
|
2891
|
+
| 'inferred_balances'
|
|
2892
|
+
| 'ownership'
|
|
2893
|
+
| 'transactions';
|
|
2394
2894
|
}
|
|
2395
2895
|
|
|
2396
2896
|
interface MandateOptions {
|
|
@@ -2477,6 +2977,8 @@ declare module 'stripe' {
|
|
|
2477
2977
|
}
|
|
2478
2978
|
}
|
|
2479
2979
|
|
|
2980
|
+
type SecretKeyConfirmation = 'optional' | 'required';
|
|
2981
|
+
|
|
2480
2982
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2481
2983
|
|
|
2482
2984
|
interface Shipping {
|