stripe 15.12.0-beta.1 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +155 -746
- 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 +2 -3
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -25
- 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/TestHelpers/Issuing/Authorizations.js +4 -0
- package/cjs/resources.js +10 -36
- 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 +1 -2
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -25
- 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/TestHelpers/Issuing/Authorizations.js +4 -0
- package/esm/resources.js +0 -22
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +5 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -15
- package/types/AccountSessionsResource.d.ts +0 -205
- package/types/Accounts.d.ts +1 -88
- package/types/AccountsResource.d.ts +1 -205
- package/types/BalanceTransactionSources.d.ts +0 -1
- package/types/Capabilities.d.ts +27 -7
- package/types/Charges.d.ts +0 -67
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +3 -24
- package/types/Checkout/SessionsResource.d.ts +3 -17
- package/types/ConfirmationTokens.d.ts +0 -83
- 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/CustomerSessions.d.ts +0 -55
- package/types/CustomerSessionsResource.d.ts +0 -55
- package/types/CustomersResource.d.ts +4 -4
- package/types/Disputes.d.ts +0 -167
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -426
- package/types/Events.d.ts +0 -83
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -44
- package/types/FinancialConnections/SessionsResource.d.ts +1 -33
- 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 +3 -111
- package/types/InvoicesResource.d.ts +2171 -6311
- package/types/Issuing/Authorizations.d.ts +173 -0
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Cards.d.ts +0 -34
- package/types/Issuing/CardsResource.d.ts +0 -125
- package/types/Issuing/Transactions.d.ts +112 -6
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -463
- package/types/PaymentIntentsResource.d.ts +3360 -6731
- package/types/PaymentLinks.d.ts +1 -0
- package/types/PaymentLinksResource.d.ts +15 -1
- package/types/PaymentMethods.d.ts +0 -62
- package/types/PaymentMethodsResource.d.ts +12 -124
- 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/SetupAttempts.d.ts +0 -8
- package/types/SetupIntents.d.ts +1 -104
- package/types/SetupIntentsResource.d.ts +9 -527
- 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 +1 -41
- package/types/SubscriptionsResource.d.ts +2 -337
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +4 -3
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- 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 +2 -51
- package/types/index.d.ts +0 -62
- package/types/lib.d.ts +1 -13
- package/types/test/typescriptTest.ts +3 -3
- 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/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/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/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 -1056
- package/types/OrdersResource.d.ts +0 -2709
- package/types/PlatformTaxFees.d.ts +0 -35
- 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 -1514
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
|
@@ -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
|
*
|
|
@@ -438,9 +431,6 @@ declare module 'stripe' {
|
|
|
438
431
|
| 'forwarding_api_invalid_parameter'
|
|
439
432
|
| 'forwarding_api_upstream_connection_error'
|
|
440
433
|
| 'forwarding_api_upstream_connection_timeout'
|
|
441
|
-
| 'gift_card_balance_insufficient'
|
|
442
|
-
| 'gift_card_code_exists'
|
|
443
|
-
| 'gift_card_inactive'
|
|
444
434
|
| 'idempotency_key_in_use'
|
|
445
435
|
| 'incorrect_address'
|
|
446
436
|
| 'incorrect_cvc'
|
|
@@ -529,7 +519,6 @@ declare module 'stripe' {
|
|
|
529
519
|
| 'return_intent_already_processed'
|
|
530
520
|
| 'routing_number_invalid'
|
|
531
521
|
| 'secret_key_required'
|
|
532
|
-
| 'sensitive_data_access_expired'
|
|
533
522
|
| 'sepa_unsupported_account'
|
|
534
523
|
| 'setup_attempt_failed'
|
|
535
524
|
| 'setup_intent_authentication_failure'
|
|
@@ -1273,289 +1262,6 @@ declare module 'stripe' {
|
|
|
1273
1262
|
}
|
|
1274
1263
|
}
|
|
1275
1264
|
|
|
1276
|
-
interface PaymentDetails {
|
|
1277
|
-
car_rental?: PaymentDetails.CarRental;
|
|
1278
|
-
|
|
1279
|
-
event_details?: PaymentDetails.EventDetails;
|
|
1280
|
-
|
|
1281
|
-
subscription?: PaymentDetails.Subscription;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
namespace PaymentDetails {
|
|
1285
|
-
interface CarRental {
|
|
1286
|
-
affiliate?: CarRental.Affiliate;
|
|
1287
|
-
|
|
1288
|
-
/**
|
|
1289
|
-
* The booking number associated with the car rental.
|
|
1290
|
-
*/
|
|
1291
|
-
booking_number: string;
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* Class code of the car.
|
|
1295
|
-
*/
|
|
1296
|
-
car_class_code?: string;
|
|
1297
|
-
|
|
1298
|
-
/**
|
|
1299
|
-
* Make of the car.
|
|
1300
|
-
*/
|
|
1301
|
-
car_make?: string;
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Model of the car.
|
|
1305
|
-
*/
|
|
1306
|
-
car_model?: string;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* The name of the rental car company.
|
|
1310
|
-
*/
|
|
1311
|
-
company?: string;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* The customer service phone number of the car rental company.
|
|
1315
|
-
*/
|
|
1316
|
-
customer_service_phone_number?: string;
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* Number of days the car is being rented.
|
|
1320
|
-
*/
|
|
1321
|
-
days_rented: number;
|
|
1322
|
-
|
|
1323
|
-
delivery?: CarRental.Delivery;
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* The details of the drivers associated with the trip.
|
|
1327
|
-
*/
|
|
1328
|
-
drivers?: Array<CarRental.Driver>;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* List of additional charges being billed.
|
|
1332
|
-
*/
|
|
1333
|
-
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* Indicates if the customer did not keep nor cancel their booking.
|
|
1337
|
-
*/
|
|
1338
|
-
no_show?: boolean;
|
|
1339
|
-
|
|
1340
|
-
pickup_address?: Stripe.Address;
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1344
|
-
*/
|
|
1345
|
-
pickup_at: number;
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* Rental rate.
|
|
1349
|
-
*/
|
|
1350
|
-
rate_amount?: number;
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1354
|
-
*/
|
|
1355
|
-
rate_interval?: CarRental.RateInterval;
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* The full name of the person or entity renting the car.
|
|
1359
|
-
*/
|
|
1360
|
-
renter_name?: string;
|
|
1361
|
-
|
|
1362
|
-
return_address?: Stripe.Address;
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* Car return time. Measured in seconds since the Unix epoch.
|
|
1366
|
-
*/
|
|
1367
|
-
return_at: number;
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1371
|
-
*/
|
|
1372
|
-
tax_exempt?: boolean;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
namespace CarRental {
|
|
1376
|
-
interface Affiliate {
|
|
1377
|
-
/**
|
|
1378
|
-
* The name of the affiliate that originated the purchase.
|
|
1379
|
-
*/
|
|
1380
|
-
name?: string;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
interface Delivery {
|
|
1384
|
-
/**
|
|
1385
|
-
* The delivery method for the payment
|
|
1386
|
-
*/
|
|
1387
|
-
mode?: Delivery.Mode;
|
|
1388
|
-
|
|
1389
|
-
recipient?: Delivery.Recipient;
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
namespace Delivery {
|
|
1393
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1394
|
-
|
|
1395
|
-
interface Recipient {
|
|
1396
|
-
/**
|
|
1397
|
-
* The email of the recipient the ticket is delivered to.
|
|
1398
|
-
*/
|
|
1399
|
-
email?: string;
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* The name of the recipient the ticket is delivered to.
|
|
1403
|
-
*/
|
|
1404
|
-
name?: string;
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1408
|
-
*/
|
|
1409
|
-
phone?: string;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
interface Driver {
|
|
1414
|
-
/**
|
|
1415
|
-
* Full name of the driver on the reservation.
|
|
1416
|
-
*/
|
|
1417
|
-
name?: string;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
type ExtraCharge =
|
|
1421
|
-
| 'extra_mileage'
|
|
1422
|
-
| 'gas'
|
|
1423
|
-
| 'late_return'
|
|
1424
|
-
| 'one_way_service'
|
|
1425
|
-
| 'parking_violation';
|
|
1426
|
-
|
|
1427
|
-
type RateInterval = 'day' | 'month' | 'week';
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
interface EventDetails {
|
|
1431
|
-
/**
|
|
1432
|
-
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1433
|
-
*/
|
|
1434
|
-
access_controlled_venue?: boolean;
|
|
1435
|
-
|
|
1436
|
-
address?: Stripe.Address;
|
|
1437
|
-
|
|
1438
|
-
affiliate?: EventDetails.Affiliate;
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
* The name of the company
|
|
1442
|
-
*/
|
|
1443
|
-
company?: string;
|
|
1444
|
-
|
|
1445
|
-
delivery?: EventDetails.Delivery;
|
|
1446
|
-
|
|
1447
|
-
/**
|
|
1448
|
-
* Event end time. Measured in seconds since the Unix epoch.
|
|
1449
|
-
*/
|
|
1450
|
-
ends_at?: number;
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* Type of the event entertainment (concert, sports event etc)
|
|
1454
|
-
*/
|
|
1455
|
-
genre?: string;
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* The name of the event.
|
|
1459
|
-
*/
|
|
1460
|
-
name?: string;
|
|
1461
|
-
|
|
1462
|
-
/**
|
|
1463
|
-
* Event start time. Measured in seconds since the Unix epoch.
|
|
1464
|
-
*/
|
|
1465
|
-
starts_at?: number;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
namespace EventDetails {
|
|
1469
|
-
interface Affiliate {
|
|
1470
|
-
/**
|
|
1471
|
-
* The name of the affiliate that originated the purchase.
|
|
1472
|
-
*/
|
|
1473
|
-
name?: string;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
interface Delivery {
|
|
1477
|
-
/**
|
|
1478
|
-
* The delivery method for the payment
|
|
1479
|
-
*/
|
|
1480
|
-
mode?: Delivery.Mode;
|
|
1481
|
-
|
|
1482
|
-
recipient?: Delivery.Recipient;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
namespace Delivery {
|
|
1486
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1487
|
-
|
|
1488
|
-
interface Recipient {
|
|
1489
|
-
/**
|
|
1490
|
-
* The email of the recipient the ticket is delivered to.
|
|
1491
|
-
*/
|
|
1492
|
-
email?: string;
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* The name of the recipient the ticket is delivered to.
|
|
1496
|
-
*/
|
|
1497
|
-
name?: string;
|
|
1498
|
-
|
|
1499
|
-
/**
|
|
1500
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1501
|
-
*/
|
|
1502
|
-
phone?: string;
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
interface Subscription {
|
|
1508
|
-
affiliate?: Subscription.Affiliate;
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Info whether the subscription will be auto renewed upon expiry.
|
|
1512
|
-
*/
|
|
1513
|
-
auto_renewal?: boolean;
|
|
1514
|
-
|
|
1515
|
-
billing_interval?: Subscription.BillingInterval;
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1519
|
-
*/
|
|
1520
|
-
ends_at?: number;
|
|
1521
|
-
|
|
1522
|
-
/**
|
|
1523
|
-
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1524
|
-
*/
|
|
1525
|
-
name?: string;
|
|
1526
|
-
|
|
1527
|
-
/**
|
|
1528
|
-
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1529
|
-
*/
|
|
1530
|
-
starts_at?: number;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
namespace Subscription {
|
|
1534
|
-
interface Affiliate {
|
|
1535
|
-
/**
|
|
1536
|
-
* The name of the affiliate that originated the purchase.
|
|
1537
|
-
*/
|
|
1538
|
-
name?: string;
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
interface BillingInterval {
|
|
1542
|
-
/**
|
|
1543
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1544
|
-
*/
|
|
1545
|
-
count?: number;
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1549
|
-
*/
|
|
1550
|
-
interval?: BillingInterval.Interval;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
namespace BillingInterval {
|
|
1554
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
1265
|
interface PaymentMethodConfigurationDetails {
|
|
1560
1266
|
/**
|
|
1561
1267
|
* ID of the payment method configuration used.
|
|
@@ -1627,14 +1333,10 @@ declare module 'stripe' {
|
|
|
1627
1333
|
|
|
1628
1334
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1629
1335
|
|
|
1630
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1631
|
-
|
|
1632
1336
|
pix?: PaymentMethodOptions.Pix;
|
|
1633
1337
|
|
|
1634
1338
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1635
1339
|
|
|
1636
|
-
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1637
|
-
|
|
1638
1340
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1639
1341
|
|
|
1640
1342
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
@@ -1889,11 +1591,6 @@ declare module 'stripe' {
|
|
|
1889
1591
|
*/
|
|
1890
1592
|
network: Card.Network | null;
|
|
1891
1593
|
|
|
1892
|
-
/**
|
|
1893
|
-
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
1894
|
-
*/
|
|
1895
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1896
|
-
|
|
1897
1594
|
/**
|
|
1898
1595
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1899
1596
|
*/
|
|
@@ -1942,8 +1639,6 @@ declare module 'stripe' {
|
|
|
1942
1639
|
* 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.
|
|
1943
1640
|
*/
|
|
1944
1641
|
statement_descriptor_suffix_kanji?: string;
|
|
1945
|
-
|
|
1946
|
-
statement_details?: Card.StatementDetails;
|
|
1947
1642
|
}
|
|
1948
1643
|
|
|
1949
1644
|
namespace Card {
|
|
@@ -2068,8 +1763,6 @@ declare module 'stripe' {
|
|
|
2068
1763
|
| 'unknown'
|
|
2069
1764
|
| 'visa';
|
|
2070
1765
|
|
|
2071
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2072
|
-
|
|
2073
1766
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2074
1767
|
|
|
2075
1768
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2081,49 +1774,6 @@ declare module 'stripe' {
|
|
|
2081
1774
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2082
1775
|
|
|
2083
1776
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2084
|
-
|
|
2085
|
-
interface StatementDetails {
|
|
2086
|
-
address?: StatementDetails.Address;
|
|
2087
|
-
|
|
2088
|
-
/**
|
|
2089
|
-
* Phone number
|
|
2090
|
-
*/
|
|
2091
|
-
phone?: string;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
namespace StatementDetails {
|
|
2095
|
-
interface Address {
|
|
2096
|
-
/**
|
|
2097
|
-
* City, district, suburb, town, or village.
|
|
2098
|
-
*/
|
|
2099
|
-
city?: string;
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2103
|
-
*/
|
|
2104
|
-
country?: string;
|
|
2105
|
-
|
|
2106
|
-
/**
|
|
2107
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2108
|
-
*/
|
|
2109
|
-
line1?: string;
|
|
2110
|
-
|
|
2111
|
-
/**
|
|
2112
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2113
|
-
*/
|
|
2114
|
-
line2?: string;
|
|
2115
|
-
|
|
2116
|
-
/**
|
|
2117
|
-
* ZIP or postal code.
|
|
2118
|
-
*/
|
|
2119
|
-
postal_code?: string;
|
|
2120
|
-
|
|
2121
|
-
/**
|
|
2122
|
-
* State, county, province, or region.
|
|
2123
|
-
*/
|
|
2124
|
-
state?: string;
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
1777
|
}
|
|
2128
1778
|
|
|
2129
1779
|
interface CardPresent {
|
|
@@ -2458,11 +2108,6 @@ declare module 'stripe' {
|
|
|
2458
2108
|
*/
|
|
2459
2109
|
reference: string | null;
|
|
2460
2110
|
|
|
2461
|
-
/**
|
|
2462
|
-
* 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.
|
|
2463
|
-
*/
|
|
2464
|
-
reference_id?: string | null;
|
|
2465
|
-
|
|
2466
2111
|
/**
|
|
2467
2112
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2468
2113
|
*
|
|
@@ -2471,93 +2116,12 @@ declare module 'stripe' {
|
|
|
2471
2116
|
* 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).
|
|
2472
2117
|
*/
|
|
2473
2118
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2474
|
-
|
|
2475
|
-
/**
|
|
2476
|
-
* 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.
|
|
2477
|
-
*/
|
|
2478
|
-
subsellers?: Array<string>;
|
|
2479
2119
|
}
|
|
2480
2120
|
|
|
2481
2121
|
namespace Paypal {
|
|
2482
2122
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2483
2123
|
}
|
|
2484
2124
|
|
|
2485
|
-
interface Payto {
|
|
2486
|
-
mandate_options?: Payto.MandateOptions;
|
|
2487
|
-
|
|
2488
|
-
/**
|
|
2489
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2490
|
-
*
|
|
2491
|
-
* 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.
|
|
2492
|
-
*
|
|
2493
|
-
* 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).
|
|
2494
|
-
*/
|
|
2495
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
namespace Payto {
|
|
2499
|
-
interface MandateOptions {
|
|
2500
|
-
/**
|
|
2501
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2502
|
-
*/
|
|
2503
|
-
amount: number | null;
|
|
2504
|
-
|
|
2505
|
-
/**
|
|
2506
|
-
* 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.
|
|
2507
|
-
*/
|
|
2508
|
-
amount_type: MandateOptions.AmountType | null;
|
|
2509
|
-
|
|
2510
|
-
/**
|
|
2511
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2512
|
-
*/
|
|
2513
|
-
end_date: string | null;
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* The periodicity at which payments will be collected.
|
|
2517
|
-
*/
|
|
2518
|
-
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* 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.
|
|
2522
|
-
*/
|
|
2523
|
-
payments_per_period: number | null;
|
|
2524
|
-
|
|
2525
|
-
/**
|
|
2526
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
2527
|
-
*/
|
|
2528
|
-
purpose: MandateOptions.Purpose | null;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
namespace MandateOptions {
|
|
2532
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2533
|
-
|
|
2534
|
-
type PaymentSchedule =
|
|
2535
|
-
| 'adhoc'
|
|
2536
|
-
| 'annual'
|
|
2537
|
-
| 'daily'
|
|
2538
|
-
| 'fortnightly'
|
|
2539
|
-
| 'monthly'
|
|
2540
|
-
| 'quarterly'
|
|
2541
|
-
| 'semi_annual'
|
|
2542
|
-
| 'weekly';
|
|
2543
|
-
|
|
2544
|
-
type Purpose =
|
|
2545
|
-
| 'dependant_support'
|
|
2546
|
-
| 'government'
|
|
2547
|
-
| 'loan'
|
|
2548
|
-
| 'mortgage'
|
|
2549
|
-
| 'other'
|
|
2550
|
-
| 'pension'
|
|
2551
|
-
| 'personal'
|
|
2552
|
-
| 'retail'
|
|
2553
|
-
| 'salary'
|
|
2554
|
-
| 'tax'
|
|
2555
|
-
| 'utility';
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
2125
|
interface Pix {
|
|
2562
2126
|
/**
|
|
2563
2127
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
@@ -2590,13 +2154,6 @@ declare module 'stripe' {
|
|
|
2590
2154
|
setup_future_usage?: 'none';
|
|
2591
2155
|
}
|
|
2592
2156
|
|
|
2593
|
-
interface Rechnung {
|
|
2594
|
-
/**
|
|
2595
|
-
* A unique identifier that correlates each transaction with the collected risk data.
|
|
2596
|
-
*/
|
|
2597
|
-
risk_correlation_id: string | null;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
2157
|
interface RevolutPay {
|
|
2601
2158
|
/**
|
|
2602
2159
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2719,8 +2276,6 @@ declare module 'stripe' {
|
|
|
2719
2276
|
|
|
2720
2277
|
namespace UsBankAccount {
|
|
2721
2278
|
interface FinancialConnections {
|
|
2722
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
2723
|
-
|
|
2724
2279
|
/**
|
|
2725
2280
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2726
2281
|
*/
|
|
@@ -2738,28 +2293,13 @@ declare module 'stripe' {
|
|
|
2738
2293
|
}
|
|
2739
2294
|
|
|
2740
2295
|
namespace FinancialConnections {
|
|
2741
|
-
interface ManualEntry {
|
|
2742
|
-
/**
|
|
2743
|
-
* Settings for configuring manual entry of account details.
|
|
2744
|
-
*/
|
|
2745
|
-
mode?: ManualEntry.Mode;
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
namespace ManualEntry {
|
|
2749
|
-
type Mode = 'automatic' | 'custom';
|
|
2750
|
-
}
|
|
2751
|
-
|
|
2752
2296
|
type Permission =
|
|
2753
2297
|
| 'balances'
|
|
2754
2298
|
| 'ownership'
|
|
2755
2299
|
| 'payment_method'
|
|
2756
2300
|
| 'transactions';
|
|
2757
2301
|
|
|
2758
|
-
type Prefetch =
|
|
2759
|
-
| 'balances'
|
|
2760
|
-
| 'inferred_balances'
|
|
2761
|
-
| 'ownership'
|
|
2762
|
-
| 'transactions';
|
|
2302
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2763
2303
|
}
|
|
2764
2304
|
|
|
2765
2305
|
interface MandateOptions {
|
|
@@ -2842,8 +2382,6 @@ declare module 'stripe' {
|
|
|
2842
2382
|
}
|
|
2843
2383
|
}
|
|
2844
2384
|
|
|
2845
|
-
type SecretKeyConfirmation = 'optional' | 'required';
|
|
2846
|
-
|
|
2847
2385
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2848
2386
|
|
|
2849
2387
|
interface Shipping {
|