stripe 17.4.0 → 17.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +991 -109
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +48 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +33 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +50 -5
- package/types/AccountSessionsResource.d.ts +360 -5
- package/types/Accounts.d.ts +184 -2
- package/types/AccountsResource.d.ts +496 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/Capabilities.d.ts +1 -1
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +244 -2
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +321 -4
- package/types/Checkout/SessionsResource.d.ts +448 -6
- package/types/ConfirmationTokens.d.ts +99 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/EventTypes.d.ts +596 -0
- package/types/Events.d.ts +93 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/FundingInstructions.d.ts +21 -0
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +28 -1
- package/types/InvoicePayments.d.ts +113 -0
- package/types/Invoices.d.ts +147 -2
- package/types/InvoicesResource.d.ts +5534 -1849
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +33 -1
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1155 -0
- package/types/OrdersResource.d.ts +2913 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +676 -2
- package/types/PaymentIntentsResource.d.ts +8054 -3767
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +18 -2
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +259 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1625 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +48 -0
- package/types/SetupIntents.d.ts +121 -1
- package/types/SetupIntentsResource.d.ts +645 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +91 -1
- package/types/SubscriptionsResource.d.ts +369 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +70 -0
- package/types/index.d.ts +62 -0
|
@@ -53,6 +53,8 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
application_fee_amount: number | null;
|
|
55
55
|
|
|
56
|
+
async_workflows?: PaymentIntent.AsyncWorkflows;
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
58
60
|
*/
|
|
@@ -146,6 +148,8 @@ declare module 'stripe' {
|
|
|
146
148
|
*/
|
|
147
149
|
on_behalf_of: string | Stripe.Account | null;
|
|
148
150
|
|
|
151
|
+
payment_details?: PaymentIntent.PaymentDetails;
|
|
152
|
+
|
|
149
153
|
/**
|
|
150
154
|
* ID of the payment method used in this PaymentIntent.
|
|
151
155
|
*/
|
|
@@ -181,6 +185,11 @@ declare module 'stripe' {
|
|
|
181
185
|
*/
|
|
182
186
|
review: string | Stripe.Review | null;
|
|
183
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
190
|
+
*/
|
|
191
|
+
secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
|
|
192
|
+
|
|
184
193
|
/**
|
|
185
194
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
186
195
|
*
|
|
@@ -248,6 +257,25 @@ declare module 'stripe' {
|
|
|
248
257
|
}
|
|
249
258
|
}
|
|
250
259
|
|
|
260
|
+
interface AsyncWorkflows {
|
|
261
|
+
inputs?: AsyncWorkflows.Inputs;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
namespace AsyncWorkflows {
|
|
265
|
+
interface Inputs {
|
|
266
|
+
tax?: Inputs.Tax;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
namespace Inputs {
|
|
270
|
+
interface Tax {
|
|
271
|
+
/**
|
|
272
|
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
273
|
+
*/
|
|
274
|
+
calculation: string;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
251
279
|
interface AutomaticPaymentMethods {
|
|
252
280
|
/**
|
|
253
281
|
* Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
@@ -305,6 +333,16 @@ declare module 'stripe' {
|
|
|
305
333
|
*/
|
|
306
334
|
message?: string;
|
|
307
335
|
|
|
336
|
+
/**
|
|
337
|
+
* For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
338
|
+
*/
|
|
339
|
+
network_advice_code?: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
|
|
343
|
+
*/
|
|
344
|
+
network_decline_code?: string;
|
|
345
|
+
|
|
308
346
|
/**
|
|
309
347
|
* If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
|
310
348
|
*/
|
|
@@ -427,11 +465,15 @@ declare module 'stripe' {
|
|
|
427
465
|
| 'email_invalid'
|
|
428
466
|
| 'expired_card'
|
|
429
467
|
| 'financial_connections_account_inactive'
|
|
468
|
+
| 'financial_connections_institution_unavailable'
|
|
430
469
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
431
470
|
| 'forwarding_api_inactive'
|
|
432
471
|
| 'forwarding_api_invalid_parameter'
|
|
433
472
|
| 'forwarding_api_upstream_connection_error'
|
|
434
473
|
| 'forwarding_api_upstream_connection_timeout'
|
|
474
|
+
| 'gift_card_balance_insufficient'
|
|
475
|
+
| 'gift_card_code_exists'
|
|
476
|
+
| 'gift_card_inactive'
|
|
435
477
|
| 'idempotency_key_in_use'
|
|
436
478
|
| 'incorrect_address'
|
|
437
479
|
| 'incorrect_cvc'
|
|
@@ -521,6 +563,7 @@ declare module 'stripe' {
|
|
|
521
563
|
| 'return_intent_already_processed'
|
|
522
564
|
| 'routing_number_invalid'
|
|
523
565
|
| 'secret_key_required'
|
|
566
|
+
| 'sensitive_data_access_expired'
|
|
524
567
|
| 'sepa_unsupported_account'
|
|
525
568
|
| 'setup_attempt_failed'
|
|
526
569
|
| 'setup_intent_authentication_failure'
|
|
@@ -538,6 +581,7 @@ declare module 'stripe' {
|
|
|
538
581
|
| 'taxes_calculation_failed'
|
|
539
582
|
| 'terminal_location_country_unsupported'
|
|
540
583
|
| 'terminal_reader_busy'
|
|
584
|
+
| 'terminal_reader_collected_data_invalid'
|
|
541
585
|
| 'terminal_reader_hardware_fault'
|
|
542
586
|
| 'terminal_reader_invalid_location_for_activation'
|
|
543
587
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -805,11 +849,15 @@ declare module 'stripe' {
|
|
|
805
849
|
}
|
|
806
850
|
|
|
807
851
|
interface Iban {
|
|
852
|
+
account_holder_address: Stripe.Address;
|
|
853
|
+
|
|
808
854
|
/**
|
|
809
855
|
* The name of the person or business that owns the bank account
|
|
810
856
|
*/
|
|
811
857
|
account_holder_name: string;
|
|
812
858
|
|
|
859
|
+
bank_address: Stripe.Address;
|
|
860
|
+
|
|
813
861
|
/**
|
|
814
862
|
* The BIC/SWIFT code of the account.
|
|
815
863
|
*/
|
|
@@ -827,6 +875,8 @@ declare module 'stripe' {
|
|
|
827
875
|
}
|
|
828
876
|
|
|
829
877
|
interface SortCode {
|
|
878
|
+
account_holder_address: Stripe.Address;
|
|
879
|
+
|
|
830
880
|
/**
|
|
831
881
|
* The name of the person or business that owns the bank account
|
|
832
882
|
*/
|
|
@@ -837,6 +887,8 @@ declare module 'stripe' {
|
|
|
837
887
|
*/
|
|
838
888
|
account_number: string;
|
|
839
889
|
|
|
890
|
+
bank_address: Stripe.Address;
|
|
891
|
+
|
|
840
892
|
/**
|
|
841
893
|
* The six-digit sort code
|
|
842
894
|
*/
|
|
@@ -844,6 +896,15 @@ declare module 'stripe' {
|
|
|
844
896
|
}
|
|
845
897
|
|
|
846
898
|
interface Spei {
|
|
899
|
+
account_holder_address: Stripe.Address;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* The account holder name
|
|
903
|
+
*/
|
|
904
|
+
account_holder_name: string;
|
|
905
|
+
|
|
906
|
+
bank_address: Stripe.Address;
|
|
907
|
+
|
|
847
908
|
/**
|
|
848
909
|
* The three-digit bank code
|
|
849
910
|
*/
|
|
@@ -910,6 +971,8 @@ declare module 'stripe' {
|
|
|
910
971
|
| 'zengin';
|
|
911
972
|
|
|
912
973
|
interface Zengin {
|
|
974
|
+
account_holder_address: Stripe.Address;
|
|
975
|
+
|
|
913
976
|
/**
|
|
914
977
|
* The account holder name
|
|
915
978
|
*/
|
|
@@ -925,6 +988,8 @@ declare module 'stripe' {
|
|
|
925
988
|
*/
|
|
926
989
|
account_type: string | null;
|
|
927
990
|
|
|
991
|
+
bank_address: Stripe.Address;
|
|
992
|
+
|
|
928
993
|
/**
|
|
929
994
|
* The bank code of the account
|
|
930
995
|
*/
|
|
@@ -1293,6 +1358,289 @@ declare module 'stripe' {
|
|
|
1293
1358
|
}
|
|
1294
1359
|
}
|
|
1295
1360
|
|
|
1361
|
+
interface PaymentDetails {
|
|
1362
|
+
car_rental?: PaymentDetails.CarRental;
|
|
1363
|
+
|
|
1364
|
+
event_details?: PaymentDetails.EventDetails;
|
|
1365
|
+
|
|
1366
|
+
subscription?: PaymentDetails.Subscription;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
namespace PaymentDetails {
|
|
1370
|
+
interface CarRental {
|
|
1371
|
+
affiliate?: CarRental.Affiliate;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* The booking number associated with the car rental.
|
|
1375
|
+
*/
|
|
1376
|
+
booking_number: string;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Class code of the car.
|
|
1380
|
+
*/
|
|
1381
|
+
car_class_code?: string;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Make of the car.
|
|
1385
|
+
*/
|
|
1386
|
+
car_make?: string;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Model of the car.
|
|
1390
|
+
*/
|
|
1391
|
+
car_model?: string;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* The name of the rental car company.
|
|
1395
|
+
*/
|
|
1396
|
+
company?: string;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* The customer service phone number of the car rental company.
|
|
1400
|
+
*/
|
|
1401
|
+
customer_service_phone_number?: string;
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Number of days the car is being rented.
|
|
1405
|
+
*/
|
|
1406
|
+
days_rented: number;
|
|
1407
|
+
|
|
1408
|
+
delivery?: CarRental.Delivery;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* The details of the drivers associated with the trip.
|
|
1412
|
+
*/
|
|
1413
|
+
drivers?: Array<CarRental.Driver>;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* List of additional charges being billed.
|
|
1417
|
+
*/
|
|
1418
|
+
extra_charges?: Array<CarRental.ExtraCharge>;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Indicates if the customer did not keep nor cancel their booking.
|
|
1422
|
+
*/
|
|
1423
|
+
no_show?: boolean;
|
|
1424
|
+
|
|
1425
|
+
pickup_address?: Stripe.Address;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1429
|
+
*/
|
|
1430
|
+
pickup_at: number;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Rental rate.
|
|
1434
|
+
*/
|
|
1435
|
+
rate_amount?: number;
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1439
|
+
*/
|
|
1440
|
+
rate_interval?: CarRental.RateInterval;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* The full name of the person or entity renting the car.
|
|
1444
|
+
*/
|
|
1445
|
+
renter_name?: string;
|
|
1446
|
+
|
|
1447
|
+
return_address?: Stripe.Address;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Car return time. Measured in seconds since the Unix epoch.
|
|
1451
|
+
*/
|
|
1452
|
+
return_at: number;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1456
|
+
*/
|
|
1457
|
+
tax_exempt?: boolean;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
namespace CarRental {
|
|
1461
|
+
interface Affiliate {
|
|
1462
|
+
/**
|
|
1463
|
+
* The name of the affiliate that originated the purchase.
|
|
1464
|
+
*/
|
|
1465
|
+
name?: string;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
interface Delivery {
|
|
1469
|
+
/**
|
|
1470
|
+
* The delivery method for the payment
|
|
1471
|
+
*/
|
|
1472
|
+
mode?: Delivery.Mode;
|
|
1473
|
+
|
|
1474
|
+
recipient?: Delivery.Recipient;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
namespace Delivery {
|
|
1478
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1479
|
+
|
|
1480
|
+
interface Recipient {
|
|
1481
|
+
/**
|
|
1482
|
+
* The email of the recipient the ticket is delivered to.
|
|
1483
|
+
*/
|
|
1484
|
+
email?: string;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* The name of the recipient the ticket is delivered to.
|
|
1488
|
+
*/
|
|
1489
|
+
name?: string;
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1493
|
+
*/
|
|
1494
|
+
phone?: string;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
interface Driver {
|
|
1499
|
+
/**
|
|
1500
|
+
* Full name of the driver on the reservation.
|
|
1501
|
+
*/
|
|
1502
|
+
name?: string;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
type ExtraCharge =
|
|
1506
|
+
| 'extra_mileage'
|
|
1507
|
+
| 'gas'
|
|
1508
|
+
| 'late_return'
|
|
1509
|
+
| 'one_way_service'
|
|
1510
|
+
| 'parking_violation';
|
|
1511
|
+
|
|
1512
|
+
type RateInterval = 'day' | 'month' | 'week';
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
interface EventDetails {
|
|
1516
|
+
/**
|
|
1517
|
+
* Indicates if the tickets are digitally checked when entering the venue.
|
|
1518
|
+
*/
|
|
1519
|
+
access_controlled_venue?: boolean;
|
|
1520
|
+
|
|
1521
|
+
address?: Stripe.Address;
|
|
1522
|
+
|
|
1523
|
+
affiliate?: EventDetails.Affiliate;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* The name of the company
|
|
1527
|
+
*/
|
|
1528
|
+
company?: string;
|
|
1529
|
+
|
|
1530
|
+
delivery?: EventDetails.Delivery;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Event end time. Measured in seconds since the Unix epoch.
|
|
1534
|
+
*/
|
|
1535
|
+
ends_at?: number;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Type of the event entertainment (concert, sports event etc)
|
|
1539
|
+
*/
|
|
1540
|
+
genre?: string;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* The name of the event.
|
|
1544
|
+
*/
|
|
1545
|
+
name?: string;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Event start time. Measured in seconds since the Unix epoch.
|
|
1549
|
+
*/
|
|
1550
|
+
starts_at?: number;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
namespace EventDetails {
|
|
1554
|
+
interface Affiliate {
|
|
1555
|
+
/**
|
|
1556
|
+
* The name of the affiliate that originated the purchase.
|
|
1557
|
+
*/
|
|
1558
|
+
name?: string;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
interface Delivery {
|
|
1562
|
+
/**
|
|
1563
|
+
* The delivery method for the payment
|
|
1564
|
+
*/
|
|
1565
|
+
mode?: Delivery.Mode;
|
|
1566
|
+
|
|
1567
|
+
recipient?: Delivery.Recipient;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
namespace Delivery {
|
|
1571
|
+
type Mode = 'email' | 'phone' | 'pickup' | 'post';
|
|
1572
|
+
|
|
1573
|
+
interface Recipient {
|
|
1574
|
+
/**
|
|
1575
|
+
* The email of the recipient the ticket is delivered to.
|
|
1576
|
+
*/
|
|
1577
|
+
email?: string;
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* The name of the recipient the ticket is delivered to.
|
|
1581
|
+
*/
|
|
1582
|
+
name?: string;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* The phone number of the recipient the ticket is delivered to.
|
|
1586
|
+
*/
|
|
1587
|
+
phone?: string;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
interface Subscription {
|
|
1593
|
+
affiliate?: Subscription.Affiliate;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Info whether the subscription will be auto renewed upon expiry.
|
|
1597
|
+
*/
|
|
1598
|
+
auto_renewal?: boolean;
|
|
1599
|
+
|
|
1600
|
+
billing_interval?: Subscription.BillingInterval;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Subscription end time. Measured in seconds since the Unix epoch.
|
|
1604
|
+
*/
|
|
1605
|
+
ends_at?: number;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1609
|
+
*/
|
|
1610
|
+
name?: string;
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Subscription start time. Measured in seconds since the Unix epoch.
|
|
1614
|
+
*/
|
|
1615
|
+
starts_at?: number;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
namespace Subscription {
|
|
1619
|
+
interface Affiliate {
|
|
1620
|
+
/**
|
|
1621
|
+
* The name of the affiliate that originated the purchase.
|
|
1622
|
+
*/
|
|
1623
|
+
name?: string;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
interface BillingInterval {
|
|
1627
|
+
/**
|
|
1628
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1629
|
+
*/
|
|
1630
|
+
count?: number;
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1634
|
+
*/
|
|
1635
|
+
interval?: BillingInterval.Interval;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
namespace BillingInterval {
|
|
1639
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1296
1644
|
interface PaymentMethodConfigurationDetails {
|
|
1297
1645
|
/**
|
|
1298
1646
|
* ID of the payment method configuration used.
|
|
@@ -1342,8 +1690,12 @@ declare module 'stripe' {
|
|
|
1342
1690
|
|
|
1343
1691
|
giropay?: PaymentMethodOptions.Giropay;
|
|
1344
1692
|
|
|
1693
|
+
gopay?: PaymentMethodOptions.Gopay;
|
|
1694
|
+
|
|
1345
1695
|
grabpay?: PaymentMethodOptions.Grabpay;
|
|
1346
1696
|
|
|
1697
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
|
|
1698
|
+
|
|
1347
1699
|
ideal?: PaymentMethodOptions.Ideal;
|
|
1348
1700
|
|
|
1349
1701
|
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
@@ -1358,6 +1710,8 @@ declare module 'stripe' {
|
|
|
1358
1710
|
|
|
1359
1711
|
link?: PaymentMethodOptions.Link;
|
|
1360
1712
|
|
|
1713
|
+
mb_way?: PaymentMethodOptions.MbWay;
|
|
1714
|
+
|
|
1361
1715
|
mobilepay?: PaymentMethodOptions.Mobilepay;
|
|
1362
1716
|
|
|
1363
1717
|
multibanco?: PaymentMethodOptions.Multibanco;
|
|
@@ -1374,16 +1728,24 @@ declare module 'stripe' {
|
|
|
1374
1728
|
|
|
1375
1729
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1376
1730
|
|
|
1731
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1732
|
+
|
|
1377
1733
|
pix?: PaymentMethodOptions.Pix;
|
|
1378
1734
|
|
|
1379
1735
|
promptpay?: PaymentMethodOptions.Promptpay;
|
|
1380
1736
|
|
|
1737
|
+
qris?: PaymentMethodOptions.Qris;
|
|
1738
|
+
|
|
1739
|
+
rechnung?: PaymentMethodOptions.Rechnung;
|
|
1740
|
+
|
|
1381
1741
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
1382
1742
|
|
|
1383
1743
|
samsung_pay?: PaymentMethodOptions.SamsungPay;
|
|
1384
1744
|
|
|
1385
1745
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
1386
1746
|
|
|
1747
|
+
shopeepay?: PaymentMethodOptions.Shopeepay;
|
|
1748
|
+
|
|
1387
1749
|
sofort?: PaymentMethodOptions.Sofort;
|
|
1388
1750
|
|
|
1389
1751
|
swish?: PaymentMethodOptions.Swish;
|
|
@@ -1665,6 +2027,11 @@ declare module 'stripe' {
|
|
|
1665
2027
|
*/
|
|
1666
2028
|
network: Card.Network | null;
|
|
1667
2029
|
|
|
2030
|
+
/**
|
|
2031
|
+
* Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
2032
|
+
*/
|
|
2033
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
2034
|
+
|
|
1668
2035
|
/**
|
|
1669
2036
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1670
2037
|
*/
|
|
@@ -1685,6 +2052,11 @@ declare module 'stripe' {
|
|
|
1685
2052
|
*/
|
|
1686
2053
|
request_overcapture?: Card.RequestOvercapture;
|
|
1687
2054
|
|
|
2055
|
+
/**
|
|
2056
|
+
* Request partial authorization on this PaymentIntent.
|
|
2057
|
+
*/
|
|
2058
|
+
request_partial_authorization?: Card.RequestPartialAuthorization;
|
|
2059
|
+
|
|
1688
2060
|
/**
|
|
1689
2061
|
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1690
2062
|
*/
|
|
@@ -1715,6 +2087,8 @@ declare module 'stripe' {
|
|
|
1715
2087
|
* 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.
|
|
1716
2088
|
*/
|
|
1717
2089
|
statement_descriptor_suffix_kanji?: string;
|
|
2090
|
+
|
|
2091
|
+
statement_details?: Card.StatementDetails;
|
|
1718
2092
|
}
|
|
1719
2093
|
|
|
1720
2094
|
namespace Card {
|
|
@@ -1841,6 +2215,8 @@ declare module 'stripe' {
|
|
|
1841
2215
|
| 'unknown'
|
|
1842
2216
|
| 'visa';
|
|
1843
2217
|
|
|
2218
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
2219
|
+
|
|
1844
2220
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1845
2221
|
|
|
1846
2222
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1849,9 +2225,54 @@ declare module 'stripe' {
|
|
|
1849
2225
|
|
|
1850
2226
|
type RequestOvercapture = 'if_available' | 'never';
|
|
1851
2227
|
|
|
2228
|
+
type RequestPartialAuthorization = 'if_available' | 'never';
|
|
2229
|
+
|
|
1852
2230
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1853
2231
|
|
|
1854
2232
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2233
|
+
|
|
2234
|
+
interface StatementDetails {
|
|
2235
|
+
address?: StatementDetails.Address;
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* Phone number
|
|
2239
|
+
*/
|
|
2240
|
+
phone?: string;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
namespace StatementDetails {
|
|
2244
|
+
interface Address {
|
|
2245
|
+
/**
|
|
2246
|
+
* City, district, suburb, town, or village.
|
|
2247
|
+
*/
|
|
2248
|
+
city?: string;
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2252
|
+
*/
|
|
2253
|
+
country?: string;
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2257
|
+
*/
|
|
2258
|
+
line1?: string;
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2262
|
+
*/
|
|
2263
|
+
line2?: string;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* ZIP or postal code.
|
|
2267
|
+
*/
|
|
2268
|
+
postal_code?: string;
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* State, county, province, or region.
|
|
2272
|
+
*/
|
|
2273
|
+
state?: string;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
1855
2276
|
}
|
|
1856
2277
|
|
|
1857
2278
|
interface CardPresent {
|
|
@@ -2009,6 +2430,19 @@ declare module 'stripe' {
|
|
|
2009
2430
|
setup_future_usage?: 'none';
|
|
2010
2431
|
}
|
|
2011
2432
|
|
|
2433
|
+
interface Gopay {
|
|
2434
|
+
/**
|
|
2435
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2436
|
+
*
|
|
2437
|
+
* 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.
|
|
2438
|
+
*
|
|
2439
|
+
* 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.
|
|
2440
|
+
*
|
|
2441
|
+
* 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).
|
|
2442
|
+
*/
|
|
2443
|
+
setup_future_usage?: 'none';
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2012
2446
|
interface Grabpay {
|
|
2013
2447
|
/**
|
|
2014
2448
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2022,6 +2456,29 @@ declare module 'stripe' {
|
|
|
2022
2456
|
setup_future_usage?: 'none';
|
|
2023
2457
|
}
|
|
2024
2458
|
|
|
2459
|
+
interface IdBankTransfer {
|
|
2460
|
+
/**
|
|
2461
|
+
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2462
|
+
*/
|
|
2463
|
+
expires_after?: number | null;
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
2467
|
+
*/
|
|
2468
|
+
expires_at: number | null;
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2472
|
+
*
|
|
2473
|
+
* 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.
|
|
2474
|
+
*
|
|
2475
|
+
* 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.
|
|
2476
|
+
*
|
|
2477
|
+
* 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).
|
|
2478
|
+
*/
|
|
2479
|
+
setup_future_usage?: 'none';
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2025
2482
|
interface Ideal {
|
|
2026
2483
|
/**
|
|
2027
2484
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2169,6 +2626,19 @@ declare module 'stripe' {
|
|
|
2169
2626
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2170
2627
|
}
|
|
2171
2628
|
|
|
2629
|
+
interface MbWay {
|
|
2630
|
+
/**
|
|
2631
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2632
|
+
*
|
|
2633
|
+
* 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.
|
|
2634
|
+
*
|
|
2635
|
+
* 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.
|
|
2636
|
+
*
|
|
2637
|
+
* 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).
|
|
2638
|
+
*/
|
|
2639
|
+
setup_future_usage?: 'none';
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2172
2642
|
interface Mobilepay {
|
|
2173
2643
|
/**
|
|
2174
2644
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2264,6 +2734,11 @@ declare module 'stripe' {
|
|
|
2264
2734
|
*/
|
|
2265
2735
|
capture_method?: 'manual';
|
|
2266
2736
|
|
|
2737
|
+
/**
|
|
2738
|
+
* The line items purchased by the customer.
|
|
2739
|
+
*/
|
|
2740
|
+
line_items?: Array<Paypal.LineItem>;
|
|
2741
|
+
|
|
2267
2742
|
/**
|
|
2268
2743
|
* Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2269
2744
|
*/
|
|
@@ -2274,6 +2749,11 @@ declare module 'stripe' {
|
|
|
2274
2749
|
*/
|
|
2275
2750
|
reference: string | null;
|
|
2276
2751
|
|
|
2752
|
+
/**
|
|
2753
|
+
* 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.
|
|
2754
|
+
*/
|
|
2755
|
+
reference_id?: string | null;
|
|
2756
|
+
|
|
2277
2757
|
/**
|
|
2278
2758
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2279
2759
|
*
|
|
@@ -2284,9 +2764,151 @@ declare module 'stripe' {
|
|
|
2284
2764
|
* 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).
|
|
2285
2765
|
*/
|
|
2286
2766
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
2767
|
+
|
|
2768
|
+
/**
|
|
2769
|
+
* 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.
|
|
2770
|
+
*/
|
|
2771
|
+
subsellers?: Array<string>;
|
|
2287
2772
|
}
|
|
2288
2773
|
|
|
2289
2774
|
namespace Paypal {
|
|
2775
|
+
interface LineItem {
|
|
2776
|
+
/**
|
|
2777
|
+
* Type of the line item.
|
|
2778
|
+
*/
|
|
2779
|
+
category?: LineItem.Category;
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* Description of the line item.
|
|
2783
|
+
*/
|
|
2784
|
+
description?: string;
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* Descriptive name of the line item.
|
|
2788
|
+
*/
|
|
2789
|
+
name: string;
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* Quantity of the line item. Cannot be a negative number.
|
|
2793
|
+
*/
|
|
2794
|
+
quantity: number;
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Client facing stock keeping unit, article number or similar.
|
|
2798
|
+
*/
|
|
2799
|
+
sku?: string;
|
|
2800
|
+
|
|
2801
|
+
/**
|
|
2802
|
+
* 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).
|
|
2803
|
+
*/
|
|
2804
|
+
sold_by?: string;
|
|
2805
|
+
|
|
2806
|
+
tax?: LineItem.Tax;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2810
|
+
*/
|
|
2811
|
+
unit_amount: number;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
namespace LineItem {
|
|
2815
|
+
type Category = 'digital_goods' | 'donation' | 'physical_goods';
|
|
2816
|
+
|
|
2817
|
+
interface Tax {
|
|
2818
|
+
/**
|
|
2819
|
+
* The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2820
|
+
*/
|
|
2821
|
+
amount: number;
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* The tax behavior for the line item.
|
|
2825
|
+
*/
|
|
2826
|
+
behavior: Tax.Behavior;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
namespace Tax {
|
|
2830
|
+
type Behavior = 'exclusive' | 'inclusive';
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
interface Payto {
|
|
2838
|
+
mandate_options?: Payto.MandateOptions;
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2842
|
+
*
|
|
2843
|
+
* 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.
|
|
2844
|
+
*
|
|
2845
|
+
* 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.
|
|
2846
|
+
*
|
|
2847
|
+
* 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).
|
|
2848
|
+
*/
|
|
2849
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
namespace Payto {
|
|
2853
|
+
interface MandateOptions {
|
|
2854
|
+
/**
|
|
2855
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2856
|
+
*/
|
|
2857
|
+
amount: number | null;
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* 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.
|
|
2861
|
+
*/
|
|
2862
|
+
amount_type: MandateOptions.AmountType | null;
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2866
|
+
*/
|
|
2867
|
+
end_date: string | null;
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* The periodicity at which payments will be collected.
|
|
2871
|
+
*/
|
|
2872
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* 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.
|
|
2876
|
+
*/
|
|
2877
|
+
payments_per_period: number | null;
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2881
|
+
*/
|
|
2882
|
+
purpose: MandateOptions.Purpose | null;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
namespace MandateOptions {
|
|
2886
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2887
|
+
|
|
2888
|
+
type PaymentSchedule =
|
|
2889
|
+
| 'adhoc'
|
|
2890
|
+
| 'annual'
|
|
2891
|
+
| 'daily'
|
|
2892
|
+
| 'fortnightly'
|
|
2893
|
+
| 'monthly'
|
|
2894
|
+
| 'quarterly'
|
|
2895
|
+
| 'semi_annual'
|
|
2896
|
+
| 'weekly';
|
|
2897
|
+
|
|
2898
|
+
type Purpose =
|
|
2899
|
+
| 'dependant_support'
|
|
2900
|
+
| 'government'
|
|
2901
|
+
| 'loan'
|
|
2902
|
+
| 'mortgage'
|
|
2903
|
+
| 'other'
|
|
2904
|
+
| 'pension'
|
|
2905
|
+
| 'personal'
|
|
2906
|
+
| 'retail'
|
|
2907
|
+
| 'salary'
|
|
2908
|
+
| 'tax'
|
|
2909
|
+
| 'utility';
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2290
2912
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2291
2913
|
}
|
|
2292
2914
|
|
|
@@ -2326,6 +2948,21 @@ declare module 'stripe' {
|
|
|
2326
2948
|
setup_future_usage?: 'none';
|
|
2327
2949
|
}
|
|
2328
2950
|
|
|
2951
|
+
interface Qris {
|
|
2952
|
+
/**
|
|
2953
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2954
|
+
*
|
|
2955
|
+
* 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.
|
|
2956
|
+
*
|
|
2957
|
+
* 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.
|
|
2958
|
+
*
|
|
2959
|
+
* 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).
|
|
2960
|
+
*/
|
|
2961
|
+
setup_future_usage?: 'none';
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
interface Rechnung {}
|
|
2965
|
+
|
|
2329
2966
|
interface RevolutPay {
|
|
2330
2967
|
/**
|
|
2331
2968
|
* Controls when the funds will be captured from the customer's account.
|
|
@@ -2376,6 +3013,19 @@ declare module 'stripe' {
|
|
|
2376
3013
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
2377
3014
|
}
|
|
2378
3015
|
|
|
3016
|
+
interface Shopeepay {
|
|
3017
|
+
/**
|
|
3018
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3019
|
+
*
|
|
3020
|
+
* 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.
|
|
3021
|
+
*
|
|
3022
|
+
* 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.
|
|
3023
|
+
*
|
|
3024
|
+
* 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).
|
|
3025
|
+
*/
|
|
3026
|
+
setup_future_usage?: 'none';
|
|
3027
|
+
}
|
|
3028
|
+
|
|
2379
3029
|
interface Sofort {
|
|
2380
3030
|
/**
|
|
2381
3031
|
* Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
@@ -2409,7 +3059,7 @@ declare module 'stripe' {
|
|
|
2409
3059
|
|
|
2410
3060
|
interface Swish {
|
|
2411
3061
|
/**
|
|
2412
|
-
*
|
|
3062
|
+
* A reference for this payment to be displayed in the Swish app.
|
|
2413
3063
|
*/
|
|
2414
3064
|
reference: string | null;
|
|
2415
3065
|
|
|
@@ -2469,6 +3119,8 @@ declare module 'stripe' {
|
|
|
2469
3119
|
interface FinancialConnections {
|
|
2470
3120
|
filters?: FinancialConnections.Filters;
|
|
2471
3121
|
|
|
3122
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
3123
|
+
|
|
2472
3124
|
/**
|
|
2473
3125
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
2474
3126
|
*/
|
|
@@ -2491,19 +3143,39 @@ declare module 'stripe' {
|
|
|
2491
3143
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2492
3144
|
*/
|
|
2493
3145
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* The institution to use to filter for possible accounts to link.
|
|
3149
|
+
*/
|
|
3150
|
+
institution?: string;
|
|
2494
3151
|
}
|
|
2495
3152
|
|
|
2496
3153
|
namespace Filters {
|
|
2497
3154
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2498
3155
|
}
|
|
2499
3156
|
|
|
3157
|
+
interface ManualEntry {
|
|
3158
|
+
/**
|
|
3159
|
+
* Settings for configuring manual entry of account details.
|
|
3160
|
+
*/
|
|
3161
|
+
mode?: ManualEntry.Mode;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
namespace ManualEntry {
|
|
3165
|
+
type Mode = 'automatic' | 'custom';
|
|
3166
|
+
}
|
|
3167
|
+
|
|
2500
3168
|
type Permission =
|
|
2501
3169
|
| 'balances'
|
|
2502
3170
|
| 'ownership'
|
|
2503
3171
|
| 'payment_method'
|
|
2504
3172
|
| 'transactions';
|
|
2505
3173
|
|
|
2506
|
-
type Prefetch =
|
|
3174
|
+
type Prefetch =
|
|
3175
|
+
| 'balances'
|
|
3176
|
+
| 'inferred_balances'
|
|
3177
|
+
| 'ownership'
|
|
3178
|
+
| 'transactions';
|
|
2507
3179
|
}
|
|
2508
3180
|
|
|
2509
3181
|
interface MandateOptions {
|
|
@@ -2590,6 +3262,8 @@ declare module 'stripe' {
|
|
|
2590
3262
|
}
|
|
2591
3263
|
}
|
|
2592
3264
|
|
|
3265
|
+
type SecretKeyConfirmation = 'optional' | 'required';
|
|
3266
|
+
|
|
2593
3267
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
2594
3268
|
|
|
2595
3269
|
interface Shipping {
|