stripe 19.2.0-alpha.2 → 19.2.0-alpha.4

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
  5. package/cjs/resources/Identity/BlocklistEntries.js +25 -0
  6. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
  7. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +5 -0
  8. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  9. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  10. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  11. package/cjs/resources.js +7 -1
  12. package/cjs/stripe.core.js +1 -1
  13. package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
  14. package/esm/resources/Identity/BlocklistEntries.js +22 -0
  15. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
  16. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +5 -0
  17. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  18. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  19. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  20. package/esm/resources.js +6 -0
  21. package/esm/stripe.core.js +1 -1
  22. package/package.json +1 -1
  23. package/types/Billing/MeterEventSummaries.d.ts +7 -0
  24. package/types/Billing/Meters.d.ts +5 -0
  25. package/types/Billing/MetersResource.d.ts +17 -0
  26. package/types/DelegatedCheckout/RequestedSessions.d.ts +292 -0
  27. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +591 -0
  28. package/types/Identity/BlocklistEntries.d.ts +78 -0
  29. package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
  30. package/types/Identity/VerificationReports.d.ts +10 -0
  31. package/types/Identity/VerificationReportsResource.d.ts +5 -0
  32. package/types/V2/Billing/Cadences.d.ts +2 -2
  33. package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
  34. package/types/V2/Billing/CollectionSettings.d.ts +2 -2
  35. package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
  36. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
  37. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
  38. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +2 -0
  39. package/types/V2/Core/Accounts.d.ts +93 -2
  40. package/types/V2/Core/AccountsResource.d.ts +88 -5
  41. package/types/V2/Core/EventTypes.d.ts +99 -0
  42. package/types/V2/Core/EventsResource.d.ts +29 -3
  43. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
  44. package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
  45. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
  46. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
  47. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +1 -1
  48. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +1 -0
  49. package/types/index.d.ts +10 -0
