stripe 17.3.0 → 17.4.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 +938 -110
- 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/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -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 +42 -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/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -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 +29 -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 +332 -0
- package/types/Accounts.d.ts +183 -1
- package/types/AccountsResource.d.ts +496 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -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/Charges.d.ts +116 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +302 -4
- package/types/Checkout/SessionsResource.d.ts +354 -5
- 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 +545 -0
- package/types/Events.d.ts +90 -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 +138 -0
- package/types/Invoices.d.ts +131 -2
- package/types/InvoicesResource.d.ts +5522 -1844
- 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/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 +7 -0
- 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 +1154 -0
- package/types/OrdersResource.d.ts +2911 -0
- package/types/PaymentIntents.d.ts +637 -1
- package/types/PaymentIntentsResource.d.ts +7947 -3706
- 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 +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -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 +1608 -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 +38 -0
- package/types/SetupIntents.d.ts +111 -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 +90 -1
- package/types/SubscriptionsResource.d.ts +367 -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/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 +64 -0
- package/types/index.d.ts +53 -0
|
@@ -70,10 +70,15 @@ declare module 'stripe' {
|
|
|
70
70
|
client_reference_id: string | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* The client secret of the Session. Use this with [initCustomCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
|
|
74
74
|
*/
|
|
75
75
|
client_secret: string | null;
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Information about the customer collected within the Checkout Session.
|
|
79
|
+
*/
|
|
80
|
+
collected_information?: Session.CollectedInformation | null;
|
|
81
|
+
|
|
77
82
|
/**
|
|
78
83
|
* Results of `consent_collection` for this session.
|
|
79
84
|
*/
|
|
@@ -211,6 +216,13 @@ declare module 'stripe' {
|
|
|
211
216
|
*/
|
|
212
217
|
payment_status: Session.PaymentStatus;
|
|
213
218
|
|
|
219
|
+
/**
|
|
220
|
+
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
221
|
+
*
|
|
222
|
+
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
|
|
223
|
+
*/
|
|
224
|
+
permissions?: Session.Permissions | null;
|
|
225
|
+
|
|
214
226
|
phone_number_collection?: Session.PhoneNumberCollection;
|
|
215
227
|
|
|
216
228
|
/**
|
|
@@ -224,7 +236,7 @@ declare module 'stripe' {
|
|
|
224
236
|
redirect_on_completion?: Session.RedirectOnCompletion;
|
|
225
237
|
|
|
226
238
|
/**
|
|
227
|
-
* 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.
|
|
239
|
+
* 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.
|
|
228
240
|
*/
|
|
229
241
|
return_url?: string;
|
|
230
242
|
|
|
@@ -373,6 +385,156 @@ declare module 'stripe' {
|
|
|
373
385
|
|
|
374
386
|
type BillingAddressCollection = 'auto' | 'required';
|
|
375
387
|
|
|
388
|
+
interface CollectedInformation {
|
|
389
|
+
/**
|
|
390
|
+
* Customer's business name for this Checkout Session
|
|
391
|
+
*/
|
|
392
|
+
business_name: string | null;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Customer's email for this Checkout Session
|
|
396
|
+
*/
|
|
397
|
+
email: string | null;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Customer's phone number for this Checkout Session
|
|
401
|
+
*/
|
|
402
|
+
phone: string | null;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Shipping information for this Checkout Session.
|
|
406
|
+
*/
|
|
407
|
+
shipping_details: CollectedInformation.ShippingDetails | null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Customer's tax ids for this Checkout Session.
|
|
411
|
+
*/
|
|
412
|
+
tax_ids: Array<CollectedInformation.TaxId> | null;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
namespace CollectedInformation {
|
|
416
|
+
interface ShippingDetails {
|
|
417
|
+
address?: Stripe.Address;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
|
421
|
+
*/
|
|
422
|
+
carrier?: string | null;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Recipient name.
|
|
426
|
+
*/
|
|
427
|
+
name?: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Recipient phone (including extension).
|
|
431
|
+
*/
|
|
432
|
+
phone?: string | null;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* 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.
|
|
436
|
+
*/
|
|
437
|
+
tracking_number?: string | null;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
interface TaxId {
|
|
441
|
+
/**
|
|
442
|
+
* 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`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
|
|
443
|
+
*/
|
|
444
|
+
type: TaxId.Type;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* The value of the tax ID.
|
|
448
|
+
*/
|
|
449
|
+
value: string | null;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
namespace TaxId {
|
|
453
|
+
type Type =
|
|
454
|
+
| 'ad_nrt'
|
|
455
|
+
| 'ae_trn'
|
|
456
|
+
| 'ar_cuit'
|
|
457
|
+
| 'au_abn'
|
|
458
|
+
| 'au_arn'
|
|
459
|
+
| 'bg_uic'
|
|
460
|
+
| 'bh_vat'
|
|
461
|
+
| 'bo_tin'
|
|
462
|
+
| 'br_cnpj'
|
|
463
|
+
| 'br_cpf'
|
|
464
|
+
| 'by_tin'
|
|
465
|
+
| 'ca_bn'
|
|
466
|
+
| 'ca_gst_hst'
|
|
467
|
+
| 'ca_pst_bc'
|
|
468
|
+
| 'ca_pst_mb'
|
|
469
|
+
| 'ca_pst_sk'
|
|
470
|
+
| 'ca_qst'
|
|
471
|
+
| 'ch_uid'
|
|
472
|
+
| 'ch_vat'
|
|
473
|
+
| 'cl_tin'
|
|
474
|
+
| 'cn_tin'
|
|
475
|
+
| 'co_nit'
|
|
476
|
+
| 'cr_tin'
|
|
477
|
+
| 'de_stn'
|
|
478
|
+
| 'do_rcn'
|
|
479
|
+
| 'ec_ruc'
|
|
480
|
+
| 'eg_tin'
|
|
481
|
+
| 'es_cif'
|
|
482
|
+
| 'eu_oss_vat'
|
|
483
|
+
| 'eu_vat'
|
|
484
|
+
| 'gb_vat'
|
|
485
|
+
| 'ge_vat'
|
|
486
|
+
| 'hk_br'
|
|
487
|
+
| 'hr_oib'
|
|
488
|
+
| 'hu_tin'
|
|
489
|
+
| 'id_npwp'
|
|
490
|
+
| 'il_vat'
|
|
491
|
+
| 'in_gst'
|
|
492
|
+
| 'is_vat'
|
|
493
|
+
| 'jp_cn'
|
|
494
|
+
| 'jp_rn'
|
|
495
|
+
| 'jp_trn'
|
|
496
|
+
| 'ke_pin'
|
|
497
|
+
| 'kr_brn'
|
|
498
|
+
| 'kz_bin'
|
|
499
|
+
| 'li_uid'
|
|
500
|
+
| 'ma_vat'
|
|
501
|
+
| 'md_vat'
|
|
502
|
+
| 'mx_rfc'
|
|
503
|
+
| 'my_frp'
|
|
504
|
+
| 'my_itn'
|
|
505
|
+
| 'my_sst'
|
|
506
|
+
| 'ng_tin'
|
|
507
|
+
| 'no_vat'
|
|
508
|
+
| 'no_voec'
|
|
509
|
+
| 'nz_gst'
|
|
510
|
+
| 'om_vat'
|
|
511
|
+
| 'pe_ruc'
|
|
512
|
+
| 'ph_tin'
|
|
513
|
+
| 'ro_tin'
|
|
514
|
+
| 'rs_pib'
|
|
515
|
+
| 'ru_inn'
|
|
516
|
+
| 'ru_kpp'
|
|
517
|
+
| 'sa_vat'
|
|
518
|
+
| 'sg_gst'
|
|
519
|
+
| 'sg_uen'
|
|
520
|
+
| 'si_tin'
|
|
521
|
+
| 'sv_nit'
|
|
522
|
+
| 'th_vat'
|
|
523
|
+
| 'tr_tin'
|
|
524
|
+
| 'tw_vat'
|
|
525
|
+
| 'tz_vat'
|
|
526
|
+
| 'ua_vat'
|
|
527
|
+
| 'unknown'
|
|
528
|
+
| 'us_ein'
|
|
529
|
+
| 'uy_ruc'
|
|
530
|
+
| 'uz_tin'
|
|
531
|
+
| 'uz_vat'
|
|
532
|
+
| 've_rif'
|
|
533
|
+
| 'vn_tin'
|
|
534
|
+
| 'za_vat';
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
376
538
|
interface Consent {
|
|
377
539
|
/**
|
|
378
540
|
* If `opt_in`, the customer consents to receiving promotional communications
|
|
@@ -961,6 +1123,8 @@ declare module 'stripe' {
|
|
|
961
1123
|
|
|
962
1124
|
paypal?: PaymentMethodOptions.Paypal;
|
|
963
1125
|
|
|
1126
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1127
|
+
|
|
964
1128
|
pix?: PaymentMethodOptions.Pix;
|
|
965
1129
|
|
|
966
1130
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
@@ -1562,12 +1726,100 @@ declare module 'stripe' {
|
|
|
1562
1726
|
* 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).
|
|
1563
1727
|
*/
|
|
1564
1728
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* 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.
|
|
1732
|
+
*/
|
|
1733
|
+
subsellers?: Array<string>;
|
|
1565
1734
|
}
|
|
1566
1735
|
|
|
1567
1736
|
namespace Paypal {
|
|
1568
1737
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1569
1738
|
}
|
|
1570
1739
|
|
|
1740
|
+
interface Payto {
|
|
1741
|
+
mandate_options?: Payto.MandateOptions;
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1745
|
+
*
|
|
1746
|
+
* 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.
|
|
1747
|
+
*
|
|
1748
|
+
* 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.
|
|
1749
|
+
*
|
|
1750
|
+
* 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).
|
|
1751
|
+
*/
|
|
1752
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
namespace Payto {
|
|
1756
|
+
interface MandateOptions {
|
|
1757
|
+
/**
|
|
1758
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1759
|
+
*/
|
|
1760
|
+
amount: number | null;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* 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.
|
|
1764
|
+
*/
|
|
1765
|
+
amount_type: MandateOptions.AmountType | null;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1769
|
+
*/
|
|
1770
|
+
end_date: string | null;
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* The periodicity at which payments will be collected.
|
|
1774
|
+
*/
|
|
1775
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* 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.
|
|
1779
|
+
*/
|
|
1780
|
+
payments_per_period: number | null;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1784
|
+
*/
|
|
1785
|
+
purpose: MandateOptions.Purpose | null;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1789
|
+
*/
|
|
1790
|
+
start_date: string | null;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
namespace MandateOptions {
|
|
1794
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1795
|
+
|
|
1796
|
+
type PaymentSchedule =
|
|
1797
|
+
| 'adhoc'
|
|
1798
|
+
| 'annual'
|
|
1799
|
+
| 'daily'
|
|
1800
|
+
| 'fortnightly'
|
|
1801
|
+
| 'monthly'
|
|
1802
|
+
| 'quarterly'
|
|
1803
|
+
| 'semi_annual'
|
|
1804
|
+
| 'weekly';
|
|
1805
|
+
|
|
1806
|
+
type Purpose =
|
|
1807
|
+
| 'dependant_support'
|
|
1808
|
+
| 'government'
|
|
1809
|
+
| 'loan'
|
|
1810
|
+
| 'mortgage'
|
|
1811
|
+
| 'other'
|
|
1812
|
+
| 'pension'
|
|
1813
|
+
| 'personal'
|
|
1814
|
+
| 'retail'
|
|
1815
|
+
| 'salary'
|
|
1816
|
+
| 'tax'
|
|
1817
|
+
| 'utility';
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1571
1823
|
interface Pix {
|
|
1572
1824
|
/**
|
|
1573
1825
|
* The number of seconds after which Pix payment will expire.
|
|
@@ -1660,6 +1912,8 @@ declare module 'stripe' {
|
|
|
1660
1912
|
interface FinancialConnections {
|
|
1661
1913
|
filters?: FinancialConnections.Filters;
|
|
1662
1914
|
|
|
1915
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1916
|
+
|
|
1663
1917
|
/**
|
|
1664
1918
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1665
1919
|
*/
|
|
@@ -1682,19 +1936,39 @@ declare module 'stripe' {
|
|
|
1682
1936
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1683
1937
|
*/
|
|
1684
1938
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* The institution to use to filter for possible accounts to link.
|
|
1942
|
+
*/
|
|
1943
|
+
institution?: string;
|
|
1685
1944
|
}
|
|
1686
1945
|
|
|
1687
1946
|
namespace Filters {
|
|
1688
1947
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1689
1948
|
}
|
|
1690
1949
|
|
|
1950
|
+
interface ManualEntry {
|
|
1951
|
+
/**
|
|
1952
|
+
* Settings for configuring manual entry of account details.
|
|
1953
|
+
*/
|
|
1954
|
+
mode?: ManualEntry.Mode;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
namespace ManualEntry {
|
|
1958
|
+
type Mode = 'automatic' | 'custom';
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1691
1961
|
type Permission =
|
|
1692
1962
|
| 'balances'
|
|
1693
1963
|
| 'ownership'
|
|
1694
1964
|
| 'payment_method'
|
|
1695
1965
|
| 'transactions';
|
|
1696
1966
|
|
|
1697
|
-
type Prefetch =
|
|
1967
|
+
type Prefetch =
|
|
1968
|
+
| 'balances'
|
|
1969
|
+
| 'inferred_balances'
|
|
1970
|
+
| 'ownership'
|
|
1971
|
+
| 'transactions';
|
|
1698
1972
|
}
|
|
1699
1973
|
|
|
1700
1974
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1705,6 +1979,30 @@ declare module 'stripe' {
|
|
|
1705
1979
|
|
|
1706
1980
|
type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
|
|
1707
1981
|
|
|
1982
|
+
interface Permissions {
|
|
1983
|
+
/**
|
|
1984
|
+
* Permissions for updating the Checkout Session.
|
|
1985
|
+
*/
|
|
1986
|
+
update: Permissions.Update | null;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
namespace Permissions {
|
|
1990
|
+
interface Update {
|
|
1991
|
+
/**
|
|
1992
|
+
* Determines which entity is allowed to update the shipping details.
|
|
1993
|
+
*
|
|
1994
|
+
* 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.
|
|
1995
|
+
*
|
|
1996
|
+
* 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.
|
|
1997
|
+
*/
|
|
1998
|
+
shipping_details: Update.ShippingDetails | null;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
namespace Update {
|
|
2002
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
1708
2006
|
interface PhoneNumberCollection {
|
|
1709
2007
|
/**
|
|
1710
2008
|
* Indicates whether phone number collection is enabled for the session
|
|
@@ -2211,7 +2509,7 @@ declare module 'stripe' {
|
|
|
2211
2509
|
}
|
|
2212
2510
|
}
|
|
2213
2511
|
|
|
2214
|
-
type UiMode = 'embedded' | 'hosted';
|
|
2512
|
+
type UiMode = 'custom' | 'embedded' | 'hosted';
|
|
2215
2513
|
}
|
|
2216
2514
|
}
|
|
2217
2515
|
}
|