@getivy/node-sdk 0.1.0-alpha.31 → 0.1.0-alpha.33

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 (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.d.mts +14 -14
  3. package/index.d.ts +14 -14
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/balance.d.ts +6 -3
  10. package/resources/balance.d.ts.map +1 -1
  11. package/resources/banks.d.ts +38 -59
  12. package/resources/banks.d.ts.map +1 -1
  13. package/resources/capabilities.d.ts +1 -10
  14. package/resources/capabilities.d.ts.map +1 -1
  15. package/resources/charges.d.ts +30 -21
  16. package/resources/charges.d.ts.map +1 -1
  17. package/resources/checkoutsession.d.ts +315 -807
  18. package/resources/checkoutsession.d.ts.map +1 -1
  19. package/resources/customers.d.ts +9 -12
  20. package/resources/customers.d.ts.map +1 -1
  21. package/resources/data/accounts.d.ts +0 -100
  22. package/resources/data/accounts.d.ts.map +1 -1
  23. package/resources/data/accounts.js +0 -6
  24. package/resources/data/accounts.js.map +1 -1
  25. package/resources/data/accounts.mjs +0 -6
  26. package/resources/data/accounts.mjs.map +1 -1
  27. package/resources/data/balances.d.ts +0 -41
  28. package/resources/data/balances.d.ts.map +1 -1
  29. package/resources/data/balances.js +0 -6
  30. package/resources/data/balances.js.map +1 -1
  31. package/resources/data/balances.mjs +0 -6
  32. package/resources/data/balances.mjs.map +1 -1
  33. package/resources/data/consent.d.ts +0 -76
  34. package/resources/data/consent.d.ts.map +1 -1
  35. package/resources/data/consent.js +0 -12
  36. package/resources/data/consent.js.map +1 -1
  37. package/resources/data/consent.mjs +0 -12
  38. package/resources/data/consent.mjs.map +1 -1
  39. package/resources/data/data.d.ts +10 -10
  40. package/resources/data/data.d.ts.map +1 -1
  41. package/resources/data/data.js.map +1 -1
  42. package/resources/data/data.mjs +2 -2
  43. package/resources/data/data.mjs.map +1 -1
  44. package/resources/data/index.d.ts +5 -5
  45. package/resources/data/index.d.ts.map +1 -1
  46. package/resources/data/index.js.map +1 -1
  47. package/resources/data/index.mjs +2 -2
  48. package/resources/data/index.mjs.map +1 -1
  49. package/resources/data/session.d.ts +0 -230
  50. package/resources/data/session.d.ts.map +1 -1
  51. package/resources/data/session.js +0 -12
  52. package/resources/data/session.js.map +1 -1
  53. package/resources/data/session.mjs +0 -12
  54. package/resources/data/session.mjs.map +1 -1
  55. package/resources/data/transactions.d.ts +0 -50
  56. package/resources/data/transactions.d.ts.map +1 -1
  57. package/resources/data/transactions.js +0 -7
  58. package/resources/data/transactions.js.map +1 -1
  59. package/resources/data/transactions.mjs +0 -7
  60. package/resources/data/transactions.mjs.map +1 -1
  61. package/resources/index.d.ts +7 -7
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js.map +1 -1
  64. package/resources/index.mjs +1 -1
  65. package/resources/index.mjs.map +1 -1
  66. package/resources/mandates.d.ts +55 -17
  67. package/resources/mandates.d.ts.map +1 -1
  68. package/resources/mandates.js.map +1 -1
  69. package/resources/mandates.mjs.map +1 -1
  70. package/resources/orders.d.ts +242 -524
  71. package/resources/orders.d.ts.map +1 -1
  72. package/resources/payouts.d.ts +146 -70
  73. package/resources/payouts.d.ts.map +1 -1
  74. package/resources/payouts.js.map +1 -1
  75. package/resources/payouts.mjs.map +1 -1
  76. package/resources/refunds.d.ts +16 -92
  77. package/resources/refunds.d.ts.map +1 -1
  78. package/resources/refunds.js +4 -4
  79. package/resources/refunds.js.map +1 -1
  80. package/resources/refunds.mjs +4 -4
  81. package/resources/refunds.mjs.map +1 -1
  82. package/resources/reports.d.ts +4 -78
  83. package/resources/reports.d.ts.map +1 -1
  84. package/resources/reports.js +5 -1
  85. package/resources/reports.js.map +1 -1
  86. package/resources/reports.mjs +5 -1
  87. package/resources/reports.mjs.map +1 -1
  88. package/resources/subaccounts.d.ts +19 -7
  89. package/resources/subaccounts.d.ts.map +1 -1
  90. package/resources/subaccounts.js.map +1 -1
  91. package/resources/subaccounts.mjs.map +1 -1
  92. package/resources/webhooksubscription.d.ts +0 -151
  93. package/resources/webhooksubscription.d.ts.map +1 -1
  94. package/resources/webhooksubscription.js +0 -33
  95. package/resources/webhooksubscription.js.map +1 -1
  96. package/resources/webhooksubscription.mjs +0 -33
  97. package/resources/webhooksubscription.mjs.map +1 -1
  98. package/src/index.ts +22 -38
  99. package/src/resources/balance.ts +6 -3
  100. package/src/resources/banks.ts +41 -59
  101. package/src/resources/capabilities.ts +1 -10
  102. package/src/resources/charges.ts +32 -23
  103. package/src/resources/checkoutsession.ts +1399 -1003
  104. package/src/resources/customers.ts +9 -12
  105. package/src/resources/data/accounts.ts +1 -130
  106. package/src/resources/data/balances.ts +1 -53
  107. package/src/resources/data/consent.ts +1 -106
  108. package/src/resources/data/data.ts +10 -46
  109. package/src/resources/data/index.ts +5 -17
  110. package/src/resources/data/session.ts +1 -1295
  111. package/src/resources/data/transactions.ts +1 -67
  112. package/src/resources/index.ts +9 -19
  113. package/src/resources/mandates.ts +82 -17
  114. package/src/resources/orders.ts +1149 -805
  115. package/src/resources/payouts.ts +239 -70
  116. package/src/resources/refunds.ts +33 -94
  117. package/src/resources/reports.ts +8 -98
  118. package/src/resources/subaccounts.ts +36 -7
  119. package/src/resources/webhooksubscription.ts +1 -349
  120. package/src/version.ts +1 -1
  121. package/version.d.ts +1 -1
  122. package/version.js +1 -1
  123. package/version.mjs +1 -1
@@ -1,1299 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
4
 
6
- export class Session extends APIResource {
7
- /**
8
- * Creates a data session for the merchant corresponding to the API key.
9
- */
10
- create(body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SessionCreateResponse> {
11
- return this._client.post('/api/service/data/session/create', { body, ...options });
12
- }
13
-
14
- /**
15
- * Retrieves the details of a data session by its ID.
16
- */
17
- retrieve(
18
- body: SessionRetrieveParams,
19
- options?: Core.RequestOptions,
20
- ): Core.APIPromise<SessionRetrieveResponse> {
21
- return this._client.post('/api/service/data/session/details', { body, ...options });
22
- }
23
- }
24
-
25
- export interface SessionCreateResponse {
26
- /**
27
- * The id of the data session.
28
- */
29
- id: string;
30
-
31
- /**
32
- * The markets where the user of the Data Session can select banks from.
33
- */
34
- availableMarkets: Array<
35
- | 'AF'
36
- | 'AL'
37
- | 'DZ'
38
- | 'AS'
39
- | 'AD'
40
- | 'AO'
41
- | 'AI'
42
- | 'AQ'
43
- | 'AG'
44
- | 'AR'
45
- | 'AM'
46
- | 'AW'
47
- | 'AU'
48
- | 'AT'
49
- | 'AZ'
50
- | 'BS'
51
- | 'BH'
52
- | 'BD'
53
- | 'BB'
54
- | 'BY'
55
- | 'BE'
56
- | 'BZ'
57
- | 'BJ'
58
- | 'BM'
59
- | 'BT'
60
- | 'BO'
61
- | 'BA'
62
- | 'BW'
63
- | 'BV'
64
- | 'BR'
65
- | 'IO'
66
- | 'BN'
67
- | 'BG'
68
- | 'BF'
69
- | 'BI'
70
- | 'KH'
71
- | 'CM'
72
- | 'CA'
73
- | 'CV'
74
- | 'KY'
75
- | 'CF'
76
- | 'TD'
77
- | 'CL'
78
- | 'CN'
79
- | 'CX'
80
- | 'CC'
81
- | 'CO'
82
- | 'KM'
83
- | 'CG'
84
- | 'CD'
85
- | 'CK'
86
- | 'CR'
87
- | 'CI'
88
- | 'HR'
89
- | 'CU'
90
- | 'CY'
91
- | 'CZ'
92
- | 'DK'
93
- | 'DJ'
94
- | 'DM'
95
- | 'DO'
96
- | 'EC'
97
- | 'EG'
98
- | 'SV'
99
- | 'GQ'
100
- | 'ER'
101
- | 'EE'
102
- | 'ET'
103
- | 'FK'
104
- | 'FO'
105
- | 'FJ'
106
- | 'FI'
107
- | 'FR'
108
- | 'GF'
109
- | 'PF'
110
- | 'TF'
111
- | 'GA'
112
- | 'GM'
113
- | 'GE'
114
- | 'DE'
115
- | 'GH'
116
- | 'GI'
117
- | 'GR'
118
- | 'GL'
119
- | 'GD'
120
- | 'GP'
121
- | 'GU'
122
- | 'GT'
123
- | 'GN'
124
- | 'GW'
125
- | 'GY'
126
- | 'HT'
127
- | 'HM'
128
- | 'VA'
129
- | 'HN'
130
- | 'HK'
131
- | 'HU'
132
- | 'IS'
133
- | 'IN'
134
- | 'ID'
135
- | 'IR'
136
- | 'IQ'
137
- | 'IE'
138
- | 'IL'
139
- | 'IT'
140
- | 'JM'
141
- | 'JP'
142
- | 'JO'
143
- | 'KZ'
144
- | 'KE'
145
- | 'KI'
146
- | 'KP'
147
- | 'KR'
148
- | 'KW'
149
- | 'KG'
150
- | 'LA'
151
- | 'LV'
152
- | 'LB'
153
- | 'LS'
154
- | 'LR'
155
- | 'LY'
156
- | 'LI'
157
- | 'LT'
158
- | 'LU'
159
- | 'MO'
160
- | 'MG'
161
- | 'MW'
162
- | 'MY'
163
- | 'MV'
164
- | 'ML'
165
- | 'MT'
166
- | 'MH'
167
- | 'MQ'
168
- | 'MR'
169
- | 'MU'
170
- | 'YT'
171
- | 'MX'
172
- | 'FM'
173
- | 'MD'
174
- | 'MC'
175
- | 'MN'
176
- | 'MS'
177
- | 'MA'
178
- | 'MZ'
179
- | 'MM'
180
- | 'NA'
181
- | 'NR'
182
- | 'NP'
183
- | 'NL'
184
- | 'NC'
185
- | 'NZ'
186
- | 'NI'
187
- | 'NE'
188
- | 'NG'
189
- | 'NU'
190
- | 'NF'
191
- | 'MP'
192
- | 'MK'
193
- | 'NO'
194
- | 'OM'
195
- | 'PK'
196
- | 'PW'
197
- | 'PS'
198
- | 'PA'
199
- | 'PG'
200
- | 'PY'
201
- | 'PE'
202
- | 'PH'
203
- | 'PN'
204
- | 'PL'
205
- | 'PT'
206
- | 'PR'
207
- | 'QA'
208
- | 'RE'
209
- | 'RO'
210
- | 'RU'
211
- | 'RW'
212
- | 'SH'
213
- | 'KN'
214
- | 'LC'
215
- | 'PM'
216
- | 'VC'
217
- | 'WS'
218
- | 'SM'
219
- | 'ST'
220
- | 'SA'
221
- | 'SN'
222
- | 'SC'
223
- | 'SL'
224
- | 'SG'
225
- | 'SK'
226
- | 'SI'
227
- | 'SB'
228
- | 'SO'
229
- | 'ZA'
230
- | 'GS'
231
- | 'ES'
232
- | 'LK'
233
- | 'SD'
234
- | 'SR'
235
- | 'SJ'
236
- | 'SZ'
237
- | 'SE'
238
- | 'CH'
239
- | 'SY'
240
- | 'TW'
241
- | 'TJ'
242
- | 'TZ'
243
- | 'TH'
244
- | 'TL'
245
- | 'TG'
246
- | 'TK'
247
- | 'TO'
248
- | 'TT'
249
- | 'TN'
250
- | 'TR'
251
- | 'TM'
252
- | 'TC'
253
- | 'TV'
254
- | 'UG'
255
- | 'UA'
256
- | 'AE'
257
- | 'GB'
258
- | 'US'
259
- | 'UM'
260
- | 'UY'
261
- | 'UZ'
262
- | 'VU'
263
- | 'VE'
264
- | 'VN'
265
- | 'VG'
266
- | 'VI'
267
- | 'WF'
268
- | 'EH'
269
- | 'YE'
270
- | 'ZM'
271
- | 'ZW'
272
- | 'AX'
273
- | 'BQ'
274
- | 'CW'
275
- | 'GG'
276
- | 'IM'
277
- | 'JE'
278
- | 'ME'
279
- | 'BL'
280
- | 'MF'
281
- | 'RS'
282
- | 'SX'
283
- | 'SS'
284
- | 'XK'
285
- >;
286
-
287
- /**
288
- * The Epoch time in seconds at which the Session was created.
289
- */
290
- createdAt: number;
291
-
292
- /**
293
- * Whether customers can choose another bank than the pre-selected one.
294
- */
295
- disableBankSelection: boolean;
296
-
297
- /**
298
- * @deprecated Currently only visible in the merchant dashboard. This id used to be
299
- * displayed to the user during the checkout.
300
- */
301
- displayId: string;
302
-
303
- /**
304
- * The URL where users will be redirected after an unsuccessful session.
305
- */
306
- errorCallbackUrl: string;
307
-
308
- /**
309
- * The Epoch time in seconds at which the Session will expire.
310
- */
311
- expiresAt: number;
312
-
313
- /**
314
- * The id of the merchant.
315
- */
316
- merchantId: string;
317
-
318
- /**
319
- * The redirect URL of the data session.
320
- */
321
- redirectUrl: string;
322
-
323
- /**
324
- * An internal reference id for the data session.
325
- */
326
- referenceId: string;
327
-
328
- /**
329
- * The status of the data session.
330
- */
331
- status: 'open' | 'closed' | 'expired';
332
-
333
- /**
334
- * The URL where users will be redirected after a successful session.
335
- */
336
- successCallbackUrl: string;
337
-
338
- /**
339
- * The Epoch time in seconds at which the Session was updated.
340
- */
341
- updatedAt: number;
342
-
343
- /**
344
- * The locale of the data session.
345
- */
346
- locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
347
-
348
- /**
349
- * ISO 3166-1 alpha-2 country code of the market.
350
- */
351
- market?:
352
- | 'AF'
353
- | 'AL'
354
- | 'DZ'
355
- | 'AS'
356
- | 'AD'
357
- | 'AO'
358
- | 'AI'
359
- | 'AQ'
360
- | 'AG'
361
- | 'AR'
362
- | 'AM'
363
- | 'AW'
364
- | 'AU'
365
- | 'AT'
366
- | 'AZ'
367
- | 'BS'
368
- | 'BH'
369
- | 'BD'
370
- | 'BB'
371
- | 'BY'
372
- | 'BE'
373
- | 'BZ'
374
- | 'BJ'
375
- | 'BM'
376
- | 'BT'
377
- | 'BO'
378
- | 'BA'
379
- | 'BW'
380
- | 'BV'
381
- | 'BR'
382
- | 'IO'
383
- | 'BN'
384
- | 'BG'
385
- | 'BF'
386
- | 'BI'
387
- | 'KH'
388
- | 'CM'
389
- | 'CA'
390
- | 'CV'
391
- | 'KY'
392
- | 'CF'
393
- | 'TD'
394
- | 'CL'
395
- | 'CN'
396
- | 'CX'
397
- | 'CC'
398
- | 'CO'
399
- | 'KM'
400
- | 'CG'
401
- | 'CD'
402
- | 'CK'
403
- | 'CR'
404
- | 'CI'
405
- | 'HR'
406
- | 'CU'
407
- | 'CY'
408
- | 'CZ'
409
- | 'DK'
410
- | 'DJ'
411
- | 'DM'
412
- | 'DO'
413
- | 'EC'
414
- | 'EG'
415
- | 'SV'
416
- | 'GQ'
417
- | 'ER'
418
- | 'EE'
419
- | 'ET'
420
- | 'FK'
421
- | 'FO'
422
- | 'FJ'
423
- | 'FI'
424
- | 'FR'
425
- | 'GF'
426
- | 'PF'
427
- | 'TF'
428
- | 'GA'
429
- | 'GM'
430
- | 'GE'
431
- | 'DE'
432
- | 'GH'
433
- | 'GI'
434
- | 'GR'
435
- | 'GL'
436
- | 'GD'
437
- | 'GP'
438
- | 'GU'
439
- | 'GT'
440
- | 'GN'
441
- | 'GW'
442
- | 'GY'
443
- | 'HT'
444
- | 'HM'
445
- | 'VA'
446
- | 'HN'
447
- | 'HK'
448
- | 'HU'
449
- | 'IS'
450
- | 'IN'
451
- | 'ID'
452
- | 'IR'
453
- | 'IQ'
454
- | 'IE'
455
- | 'IL'
456
- | 'IT'
457
- | 'JM'
458
- | 'JP'
459
- | 'JO'
460
- | 'KZ'
461
- | 'KE'
462
- | 'KI'
463
- | 'KP'
464
- | 'KR'
465
- | 'KW'
466
- | 'KG'
467
- | 'LA'
468
- | 'LV'
469
- | 'LB'
470
- | 'LS'
471
- | 'LR'
472
- | 'LY'
473
- | 'LI'
474
- | 'LT'
475
- | 'LU'
476
- | 'MO'
477
- | 'MG'
478
- | 'MW'
479
- | 'MY'
480
- | 'MV'
481
- | 'ML'
482
- | 'MT'
483
- | 'MH'
484
- | 'MQ'
485
- | 'MR'
486
- | 'MU'
487
- | 'YT'
488
- | 'MX'
489
- | 'FM'
490
- | 'MD'
491
- | 'MC'
492
- | 'MN'
493
- | 'MS'
494
- | 'MA'
495
- | 'MZ'
496
- | 'MM'
497
- | 'NA'
498
- | 'NR'
499
- | 'NP'
500
- | 'NL'
501
- | 'NC'
502
- | 'NZ'
503
- | 'NI'
504
- | 'NE'
505
- | 'NG'
506
- | 'NU'
507
- | 'NF'
508
- | 'MP'
509
- | 'MK'
510
- | 'NO'
511
- | 'OM'
512
- | 'PK'
513
- | 'PW'
514
- | 'PS'
515
- | 'PA'
516
- | 'PG'
517
- | 'PY'
518
- | 'PE'
519
- | 'PH'
520
- | 'PN'
521
- | 'PL'
522
- | 'PT'
523
- | 'PR'
524
- | 'QA'
525
- | 'RE'
526
- | 'RO'
527
- | 'RU'
528
- | 'RW'
529
- | 'SH'
530
- | 'KN'
531
- | 'LC'
532
- | 'PM'
533
- | 'VC'
534
- | 'WS'
535
- | 'SM'
536
- | 'ST'
537
- | 'SA'
538
- | 'SN'
539
- | 'SC'
540
- | 'SL'
541
- | 'SG'
542
- | 'SK'
543
- | 'SI'
544
- | 'SB'
545
- | 'SO'
546
- | 'ZA'
547
- | 'GS'
548
- | 'ES'
549
- | 'LK'
550
- | 'SD'
551
- | 'SR'
552
- | 'SJ'
553
- | 'SZ'
554
- | 'SE'
555
- | 'CH'
556
- | 'SY'
557
- | 'TW'
558
- | 'TJ'
559
- | 'TZ'
560
- | 'TH'
561
- | 'TL'
562
- | 'TG'
563
- | 'TK'
564
- | 'TO'
565
- | 'TT'
566
- | 'TN'
567
- | 'TR'
568
- | 'TM'
569
- | 'TC'
570
- | 'TV'
571
- | 'UG'
572
- | 'UA'
573
- | 'AE'
574
- | 'GB'
575
- | 'US'
576
- | 'UM'
577
- | 'UY'
578
- | 'UZ'
579
- | 'VU'
580
- | 'VE'
581
- | 'VN'
582
- | 'VG'
583
- | 'VI'
584
- | 'WF'
585
- | 'EH'
586
- | 'YE'
587
- | 'ZM'
588
- | 'ZW'
589
- | 'AX'
590
- | 'BQ'
591
- | 'CW'
592
- | 'GG'
593
- | 'IM'
594
- | 'JE'
595
- | 'ME'
596
- | 'BL'
597
- | 'MF'
598
- | 'RS'
599
- | 'SX'
600
- | 'SS'
601
- | 'XK';
602
-
603
- /**
604
- * Any data stored with this data session.
605
- */
606
- metadata?: unknown;
607
-
608
- prefill?: SessionCreateResponse.Prefill;
609
- }
610
-
611
- export namespace SessionCreateResponse {
612
- export interface Prefill {
613
- /**
614
- * The preselected bank ID.
615
- */
616
- bankId?: string;
617
- }
618
- }
619
-
620
- export interface SessionRetrieveResponse {
621
- /**
622
- * The id of the data session.
623
- */
624
- id: string;
625
-
626
- /**
627
- * The Epoch time in seconds at which the Session was created.
628
- */
629
- createdAt: number;
630
-
631
- /**
632
- * Whether customers can choose another bank than the pre-selected one.
633
- */
634
- disableBankSelection: boolean;
635
-
636
- /**
637
- * @deprecated Currently only visible in the merchant dashboard. This id used to be
638
- * displayed to the user during the checkout.
639
- */
640
- displayId: string;
641
-
642
- /**
643
- * The URL where users will be redirected after an unsuccessful session.
644
- */
645
- errorCallbackUrl: string;
646
-
647
- /**
648
- * The Epoch time in seconds at which the Session will expire.
649
- */
650
- expiresAt: number;
651
-
652
- /**
653
- * The id of the merchant.
654
- */
655
- merchantId: string;
656
-
657
- /**
658
- * An internal reference id for the data session.
659
- */
660
- referenceId: string;
661
-
662
- /**
663
- * The status of the data session.
664
- */
665
- status: 'open' | 'closed' | 'expired';
666
-
667
- /**
668
- * The URL where users will be redirected after a successful session.
669
- */
670
- successCallbackUrl: string;
671
-
672
- /**
673
- * The Epoch time in seconds at which the Session was updated.
674
- */
675
- updatedAt: number;
676
-
677
- /**
678
- * The locale of the data session.
679
- */
680
- locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
681
-
682
- /**
683
- * ISO 3166-1 alpha-2 country code of the market.
684
- */
685
- market?:
686
- | 'AF'
687
- | 'AL'
688
- | 'DZ'
689
- | 'AS'
690
- | 'AD'
691
- | 'AO'
692
- | 'AI'
693
- | 'AQ'
694
- | 'AG'
695
- | 'AR'
696
- | 'AM'
697
- | 'AW'
698
- | 'AU'
699
- | 'AT'
700
- | 'AZ'
701
- | 'BS'
702
- | 'BH'
703
- | 'BD'
704
- | 'BB'
705
- | 'BY'
706
- | 'BE'
707
- | 'BZ'
708
- | 'BJ'
709
- | 'BM'
710
- | 'BT'
711
- | 'BO'
712
- | 'BA'
713
- | 'BW'
714
- | 'BV'
715
- | 'BR'
716
- | 'IO'
717
- | 'BN'
718
- | 'BG'
719
- | 'BF'
720
- | 'BI'
721
- | 'KH'
722
- | 'CM'
723
- | 'CA'
724
- | 'CV'
725
- | 'KY'
726
- | 'CF'
727
- | 'TD'
728
- | 'CL'
729
- | 'CN'
730
- | 'CX'
731
- | 'CC'
732
- | 'CO'
733
- | 'KM'
734
- | 'CG'
735
- | 'CD'
736
- | 'CK'
737
- | 'CR'
738
- | 'CI'
739
- | 'HR'
740
- | 'CU'
741
- | 'CY'
742
- | 'CZ'
743
- | 'DK'
744
- | 'DJ'
745
- | 'DM'
746
- | 'DO'
747
- | 'EC'
748
- | 'EG'
749
- | 'SV'
750
- | 'GQ'
751
- | 'ER'
752
- | 'EE'
753
- | 'ET'
754
- | 'FK'
755
- | 'FO'
756
- | 'FJ'
757
- | 'FI'
758
- | 'FR'
759
- | 'GF'
760
- | 'PF'
761
- | 'TF'
762
- | 'GA'
763
- | 'GM'
764
- | 'GE'
765
- | 'DE'
766
- | 'GH'
767
- | 'GI'
768
- | 'GR'
769
- | 'GL'
770
- | 'GD'
771
- | 'GP'
772
- | 'GU'
773
- | 'GT'
774
- | 'GN'
775
- | 'GW'
776
- | 'GY'
777
- | 'HT'
778
- | 'HM'
779
- | 'VA'
780
- | 'HN'
781
- | 'HK'
782
- | 'HU'
783
- | 'IS'
784
- | 'IN'
785
- | 'ID'
786
- | 'IR'
787
- | 'IQ'
788
- | 'IE'
789
- | 'IL'
790
- | 'IT'
791
- | 'JM'
792
- | 'JP'
793
- | 'JO'
794
- | 'KZ'
795
- | 'KE'
796
- | 'KI'
797
- | 'KP'
798
- | 'KR'
799
- | 'KW'
800
- | 'KG'
801
- | 'LA'
802
- | 'LV'
803
- | 'LB'
804
- | 'LS'
805
- | 'LR'
806
- | 'LY'
807
- | 'LI'
808
- | 'LT'
809
- | 'LU'
810
- | 'MO'
811
- | 'MG'
812
- | 'MW'
813
- | 'MY'
814
- | 'MV'
815
- | 'ML'
816
- | 'MT'
817
- | 'MH'
818
- | 'MQ'
819
- | 'MR'
820
- | 'MU'
821
- | 'YT'
822
- | 'MX'
823
- | 'FM'
824
- | 'MD'
825
- | 'MC'
826
- | 'MN'
827
- | 'MS'
828
- | 'MA'
829
- | 'MZ'
830
- | 'MM'
831
- | 'NA'
832
- | 'NR'
833
- | 'NP'
834
- | 'NL'
835
- | 'NC'
836
- | 'NZ'
837
- | 'NI'
838
- | 'NE'
839
- | 'NG'
840
- | 'NU'
841
- | 'NF'
842
- | 'MP'
843
- | 'MK'
844
- | 'NO'
845
- | 'OM'
846
- | 'PK'
847
- | 'PW'
848
- | 'PS'
849
- | 'PA'
850
- | 'PG'
851
- | 'PY'
852
- | 'PE'
853
- | 'PH'
854
- | 'PN'
855
- | 'PL'
856
- | 'PT'
857
- | 'PR'
858
- | 'QA'
859
- | 'RE'
860
- | 'RO'
861
- | 'RU'
862
- | 'RW'
863
- | 'SH'
864
- | 'KN'
865
- | 'LC'
866
- | 'PM'
867
- | 'VC'
868
- | 'WS'
869
- | 'SM'
870
- | 'ST'
871
- | 'SA'
872
- | 'SN'
873
- | 'SC'
874
- | 'SL'
875
- | 'SG'
876
- | 'SK'
877
- | 'SI'
878
- | 'SB'
879
- | 'SO'
880
- | 'ZA'
881
- | 'GS'
882
- | 'ES'
883
- | 'LK'
884
- | 'SD'
885
- | 'SR'
886
- | 'SJ'
887
- | 'SZ'
888
- | 'SE'
889
- | 'CH'
890
- | 'SY'
891
- | 'TW'
892
- | 'TJ'
893
- | 'TZ'
894
- | 'TH'
895
- | 'TL'
896
- | 'TG'
897
- | 'TK'
898
- | 'TO'
899
- | 'TT'
900
- | 'TN'
901
- | 'TR'
902
- | 'TM'
903
- | 'TC'
904
- | 'TV'
905
- | 'UG'
906
- | 'UA'
907
- | 'AE'
908
- | 'GB'
909
- | 'US'
910
- | 'UM'
911
- | 'UY'
912
- | 'UZ'
913
- | 'VU'
914
- | 'VE'
915
- | 'VN'
916
- | 'VG'
917
- | 'VI'
918
- | 'WF'
919
- | 'EH'
920
- | 'YE'
921
- | 'ZM'
922
- | 'ZW'
923
- | 'AX'
924
- | 'BQ'
925
- | 'CW'
926
- | 'GG'
927
- | 'IM'
928
- | 'JE'
929
- | 'ME'
930
- | 'BL'
931
- | 'MF'
932
- | 'RS'
933
- | 'SX'
934
- | 'SS'
935
- | 'XK';
936
-
937
- /**
938
- * Any data stored with this data session.
939
- */
940
- metadata?: unknown;
941
-
942
- prefill?: SessionRetrieveResponse.Prefill;
943
- }
944
-
945
- export namespace SessionRetrieveResponse {
946
- export interface Prefill {
947
- /**
948
- * The preselected bank ID.
949
- */
950
- bankId?: string;
951
- }
952
- }
953
-
954
- export interface SessionCreateParams {
955
- /**
956
- * An internal reference id which will be stored with the data session. Needs to be
957
- * unique per data session. Maximum length is 200 characters.
958
- */
959
- referenceId: string;
960
-
961
- /**
962
- * Required when setting expiresAt. The Epoch time in seconds at which the Session
963
- * was created.
964
- */
965
- createdAt?: number;
966
-
967
- /**
968
- * False by default. If set to true, customers cannot choose another bank than the
969
- * pre-selected one.
970
- */
971
- disableBankSelection?: boolean;
972
-
973
- /**
974
- * @deprecated Currently only visible in the merchant dashboard. This id used to be
975
- * displayed to the user during the checkout.
976
- */
977
- displayId?: string;
978
-
979
- /**
980
- * Required if not set in the dashboard. Users will be redirected here after a
981
- * unsuccessful session.
982
- */
983
- errorCallbackUrl?: string;
984
-
985
- /**
986
- * The Epoch time in seconds at which the Session should expire. It can be anywhere
987
- * from 30 minutes to 24 hours after Session creation. By default, this value is 1
988
- * hour from creation. When setting this field, you also need to set `created`.
989
- */
990
- expiresAt?: number;
991
-
992
- /**
993
- * The locale of the data session. If not provided, the default locale will be
994
- * used.
995
- */
996
- locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
997
-
998
- /**
999
- * ISO 3166-1 alpha-2 country code of the market. If set, the market's default
1000
- * banks will be displayed during the Data Session.
1001
- */
1002
- market?:
1003
- | 'AF'
1004
- | 'AL'
1005
- | 'DZ'
1006
- | 'AS'
1007
- | 'AD'
1008
- | 'AO'
1009
- | 'AI'
1010
- | 'AQ'
1011
- | 'AG'
1012
- | 'AR'
1013
- | 'AM'
1014
- | 'AW'
1015
- | 'AU'
1016
- | 'AT'
1017
- | 'AZ'
1018
- | 'BS'
1019
- | 'BH'
1020
- | 'BD'
1021
- | 'BB'
1022
- | 'BY'
1023
- | 'BE'
1024
- | 'BZ'
1025
- | 'BJ'
1026
- | 'BM'
1027
- | 'BT'
1028
- | 'BO'
1029
- | 'BA'
1030
- | 'BW'
1031
- | 'BV'
1032
- | 'BR'
1033
- | 'IO'
1034
- | 'BN'
1035
- | 'BG'
1036
- | 'BF'
1037
- | 'BI'
1038
- | 'KH'
1039
- | 'CM'
1040
- | 'CA'
1041
- | 'CV'
1042
- | 'KY'
1043
- | 'CF'
1044
- | 'TD'
1045
- | 'CL'
1046
- | 'CN'
1047
- | 'CX'
1048
- | 'CC'
1049
- | 'CO'
1050
- | 'KM'
1051
- | 'CG'
1052
- | 'CD'
1053
- | 'CK'
1054
- | 'CR'
1055
- | 'CI'
1056
- | 'HR'
1057
- | 'CU'
1058
- | 'CY'
1059
- | 'CZ'
1060
- | 'DK'
1061
- | 'DJ'
1062
- | 'DM'
1063
- | 'DO'
1064
- | 'EC'
1065
- | 'EG'
1066
- | 'SV'
1067
- | 'GQ'
1068
- | 'ER'
1069
- | 'EE'
1070
- | 'ET'
1071
- | 'FK'
1072
- | 'FO'
1073
- | 'FJ'
1074
- | 'FI'
1075
- | 'FR'
1076
- | 'GF'
1077
- | 'PF'
1078
- | 'TF'
1079
- | 'GA'
1080
- | 'GM'
1081
- | 'GE'
1082
- | 'DE'
1083
- | 'GH'
1084
- | 'GI'
1085
- | 'GR'
1086
- | 'GL'
1087
- | 'GD'
1088
- | 'GP'
1089
- | 'GU'
1090
- | 'GT'
1091
- | 'GN'
1092
- | 'GW'
1093
- | 'GY'
1094
- | 'HT'
1095
- | 'HM'
1096
- | 'VA'
1097
- | 'HN'
1098
- | 'HK'
1099
- | 'HU'
1100
- | 'IS'
1101
- | 'IN'
1102
- | 'ID'
1103
- | 'IR'
1104
- | 'IQ'
1105
- | 'IE'
1106
- | 'IL'
1107
- | 'IT'
1108
- | 'JM'
1109
- | 'JP'
1110
- | 'JO'
1111
- | 'KZ'
1112
- | 'KE'
1113
- | 'KI'
1114
- | 'KP'
1115
- | 'KR'
1116
- | 'KW'
1117
- | 'KG'
1118
- | 'LA'
1119
- | 'LV'
1120
- | 'LB'
1121
- | 'LS'
1122
- | 'LR'
1123
- | 'LY'
1124
- | 'LI'
1125
- | 'LT'
1126
- | 'LU'
1127
- | 'MO'
1128
- | 'MG'
1129
- | 'MW'
1130
- | 'MY'
1131
- | 'MV'
1132
- | 'ML'
1133
- | 'MT'
1134
- | 'MH'
1135
- | 'MQ'
1136
- | 'MR'
1137
- | 'MU'
1138
- | 'YT'
1139
- | 'MX'
1140
- | 'FM'
1141
- | 'MD'
1142
- | 'MC'
1143
- | 'MN'
1144
- | 'MS'
1145
- | 'MA'
1146
- | 'MZ'
1147
- | 'MM'
1148
- | 'NA'
1149
- | 'NR'
1150
- | 'NP'
1151
- | 'NL'
1152
- | 'NC'
1153
- | 'NZ'
1154
- | 'NI'
1155
- | 'NE'
1156
- | 'NG'
1157
- | 'NU'
1158
- | 'NF'
1159
- | 'MP'
1160
- | 'MK'
1161
- | 'NO'
1162
- | 'OM'
1163
- | 'PK'
1164
- | 'PW'
1165
- | 'PS'
1166
- | 'PA'
1167
- | 'PG'
1168
- | 'PY'
1169
- | 'PE'
1170
- | 'PH'
1171
- | 'PN'
1172
- | 'PL'
1173
- | 'PT'
1174
- | 'PR'
1175
- | 'QA'
1176
- | 'RE'
1177
- | 'RO'
1178
- | 'RU'
1179
- | 'RW'
1180
- | 'SH'
1181
- | 'KN'
1182
- | 'LC'
1183
- | 'PM'
1184
- | 'VC'
1185
- | 'WS'
1186
- | 'SM'
1187
- | 'ST'
1188
- | 'SA'
1189
- | 'SN'
1190
- | 'SC'
1191
- | 'SL'
1192
- | 'SG'
1193
- | 'SK'
1194
- | 'SI'
1195
- | 'SB'
1196
- | 'SO'
1197
- | 'ZA'
1198
- | 'GS'
1199
- | 'ES'
1200
- | 'LK'
1201
- | 'SD'
1202
- | 'SR'
1203
- | 'SJ'
1204
- | 'SZ'
1205
- | 'SE'
1206
- | 'CH'
1207
- | 'SY'
1208
- | 'TW'
1209
- | 'TJ'
1210
- | 'TZ'
1211
- | 'TH'
1212
- | 'TL'
1213
- | 'TG'
1214
- | 'TK'
1215
- | 'TO'
1216
- | 'TT'
1217
- | 'TN'
1218
- | 'TR'
1219
- | 'TM'
1220
- | 'TC'
1221
- | 'TV'
1222
- | 'UG'
1223
- | 'UA'
1224
- | 'AE'
1225
- | 'GB'
1226
- | 'US'
1227
- | 'UM'
1228
- | 'UY'
1229
- | 'UZ'
1230
- | 'VU'
1231
- | 'VE'
1232
- | 'VN'
1233
- | 'VG'
1234
- | 'VI'
1235
- | 'WF'
1236
- | 'EH'
1237
- | 'YE'
1238
- | 'ZM'
1239
- | 'ZW'
1240
- | 'AX'
1241
- | 'BQ'
1242
- | 'CW'
1243
- | 'GG'
1244
- | 'IM'
1245
- | 'JE'
1246
- | 'ME'
1247
- | 'BL'
1248
- | 'MF'
1249
- | 'RS'
1250
- | 'SX'
1251
- | 'SS'
1252
- | 'XK';
1253
-
1254
- /**
1255
- * Any data which will be stored and returned for this data session. See
1256
- * [here](https://docs.getivy.de/reference/metadata) for more info.
1257
- */
1258
- metadata?: Record<string, unknown>;
1259
-
1260
- prefill?: SessionCreateParams.Prefill;
1261
-
1262
- /**
1263
- * Required if not set in the dashboard. Users will be redirected here after a
1264
- * successful session.
1265
- */
1266
- successCallbackUrl?: string;
1267
-
1268
- /**
1269
- * The theme variant which will be used in the data session. If not provided, the
1270
- * default light theme will be used.
1271
- */
1272
- themeVariant?: 'light' | 'dark';
1273
- }
1274
-
1275
- export namespace SessionCreateParams {
1276
- export interface Prefill {
1277
- /**
1278
- * The preselected bank. Provide a valid bankId from the bank endpoints. If given,
1279
- * the user will skip the bank selection.
1280
- */
1281
- bankId?: string;
1282
- }
1283
- }
1284
-
1285
- export interface SessionRetrieveParams {
1286
- /**
1287
- * The id of the data session.
1288
- */
1289
- id: string;
1290
- }
1291
-
1292
- export declare namespace Session {
1293
- export {
1294
- type SessionCreateResponse as SessionCreateResponse,
1295
- type SessionRetrieveResponse as SessionRetrieveResponse,
1296
- type SessionCreateParams as SessionCreateParams,
1297
- type SessionRetrieveParams as SessionRetrieveParams,
1298
- };
1299
- }
5
+ export class Session extends APIResource {}