@@ -0,0 +1,591 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace DelegatedCheckout {
6
+ interface RequestedSessionCreateParams {
7
+ /**
8
+ * The currency for this requested session.
9
+ */
10
+ currency: string;
11
+
12
+ /**
13
+ * The details of the line items.
14
+ */
15
+ line_item_details: Array<RequestedSessionCreateParams.LineItemDetail>;
16
+
17
+ /**
18
+ * The details of the seller.
19
+ */
20
+ seller_details: RequestedSessionCreateParams.SellerDetails;
21
+
22
+ /**
23
+ * The customer for this requested session.
24
+ */
25
+ customer?: string;
26
+
27
+ /**
28
+ * Specifies which fields in the response should be expanded.
29
+ */
30
+ expand?: Array<string>;
31
+
32
+ /**
33
+ * The details of the fulfillment.
34
+ */
35
+ fulfillment_details?: RequestedSessionCreateParams.FulfillmentDetails;
36
+
37
+ /**
38
+ * The metadata for this requested session.
39
+ */
40
+ metadata?: Stripe.MetadataParam;
41
+
42
+ /**
43
+ * The payment method for this requested session.
44
+ */
45
+ payment_method?: string;
46
+
47
+ /**
48
+ * The payment method data for this requested session.
49
+ */
50
+ payment_method_data?: RequestedSessionCreateParams.PaymentMethodData;
51
+
52
+ /**
53
+ * The risk details for this requested session.
54
+ */
55
+ risk_details?: RequestedSessionCreateParams.RiskDetails;
56
+
57
+ /**
58
+ * The setup future usage for this requested session.
59
+ */
60
+ setup_future_usage?: 'on_session';
61
+
62
+ /**
63
+ * The shared metadata for this requested session.
64
+ */
65
+ shared_metadata?: {
66
+ [key: string]: string;
67
+ };
68
+ }
69
+
70
+ namespace RequestedSessionCreateParams {
71
+ interface FulfillmentDetails {
72
+ address?: FulfillmentDetails.Address;
73
+
74
+ /**
75
+ * The customer's email address.
76
+ */
77
+ email?: string;
78
+
79
+ /**
80
+ * The customer's name.
81
+ */
82
+ name?: string;
83
+
84
+ /**
85
+ * The customer's phone number.
86
+ */
87
+ phone?: string;
88
+ }
89
+
90
+ namespace FulfillmentDetails {
91
+ interface Address {
92
+ /**
93
+ * City, district, suburb, town, or village.
94
+ */
95
+ city: string;
96
+
97
+ /**
98
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
99
+ */
100
+ country: string;
101
+
102
+ /**
103
+ * Address line 1, such as the street, PO Box, or company name.
104
+ */
105
+ line1: string;
106
+
107
+ /**
108
+ * Address line 2, such as the apartment, suite, unit, or building.
109
+ */
110
+ line2?: string;
111
+
112
+ /**
113
+ * ZIP or postal code.
114
+ */
115
+ postal_code: string;
116
+
117
+ /**
118
+ * State, county, province, or region.
119
+ */
120
+ state: string;
121
+ }
122
+ }
123
+
124
+ interface LineItemDetail {
125
+ /**
126
+ * The quantity of the line item.
127
+ */
128
+ quantity: number;
129
+
130
+ /**
131
+ * The SKU ID of the line item.
132
+ */
133
+ sku_id: string;
134
+ }
135
+
136
+ interface PaymentMethodData {
137
+ /**
138
+ * The billing details for the payment method data.
139
+ */
140
+ billing_details?: PaymentMethodData.BillingDetails;
141
+
142
+ /**
143
+ * The card for the payment method data.
144
+ */
145
+ card?: PaymentMethodData.Card;
146
+
147
+ /**
148
+ * The type of the payment method data.
149
+ */
150
+ type?: 'card';
151
+ }
152
+
153
+ namespace PaymentMethodData {
154
+ interface BillingDetails {
155
+ /**
156
+ * The address for the billing details.
157
+ */
158
+ address?: BillingDetails.Address;
159
+
160
+ /**
161
+ * The email for the billing details.
162
+ */
163
+ email?: string;
164
+
165
+ /**
166
+ * The name for the billing details.
167
+ */
168
+ name?: string;
169
+
170
+ /**
171
+ * The phone for the billing details.
172
+ */
173
+ phone?: string;
174
+ }
175
+
176
+ namespace BillingDetails {
177
+ interface Address {
178
+ /**
179
+ * City, district, suburb, town, or village.
180
+ */
181
+ city: string;
182
+
183
+ /**
184
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
185
+ */
186
+ country: string;
187
+
188
+ /**
189
+ * Address line 1, such as the street, PO Box, or company name.
190
+ */
191
+ line1: string;
192
+
193
+ /**
194
+ * Address line 2, such as the apartment, suite, unit, or building.
195
+ */
196
+ line2?: string;
197
+
198
+ /**
199
+ * ZIP or postal code.
200
+ */
201
+ postal_code: string;
202
+
203
+ /**
204
+ * State, county, province, or region.
205
+ */
206
+ state: string;
207
+ }
208
+ }
209
+
210
+ interface Card {
211
+ /**
212
+ * The CVC of the card.
213
+ */
214
+ cvc?: string;
215
+
216
+ /**
217
+ * The expiration month of the card.
218
+ */
219
+ exp_month: number;
220
+
221
+ /**
222
+ * The expiration year of the card.
223
+ */
224
+ exp_year: number;
225
+
226
+ /**
227
+ * The number of the card.
228
+ */
229
+ number: string;
230
+ }
231
+ }
232
+
233
+ interface RiskDetails {
234
+ /**
235
+ * The client device metadata details for this requested session.
236
+ */
237
+ client_device_metadata_details?: RiskDetails.ClientDeviceMetadataDetails;
238
+ }
239
+
240
+ namespace RiskDetails {
241
+ interface ClientDeviceMetadataDetails {
242
+ /**
243
+ * The radar session.
244
+ */
245
+ radar_session?: string;
246
+
247
+ /**
248
+ * The referrer of the client device.
249
+ */
250
+ referrer?: string;
251
+
252
+ /**
253
+ * The remote IP address of the client device.
254
+ */
255
+ remote_ip?: string;
256
+
257
+ /**
258
+ * The time on page in seconds.
259
+ */
260
+ time_on_page?: number;
261
+
262
+ /**
263
+ * The user agent of the client device.
264
+ */
265
+ user_agent?: string;
266
+ }
267
+ }
268
+
269
+ interface SellerDetails {
270
+ /**
271
+ * The network profile for the seller.
272
+ */
273
+ network_profile: string;
274
+ }
275
+ }
276
+
277
+ interface RequestedSessionRetrieveParams {
278
+ /**
279
+ * Specifies which fields in the response should be expanded.
280
+ */
281
+ expand?: Array<string>;
282
+ }
283
+
284
+ interface RequestedSessionUpdateParams {
285
+ /**
286
+ * Specifies which fields in the response should be expanded.
287
+ */
288
+ expand?: Array<string>;
289
+
290
+ /**
291
+ * The details of the fulfillment.
292
+ */
293
+ fulfillment_details?: RequestedSessionUpdateParams.FulfillmentDetails;
294
+
295
+ /**
296
+ * The details of the line items.
297
+ */
298
+ line_item_details?: Array<RequestedSessionUpdateParams.LineItemDetail>;
299
+
300
+ /**
301
+ * The metadata for this requested session.
302
+ */
303
+ metadata?: Stripe.MetadataParam;
304
+
305
+ /**
306
+ * The payment method for this requested session.
307
+ */
308
+ payment_method?: string;
309
+
310
+ /**
311
+ * The payment method data for this requested session.
312
+ */
313
+ payment_method_data?: RequestedSessionUpdateParams.PaymentMethodData;
314
+
315
+ /**
316
+ * The shared metadata for this requested session.
317
+ */
318
+ shared_metadata?: {
319
+ [key: string]: string;
320
+ };
321
+ }
322
+
323
+ namespace RequestedSessionUpdateParams {
324
+ interface FulfillmentDetails {
325
+ address?: FulfillmentDetails.Address;
326
+
327
+ /**
328
+ * The customer's email address.
329
+ */
330
+ email?: string;
331
+
332
+ /**
333
+ * The customer's name.
334
+ */
335
+ name?: string;
336
+
337
+ /**
338
+ * The customer's phone number.
339
+ */
340
+ phone?: string;
341
+
342
+ /**
343
+ * The fulfillment option to select.
344
+ */
345
+ selected_fulfillment_option?: FulfillmentDetails.SelectedFulfillmentOption;
346
+ }
347
+
348
+ namespace FulfillmentDetails {
349
+ interface Address {
350
+ /**
351
+ * City, district, suburb, town, or village.
352
+ */
353
+ city: string;
354
+
355
+ /**
356
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
357
+ */
358
+ country: string;
359
+
360
+ /**
361
+ * Address line 1, such as the street, PO Box, or company name.
362
+ */
363
+ line1: string;
364
+
365
+ /**
366
+ * Address line 2, such as the apartment, suite, unit, or building.
367
+ */
368
+ line2?: string;
369
+
370
+ /**
371
+ * ZIP or postal code.
372
+ */
373
+ postal_code: string;
374
+
375
+ /**
376
+ * State, county, province, or region.
377
+ */
378
+ state: string;
379
+ }
380
+
381
+ interface SelectedFulfillmentOption {
382
+ /**
383
+ * The shipping fulfillment option.
384
+ */
385
+ shipping: SelectedFulfillmentOption.Shipping;
386
+
387
+ /**
388
+ * The type of fulfillment option.
389
+ */
390
+ type: string;
391
+ }
392
+
393
+ namespace SelectedFulfillmentOption {
394
+ interface Shipping {
395
+ /**
396
+ * The shipping option identifer.
397
+ */
398
+ shipping_option: string;
399
+ }
400
+ }
401
+ }
402
+
403
+ interface LineItemDetail {
404
+ /**
405
+ * The key of the line item.
406
+ */
407
+ key: string;
408
+
409
+ /**
410
+ * The quantity of the line item.
411
+ */
412
+ quantity?: number;
413
+ }
414
+
415
+ interface PaymentMethodData {
416
+ /**
417
+ * The billing details for the payment method data.
418
+ */
419
+ billing_details?: PaymentMethodData.BillingDetails;
420
+
421
+ /**
422
+ * The card for the payment method data.
423
+ */
424
+ card?: PaymentMethodData.Card;
425
+
426
+ /**
427
+ * The type of the payment method data.
428
+ */
429
+ type?: 'card';
430
+ }
431
+
432
+ namespace PaymentMethodData {
433
+ interface BillingDetails {
434
+ /**
435
+ * The address for the billing details.
436
+ */
437
+ address?: BillingDetails.Address;
438
+
439
+ /**
440
+ * The email for the billing details.
441
+ */
442
+ email?: string;
443
+
444
+ /**
445
+ * The name for the billing details.
446
+ */
447
+ name?: string;
448
+
449
+ /**
450
+ * The phone for the billing details.
451
+ */
452
+ phone?: string;
453
+ }
454
+
455
+ namespace BillingDetails {
456
+ interface Address {
457
+ /**
458
+ * City, district, suburb, town, or village.
459
+ */
460
+ city: string;
461
+
462
+ /**
463
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
464
+ */
465
+ country: string;
466
+
467
+ /**
468
+ * Address line 1, such as the street, PO Box, or company name.
469
+ */
470
+ line1: string;
471
+
472
+ /**
473
+ * Address line 2, such as the apartment, suite, unit, or building.
474
+ */
475
+ line2?: string;
476
+
477
+ /**
478
+ * ZIP or postal code.
479
+ */
480
+ postal_code: string;
481
+
482
+ /**
483
+ * State, county, province, or region.
484
+ */
485
+ state: string;
486
+ }
487
+ }
488
+
489
+ interface Card {
490
+ /**
491
+ * The CVC of the card.
492
+ */
493
+ cvc?: string;
494
+
495
+ /**
496
+ * The expiration month of the card.
497
+ */
498
+ exp_month: number;
499
+
500
+ /**
501
+ * The expiration year of the card.
502
+ */
503
+ exp_year: number;
504
+
505
+ /**
506
+ * The number of the card.
507
+ */
508
+ number: string;
509
+ }
510
+ }
511
+ }
512
+
513
+ interface RequestedSessionConfirmParams {
514
+ /**
515
+ * Specifies which fields in the response should be expanded.
516
+ */
517
+ expand?: Array<string>;
518
+
519
+ /**
520
+ * The PaymentMethod to use with the requested session.
521
+ */
522
+ payment_method?: string;
523
+ }
524
+
525
+ interface RequestedSessionExpireParams {
526
+ /**
527
+ * Specifies which fields in the response should be expanded.
528
+ */
529
+ expand?: Array<string>;
530
+ }
531
+
532
+ class RequestedSessionsResource {
533
+ /**
534
+ * Creates a requested session
535
+ */
536
+ create(
537
+ params: RequestedSessionCreateParams,
538
+ options?: RequestOptions
539
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
540
+
541
+ /**
542
+ * Retrieves a requested session
543
+ */
544
+ retrieve(
545
+ id: string,
546
+ params?: RequestedSessionRetrieveParams,
547
+ options?: RequestOptions
548
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
549
+ retrieve(
550
+ id: string,
551
+ options?: RequestOptions
552
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
553
+
554
+ /**
555
+ * Updates a requested session
556
+ */
557
+ update(
558
+ id: string,
559
+ params?: RequestedSessionUpdateParams,
560
+ options?: RequestOptions
561
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
562
+
563
+ /**
564
+ * Confirms a requested session
565
+ */
566
+ confirm(
567
+ id: string,
568
+ params?: RequestedSessionConfirmParams,
569
+ options?: RequestOptions
570
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
571
+ confirm(
572
+ id: string,
573
+ options?: RequestOptions
574
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
575
+
576
+ /**
577
+ * Expires a requested session
578
+ */
579
+ expire(
580
+ id: string,
581
+ params?: RequestedSessionExpireParams,
582
+ options?: RequestOptions
583
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
584
+ expire(
585
+ id: string,
586
+ options?: RequestOptions
587
+ ): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
588
+ }
589
+ }
590
+ }
591
+ }
@@ -0,0 +1,78 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Identity {
6
+ /**
7
+ * A BlocklistEntry represents an entry in our identity verification blocklist.
8
+ * It helps prevent fraudulent users from repeatedly attempting verification with similar information.
9
+ * When you create a BlocklistEntry, we store data from a specified VerificationReport,
10
+ * such as document details or facial biometrics.
11
+ * This allows us to compare future verification attempts against these entries.
12
+ * If a match is found, we categorize the new verification as unverified.
13
+ *
14
+ * To learn more, see [Identity Verification Blocklist](https://stripe.com/docs/identity/review-tools#block-list)
15
+ */
16
+ interface BlocklistEntry {
17
+ /**
18
+ * Unique identifier for the object.
19
+ */
20
+ id: string;
21
+
22
+ /**
23
+ * String representing the object's type. Objects of the same type share the same value.
24
+ */
25
+ object: 'identity.blocklist_entry';
26
+
27
+ /**
28
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
29
+ */
30
+ created: number;
31
+
32
+ /**
33
+ * Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch.
34
+ */
35
+ disabled_at: number | null;
36
+
37
+ /**
38
+ * Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch.
39
+ */
40
+ expires_at: number | null;
41
+
42
+ /**
43
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
44
+ */
45
+ livemode: boolean;
46
+
47
+ /**
48
+ * The current status of the BlocklistEntry.
49
+ */
50
+ status: BlocklistEntry.Status;
51
+
52
+ /**
53
+ * The type of BlocklistEntry.
54
+ */
55
+ type: BlocklistEntry.Type;
56
+
57
+ /**
58
+ * The verification report the BlocklistEntry was created from.
59
+ */
60
+ verification_report: string | Stripe.Identity.VerificationReport | null;
61
+
62
+ /**
63
+ * The verification session the BlocklistEntry was created from.
64
+ */
65
+ verification_session:
66
+ | string
67
+ | Stripe.Identity.VerificationSession
68
+ | null;
69
+ }
70
+
71
+ namespace BlocklistEntry {
72
+ type Status = 'active' | 'disabled' | 'redacted';
73
+
74
+ type Type = 'document' | 'selfie';
75
+ }
76
+ }
77
+ }
78
+ }