stripe 16.11.0-beta.1 → 16.11.0
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 +124 -831
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +2 -2
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources.js +12 -42
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +3 -3
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/InvoiceRenderingTemplates.js +22 -0
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources.js +1 -28
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -278
- package/types/Accounts.d.ts +1 -113
- package/types/AccountsResource.d.ts +0 -270
- package/types/Charges.d.ts +0 -71
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +13 -296
- package/types/Checkout/SessionsResource.d.ts +14 -350
- package/types/ConfirmationTokens.d.ts +0 -67
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/Customers.d.ts +5 -0
- package/types/CustomersResource.d.ts +10 -3
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -477
- package/types/Events.d.ts +0 -86
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +2 -24
- package/types/{Margins.d.ts → InvoiceRenderingTemplates.d.ts} +13 -15
- package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
- package/types/Invoices.d.ts +11 -117
- package/types/InvoicesResource.d.ts +1855 -5493
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Cards.d.ts +2 -1
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -503
- package/types/PaymentIntentsResource.d.ts +3464 -7064
- package/types/PaymentLinks.d.ts +6 -2
- package/types/PaymentLinksResource.d.ts +18 -4
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
- package/types/PaymentMethods.d.ts +0 -67
- package/types/PaymentMethodsResource.d.ts +0 -88
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -596
- package/types/QuotesResource.d.ts +200 -2532
- package/types/SetupAttempts.d.ts +0 -10
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -522
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -82
- package/types/SubscriptionsResource.d.ts +8 -347
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
- package/types/TestHelpers/TestClocks.d.ts +1 -1
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +0 -56
- package/types/index.d.ts +3 -71
- package/types/lib.d.ts +0 -12
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -138
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1084
- package/types/OrdersResource.d.ts +0 -2765
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1532
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -70,15 +70,10 @@ declare module 'stripe' {
|
|
|
70
70
|
client_reference_id: string | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Client secret to be used when initializing Stripe.js embedded checkout.
|
|
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
|
-
|
|
82
77
|
/**
|
|
83
78
|
* Results of `consent_collection` for this session.
|
|
84
79
|
*/
|
|
@@ -216,13 +211,6 @@ declare module 'stripe' {
|
|
|
216
211
|
*/
|
|
217
212
|
payment_status: Session.PaymentStatus;
|
|
218
213
|
|
|
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
|
-
|
|
226
214
|
phone_number_collection?: Session.PhoneNumberCollection;
|
|
227
215
|
|
|
228
216
|
/**
|
|
@@ -236,7 +224,7 @@ declare module 'stripe' {
|
|
|
236
224
|
redirect_on_completion?: Session.RedirectOnCompletion;
|
|
237
225
|
|
|
238
226
|
/**
|
|
239
|
-
* Applies to Checkout Sessions with `ui_mode: embedded
|
|
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.
|
|
240
228
|
*/
|
|
241
229
|
return_url?: string;
|
|
242
230
|
|
|
@@ -385,150 +373,6 @@ declare module 'stripe' {
|
|
|
385
373
|
|
|
386
374
|
type BillingAddressCollection = 'auto' | 'required';
|
|
387
375
|
|
|
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
|
-
|
|
532
376
|
interface Consent {
|
|
533
377
|
/**
|
|
534
378
|
* If `opt_in`, the customer consents to receiving promotional communications
|
|
@@ -1103,8 +947,6 @@ declare module 'stripe' {
|
|
|
1103
947
|
|
|
1104
948
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1105
949
|
|
|
1106
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1107
|
-
|
|
1108
950
|
pix?: PaymentMethodOptions.Pix;
|
|
1109
951
|
|
|
1110
952
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
@@ -1646,100 +1488,12 @@ declare module 'stripe' {
|
|
|
1646
1488
|
* 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).
|
|
1647
1489
|
*/
|
|
1648
1490
|
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>;
|
|
1654
1491
|
}
|
|
1655
1492
|
|
|
1656
1493
|
namespace Paypal {
|
|
1657
1494
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1658
1495
|
}
|
|
1659
1496
|
|
|
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
|
-
|
|
1743
1497
|
interface Pix {
|
|
1744
1498
|
/**
|
|
1745
1499
|
* The number of seconds after which Pix payment will expire.
|
|
@@ -1825,8 +1579,6 @@ declare module 'stripe' {
|
|
|
1825
1579
|
interface FinancialConnections {
|
|
1826
1580
|
filters?: FinancialConnections.Filters;
|
|
1827
1581
|
|
|
1828
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
1829
|
-
|
|
1830
1582
|
/**
|
|
1831
1583
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1832
1584
|
*/
|
|
@@ -1849,39 +1601,19 @@ declare module 'stripe' {
|
|
|
1849
1601
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1850
1602
|
*/
|
|
1851
1603
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* The institution to use to filter for possible accounts to link.
|
|
1855
|
-
*/
|
|
1856
|
-
institution?: string;
|
|
1857
1604
|
}
|
|
1858
1605
|
|
|
1859
1606
|
namespace Filters {
|
|
1860
1607
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1861
1608
|
}
|
|
1862
1609
|
|
|
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
|
-
|
|
1874
1610
|
type Permission =
|
|
1875
1611
|
| 'balances'
|
|
1876
1612
|
| 'ownership'
|
|
1877
1613
|
| 'payment_method'
|
|
1878
1614
|
| 'transactions';
|
|
1879
1615
|
|
|
1880
|
-
type Prefetch =
|
|
1881
|
-
| 'balances'
|
|
1882
|
-
| 'inferred_balances'
|
|
1883
|
-
| 'ownership'
|
|
1884
|
-
| 'transactions';
|
|
1616
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1885
1617
|
}
|
|
1886
1618
|
|
|
1887
1619
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1892,30 +1624,6 @@ declare module 'stripe' {
|
|
|
1892
1624
|
|
|
1893
1625
|
type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
|
|
1894
1626
|
|
|
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
|
-
|
|
1919
1627
|
interface PhoneNumberCollection {
|
|
1920
1628
|
/**
|
|
1921
1629
|
* Indicates whether phone number collection is enabled for the session
|
|
@@ -2318,6 +2026,15 @@ declare module 'stripe' {
|
|
|
2318
2026
|
* Indicates whether tax ID collection is enabled for the session
|
|
2319
2027
|
*/
|
|
2320
2028
|
enabled: boolean;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Indicates whether a tax ID is required on the payment page
|
|
2032
|
+
*/
|
|
2033
|
+
required: TaxIdCollection.Required;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
namespace TaxIdCollection {
|
|
2037
|
+
type Required = 'if_supported' | 'never';
|
|
2321
2038
|
}
|
|
2322
2039
|
|
|
2323
2040
|
interface TotalDetails {
|
|
@@ -2413,7 +2130,7 @@ declare module 'stripe' {
|
|
|
2413
2130
|
}
|
|
2414
2131
|
}
|
|
2415
2132
|
|
|
2416
|
-
type UiMode = '
|
|
2133
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2417
2134
|
}
|
|
2418
2135
|
}
|
|
2419
2136
|
}
|