stripe 17.2.0-beta.2 → 17.2.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 +117 -899
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/Webhooks.js +1 -1
- 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/TestHelpers/Issuing/Cards.js +0 -4
- package/cjs/resources/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- package/cjs/stripe.core.js +1 -1
- package/esm/Webhooks.js +1 -1
- 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/TestHelpers/Issuing/Cards.js +0 -4
- package/esm/resources/V2/Core/Events.js +50 -7
- package/esm/resources.js +0 -29
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -75
- package/types/AccountSessionsResource.d.ts +5 -354
- package/types/Accounts.d.ts +3 -127
- package/types/AccountsResource.d.ts +2 -296
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +0 -2
- package/types/Charges.d.ts +0 -152
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +5 -309
- package/types/Checkout/SessionsResource.d.ts +5 -356
- package/types/ConfirmationTokens.d.ts +0 -137
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +2 -22
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +2 -564
- package/types/Events.d.ts +0 -91
- 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/Forwarding/Requests.d.ts +0 -5
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -31
- package/types/Invoices.d.ts +3 -134
- package/types/InvoicesResource.d.ts +1836 -5515
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- 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 -85
- package/types/PaymentIntents.d.ts +1 -643
- package/types/PaymentIntentsResource.d.ts +3463 -7739
- 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 +2 -52
- package/types/PaymentMethods.d.ts +0 -137
- package/types/PaymentMethodsResource.d.ts +0 -158
- package/types/Persons.d.ts +1 -1
- 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 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/SetupAttempts.d.ts +0 -19
- package/types/SetupIntents.d.ts +1 -112
- package/types/SetupIntentsResource.d.ts +3 -669
- 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 +3 -348
- package/types/Tax/CalculationLineItems.d.ts +0 -1
- package/types/Tax/Calculations.d.ts +1 -33
- package/types/Tax/CalculationsResource.d.ts +1 -7
- package/types/Tax/Registrations.d.ts +0 -82
- package/types/Tax/RegistrationsResource.d.ts +0 -109
- package/types/Tax/Transactions.d.ts +1 -8
- package/types/TaxIds.d.ts +1 -7
- package/types/TaxIdsResource.d.ts +1 -7
- package/types/TaxRates.d.ts +0 -25
- package/types/TaxRatesResource.d.ts +0 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
- package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- 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 +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
- package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
- package/types/V2/Billing/MeterEvents.d.ts +1 -1
- package/types/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -66
- package/types/index.d.ts +0 -53
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/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/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/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/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1154
- package/types/OrdersResource.d.ts +0 -2911
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1596
- 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'
|
|
@@ -537,7 +505,6 @@ declare module 'stripe' {
|
|
|
537
505
|
| 'payment_method_unexpected_state'
|
|
538
506
|
| 'payment_method_unsupported_type'
|
|
539
507
|
| 'payout_reconciliation_not_ready'
|
|
540
|
-
| 'payout_statement_descriptor_profanity'
|
|
541
508
|
| 'payouts_limit_exceeded'
|
|
542
509
|
| 'payouts_not_allowed'
|
|
543
510
|
| 'platform_account_required'
|
|
@@ -554,7 +521,6 @@ declare module 'stripe' {
|
|
|
554
521
|
| 'return_intent_already_processed'
|
|
555
522
|
| 'routing_number_invalid'
|
|
556
523
|
| 'secret_key_required'
|
|
557
|
-
| 'sensitive_data_access_expired'
|
|
558
524
|
| 'sepa_unsupported_account'
|
|
559
525
|
| 'setup_attempt_failed'
|
|
560
526
|
| 'setup_intent_authentication_failure'
|
|
@@ -572,7 +538,6 @@ declare module 'stripe' {
|
|
|
572
538
|
| 'taxes_calculation_failed'
|
|
573
539
|
| 'terminal_location_country_unsupported'
|
|
574
540
|
| 'terminal_reader_busy'
|
|
575
|
-
| 'terminal_reader_collected_data_invalid'
|
|
576
541
|
| 'terminal_reader_hardware_fault'
|
|
577
542
|
| 'terminal_reader_invalid_location_for_activation'
|
|
578
543
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -1300,289 +1265,6 @@ declare module 'stripe' {
|
|
|
1300
1265
|
}
|
|
1301
1266
|
}
|
|
1302
1267
|
|
|
1303
|
-
interface PaymentDetails {
|
|
1304
|
-
car_rental?: PaymentDetails.CarRental;
|
|
1305
|
-
|
|
1306
|
-
event_details?: PaymentDetails.EventDetails;
|
|
1307
|
-
|
|
1308
|
-
subscription?: PaymentDetails.Subscription;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
namespace PaymentDetails {
|
|
1312
|
-
interface CarRental {
|
|
1313
|
-
affiliate?: CarRental.Affiliate;
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* The booking number associated with the car rental.
|
|
1317
|
-
*/
|
|
1318
|
-
booking_number: string;
|
|
1319
|
-
|
|
1320
|
-
/**
|
|
1321
|
-
* Class code of the car.
|
|
1322
|
-
*/
|
|
1323
|
-
car_class_code?: string;
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* Make of the car.
|
|
1327
|
-
*/
|
|
1328
|
-
car_make?: string;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* Model of the car.
|
|
1332
|
-
*/
|
|
1333
|
-
car_model?: string;
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* The name of the rental car company.
|
|
1337
|
-
*/
|
|
1338
|
-
company?: string;
|
|
1339
|
-
|
|
1340
|
-
/**
|
|
1341
|
-
* The customer service phone number of the car rental company.
|
|
1342
|
-
*/
|
|
1343
|
-
customer_service_phone_number?: string;
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* Number of days the car is being rented.
|
|
1347
|
-
*/
|
|
1348
|
-
days_rented: number;
|
|
1349
|
-
|
|
1350
|
-
delivery?: CarRental.Delivery;
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* The details of the drivers associated with the trip.
|
|
1354
|
-
*/
|
|
1355
|
-
drivers?: Array<CarRental.Driver>;
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* List of additional charges being billed.
|
|
1359
|
-
*/
|
|
1360
|
-
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Indicates if the customer did not keep nor cancel their booking.
|
|
1364
|
-
*/
|
|
1365
|
-
no_show?: boolean;
|
|
1366
|
-
|
|
1367
|
-
pickup_address?: Stripe.Address;
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1371
|
-
*/
|
|
1372
|
-
pickup_at: number;
|
|
1373
|
-
|
|
1374
|
-
/**
|
|
1375
|
-
* Rental rate.
|
|
1376
|
-
*/
|
|
1377
|
-
rate_amount?: number;
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1381
|
-
*/
|
|
1382
|
-
rate_interval?: CarRental.RateInterval;
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* The full name of the person or entity renting the car.
|
|
1386
|
-
*/
|
|
1387
|
-
renter_name?: string;
|
|
1388
|
-
|
|
1389
|
-
return_address?: Stripe.Address;
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* Car return time. Measured in seconds since the Unix epoch.
|
|
1393
|
-
*/
|
|
1394
|
-
return_at: number;
|
|
1395
|
-
|
|
1396
|
-
/**
|
|
1397
|
-
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1398
|
-
*/
|
|
1399
|
-
tax_exempt?: boolean;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
namespace CarRental {
|
|
1403
|
-
interface Affiliate {
|
|
1404
|
-
/**
|
|
1405
|
-
* The name of the affiliate that originated the purchase.
|
|
1406
|
-
*/
|
|
1407
|
-
name?: string;
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
interface Delivery {
|
|
1411
|
-
/**
|
|
1412
|
-
* The delivery method for the payment
|
|
1413
|
-
*/
|
|
1414
|
-
mode?: Delivery.Mode;
|
|
1415
|
-
|
|
1416
|
-
recipient?: Delivery.Recipient;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
namespace Delivery {
|
|
1420
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1421
|
-
|
|
1422
|
-
interface Recipient {
|
|
1423
|
-
/**
|
|
1424
|
-
* The email of the recipient the ticket is delivered to.
|
|
1425
|
-
*/
|
|
1426
|
-
email?: string;
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* The name of the recipient the ticket is delivered to.
|
|
1430
|
-
*/
|
|
1431
|
-
name?: string;
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1435
|
-
*/
|
|
1436
|
-
phone?: string;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
interface Driver {
|
|
1441
|
-
/**
|
|
1442
|
-
* Full name of the driver on the reservation.
|
|
1443
|
-
*/
|
|
1444
|
-
name?: string;
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
type ExtraCharge =
|
|
1448
|
-
| 'extra_mileage'
|
|
1449
|
-
| 'gas'
|
|
1450
|
-
| 'late_return'
|
|
1451
|
-
| 'one_way_service'
|
|
1452
|
-
| 'parking_violation';
|
|
1453
|
-
|
|
1454
|
-
type RateInterval = 'day' | 'month' | 'week';
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
interface EventDetails {
|
|
1458
|
-
/**
|
|
1459
|
-
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1460
|
-
*/
|
|
1461
|
-
access_controlled_venue?: boolean;
|
|
1462
|
-
|
|
1463
|
-
address?: Stripe.Address;
|
|
1464
|
-
|
|
1465
|
-
affiliate?: EventDetails.Affiliate;
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* The name of the company
|
|
1469
|
-
*/
|
|
1470
|
-
company?: string;
|
|
1471
|
-
|
|
1472
|
-
delivery?: EventDetails.Delivery;
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* Event end time. Measured in seconds since the Unix epoch.
|
|
1476
|
-
*/
|
|
1477
|
-
ends_at?: number;
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
* Type of the event entertainment (concert, sports event etc)
|
|
1481
|
-
*/
|
|
1482
|
-
genre?: string;
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* The name of the event.
|
|
1486
|
-
*/
|
|
1487
|
-
name?: string;
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* Event start time. Measured in seconds since the Unix epoch.
|
|
1491
|
-
*/
|
|
1492
|
-
starts_at?: number;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
namespace EventDetails {
|
|
1496
|
-
interface Affiliate {
|
|
1497
|
-
/**
|
|
1498
|
-
* The name of the affiliate that originated the purchase.
|
|
1499
|
-
*/
|
|
1500
|
-
name?: string;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
interface Delivery {
|
|
1504
|
-
/**
|
|
1505
|
-
* The delivery method for the payment
|
|
1506
|
-
*/
|
|
1507
|
-
mode?: Delivery.Mode;
|
|
1508
|
-
|
|
1509
|
-
recipient?: Delivery.Recipient;
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
namespace Delivery {
|
|
1513
|
-
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1514
|
-
|
|
1515
|
-
interface Recipient {
|
|
1516
|
-
/**
|
|
1517
|
-
* The email of the recipient the ticket is delivered to.
|
|
1518
|
-
*/
|
|
1519
|
-
email?: string;
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* The name of the recipient the ticket is delivered to.
|
|
1523
|
-
*/
|
|
1524
|
-
name?: string;
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* The phone number of the recipient the ticket is delivered to.
|
|
1528
|
-
*/
|
|
1529
|
-
phone?: string;
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
interface Subscription {
|
|
1535
|
-
affiliate?: Subscription.Affiliate;
|
|
1536
|
-
|
|
1537
|
-
/**
|
|
1538
|
-
* Info whether the subscription will be auto renewed upon expiry.
|
|
1539
|
-
*/
|
|
1540
|
-
auto_renewal?: boolean;
|
|
1541
|
-
|
|
1542
|
-
billing_interval?: Subscription.BillingInterval;
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1546
|
-
*/
|
|
1547
|
-
ends_at?: number;
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1551
|
-
*/
|
|
1552
|
-
name?: string;
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1556
|
-
*/
|
|
1557
|
-
starts_at?: number;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
namespace Subscription {
|
|
1561
|
-
interface Affiliate {
|
|
1562
|
-
/**
|
|
1563
|
-
* The name of the affiliate that originated the purchase.
|
|
1564
|
-
*/
|
|
1565
|
-
name?: string;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
interface BillingInterval {
|
|
1569
|
-
/**
|
|
1570
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1571
|
-
*/
|
|
1572
|
-
count?: number;
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1576
|
-
*/
|
|
1577
|
-
interval?: BillingInterval.Interval;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
namespace BillingInterval {
|
|
1581
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
1268
|
interface PaymentMethodConfigurationDetails {
|
|
1587
1269
|
/**
|
|
1588
1270
|
* ID of the payment method configuration used.
|
|
@@ -1636,46 +1318,30 @@ declare module 'stripe' {
|
|
|
1636
1318
|
|
|
1637
1319
|
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
1638
1320
|
|
|
1639
|
-
kakao_pay?: PaymentMethodOptions.KakaoPay;
|
|
1640
|
-
|
|
1641
1321
|
klarna?: PaymentMethodOptions.Klarna;
|
|
1642
1322
|
|
|
1643
1323
|
konbini?: PaymentMethodOptions.Konbini;
|
|
1644
1324
|
|
|
1645
|
-
kr_card?: PaymentMethodOptions.KrCard;
|
|
1646
|
-
|
|
1647
1325
|
link?: PaymentMethodOptions.Link;
|
|
1648
1326
|
|
|
1649
|
-
mb_way?: PaymentMethodOptions.MbWay;
|
|
1650
|
-
|
|
1651
1327
|
mobilepay?: PaymentMethodOptions.Mobilepay;
|
|
1652
1328
|
|
|
1653
1329
|
multibanco?: PaymentMethodOptions.Multibanco;
|
|
1654
1330
|
|
|
1655
|
-
naver_pay?: PaymentMethodOptions.NaverPay;
|
|
1656
|
-
|
|
1657
1331
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
1658
1332
|
|
|
1659
1333
|
p24?: PaymentMethodOptions.P24;
|
|
1660
1334
|
|
|
1661
|
-
payco?: PaymentMethodOptions.Payco;
|
|
1662
|
-
|
|
1663
1335
|
paynow?: PaymentMethodOptions.Paynow;
|
|
1664
1336
|
|
|
1665
1337
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1666
1338
|
|
|
1667
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1668
|
-
|
|
1669
1339
|
pix?: PaymentMethodOptions.Pix;
|
|
1670
1340
|
|
|
1671
1341
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1672
1342
|
|
|
1673
|
-
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1674
|
-
|
|
1675
1343
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1676
1344
|
|
|
1677
|
-
samsung_pay?: PaymentMethodOptions.SamsungPay;
|
|
1678
|
-
|
|
1679
1345
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
1680
1346
|
|
|
1681
1347
|
sofort?: PaymentMethodOptions.Sofort;
|
|
@@ -1952,11 +1618,6 @@ declare module 'stripe' {
|
|
|
1952
1618
|
*/
|
|
1953
1619
|
network: Card.Network | null;
|
|
1954
1620
|
|
|
1955
|
-
/**
|
|
1956
|
-
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
1957
|
-
*/
|
|
1958
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1959
|
-
|
|
1960
1621
|
/**
|
|
1961
1622
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1962
1623
|
*/
|
|
@@ -2007,8 +1668,6 @@ declare module 'stripe' {
|
|
|
2007
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.
|
|
2008
1669
|
*/
|
|
2009
1670
|
statement_descriptor_suffix_kanji?: string;
|
|
2010
|
-
|
|
2011
|
-
statement_details?: Card.StatementDetails;
|
|
2012
1671
|
}
|
|
2013
1672
|
|
|
2014
1673
|
namespace Card {
|
|
@@ -2134,8 +1793,6 @@ declare module 'stripe' {
|
|
|
2134
1793
|
| 'unknown'
|
|
2135
1794
|
| 'visa';
|
|
2136
1795
|
|
|
2137
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2138
|
-
|
|
2139
1796
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
2140
1797
|
|
|
2141
1798
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -2147,49 +1804,6 @@ declare module 'stripe' {
|
|
|
2147
1804
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
2148
1805
|
|
|
2149
1806
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2150
|
-
|
|
2151
|
-
interface StatementDetails {
|
|
2152
|
-
address?: StatementDetails.Address;
|
|
2153
|
-
|
|
2154
|
-
/**
|
|
2155
|
-
* Phone number
|
|
2156
|
-
*/
|
|
2157
|
-
phone?: string;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
namespace StatementDetails {
|
|
2161
|
-
interface Address {
|
|
2162
|
-
/**
|
|
2163
|
-
* City, district, suburb, town, or village.
|
|
2164
|
-
*/
|
|
2165
|
-
city?: string;
|
|
2166
|
-
|
|
2167
|
-
/**
|
|
2168
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2169
|
-
*/
|
|
2170
|
-
country?: string;
|
|
2171
|
-
|
|
2172
|
-
/**
|
|
2173
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2174
|
-
*/
|
|
2175
|
-
line1?: string;
|
|
2176
|
-
|
|
2177
|
-
/**
|
|
2178
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2179
|
-
*/
|
|
2180
|
-
line2?: string;
|
|
2181
|
-
|
|
2182
|
-
/**
|
|
2183
|
-
* ZIP or postal code.
|
|
2184
|
-
*/
|
|
2185
|
-
postal_code?: string;
|
|
2186
|
-
|
|
2187
|
-
/**
|
|
2188
|
-
* State, county, province, or region.
|
|
2189
|
-
*/
|
|
2190
|
-
state?: string;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
1807
|
}
|
|
2194
1808
|
|
|
2195
1809
|
interface CardPresent {
|
|
@@ -2379,28 +1993,6 @@ declare module 'stripe' {
|
|
|
2379
1993
|
|
|
2380
1994
|
interface InteracPresent {}
|
|
2381
1995
|
|
|
2382
|
-
interface KakaoPay {
|
|
2383
|
-
/**
|
|
2384
|
-
* Controls when the funds will be captured from the customer's account.
|
|
2385
|
-
*/
|
|
2386
|
-
capture_method?: 'manual';
|
|
2387
|
-
|
|
2388
|
-
/**
|
|
2389
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2390
|
-
*
|
|
2391
|
-
* 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.
|
|
2392
|
-
*
|
|
2393
|
-
* 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.
|
|
2394
|
-
*
|
|
2395
|
-
* 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).
|
|
2396
|
-
*/
|
|
2397
|
-
setup_future_usage?: KakaoPay.SetupFutureUsage;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
namespace KakaoPay {
|
|
2401
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
1996
|
interface Klarna {
|
|
2405
1997
|
/**
|
|
2406
1998
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2457,28 +2049,6 @@ declare module 'stripe' {
|
|
|
2457
2049
|
setup_future_usage?: 'none';
|
|
2458
2050
|
}
|
|
2459
2051
|
|
|
2460
|
-
interface KrCard {
|
|
2461
|
-
/**
|
|
2462
|
-
* Controls when the funds will be captured from the customer's account.
|
|
2463
|
-
*/
|
|
2464
|
-
capture_method?: 'manual';
|
|
2465
|
-
|
|
2466
|
-
/**
|
|
2467
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2468
|
-
*
|
|
2469
|
-
* 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.
|
|
2470
|
-
*
|
|
2471
|
-
* 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.
|
|
2472
|
-
*
|
|
2473
|
-
* 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).
|
|
2474
|
-
*/
|
|
2475
|
-
setup_future_usage?: KrCard.SetupFutureUsage;
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
|
-
namespace KrCard {
|
|
2479
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
2052
|
interface Link {
|
|
2483
2053
|
/**
|
|
2484
2054
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2507,19 +2077,6 @@ declare module 'stripe' {
|
|
|
2507
2077
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2508
2078
|
}
|
|
2509
2079
|
|
|
2510
|
-
interface MbWay {
|
|
2511
|
-
/**
|
|
2512
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2513
|
-
*
|
|
2514
|
-
* 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.
|
|
2515
|
-
*
|
|
2516
|
-
* 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.
|
|
2517
|
-
*
|
|
2518
|
-
* 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).
|
|
2519
|
-
*/
|
|
2520
|
-
setup_future_usage?: 'none';
|
|
2521
|
-
}
|
|
2522
|
-
|
|
2523
2080
|
interface Mobilepay {
|
|
2524
2081
|
/**
|
|
2525
2082
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2551,13 +2108,6 @@ declare module 'stripe' {
|
|
|
2551
2108
|
setup_future_usage?: 'none';
|
|
2552
2109
|
}
|
|
2553
2110
|
|
|
2554
|
-
interface NaverPay {
|
|
2555
|
-
/**
|
|
2556
|
-
* Controls when the funds will be captured from the customer's account.
|
|
2557
|
-
*/
|
|
2558
|
-
capture_method?: 'manual';
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
2111
|
interface Oxxo {
|
|
2562
2112
|
/**
|
|
2563
2113
|
* The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
@@ -2589,13 +2139,6 @@ declare module 'stripe' {
|
|
|
2589
2139
|
setup_future_usage?: 'none';
|
|
2590
2140
|
}
|
|
2591
2141
|
|
|
2592
|
-
interface Payco {
|
|
2593
|
-
/**
|
|
2594
|
-
* Controls when the funds will be captured from the customer's account.
|
|
2595
|
-
*/
|
|
2596
|
-
capture_method?: 'manual';
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
2142
|
interface Paynow {
|
|
2600
2143
|
/**
|
|
2601
2144
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2615,11 +2158,6 @@ declare module 'stripe' {
|
|
|
2615
2158
|
*/
|
|
2616
2159
|
capture_method?: 'manual';
|
|
2617
2160
|
|
|
2618
|
-
/**
|
|
2619
|
-
* The line items purchased by the customer.
|
|
2620
|
-
*/
|
|
2621
|
-
line_items?: Array<Paypal.LineItem>;
|
|
2622
|
-
|
|
2623
2161
|
/**
|
|
2624
2162
|
* Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2625
2163
|
*/
|
|
@@ -2630,11 +2168,6 @@ declare module 'stripe' {
|
|
|
2630
2168
|
*/
|
|
2631
2169
|
reference: string | null;
|
|
2632
2170
|
|
|
2633
|
-
/**
|
|
2634
|
-
* 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.
|
|
2635
|
-
*/
|
|
2636
|
-
reference_id?: string | null;
|
|
2637
|
-
|
|
2638
2171
|
/**
|
|
2639
2172
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2640
2173
|
*
|
|
@@ -2645,151 +2178,9 @@ declare module 'stripe' {
|
|
|
2645
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).
|
|
2646
2179
|
*/
|
|
2647
2180
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2648
|
-
|
|
2649
|
-
/**
|
|
2650
|
-
* 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.
|
|
2651
|
-
*/
|
|
2652
|
-
subsellers?: Array<string>;
|
|
2653
2181
|
}
|
|
2654
2182
|
|
|
2655
2183
|
namespace Paypal {
|
|
2656
|
-
interface LineItem {
|
|
2657
|
-
/**
|
|
2658
|
-
* Type of the line item.
|
|
2659
|
-
*/
|
|
2660
|
-
category?: LineItem.Category;
|
|
2661
|
-
|
|
2662
|
-
/**
|
|
2663
|
-
* Description of the line item.
|
|
2664
|
-
*/
|
|
2665
|
-
description?: string;
|
|
2666
|
-
|
|
2667
|
-
/**
|
|
2668
|
-
* Descriptive name of the line item.
|
|
2669
|
-
*/
|
|
2670
|
-
name: string;
|
|
2671
|
-
|
|
2672
|
-
/**
|
|
2673
|
-
* Quantity of the line item. Cannot be a negative number.
|
|
2674
|
-
*/
|
|
2675
|
-
quantity: number;
|
|
2676
|
-
|
|
2677
|
-
/**
|
|
2678
|
-
* Client facing stock keeping unit, article number or similar.
|
|
2679
|
-
*/
|
|
2680
|
-
sku?: string;
|
|
2681
|
-
|
|
2682
|
-
/**
|
|
2683
|
-
* The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
2684
|
-
*/
|
|
2685
|
-
sold_by?: string;
|
|
2686
|
-
|
|
2687
|
-
tax?: LineItem.Tax;
|
|
2688
|
-
|
|
2689
|
-
/**
|
|
2690
|
-
* Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2691
|
-
*/
|
|
2692
|
-
unit_amount: number;
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
namespace LineItem {
|
|
2696
|
-
type Category = 'digital_goods' | 'donation' | 'physical_goods';
|
|
2697
|
-
|
|
2698
|
-
interface Tax {
|
|
2699
|
-
/**
|
|
2700
|
-
* The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2701
|
-
*/
|
|
2702
|
-
amount: number;
|
|
2703
|
-
|
|
2704
|
-
/**
|
|
2705
|
-
* The tax behavior for the line item.
|
|
2706
|
-
*/
|
|
2707
|
-
behavior: Tax.Behavior;
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
namespace Tax {
|
|
2711
|
-
type Behavior = 'exclusive' | 'inclusive';
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
interface Payto {
|
|
2719
|
-
mandate_options?: Payto.MandateOptions;
|
|
2720
|
-
|
|
2721
|
-
/**
|
|
2722
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2723
|
-
*
|
|
2724
|
-
* 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.
|
|
2725
|
-
*
|
|
2726
|
-
* 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.
|
|
2727
|
-
*
|
|
2728
|
-
* 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).
|
|
2729
|
-
*/
|
|
2730
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2731
|
-
}
|
|
2732
|
-
|
|
2733
|
-
namespace Payto {
|
|
2734
|
-
interface MandateOptions {
|
|
2735
|
-
/**
|
|
2736
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2737
|
-
*/
|
|
2738
|
-
amount: number | null;
|
|
2739
|
-
|
|
2740
|
-
/**
|
|
2741
|
-
* 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.
|
|
2742
|
-
*/
|
|
2743
|
-
amount_type: MandateOptions.AmountType | null;
|
|
2744
|
-
|
|
2745
|
-
/**
|
|
2746
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2747
|
-
*/
|
|
2748
|
-
end_date: string | null;
|
|
2749
|
-
|
|
2750
|
-
/**
|
|
2751
|
-
* The periodicity at which payments will be collected.
|
|
2752
|
-
*/
|
|
2753
|
-
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2754
|
-
|
|
2755
|
-
/**
|
|
2756
|
-
* 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.
|
|
2757
|
-
*/
|
|
2758
|
-
payments_per_period: number | null;
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
2762
|
-
*/
|
|
2763
|
-
purpose: MandateOptions.Purpose | null;
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
|
-
namespace MandateOptions {
|
|
2767
|
-
type AmountType = 'fixed' | 'maximum';
|
|
2768
|
-
|
|
2769
|
-
type PaymentSchedule =
|
|
2770
|
-
| 'adhoc'
|
|
2771
|
-
| 'annual'
|
|
2772
|
-
| 'daily'
|
|
2773
|
-
| 'fortnightly'
|
|
2774
|
-
| 'monthly'
|
|
2775
|
-
| 'quarterly'
|
|
2776
|
-
| 'semi_annual'
|
|
2777
|
-
| 'weekly';
|
|
2778
|
-
|
|
2779
|
-
type Purpose =
|
|
2780
|
-
| 'dependant_support'
|
|
2781
|
-
| 'government'
|
|
2782
|
-
| 'loan'
|
|
2783
|
-
| 'mortgage'
|
|
2784
|
-
| 'other'
|
|
2785
|
-
| 'pension'
|
|
2786
|
-
| 'personal'
|
|
2787
|
-
| 'retail'
|
|
2788
|
-
| 'salary'
|
|
2789
|
-
| 'tax'
|
|
2790
|
-
| 'utility';
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
2184
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2794
2185
|
}
|
|
2795
2186
|
|
|
@@ -2829,8 +2220,6 @@ declare module 'stripe' {
|
|
|
2829
2220
|
setup_future_usage?: 'none';
|
|
2830
2221
|
}
|
|
2831
2222
|
|
|
2832
|
-
interface Rechnung {}
|
|
2833
|
-
|
|
2834
2223
|
interface RevolutPay {
|
|
2835
2224
|
/**
|
|
2836
2225
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2853,13 +2242,6 @@ declare module 'stripe' {
|
|
|
2853
2242
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2854
2243
|
}
|
|
2855
2244
|
|
|
2856
|
-
interface SamsungPay {
|
|
2857
|
-
/**
|
|
2858
|
-
* Controls when the funds will be captured from the customer's account.
|
|
2859
|
-
*/
|
|
2860
|
-
capture_method?: 'manual';
|
|
2861
|
-
}
|
|
2862
|
-
|
|
2863
2245
|
interface SepaDebit {
|
|
2864
2246
|
mandate_options?: SepaDebit.MandateOptions;
|
|
2865
2247
|
|
|
@@ -2974,8 +2356,6 @@ declare module 'stripe' {
|
|
|
2974
2356
|
interface FinancialConnections {
|
|
2975
2357
|
filters?: FinancialConnections.Filters;
|
|
2976
2358
|
|
|
2977
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
2978
|
-
|
|
2979
2359
|
/**
|
|
2980
2360
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2981
2361
|
*/
|
|
@@ -2998,39 +2378,19 @@ declare module 'stripe' {
|
|
|
2998
2378
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2999
2379
|
*/
|
|
3000
2380
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3001
|
-
|
|
3002
|
-
/**
|
|
3003
|
-
* The institution to use to filter for possible accounts to link.
|
|
3004
|
-
*/
|
|
3005
|
-
institution?: string;
|
|
3006
2381
|
}
|
|
3007
2382
|
|
|
3008
2383
|
namespace Filters {
|
|
3009
2384
|
type AccountSubcategory = 'checking' | 'savings';
|
|
3010
2385
|
}
|
|
3011
2386
|
|
|
3012
|
-
interface ManualEntry {
|
|
3013
|
-
/**
|
|
3014
|
-
* Settings for configuring manual entry of account details.
|
|
3015
|
-
*/
|
|
3016
|
-
mode?: ManualEntry.Mode;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
namespace ManualEntry {
|
|
3020
|
-
type Mode = 'automatic' | 'custom';
|
|
3021
|
-
}
|
|
3022
|
-
|
|
3023
2387
|
type Permission =
|
|
3024
2388
|
| 'balances'
|
|
3025
2389
|
| 'ownership'
|
|
3026
2390
|
| 'payment_method'
|
|
3027
2391
|
| 'transactions';
|
|
3028
2392
|
|
|
3029
|
-
type Prefetch =
|
|
3030
|
-
| 'balances'
|
|
3031
|
-
| 'inferred_balances'
|
|
3032
|
-
| 'ownership'
|
|
3033
|
-
| 'transactions';
|
|
2393
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
3034
2394
|
}
|
|
3035
2395
|
|
|
3036
2396
|
interface MandateOptions {
|
|
@@ -3117,8 +2477,6 @@ declare module 'stripe' {
|
|
|
3117
2477
|
}
|
|
3118
2478
|
}
|
|
3119
2479
|
|
|
3120
|
-
type SecretKeyConfirmation = 'optional' | 'required';
|
|
3121
|
-
|
|
3122
2480
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
3123
2481
|
|
|
3124
2482
|
interface Shipping {
|