stripe 16.13.0-beta.1 → 17.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 +154 -849
- package/README.md +4 -3
- package/VERSION +1 -1
- package/cjs/Error.js +31 -4
- package/cjs/RequestSender.js +114 -74
- package/cjs/StripeResource.js +8 -3
- package/cjs/apiVersion.js +2 -3
- package/cjs/autoPagination.js +51 -7
- package/cjs/crypto/CryptoProvider.js +6 -0
- package/cjs/crypto/NodeCryptoProvider.js +7 -0
- package/cjs/crypto/SubtleCryptoProvider.js +4 -0
- package/cjs/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +3 -3
- package/cjs/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +4 -4
- package/cjs/resources/Billing/CreditGrants.js +30 -0
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- 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/V2/Billing/MeterEventAdjustments.js +12 -0
- package/cjs/resources/V2/Billing/MeterEventSession.js +12 -0
- package/cjs/resources/V2/Billing/MeterEventStream.js +13 -0
- package/cjs/resources/V2/Billing/MeterEvents.js +9 -0
- package/cjs/resources/V2/Billing.js +18 -0
- package/cjs/resources/V2/Core/Events.js +14 -0
- package/cjs/resources/V2/Core.js +12 -0
- package/cjs/resources/V2.js +14 -0
- package/cjs/resources.js +18 -42
- package/cjs/stripe.core.js +20 -8
- package/cjs/utils.js +41 -10
- package/esm/Error.js +27 -2
- package/esm/RequestSender.js +115 -75
- package/esm/StripeResource.js +9 -4
- package/esm/apiVersion.js +1 -2
- package/esm/autoPagination.js +52 -8
- package/esm/crypto/CryptoProvider.js +6 -0
- package/esm/crypto/NodeCryptoProvider.js +7 -0
- package/esm/crypto/SubtleCryptoProvider.js +4 -0
- package/esm/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +2 -2
- package/esm/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +3 -3
- package/esm/resources/Billing/CreditGrants.js +27 -0
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- 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/V2/Billing/MeterEventAdjustments.js +9 -0
- package/esm/resources/V2/Billing/MeterEventSession.js +9 -0
- package/esm/resources/V2/Billing/MeterEventStream.js +10 -0
- package/esm/resources/V2/Billing/MeterEvents.js +6 -0
- package/esm/resources/V2/Billing.js +15 -0
- package/esm/resources/V2/Core/Events.js +11 -0
- package/esm/resources/V2/Core.js +9 -0
- package/esm/resources/V2.js +11 -0
- package/esm/resources.js +7 -29
- package/esm/stripe.core.js +21 -9
- package/esm/utils.js +38 -9
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -288
- package/types/Accounts.d.ts +1 -113
- package/types/AccountsResource.d.ts +0 -270
- package/types/Billing/Alerts.d.ts +17 -13
- package/types/Billing/AlertsResource.d.ts +18 -21
- package/types/Billing/CreditBalanceSummary.d.ts +94 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +64 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +159 -0
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +54 -0
- package/types/Billing/CreditGrants.d.ts +124 -0
- package/types/Billing/CreditGrantsResource.d.ts +219 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
- package/types/Capabilities.d.ts +1 -1
- package/types/Charges.d.ts +0 -71
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +4 -296
- package/types/Checkout/SessionsResource.d.ts +6 -352
- package/types/ConfirmationTokens.d.ts +0 -67
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +30 -0
- package/types/CreditNotes.d.ts +27 -18
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/Customers.d.ts +2 -3
- package/types/CustomersResource.d.ts +0 -3
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/Errors.d.ts +32 -2
- package/types/EventTypes.d.ts +2 -545
- package/types/Events.d.ts +0 -90
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +34 -20
- package/types/Invoices.d.ts +30 -108
- package/types/InvoicesResource.d.ts +1835 -5493
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -503
- package/types/PaymentIntentsResource.d.ts +3464 -7064
- package/types/PaymentLinks.d.ts +0 -3
- package/types/PaymentLinksResource.d.ts +0 -6
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
- package/types/PaymentMethods.d.ts +0 -67
- package/types/PaymentMethodsResource.d.ts +0 -88
- 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 +28 -37
- package/types/PromotionCodes.d.ts +1 -1
- package/types/PromotionCodesResource.d.ts +3 -1
- package/types/Quotes.d.ts +1 -596
- package/types/QuotesResource.d.ts +199 -2531
- package/types/SetupAttempts.d.ts +0 -10
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -522
- 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 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -82
- package/types/SubscriptionsResource.d.ts +5 -350
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +13 -212
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/ThinEvent.d.ts +36 -0
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +5 -27
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/Billing/MeterEventAdjustments.d.ts +65 -0
- package/types/V2/Billing/MeterEventAdjustmentsResource.d.ts +47 -0
- package/types/V2/Billing/MeterEventSessionResource.d.ts +26 -0
- package/types/V2/Billing/MeterEventSessions.d.ts +45 -0
- package/types/V2/Billing/MeterEventStreamResource.d.ts +62 -0
- package/types/V2/Billing/MeterEvents.d.ts +54 -0
- package/types/V2/Billing/MeterEventsResource.d.ts +52 -0
- package/types/V2/BillingResource.d.ts +14 -0
- package/types/V2/Core/EventsResource.d.ts +57 -0
- package/types/V2/CoreResource.d.ts +11 -0
- package/types/V2/EventTypes.d.ts +214 -0
- package/types/V2/Events.d.ts +75 -0
- package/types/V2Resource.d.ts +10 -0
- package/types/WebhookEndpointsResource.d.ts +2 -65
- package/types/index.d.ts +67 -52
- package/types/lib.d.ts +1 -6
- 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/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/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/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/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -138
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1084
- package/types/OrdersResource.d.ts +0 -2765
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1548
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -53,8 +53,6 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
application_fee_amount: number | null;
|
|
55
55
|
|
|
56
|
-
async_workflows?: PaymentIntent.AsyncWorkflows;
|
|
57
|
-
|
|
58
56
|
/**
|
|
59
57
|
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
60
58
|
*/
|
|
@@ -148,8 +146,6 @@ declare module 'stripe' {
|
|
|
148
146
|
*/
|
|
149
147
|
on_behalf_of: string | Stripe.Account | null;
|
|
150
148
|
|
|
151
|
-
payment_details?: PaymentIntent.PaymentDetails;
|
|
152
|
-
|
|
153
149
|
/**
|
|
154
150
|
* ID of the payment method used in this PaymentIntent.
|
|
155
151
|
*/
|
|
@@ -185,11 +181,6 @@ declare module 'stripe' {
|
|
|
185
181
|
*/
|
|
186
182
|
review: string | Stripe.Review | null;
|
|
187
183
|
|
|
188
|
-
/**
|
|
189
|
-
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
190
|
-
*/
|
|
191
|
-
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
192
|
-
|
|
193
184
|
/**
|
|
194
185
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
195
186
|
*
|
|
@@ -257,25 +248,6 @@ declare module 'stripe' {
|
|
|
257
248
|
}
|
|
258
249
|
}
|
|
259
250
|
|
|
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
|
-
|
|
279
251
|
interface AutomaticPaymentMethods {
|
|
280
252
|
/**
|
|
281
253
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
@@ -455,15 +427,11 @@ declare module 'stripe' {
|
|
|
455
427
|
| 'email_invalid'
|
|
456
428
|
| 'expired_card'
|
|
457
429
|
| 'financial_connections_account_inactive'
|
|
458
|
-
| 'financial_connections_institution_unavailable'
|
|
459
430
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
460
431
|
| 'forwarding_api_inactive'
|
|
461
432
|
| 'forwarding_api_invalid_parameter'
|
|
462
433
|
| 'forwarding_api_upstream_connection_error'
|
|
463
434
|
| 'forwarding_api_upstream_connection_timeout'
|
|
464
|
-
| 'gift_card_balance_insufficient'
|
|
465
|
-
| 'gift_card_code_exists'
|
|
466
|
-
| 'gift_card_inactive'
|
|
467
435
|
| 'idempotency_key_in_use'
|
|
468
436
|
| 'incorrect_address'
|
|
469
437
|
| 'incorrect_cvc'
|
|
@@ -553,7 +521,6 @@ declare module 'stripe' {
|
|
|
553
521
|
| 'return_intent_already_processed'
|
|
554
522
|
| 'routing_number_invalid'
|
|
555
523
|
| 'secret_key_required'
|
|
556
|
-
| 'sensitive_data_access_expired'
|
|
557
524
|
| 'sepa_unsupported_account'
|
|
558
525
|
| 'setup_attempt_failed'
|
|
559
526
|
| 'setup_intent_authentication_failure'
|
|
@@ -571,7 +538,6 @@ declare module 'stripe' {
|
|
|
571
538
|
| 'taxes_calculation_failed'
|
|
572
539
|
| 'terminal_location_country_unsupported'
|
|
573
540
|
| 'terminal_reader_busy'
|
|
574
|
-
| 'terminal_reader_collected_data_invalid'
|
|
575
541
|
| 'terminal_reader_hardware_fault'
|
|
576
542
|
| 'terminal_reader_invalid_location_for_activation'
|
|
577
543
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -1299,289 +1265,6 @@ declare module 'stripe' {
|
|
|
1299
1265
|
}
|
|
1300
1266
|
}
|
|
1301
1267
|
|
|
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
|
-
|
|
1585
1268
|
interface PaymentMethodConfigurationDetails {
|
|
1586
1269
|
/**
|
|
1587
1270
|
* ID of the payment method configuration used.
|
|
@@ -1641,8 +1324,6 @@ declare module 'stripe' {
|
|
|
1641
1324
|
|
|
1642
1325
|
link?: PaymentMethodOptions.Link;
|
|
1643
1326
|
|
|
1644
|
-
mb_way?: PaymentMethodOptions.MbWay;
|
|
1645
|
-
|
|
1646
1327
|
mobilepay?: PaymentMethodOptions.Mobilepay;
|
|
1647
1328
|
|
|
1648
1329
|
multibanco?: PaymentMethodOptions.Multibanco;
|
|
@@ -1655,14 +1336,10 @@ declare module 'stripe' {
|
|
|
1655
1336
|
|
|
1656
1337
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1657
1338
|
|
|
1658
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1659
|
-
|
|
1660
1339
|
pix?: PaymentMethodOptions.Pix;
|
|
1661
1340
|
|
|
1662
1341
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1663
1342
|
|
|
1664
|
-
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1665
|
-
|
|
1666
1343
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1667
1344
|
|
|
1668
1345
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
@@ -1941,11 +1618,6 @@ declare module 'stripe' {
|
|
|
1941
1618
|
*/
|
|
1942
1619
|
network: Card.Network | null;
|
|
1943
1620
|
|
|
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
|
-
|
|
1949
1621
|
/**
|
|
1950
1622
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1951
1623
|
*/
|
|
@@ -1996,8 +1668,6 @@ declare module 'stripe' {
|
|
|
1996
1668
|
* 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.
|
|
1997
1669
|
*/
|
|
1998
1670
|
statement_descriptor_suffix_kanji?: string;
|
|
1999
|
-
|
|
2000
|
-
statement_details?: Card.StatementDetails;
|
|
2001
1671
|
}
|
|
2002
1672
|
|
|
2003
1673
|
namespace Card {
|
|
@@ -2123,8 +1793,6 @@ declare module 'stripe' {
|
|
|
2123
1793
|
| 'unknown'
|
|
2124
1794
|
| 'visa';
|
|
2125
1795
|
|
|
2126
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2127
|
-
|
|
2128
1796
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2129
1797
|
|
|
2130
1798
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2136,49 +1804,6 @@ declare module 'stripe' {
|
|
|
2136
1804
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2137
1805
|
|
|
2138
1806
|
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
|
-
}
|
|
2182
1807
|
}
|
|
2183
1808
|
|
|
2184
1809
|
interface CardPresent {
|
|
@@ -2452,19 +2077,6 @@ declare module 'stripe' {
|
|
|
2452
2077
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2453
2078
|
}
|
|
2454
2079
|
|
|
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
|
-
|
|
2468
2080
|
interface Mobilepay {
|
|
2469
2081
|
/**
|
|
2470
2082
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2556,11 +2168,6 @@ declare module 'stripe' {
|
|
|
2556
2168
|
*/
|
|
2557
2169
|
reference: string | null;
|
|
2558
2170
|
|
|
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
|
-
|
|
2564
2171
|
/**
|
|
2565
2172
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2566
2173
|
*
|
|
@@ -2571,95 +2178,12 @@ declare module 'stripe' {
|
|
|
2571
2178
|
* 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).
|
|
2572
2179
|
*/
|
|
2573
2180
|
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>;
|
|
2579
2181
|
}
|
|
2580
2182
|
|
|
2581
2183
|
namespace Paypal {
|
|
2582
2184
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2583
2185
|
}
|
|
2584
2186
|
|
|
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
|
-
|
|
2663
2187
|
interface Pix {
|
|
2664
2188
|
/**
|
|
2665
2189
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
@@ -2696,8 +2220,6 @@ declare module 'stripe' {
|
|
|
2696
2220
|
setup_future_usage?: 'none';
|
|
2697
2221
|
}
|
|
2698
2222
|
|
|
2699
|
-
interface Rechnung {}
|
|
2700
|
-
|
|
2701
2223
|
interface RevolutPay {
|
|
2702
2224
|
/**
|
|
2703
2225
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2834,8 +2356,6 @@ declare module 'stripe' {
|
|
|
2834
2356
|
interface FinancialConnections {
|
|
2835
2357
|
filters?: FinancialConnections.Filters;
|
|
2836
2358
|
|
|
2837
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
2838
|
-
|
|
2839
2359
|
/**
|
|
2840
2360
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2841
2361
|
*/
|
|
@@ -2858,39 +2378,19 @@ declare module 'stripe' {
|
|
|
2858
2378
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2859
2379
|
*/
|
|
2860
2380
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2861
|
-
|
|
2862
|
-
/**
|
|
2863
|
-
* The institution to use to filter for possible accounts to link.
|
|
2864
|
-
*/
|
|
2865
|
-
institution?: string;
|
|
2866
2381
|
}
|
|
2867
2382
|
|
|
2868
2383
|
namespace Filters {
|
|
2869
2384
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2870
2385
|
}
|
|
2871
2386
|
|
|
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
|
-
|
|
2883
2387
|
type Permission =
|
|
2884
2388
|
| 'balances'
|
|
2885
2389
|
| 'ownership'
|
|
2886
2390
|
| 'payment_method'
|
|
2887
2391
|
| 'transactions';
|
|
2888
2392
|
|
|
2889
|
-
type Prefetch =
|
|
2890
|
-
| 'balances'
|
|
2891
|
-
| 'inferred_balances'
|
|
2892
|
-
| 'ownership'
|
|
2893
|
-
| 'transactions';
|
|
2393
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2894
2394
|
}
|
|
2895
2395
|
|
|
2896
2396
|
interface MandateOptions {
|
|
@@ -2977,8 +2477,6 @@ declare module 'stripe' {
|
|
|
2977
2477
|
}
|
|
2978
2478
|
}
|
|
2979
2479
|
|
|
2980
|
-
type SecretKeyConfirmation = 'optional' | 'required';
|
|
2981
|
-
|
|
2982
2480
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2983
2481
|
|
|
2984
2482
|
interface Shipping {
|