stripe 17.6.0 → 17.7.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 +1068 -109
- package/OPENAPI_VERSION +1 -0
- package/README.md +1 -0
- 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 +45 -0
- package/types/AccountSessionsResource.d.ts +243 -0
- package/types/Accounts.d.ts +205 -1
- package/types/AccountsResource.d.ts +526 -2
- package/types/Balance.d.ts +18 -18
- package/types/Billing/CreditBalanceSummaryResource.d.ts +14 -0
- package/types/Billing/CreditGrants.d.ts +15 -1
- package/types/Billing/CreditGrantsResource.d.ts +14 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Billing/MeterEventSummaries.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +5 -0
- package/types/Charges.d.ts +151 -3
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +362 -9
- package/types/Checkout/SessionsResource.d.ts +465 -5
- package/types/ConfirmationTokens.d.ts +103 -4
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +23 -2
- 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/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 +139 -4
- package/types/InvoicesResource.d.ts +4618 -933
- package/types/Issuing/Authorizations.d.ts +1 -0
- 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 +34 -2
- 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 +1179 -0
- package/types/OrdersResource.d.ts +2961 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +644 -1
- package/types/PaymentIntentsResource.d.ts +8027 -3740
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +103 -4
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +242 -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 +1658 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
- package/types/Quotes.d.ts +597 -7
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +16 -2
- package/types/SetupAttempts.d.ts +38 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +648 -6
- package/types/Sources.d.ts +29 -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/CalculationLineItems.d.ts +1 -1
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Tax/Transactions.d.ts +1 -1
- package/types/TaxRates.d.ts +3 -3
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +290 -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/TokensResource.d.ts +3 -1
- 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
|
@@ -75,10 +75,15 @@ declare module 'stripe' {
|
|
|
75
75
|
client_reference_id: string | null;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* The client secret of the Session. Use this with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
|
|
79
79
|
*/
|
|
80
80
|
client_secret: string | null;
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Information about the customer collected within the Checkout Session.
|
|
84
|
+
*/
|
|
85
|
+
collected_information?: Session.CollectedInformation | null;
|
|
86
|
+
|
|
82
87
|
/**
|
|
83
88
|
* Results of `consent_collection` for this session.
|
|
84
89
|
*/
|
|
@@ -142,7 +147,7 @@ declare module 'stripe' {
|
|
|
142
147
|
/**
|
|
143
148
|
* List of coupons and promotion codes attached to the Checkout Session.
|
|
144
149
|
*/
|
|
145
|
-
discounts
|
|
150
|
+
discounts: Array<Session.Discount> | null;
|
|
146
151
|
|
|
147
152
|
/**
|
|
148
153
|
* The timestamp at which the Checkout Session will expire.
|
|
@@ -221,6 +226,13 @@ declare module 'stripe' {
|
|
|
221
226
|
*/
|
|
222
227
|
payment_status: Session.PaymentStatus;
|
|
223
228
|
|
|
229
|
+
/**
|
|
230
|
+
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
231
|
+
*
|
|
232
|
+
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
|
|
233
|
+
*/
|
|
234
|
+
permissions?: Session.Permissions | null;
|
|
235
|
+
|
|
224
236
|
phone_number_collection?: Session.PhoneNumberCollection;
|
|
225
237
|
|
|
226
238
|
/**
|
|
@@ -234,7 +246,7 @@ declare module 'stripe' {
|
|
|
234
246
|
redirect_on_completion?: Session.RedirectOnCompletion;
|
|
235
247
|
|
|
236
248
|
/**
|
|
237
|
-
* Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
249
|
+
* Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
238
250
|
*/
|
|
239
251
|
return_url?: string;
|
|
240
252
|
|
|
@@ -390,6 +402,176 @@ declare module 'stripe' {
|
|
|
390
402
|
|
|
391
403
|
type BillingAddressCollection = 'auto' | 'required';
|
|
392
404
|
|
|
405
|
+
interface CollectedInformation {
|
|
406
|
+
/**
|
|
407
|
+
* Customer's business name for this Checkout Session
|
|
408
|
+
*/
|
|
409
|
+
business_name?: string | null;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Customer's email for this Checkout Session
|
|
413
|
+
*/
|
|
414
|
+
email?: string | null;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Customer's phone number for this Checkout Session
|
|
418
|
+
*/
|
|
419
|
+
phone?: string | null;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Shipping information for this Checkout Session.
|
|
423
|
+
*/
|
|
424
|
+
shipping_details?: CollectedInformation.ShippingDetails | null;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Customer's tax ids for this Checkout Session.
|
|
428
|
+
*/
|
|
429
|
+
tax_ids?: Array<CollectedInformation.TaxId> | null;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
namespace CollectedInformation {
|
|
433
|
+
interface ShippingDetails {
|
|
434
|
+
address?: Stripe.Address;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
|
438
|
+
*/
|
|
439
|
+
carrier?: string | null;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Recipient name.
|
|
443
|
+
*/
|
|
444
|
+
name?: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Recipient phone (including extension).
|
|
448
|
+
*/
|
|
449
|
+
phone?: string | null;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
|
453
|
+
*/
|
|
454
|
+
tracking_number?: string | null;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
interface TaxId {
|
|
458
|
+
/**
|
|
459
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
460
|
+
*/
|
|
461
|
+
type: TaxId.Type;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* The value of the tax ID.
|
|
465
|
+
*/
|
|
466
|
+
value: string | null;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
namespace TaxId {
|
|
470
|
+
type Type =
|
|
471
|
+
| 'ad_nrt'
|
|
472
|
+
| 'ae_trn'
|
|
473
|
+
| 'al_tin'
|
|
474
|
+
| 'am_tin'
|
|
475
|
+
| 'ao_tin'
|
|
476
|
+
| 'ar_cuit'
|
|
477
|
+
| 'au_abn'
|
|
478
|
+
| 'au_arn'
|
|
479
|
+
| 'ba_tin'
|
|
480
|
+
| 'bb_tin'
|
|
481
|
+
| 'bg_uic'
|
|
482
|
+
| 'bh_vat'
|
|
483
|
+
| 'bo_tin'
|
|
484
|
+
| 'br_cnpj'
|
|
485
|
+
| 'br_cpf'
|
|
486
|
+
| 'bs_tin'
|
|
487
|
+
| 'by_tin'
|
|
488
|
+
| 'ca_bn'
|
|
489
|
+
| 'ca_gst_hst'
|
|
490
|
+
| 'ca_pst_bc'
|
|
491
|
+
| 'ca_pst_mb'
|
|
492
|
+
| 'ca_pst_sk'
|
|
493
|
+
| 'ca_qst'
|
|
494
|
+
| 'cd_nif'
|
|
495
|
+
| 'ch_uid'
|
|
496
|
+
| 'ch_vat'
|
|
497
|
+
| 'cl_tin'
|
|
498
|
+
| 'cn_tin'
|
|
499
|
+
| 'co_nit'
|
|
500
|
+
| 'cr_tin'
|
|
501
|
+
| 'de_stn'
|
|
502
|
+
| 'do_rcn'
|
|
503
|
+
| 'ec_ruc'
|
|
504
|
+
| 'eg_tin'
|
|
505
|
+
| 'es_cif'
|
|
506
|
+
| 'eu_oss_vat'
|
|
507
|
+
| 'eu_vat'
|
|
508
|
+
| 'gb_vat'
|
|
509
|
+
| 'ge_vat'
|
|
510
|
+
| 'gn_nif'
|
|
511
|
+
| 'hk_br'
|
|
512
|
+
| 'hr_oib'
|
|
513
|
+
| 'hu_tin'
|
|
514
|
+
| 'id_npwp'
|
|
515
|
+
| 'il_vat'
|
|
516
|
+
| 'in_gst'
|
|
517
|
+
| 'is_vat'
|
|
518
|
+
| 'jp_cn'
|
|
519
|
+
| 'jp_rn'
|
|
520
|
+
| 'jp_trn'
|
|
521
|
+
| 'ke_pin'
|
|
522
|
+
| 'kh_tin'
|
|
523
|
+
| 'kr_brn'
|
|
524
|
+
| 'kz_bin'
|
|
525
|
+
| 'li_uid'
|
|
526
|
+
| 'li_vat'
|
|
527
|
+
| 'ma_vat'
|
|
528
|
+
| 'md_vat'
|
|
529
|
+
| 'me_pib'
|
|
530
|
+
| 'mk_vat'
|
|
531
|
+
| 'mr_nif'
|
|
532
|
+
| 'mx_rfc'
|
|
533
|
+
| 'my_frp'
|
|
534
|
+
| 'my_itn'
|
|
535
|
+
| 'my_sst'
|
|
536
|
+
| 'ng_tin'
|
|
537
|
+
| 'no_vat'
|
|
538
|
+
| 'no_voec'
|
|
539
|
+
| 'np_pan'
|
|
540
|
+
| 'nz_gst'
|
|
541
|
+
| 'om_vat'
|
|
542
|
+
| 'pe_ruc'
|
|
543
|
+
| 'ph_tin'
|
|
544
|
+
| 'ro_tin'
|
|
545
|
+
| 'rs_pib'
|
|
546
|
+
| 'ru_inn'
|
|
547
|
+
| 'ru_kpp'
|
|
548
|
+
| 'sa_vat'
|
|
549
|
+
| 'sg_gst'
|
|
550
|
+
| 'sg_uen'
|
|
551
|
+
| 'si_tin'
|
|
552
|
+
| 'sn_ninea'
|
|
553
|
+
| 'sr_fin'
|
|
554
|
+
| 'sv_nit'
|
|
555
|
+
| 'th_vat'
|
|
556
|
+
| 'tj_tin'
|
|
557
|
+
| 'tr_tin'
|
|
558
|
+
| 'tw_vat'
|
|
559
|
+
| 'tz_vat'
|
|
560
|
+
| 'ua_vat'
|
|
561
|
+
| 'ug_tin'
|
|
562
|
+
| 'unknown'
|
|
563
|
+
| 'us_ein'
|
|
564
|
+
| 'uy_ruc'
|
|
565
|
+
| 'uz_tin'
|
|
566
|
+
| 'uz_vat'
|
|
567
|
+
| 've_rif'
|
|
568
|
+
| 'vn_tin'
|
|
569
|
+
| 'za_vat'
|
|
570
|
+
| 'zm_tin'
|
|
571
|
+
| 'zw_tin';
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
393
575
|
interface Consent {
|
|
394
576
|
/**
|
|
395
577
|
* If `opt_in`, the customer consents to receiving promotional communications
|
|
@@ -1010,6 +1192,8 @@ declare module 'stripe' {
|
|
|
1010
1192
|
|
|
1011
1193
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1012
1194
|
|
|
1195
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1196
|
+
|
|
1013
1197
|
pix?: PaymentMethodOptions.Pix;
|
|
1014
1198
|
|
|
1015
1199
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
@@ -1227,6 +1411,11 @@ declare module 'stripe' {
|
|
|
1227
1411
|
interface Card {
|
|
1228
1412
|
installments?: Card.Installments;
|
|
1229
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1416
|
+
*/
|
|
1417
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1418
|
+
|
|
1230
1419
|
/**
|
|
1231
1420
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1232
1421
|
*/
|
|
@@ -1252,6 +1441,8 @@ declare module 'stripe' {
|
|
|
1252
1441
|
*/
|
|
1253
1442
|
request_three_d_secure: Card.RequestThreeDSecure;
|
|
1254
1443
|
|
|
1444
|
+
restrictions?: Card.Restrictions;
|
|
1445
|
+
|
|
1255
1446
|
/**
|
|
1256
1447
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1257
1448
|
*
|
|
@@ -1282,6 +1473,8 @@ declare module 'stripe' {
|
|
|
1282
1473
|
enabled?: boolean;
|
|
1283
1474
|
}
|
|
1284
1475
|
|
|
1476
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1477
|
+
|
|
1285
1478
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1286
1479
|
|
|
1287
1480
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1292,6 +1485,21 @@ declare module 'stripe' {
|
|
|
1292
1485
|
|
|
1293
1486
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1294
1487
|
|
|
1488
|
+
interface Restrictions {
|
|
1489
|
+
/**
|
|
1490
|
+
* Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
|
1491
|
+
*/
|
|
1492
|
+
brands_blocked?: Array<Restrictions.BrandsBlocked>;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
namespace Restrictions {
|
|
1496
|
+
type BrandsBlocked =
|
|
1497
|
+
| 'american_express'
|
|
1498
|
+
| 'discover_global_network'
|
|
1499
|
+
| 'mastercard'
|
|
1500
|
+
| 'visa';
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1295
1503
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
1296
1504
|
}
|
|
1297
1505
|
|
|
@@ -1648,12 +1856,100 @@ declare module 'stripe' {
|
|
|
1648
1856
|
* 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).
|
|
1649
1857
|
*/
|
|
1650
1858
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* 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.
|
|
1862
|
+
*/
|
|
1863
|
+
subsellers?: Array<string>;
|
|
1651
1864
|
}
|
|
1652
1865
|
|
|
1653
1866
|
namespace Paypal {
|
|
1654
1867
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1655
1868
|
}
|
|
1656
1869
|
|
|
1870
|
+
interface Payto {
|
|
1871
|
+
mandate_options?: Payto.MandateOptions;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1875
|
+
*
|
|
1876
|
+
* 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.
|
|
1877
|
+
*
|
|
1878
|
+
* 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.
|
|
1879
|
+
*
|
|
1880
|
+
* 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).
|
|
1881
|
+
*/
|
|
1882
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
namespace Payto {
|
|
1886
|
+
interface MandateOptions {
|
|
1887
|
+
/**
|
|
1888
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1889
|
+
*/
|
|
1890
|
+
amount: number | null;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* 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.
|
|
1894
|
+
*/
|
|
1895
|
+
amount_type: MandateOptions.AmountType | null;
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1899
|
+
*/
|
|
1900
|
+
end_date: string | null;
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* The periodicity at which payments will be collected.
|
|
1904
|
+
*/
|
|
1905
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* 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.
|
|
1909
|
+
*/
|
|
1910
|
+
payments_per_period: number | null;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1914
|
+
*/
|
|
1915
|
+
purpose: MandateOptions.Purpose | null;
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1919
|
+
*/
|
|
1920
|
+
start_date: string | null;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
namespace MandateOptions {
|
|
1924
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1925
|
+
|
|
1926
|
+
type PaymentSchedule =
|
|
1927
|
+
| 'adhoc'
|
|
1928
|
+
| 'annual'
|
|
1929
|
+
| 'daily'
|
|
1930
|
+
| 'fortnightly'
|
|
1931
|
+
| 'monthly'
|
|
1932
|
+
| 'quarterly'
|
|
1933
|
+
| 'semi_annual'
|
|
1934
|
+
| 'weekly';
|
|
1935
|
+
|
|
1936
|
+
type Purpose =
|
|
1937
|
+
| 'dependant_support'
|
|
1938
|
+
| 'government'
|
|
1939
|
+
| 'loan'
|
|
1940
|
+
| 'mortgage'
|
|
1941
|
+
| 'other'
|
|
1942
|
+
| 'pension'
|
|
1943
|
+
| 'personal'
|
|
1944
|
+
| 'retail'
|
|
1945
|
+
| 'salary'
|
|
1946
|
+
| 'tax'
|
|
1947
|
+
| 'utility';
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1657
1953
|
interface Pix {
|
|
1658
1954
|
/**
|
|
1659
1955
|
* The number of seconds after which Pix payment will expire.
|
|
@@ -1755,6 +2051,8 @@ declare module 'stripe' {
|
|
|
1755
2051
|
interface FinancialConnections {
|
|
1756
2052
|
filters?: FinancialConnections.Filters;
|
|
1757
2053
|
|
|
2054
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
2055
|
+
|
|
1758
2056
|
/**
|
|
1759
2057
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1760
2058
|
*/
|
|
@@ -1777,19 +2075,39 @@ declare module 'stripe' {
|
|
|
1777
2075
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1778
2076
|
*/
|
|
1779
2077
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* The institution to use to filter for possible accounts to link.
|
|
2081
|
+
*/
|
|
2082
|
+
institution?: string;
|
|
1780
2083
|
}
|
|
1781
2084
|
|
|
1782
2085
|
namespace Filters {
|
|
1783
2086
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1784
2087
|
}
|
|
1785
2088
|
|
|
2089
|
+
interface ManualEntry {
|
|
2090
|
+
/**
|
|
2091
|
+
* Settings for configuring manual entry of account details.
|
|
2092
|
+
*/
|
|
2093
|
+
mode?: ManualEntry.Mode;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
namespace ManualEntry {
|
|
2097
|
+
type Mode = 'automatic' | 'custom';
|
|
2098
|
+
}
|
|
2099
|
+
|
|
1786
2100
|
type Permission =
|
|
1787
2101
|
| 'balances'
|
|
1788
2102
|
| 'ownership'
|
|
1789
2103
|
| 'payment_method'
|
|
1790
2104
|
| 'transactions';
|
|
1791
2105
|
|
|
1792
|
-
type Prefetch =
|
|
2106
|
+
type Prefetch =
|
|
2107
|
+
| 'balances'
|
|
2108
|
+
| 'inferred_balances'
|
|
2109
|
+
| 'ownership'
|
|
2110
|
+
| 'transactions';
|
|
1793
2111
|
}
|
|
1794
2112
|
|
|
1795
2113
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1800,6 +2118,41 @@ declare module 'stripe' {
|
|
|
1800
2118
|
|
|
1801
2119
|
type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
|
|
1802
2120
|
|
|
2121
|
+
interface Permissions {
|
|
2122
|
+
/**
|
|
2123
|
+
* Permissions for updating the Checkout Session.
|
|
2124
|
+
*/
|
|
2125
|
+
update: Permissions.Update | null;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
namespace Permissions {
|
|
2129
|
+
interface Update {
|
|
2130
|
+
/**
|
|
2131
|
+
* Determines which entity is allowed to update the line items.
|
|
2132
|
+
*
|
|
2133
|
+
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2134
|
+
*
|
|
2135
|
+
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2136
|
+
*/
|
|
2137
|
+
line_items?: Update.LineItems | null;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Determines which entity is allowed to update the shipping details.
|
|
2141
|
+
*
|
|
2142
|
+
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2143
|
+
*
|
|
2144
|
+
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
2145
|
+
*/
|
|
2146
|
+
shipping_details: Update.ShippingDetails | null;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
namespace Update {
|
|
2150
|
+
type LineItems = 'client_only' | 'server_only';
|
|
2151
|
+
|
|
2152
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
|
|
1803
2156
|
interface PhoneNumberCollection {
|
|
1804
2157
|
/**
|
|
1805
2158
|
* Indicates whether phone number collection is enabled for the session
|
|
@@ -2121,9 +2474,9 @@ declare module 'stripe' {
|
|
|
2121
2474
|
amount: number;
|
|
2122
2475
|
|
|
2123
2476
|
/**
|
|
2124
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
2477
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
2125
2478
|
*
|
|
2126
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
2479
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
2127
2480
|
*/
|
|
2128
2481
|
rate: Stripe.TaxRate;
|
|
2129
2482
|
|
|
@@ -2269,9 +2622,9 @@ declare module 'stripe' {
|
|
|
2269
2622
|
amount: number;
|
|
2270
2623
|
|
|
2271
2624
|
/**
|
|
2272
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
2625
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
2273
2626
|
*
|
|
2274
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
2627
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
2275
2628
|
*/
|
|
2276
2629
|
rate: Stripe.TaxRate;
|
|
2277
2630
|
|
|
@@ -2307,7 +2660,7 @@ declare module 'stripe' {
|
|
|
2307
2660
|
}
|
|
2308
2661
|
}
|
|
2309
2662
|
|
|
2310
|
-
type UiMode = 'embedded' | 'hosted';
|
|
2663
|
+
type UiMode = 'custom' | 'embedded' | 'hosted';
|
|
2311
2664
|
}
|
|
2312
2665
|
}
|
|
2313
2666
|
}
|