stripe 17.0.0 → 17.2.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 +895 -148
- package/README.md +6 -7
- 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 +4 -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 +4 -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 +309 -0
- package/types/Accounts.d.ts +113 -1
- package/types/AccountsResource.d.ts +270 -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 +71 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +296 -4
- package/types/Checkout/SessionsResource.d.ts +351 -5
- package/types/ConfirmationTokens.d.ts +67 -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 +3 -0
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -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 +23 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +118 -2
- package/types/InvoicesResource.d.ts +5454 -1796
- 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/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1084 -0
- package/types/OrdersResource.d.ts +2765 -0
- package/types/PaymentIntents.d.ts +503 -1
- package/types/PaymentIntentsResource.d.ts +7000 -3400
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +67 -0
- package/types/PaymentMethodsResource.d.ts +88 -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 +1586 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +10 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +522 -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 +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -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 +63 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -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 +52 -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,150 @@ 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`, 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
|
+
| 'ca_bn'
|
|
465
|
+
| 'ca_gst_hst'
|
|
466
|
+
| 'ca_pst_bc'
|
|
467
|
+
| 'ca_pst_mb'
|
|
468
|
+
| 'ca_pst_sk'
|
|
469
|
+
| 'ca_qst'
|
|
470
|
+
| 'ch_uid'
|
|
471
|
+
| 'ch_vat'
|
|
472
|
+
| 'cl_tin'
|
|
473
|
+
| 'cn_tin'
|
|
474
|
+
| 'co_nit'
|
|
475
|
+
| 'cr_tin'
|
|
476
|
+
| 'de_stn'
|
|
477
|
+
| 'do_rcn'
|
|
478
|
+
| 'ec_ruc'
|
|
479
|
+
| 'eg_tin'
|
|
480
|
+
| 'es_cif'
|
|
481
|
+
| 'eu_oss_vat'
|
|
482
|
+
| 'eu_vat'
|
|
483
|
+
| 'gb_vat'
|
|
484
|
+
| 'ge_vat'
|
|
485
|
+
| 'hk_br'
|
|
486
|
+
| 'hr_oib'
|
|
487
|
+
| 'hu_tin'
|
|
488
|
+
| 'id_npwp'
|
|
489
|
+
| 'il_vat'
|
|
490
|
+
| 'in_gst'
|
|
491
|
+
| 'is_vat'
|
|
492
|
+
| 'jp_cn'
|
|
493
|
+
| 'jp_rn'
|
|
494
|
+
| 'jp_trn'
|
|
495
|
+
| 'ke_pin'
|
|
496
|
+
| 'kr_brn'
|
|
497
|
+
| 'kz_bin'
|
|
498
|
+
| 'li_uid'
|
|
499
|
+
| 'mx_rfc'
|
|
500
|
+
| 'my_frp'
|
|
501
|
+
| 'my_itn'
|
|
502
|
+
| 'my_sst'
|
|
503
|
+
| 'ng_tin'
|
|
504
|
+
| 'no_vat'
|
|
505
|
+
| 'no_voec'
|
|
506
|
+
| 'nz_gst'
|
|
507
|
+
| 'om_vat'
|
|
508
|
+
| 'pe_ruc'
|
|
509
|
+
| 'ph_tin'
|
|
510
|
+
| 'ro_tin'
|
|
511
|
+
| 'rs_pib'
|
|
512
|
+
| 'ru_inn'
|
|
513
|
+
| 'ru_kpp'
|
|
514
|
+
| 'sa_vat'
|
|
515
|
+
| 'sg_gst'
|
|
516
|
+
| 'sg_uen'
|
|
517
|
+
| 'si_tin'
|
|
518
|
+
| 'sv_nit'
|
|
519
|
+
| 'th_vat'
|
|
520
|
+
| 'tr_tin'
|
|
521
|
+
| 'tw_vat'
|
|
522
|
+
| 'ua_vat'
|
|
523
|
+
| 'unknown'
|
|
524
|
+
| 'us_ein'
|
|
525
|
+
| 'uy_ruc'
|
|
526
|
+
| 've_rif'
|
|
527
|
+
| 'vn_tin'
|
|
528
|
+
| 'za_vat';
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
376
532
|
interface Consent {
|
|
377
533
|
/**
|
|
378
534
|
* If `opt_in`, the customer consents to receiving promotional communications
|
|
@@ -947,6 +1103,8 @@ declare module 'stripe' {
|
|
|
947
1103
|
|
|
948
1104
|
paypal?: PaymentMethodOptions.Paypal;
|
|
949
1105
|
|
|
1106
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1107
|
+
|
|
950
1108
|
pix?: PaymentMethodOptions.Pix;
|
|
951
1109
|
|
|
952
1110
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
@@ -1488,12 +1646,100 @@ declare module 'stripe' {
|
|
|
1488
1646
|
* 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).
|
|
1489
1647
|
*/
|
|
1490
1648
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* 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.
|
|
1652
|
+
*/
|
|
1653
|
+
subsellers?: Array<string>;
|
|
1491
1654
|
}
|
|
1492
1655
|
|
|
1493
1656
|
namespace Paypal {
|
|
1494
1657
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1495
1658
|
}
|
|
1496
1659
|
|
|
1660
|
+
interface Payto {
|
|
1661
|
+
mandate_options?: Payto.MandateOptions;
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1665
|
+
*
|
|
1666
|
+
* 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.
|
|
1667
|
+
*
|
|
1668
|
+
* 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.
|
|
1669
|
+
*
|
|
1670
|
+
* 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).
|
|
1671
|
+
*/
|
|
1672
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
namespace Payto {
|
|
1676
|
+
interface MandateOptions {
|
|
1677
|
+
/**
|
|
1678
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1679
|
+
*/
|
|
1680
|
+
amount: number | null;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* 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.
|
|
1684
|
+
*/
|
|
1685
|
+
amount_type: MandateOptions.AmountType | null;
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1689
|
+
*/
|
|
1690
|
+
end_date: string | null;
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* The periodicity at which payments will be collected.
|
|
1694
|
+
*/
|
|
1695
|
+
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* 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.
|
|
1699
|
+
*/
|
|
1700
|
+
payments_per_period: number | null;
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
1704
|
+
*/
|
|
1705
|
+
purpose: MandateOptions.Purpose | null;
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1709
|
+
*/
|
|
1710
|
+
start_date: string | null;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
namespace MandateOptions {
|
|
1714
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1715
|
+
|
|
1716
|
+
type PaymentSchedule =
|
|
1717
|
+
| 'adhoc'
|
|
1718
|
+
| 'annual'
|
|
1719
|
+
| 'daily'
|
|
1720
|
+
| 'fortnightly'
|
|
1721
|
+
| 'monthly'
|
|
1722
|
+
| 'quarterly'
|
|
1723
|
+
| 'semi_annual'
|
|
1724
|
+
| 'weekly';
|
|
1725
|
+
|
|
1726
|
+
type Purpose =
|
|
1727
|
+
| 'dependant_support'
|
|
1728
|
+
| 'government'
|
|
1729
|
+
| 'loan'
|
|
1730
|
+
| 'mortgage'
|
|
1731
|
+
| 'other'
|
|
1732
|
+
| 'pension'
|
|
1733
|
+
| 'personal'
|
|
1734
|
+
| 'retail'
|
|
1735
|
+
| 'salary'
|
|
1736
|
+
| 'tax'
|
|
1737
|
+
| 'utility';
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1497
1743
|
interface Pix {
|
|
1498
1744
|
/**
|
|
1499
1745
|
* The number of seconds after which Pix payment will expire.
|
|
@@ -1579,6 +1825,8 @@ declare module 'stripe' {
|
|
|
1579
1825
|
interface FinancialConnections {
|
|
1580
1826
|
filters?: FinancialConnections.Filters;
|
|
1581
1827
|
|
|
1828
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1829
|
+
|
|
1582
1830
|
/**
|
|
1583
1831
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1584
1832
|
*/
|
|
@@ -1601,19 +1849,39 @@ declare module 'stripe' {
|
|
|
1601
1849
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1602
1850
|
*/
|
|
1603
1851
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* The institution to use to filter for possible accounts to link.
|
|
1855
|
+
*/
|
|
1856
|
+
institution?: string;
|
|
1604
1857
|
}
|
|
1605
1858
|
|
|
1606
1859
|
namespace Filters {
|
|
1607
1860
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1608
1861
|
}
|
|
1609
1862
|
|
|
1863
|
+
interface ManualEntry {
|
|
1864
|
+
/**
|
|
1865
|
+
* Settings for configuring manual entry of account details.
|
|
1866
|
+
*/
|
|
1867
|
+
mode?: ManualEntry.Mode;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
namespace ManualEntry {
|
|
1871
|
+
type Mode = 'automatic' | 'custom';
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1610
1874
|
type Permission =
|
|
1611
1875
|
| 'balances'
|
|
1612
1876
|
| 'ownership'
|
|
1613
1877
|
| 'payment_method'
|
|
1614
1878
|
| 'transactions';
|
|
1615
1879
|
|
|
1616
|
-
type Prefetch =
|
|
1880
|
+
type Prefetch =
|
|
1881
|
+
| 'balances'
|
|
1882
|
+
| 'inferred_balances'
|
|
1883
|
+
| 'ownership'
|
|
1884
|
+
| 'transactions';
|
|
1617
1885
|
}
|
|
1618
1886
|
|
|
1619
1887
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1624,6 +1892,30 @@ declare module 'stripe' {
|
|
|
1624
1892
|
|
|
1625
1893
|
type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
|
|
1626
1894
|
|
|
1895
|
+
interface Permissions {
|
|
1896
|
+
/**
|
|
1897
|
+
* Permissions for updating the Checkout Session.
|
|
1898
|
+
*/
|
|
1899
|
+
update: Permissions.Update | null;
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
namespace Permissions {
|
|
1903
|
+
interface Update {
|
|
1904
|
+
/**
|
|
1905
|
+
* Determines which entity is allowed to update the shipping details.
|
|
1906
|
+
*
|
|
1907
|
+
* 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.
|
|
1908
|
+
*
|
|
1909
|
+
* 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.
|
|
1910
|
+
*/
|
|
1911
|
+
shipping_details: Update.ShippingDetails | null;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
namespace Update {
|
|
1915
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1627
1919
|
interface PhoneNumberCollection {
|
|
1628
1920
|
/**
|
|
1629
1921
|
* Indicates whether phone number collection is enabled for the session
|
|
@@ -2130,7 +2422,7 @@ declare module 'stripe' {
|
|
|
2130
2422
|
}
|
|
2131
2423
|
}
|
|
2132
2424
|
|
|
2133
|
-
type UiMode = 'embedded' | 'hosted';
|
|
2425
|
+
type UiMode = 'custom' | 'embedded' | 'hosted';
|
|
2134
2426
|
}
|
|
2135
2427
|
}
|
|
2136
2428
|
}
|