@moovio/sdk 0.12.0 → 0.12.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/FUNCTIONS.md +6 -22
- package/README.md +97 -55
- package/bin/mcp-server.js +749 -415
- package/bin/mcp-server.js.map +19 -9
- package/docs/sdks/accounts/README.md +63 -81
- package/docs/sdks/accountterminalapplications/README.md +28 -36
- package/docs/sdks/adjustments/README.md +14 -18
- package/docs/sdks/applepay/README.md +35 -45
- package/docs/sdks/authentication/README.md +14 -18
- package/docs/sdks/avatars/README.md +7 -9
- package/docs/sdks/bankaccounts/README.md +63 -81
- package/docs/sdks/branding/README.md +28 -36
- package/docs/sdks/capabilities/README.md +28 -36
- package/docs/sdks/cardissuing/README.md +35 -45
- package/docs/sdks/cards/README.md +35 -45
- package/docs/sdks/disputes/README.md +77 -99
- package/docs/sdks/endtoendencryption/README.md +14 -18
- package/docs/sdks/enrichedaddress/README.md +7 -9
- package/docs/sdks/enrichedprofile/README.md +7 -9
- package/docs/sdks/feeplans/README.md +49 -63
- package/docs/sdks/files/README.md +21 -27
- package/docs/sdks/industries/README.md +7 -9
- package/docs/sdks/institutions/README.md +98 -9
- package/docs/sdks/issuingtransactions/README.md +35 -45
- package/docs/sdks/onboarding/README.md +28 -36
- package/docs/sdks/paymentlinks/README.md +42 -54
- package/docs/sdks/paymentmethods/README.md +14 -18
- package/docs/sdks/ping/README.md +7 -9
- package/docs/sdks/receipts/README.md +14 -18
- package/docs/sdks/representatives/README.md +35 -45
- package/docs/sdks/scheduling/README.md +42 -54
- package/docs/sdks/sweeps/README.md +42 -54
- package/docs/sdks/terminalapplications/README.md +28 -36
- package/docs/sdks/transfers/README.md +77 -99
- package/docs/sdks/underwriting/README.md +14 -18
- package/docs/sdks/wallets/README.md +14 -18
- package/docs/sdks/wallettransactions/README.md +14 -18
- package/funcs/institutionsSearchInstitutions.d.ts +20 -0
- package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
- package/funcs/institutionsSearchInstitutions.js +129 -0
- package/funcs/institutionsSearchInstitutions.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
- package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
- package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
- package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
- package/models/components/achinstitution.d.ts +40 -0
- package/models/components/achinstitution.d.ts.map +1 -0
- package/models/components/achinstitution.js +77 -0
- package/models/components/achinstitution.js.map +1 -0
- package/models/components/contact.d.ts +30 -0
- package/models/components/contact.d.ts.map +1 -0
- package/models/components/contact.js +70 -0
- package/models/components/contact.js.map +1 -0
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/institutionssearchresponse.d.ts +36 -0
- package/models/components/institutionssearchresponse.d.ts.map +1 -0
- package/models/components/institutionssearchresponse.js +76 -0
- package/models/components/institutionssearchresponse.js.map +1 -0
- package/models/components/rtpinstitution.d.ts +37 -0
- package/models/components/rtpinstitution.d.ts.map +1 -0
- package/models/components/rtpinstitution.js +74 -0
- package/models/components/rtpinstitution.js.map +1 -0
- package/models/components/rtpservices.d.ts +37 -0
- package/models/components/rtpservices.d.ts.map +1 -0
- package/models/components/rtpservices.js +71 -0
- package/models/components/rtpservices.js.map +1 -0
- package/models/components/wireinstitution.d.ts +40 -0
- package/models/components/wireinstitution.d.ts.map +1 -0
- package/models/components/wireinstitution.js +77 -0
- package/models/components/wireinstitution.js.map +1 -0
- package/models/components/wireservices.d.ts +42 -0
- package/models/components/wireservices.d.ts.map +1 -0
- package/models/components/wireservices.js +73 -0
- package/models/components/wireservices.js.map +1 -0
- package/models/errors/apierror.d.ts +14 -2
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +1 -1
- package/models/errors/apierror.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/searchinstitutions.d.ts +112 -0
- package/models/operations/searchinstitutions.d.ts.map +1 -0
- package/models/operations/searchinstitutions.js +149 -0
- package/models/operations/searchinstitutions.js.map +1 -0
- package/package.json +1 -1
- package/sdk/institutions.d.ts +11 -0
- package/sdk/institutions.d.ts.map +1 -1
- package/sdk/institutions.js +14 -0
- package/sdk/institutions.js.map +1 -1
- package/src/funcs/institutionsSearchInstitutions.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
- package/src/models/components/achinstitution.ts +89 -0
- package/src/models/components/contact.ts +65 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/institutionssearchresponse.ts +92 -0
- package/src/models/components/rtpinstitution.ts +79 -0
- package/src/models/components/rtpservices.ts +72 -0
- package/src/models/components/wireinstitution.ts +91 -0
- package/src/models/components/wireservices.ts +79 -0
- package/src/models/errors/apierror.ts +18 -3
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/searchinstitutions.ts +236 -0
- package/src/sdk/institutions.ts +22 -0
|
@@ -48,6 +48,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
48
48
|
import { Moov } from "@moovio/sdk";
|
|
49
49
|
|
|
50
50
|
const moov = new Moov({
|
|
51
|
+
xMoovVersion: "v2024.01.00",
|
|
51
52
|
security: {
|
|
52
53
|
username: "",
|
|
53
54
|
password: "",
|
|
@@ -61,7 +62,6 @@ async function run() {
|
|
|
61
62
|
accountID: "93c43634-5477-42a7-972d-01fa76a09e17",
|
|
62
63
|
});
|
|
63
64
|
|
|
64
|
-
// Handle the result
|
|
65
65
|
console.log(result);
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -79,6 +79,7 @@ import { feePlansListFeePlanAgreements } from "@moovio/sdk/funcs/feePlansListFee
|
|
|
79
79
|
// Use `MoovCore` for best tree-shaking performance.
|
|
80
80
|
// You can create one instance of it to use across an application.
|
|
81
81
|
const moov = new MoovCore({
|
|
82
|
+
xMoovVersion: "v2024.01.00",
|
|
82
83
|
security: {
|
|
83
84
|
username: "",
|
|
84
85
|
password: "",
|
|
@@ -91,15 +92,12 @@ async function run() {
|
|
|
91
92
|
count: 20,
|
|
92
93
|
accountID: "93c43634-5477-42a7-972d-01fa76a09e17",
|
|
93
94
|
});
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if (res.ok) {
|
|
96
|
+
const { value: result } = res;
|
|
97
|
+
console.log(result);
|
|
98
|
+
} else {
|
|
99
|
+
console.log("feePlansListFeePlanAgreements failed:", res.error);
|
|
97
100
|
}
|
|
98
|
-
|
|
99
|
-
const { value: result } = res;
|
|
100
|
-
|
|
101
|
-
// Handle the result
|
|
102
|
-
console.log(result);
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
run();
|
|
@@ -137,6 +135,7 @@ you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
|
137
135
|
import { Moov } from "@moovio/sdk";
|
|
138
136
|
|
|
139
137
|
const moov = new Moov({
|
|
138
|
+
xMoovVersion: "v2024.01.00",
|
|
140
139
|
security: {
|
|
141
140
|
username: "",
|
|
142
141
|
password: "",
|
|
@@ -151,7 +150,6 @@ async function run() {
|
|
|
151
150
|
},
|
|
152
151
|
});
|
|
153
152
|
|
|
154
|
-
// Handle the result
|
|
155
153
|
console.log(result);
|
|
156
154
|
}
|
|
157
155
|
|
|
@@ -169,6 +167,7 @@ import { feePlansCreateFeePlanAgreements } from "@moovio/sdk/funcs/feePlansCreat
|
|
|
169
167
|
// Use `MoovCore` for best tree-shaking performance.
|
|
170
168
|
// You can create one instance of it to use across an application.
|
|
171
169
|
const moov = new MoovCore({
|
|
170
|
+
xMoovVersion: "v2024.01.00",
|
|
172
171
|
security: {
|
|
173
172
|
username: "",
|
|
174
173
|
password: "",
|
|
@@ -182,15 +181,12 @@ async function run() {
|
|
|
182
181
|
planID: "19801f96-ea27-4610-b4d1-8c6b46f37928",
|
|
183
182
|
},
|
|
184
183
|
});
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
if (res.ok) {
|
|
185
|
+
const { value: result } = res;
|
|
186
|
+
console.log(result);
|
|
187
|
+
} else {
|
|
188
|
+
console.log("feePlansCreateFeePlanAgreements failed:", res.error);
|
|
188
189
|
}
|
|
189
|
-
|
|
190
|
-
const { value: result } = res;
|
|
191
|
-
|
|
192
|
-
// Handle the result
|
|
193
|
-
console.log(result);
|
|
194
190
|
}
|
|
195
191
|
|
|
196
192
|
run();
|
|
@@ -231,6 +227,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
231
227
|
import { Moov } from "@moovio/sdk";
|
|
232
228
|
|
|
233
229
|
const moov = new Moov({
|
|
230
|
+
xMoovVersion: "v2024.01.00",
|
|
234
231
|
security: {
|
|
235
232
|
username: "",
|
|
236
233
|
password: "",
|
|
@@ -242,7 +239,6 @@ async function run() {
|
|
|
242
239
|
accountID: "b3d59179-f74e-4ee8-b123-33220b3c7d4b",
|
|
243
240
|
});
|
|
244
241
|
|
|
245
|
-
// Handle the result
|
|
246
242
|
console.log(result);
|
|
247
243
|
}
|
|
248
244
|
|
|
@@ -260,6 +256,7 @@ import { feePlansListFeePlans } from "@moovio/sdk/funcs/feePlansListFeePlans.js"
|
|
|
260
256
|
// Use `MoovCore` for best tree-shaking performance.
|
|
261
257
|
// You can create one instance of it to use across an application.
|
|
262
258
|
const moov = new MoovCore({
|
|
259
|
+
xMoovVersion: "v2024.01.00",
|
|
263
260
|
security: {
|
|
264
261
|
username: "",
|
|
265
262
|
password: "",
|
|
@@ -270,15 +267,12 @@ async function run() {
|
|
|
270
267
|
const res = await feePlansListFeePlans(moov, {
|
|
271
268
|
accountID: "b3d59179-f74e-4ee8-b123-33220b3c7d4b",
|
|
272
269
|
});
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
270
|
+
if (res.ok) {
|
|
271
|
+
const { value: result } = res;
|
|
272
|
+
console.log(result);
|
|
273
|
+
} else {
|
|
274
|
+
console.log("feePlansListFeePlans failed:", res.error);
|
|
276
275
|
}
|
|
277
|
-
|
|
278
|
-
const { value: result } = res;
|
|
279
|
-
|
|
280
|
-
// Handle the result
|
|
281
|
-
console.log(result);
|
|
282
276
|
}
|
|
283
277
|
|
|
284
278
|
run();
|
|
@@ -316,6 +310,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
|
316
310
|
import { Moov } from "@moovio/sdk";
|
|
317
311
|
|
|
318
312
|
const moov = new Moov({
|
|
313
|
+
xMoovVersion: "v2024.01.00",
|
|
319
314
|
security: {
|
|
320
315
|
username: "",
|
|
321
316
|
password: "",
|
|
@@ -329,7 +324,6 @@ async function run() {
|
|
|
329
324
|
count: 20,
|
|
330
325
|
});
|
|
331
326
|
|
|
332
|
-
// Handle the result
|
|
333
327
|
console.log(result);
|
|
334
328
|
}
|
|
335
329
|
|
|
@@ -347,6 +341,7 @@ import { feePlansRetrieveFees } from "@moovio/sdk/funcs/feePlansRetrieveFees.js"
|
|
|
347
341
|
// Use `MoovCore` for best tree-shaking performance.
|
|
348
342
|
// You can create one instance of it to use across an application.
|
|
349
343
|
const moov = new MoovCore({
|
|
344
|
+
xMoovVersion: "v2024.01.00",
|
|
350
345
|
security: {
|
|
351
346
|
username: "",
|
|
352
347
|
password: "",
|
|
@@ -359,15 +354,12 @@ async function run() {
|
|
|
359
354
|
skip: 60,
|
|
360
355
|
count: 20,
|
|
361
356
|
});
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
357
|
+
if (res.ok) {
|
|
358
|
+
const { value: result } = res;
|
|
359
|
+
console.log(result);
|
|
360
|
+
} else {
|
|
361
|
+
console.log("feePlansRetrieveFees failed:", res.error);
|
|
365
362
|
}
|
|
366
|
-
|
|
367
|
-
const { value: result } = res;
|
|
368
|
-
|
|
369
|
-
// Handle the result
|
|
370
|
-
console.log(result);
|
|
371
363
|
}
|
|
372
364
|
|
|
373
365
|
run();
|
|
@@ -405,6 +397,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
|
405
397
|
import { Moov } from "@moovio/sdk";
|
|
406
398
|
|
|
407
399
|
const moov = new Moov({
|
|
400
|
+
xMoovVersion: "v2024.01.00",
|
|
408
401
|
security: {
|
|
409
402
|
username: "",
|
|
410
403
|
password: "",
|
|
@@ -416,7 +409,6 @@ async function run() {
|
|
|
416
409
|
accountID: "55c34e26-269d-4872-8e42-0fa83e3f4b10",
|
|
417
410
|
});
|
|
418
411
|
|
|
419
|
-
// Handle the result
|
|
420
412
|
console.log(result);
|
|
421
413
|
}
|
|
422
414
|
|
|
@@ -434,6 +426,7 @@ import { feePlansListFeesFetch } from "@moovio/sdk/funcs/feePlansListFeesFetch.j
|
|
|
434
426
|
// Use `MoovCore` for best tree-shaking performance.
|
|
435
427
|
// You can create one instance of it to use across an application.
|
|
436
428
|
const moov = new MoovCore({
|
|
429
|
+
xMoovVersion: "v2024.01.00",
|
|
437
430
|
security: {
|
|
438
431
|
username: "",
|
|
439
432
|
password: "",
|
|
@@ -444,15 +437,12 @@ async function run() {
|
|
|
444
437
|
const res = await feePlansListFeesFetch(moov, {
|
|
445
438
|
accountID: "55c34e26-269d-4872-8e42-0fa83e3f4b10",
|
|
446
439
|
});
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
440
|
+
if (res.ok) {
|
|
441
|
+
const { value: result } = res;
|
|
442
|
+
console.log(result);
|
|
443
|
+
} else {
|
|
444
|
+
console.log("feePlansListFeesFetch failed:", res.error);
|
|
450
445
|
}
|
|
451
|
-
|
|
452
|
-
const { value: result } = res;
|
|
453
|
-
|
|
454
|
-
// Handle the result
|
|
455
|
-
console.log(result);
|
|
456
446
|
}
|
|
457
447
|
|
|
458
448
|
run();
|
|
@@ -490,6 +480,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
490
480
|
import { Moov } from "@moovio/sdk";
|
|
491
481
|
|
|
492
482
|
const moov = new Moov({
|
|
483
|
+
xMoovVersion: "v2024.01.00",
|
|
493
484
|
security: {
|
|
494
485
|
username: "",
|
|
495
486
|
password: "",
|
|
@@ -501,7 +492,6 @@ async function run() {
|
|
|
501
492
|
accountID: "600637f9-c38a-473f-b909-0d5ac537b8a5",
|
|
502
493
|
});
|
|
503
494
|
|
|
504
|
-
// Handle the result
|
|
505
495
|
console.log(result);
|
|
506
496
|
}
|
|
507
497
|
|
|
@@ -519,6 +509,7 @@ import { feePlansListPartnerPricing } from "@moovio/sdk/funcs/feePlansListPartne
|
|
|
519
509
|
// Use `MoovCore` for best tree-shaking performance.
|
|
520
510
|
// You can create one instance of it to use across an application.
|
|
521
511
|
const moov = new MoovCore({
|
|
512
|
+
xMoovVersion: "v2024.01.00",
|
|
522
513
|
security: {
|
|
523
514
|
username: "",
|
|
524
515
|
password: "",
|
|
@@ -529,15 +520,12 @@ async function run() {
|
|
|
529
520
|
const res = await feePlansListPartnerPricing(moov, {
|
|
530
521
|
accountID: "600637f9-c38a-473f-b909-0d5ac537b8a5",
|
|
531
522
|
});
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
523
|
+
if (res.ok) {
|
|
524
|
+
const { value: result } = res;
|
|
525
|
+
console.log(result);
|
|
526
|
+
} else {
|
|
527
|
+
console.log("feePlansListPartnerPricing failed:", res.error);
|
|
535
528
|
}
|
|
536
|
-
|
|
537
|
-
const { value: result } = res;
|
|
538
|
-
|
|
539
|
-
// Handle the result
|
|
540
|
-
console.log(result);
|
|
541
529
|
}
|
|
542
530
|
|
|
543
531
|
run();
|
|
@@ -575,6 +563,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
575
563
|
import { Moov } from "@moovio/sdk";
|
|
576
564
|
|
|
577
565
|
const moov = new Moov({
|
|
566
|
+
xMoovVersion: "v2024.01.00",
|
|
578
567
|
security: {
|
|
579
568
|
username: "",
|
|
580
569
|
password: "",
|
|
@@ -588,7 +577,6 @@ async function run() {
|
|
|
588
577
|
accountID: "123bfe5e-2288-4146-9d8a-4c07264c3758",
|
|
589
578
|
});
|
|
590
579
|
|
|
591
|
-
// Handle the result
|
|
592
580
|
console.log(result);
|
|
593
581
|
}
|
|
594
582
|
|
|
@@ -606,6 +594,7 @@ import { feePlansListPartnerPricingAgreements } from "@moovio/sdk/funcs/feePlans
|
|
|
606
594
|
// Use `MoovCore` for best tree-shaking performance.
|
|
607
595
|
// You can create one instance of it to use across an application.
|
|
608
596
|
const moov = new MoovCore({
|
|
597
|
+
xMoovVersion: "v2024.01.00",
|
|
609
598
|
security: {
|
|
610
599
|
username: "",
|
|
611
600
|
password: "",
|
|
@@ -618,15 +607,12 @@ async function run() {
|
|
|
618
607
|
count: 20,
|
|
619
608
|
accountID: "123bfe5e-2288-4146-9d8a-4c07264c3758",
|
|
620
609
|
});
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
610
|
+
if (res.ok) {
|
|
611
|
+
const { value: result } = res;
|
|
612
|
+
console.log(result);
|
|
613
|
+
} else {
|
|
614
|
+
console.log("feePlansListPartnerPricingAgreements failed:", res.error);
|
|
624
615
|
}
|
|
625
|
-
|
|
626
|
-
const { value: result } = res;
|
|
627
|
-
|
|
628
|
-
// Handle the result
|
|
629
|
-
console.log(result);
|
|
630
616
|
}
|
|
631
617
|
|
|
632
618
|
run();
|
|
@@ -38,6 +38,7 @@ import { Moov } from "@moovio/sdk";
|
|
|
38
38
|
import { openAsBlob } from "node:fs";
|
|
39
39
|
|
|
40
40
|
const moov = new Moov({
|
|
41
|
+
xMoovVersion: "v2024.01.00",
|
|
41
42
|
security: {
|
|
42
43
|
username: "",
|
|
43
44
|
password: "",
|
|
@@ -54,7 +55,6 @@ async function run() {
|
|
|
54
55
|
},
|
|
55
56
|
});
|
|
56
57
|
|
|
57
|
-
// Handle the result
|
|
58
58
|
console.log(result);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -73,6 +73,7 @@ import { openAsBlob } from "node:fs";
|
|
|
73
73
|
// Use `MoovCore` for best tree-shaking performance.
|
|
74
74
|
// You can create one instance of it to use across an application.
|
|
75
75
|
const moov = new MoovCore({
|
|
76
|
+
xMoovVersion: "v2024.01.00",
|
|
76
77
|
security: {
|
|
77
78
|
username: "",
|
|
78
79
|
password: "",
|
|
@@ -88,15 +89,12 @@ async function run() {
|
|
|
88
89
|
metadata: "{\"requirement_id\": \"document.individual.verification\"}",
|
|
89
90
|
},
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
if (res.ok) {
|
|
93
|
+
const { value: result } = res;
|
|
94
|
+
console.log(result);
|
|
95
|
+
} else {
|
|
96
|
+
console.log("filesUpload failed:", res.error);
|
|
94
97
|
}
|
|
95
|
-
|
|
96
|
-
const { value: result } = res;
|
|
97
|
-
|
|
98
|
-
// Handle the result
|
|
99
|
-
console.log(result);
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
run();
|
|
@@ -136,6 +134,7 @@ you'll need to specify the `/accounts/{accountID}/files.read` scope.
|
|
|
136
134
|
import { Moov } from "@moovio/sdk";
|
|
137
135
|
|
|
138
136
|
const moov = new Moov({
|
|
137
|
+
xMoovVersion: "v2024.01.00",
|
|
139
138
|
security: {
|
|
140
139
|
username: "",
|
|
141
140
|
password: "",
|
|
@@ -147,7 +146,6 @@ async function run() {
|
|
|
147
146
|
accountID: "d1133bf2-4853-4436-9a03-23739895ab98",
|
|
148
147
|
});
|
|
149
148
|
|
|
150
|
-
// Handle the result
|
|
151
149
|
console.log(result);
|
|
152
150
|
}
|
|
153
151
|
|
|
@@ -165,6 +163,7 @@ import { filesList } from "@moovio/sdk/funcs/filesList.js";
|
|
|
165
163
|
// Use `MoovCore` for best tree-shaking performance.
|
|
166
164
|
// You can create one instance of it to use across an application.
|
|
167
165
|
const moov = new MoovCore({
|
|
166
|
+
xMoovVersion: "v2024.01.00",
|
|
168
167
|
security: {
|
|
169
168
|
username: "",
|
|
170
169
|
password: "",
|
|
@@ -175,15 +174,12 @@ async function run() {
|
|
|
175
174
|
const res = await filesList(moov, {
|
|
176
175
|
accountID: "d1133bf2-4853-4436-9a03-23739895ab98",
|
|
177
176
|
});
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
if (res.ok) {
|
|
178
|
+
const { value: result } = res;
|
|
179
|
+
console.log(result);
|
|
180
|
+
} else {
|
|
181
|
+
console.log("filesList failed:", res.error);
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
-
const { value: result } = res;
|
|
184
|
-
|
|
185
|
-
// Handle the result
|
|
186
|
-
console.log(result);
|
|
187
183
|
}
|
|
188
184
|
|
|
189
185
|
run();
|
|
@@ -221,6 +217,7 @@ you'll need to specify the `/accounts/{accountID}/files.read` scope.
|
|
|
221
217
|
import { Moov } from "@moovio/sdk";
|
|
222
218
|
|
|
223
219
|
const moov = new Moov({
|
|
220
|
+
xMoovVersion: "v2024.01.00",
|
|
224
221
|
security: {
|
|
225
222
|
username: "",
|
|
226
223
|
password: "",
|
|
@@ -233,7 +230,6 @@ async function run() {
|
|
|
233
230
|
fileID: "af170db9-0d17-4a9f-ade6-5dd2f1b3412d",
|
|
234
231
|
});
|
|
235
232
|
|
|
236
|
-
// Handle the result
|
|
237
233
|
console.log(result);
|
|
238
234
|
}
|
|
239
235
|
|
|
@@ -251,6 +247,7 @@ import { filesGet } from "@moovio/sdk/funcs/filesGet.js";
|
|
|
251
247
|
// Use `MoovCore` for best tree-shaking performance.
|
|
252
248
|
// You can create one instance of it to use across an application.
|
|
253
249
|
const moov = new MoovCore({
|
|
250
|
+
xMoovVersion: "v2024.01.00",
|
|
254
251
|
security: {
|
|
255
252
|
username: "",
|
|
256
253
|
password: "",
|
|
@@ -262,15 +259,12 @@ async function run() {
|
|
|
262
259
|
accountID: "7f888113-d35a-4536-b9bc-c55076736ab6",
|
|
263
260
|
fileID: "af170db9-0d17-4a9f-ade6-5dd2f1b3412d",
|
|
264
261
|
});
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
if (res.ok) {
|
|
263
|
+
const { value: result } = res;
|
|
264
|
+
console.log(result);
|
|
265
|
+
} else {
|
|
266
|
+
console.log("filesGet failed:", res.error);
|
|
268
267
|
}
|
|
269
|
-
|
|
270
|
-
const { value: result } = res;
|
|
271
|
-
|
|
272
|
-
// Handle the result
|
|
273
|
-
console.log(result);
|
|
274
268
|
}
|
|
275
269
|
|
|
276
270
|
run();
|
|
@@ -23,6 +23,7 @@ you'll need to specify the `/profile-enrichment.read` scope.
|
|
|
23
23
|
import { Moov } from "@moovio/sdk";
|
|
24
24
|
|
|
25
25
|
const moov = new Moov({
|
|
26
|
+
xMoovVersion: "v2024.01.00",
|
|
26
27
|
security: {
|
|
27
28
|
username: "",
|
|
28
29
|
password: "",
|
|
@@ -32,7 +33,6 @@ const moov = new Moov({
|
|
|
32
33
|
async function run() {
|
|
33
34
|
const result = await moov.industries.list({});
|
|
34
35
|
|
|
35
|
-
// Handle the result
|
|
36
36
|
console.log(result);
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -50,6 +50,7 @@ import { industriesList } from "@moovio/sdk/funcs/industriesList.js";
|
|
|
50
50
|
// Use `MoovCore` for best tree-shaking performance.
|
|
51
51
|
// You can create one instance of it to use across an application.
|
|
52
52
|
const moov = new MoovCore({
|
|
53
|
+
xMoovVersion: "v2024.01.00",
|
|
53
54
|
security: {
|
|
54
55
|
username: "",
|
|
55
56
|
password: "",
|
|
@@ -58,15 +59,12 @@ const moov = new MoovCore({
|
|
|
58
59
|
|
|
59
60
|
async function run() {
|
|
60
61
|
const res = await industriesList(moov, {});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
if (res.ok) {
|
|
63
|
+
const { value: result } = res;
|
|
64
|
+
console.log(result);
|
|
65
|
+
} else {
|
|
66
|
+
console.log("industriesList failed:", res.error);
|
|
64
67
|
}
|
|
65
|
-
|
|
66
|
-
const { value: result } = res;
|
|
67
|
-
|
|
68
|
-
// Handle the result
|
|
69
|
-
console.log(result);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
run();
|
|
@@ -5,11 +5,102 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [searchInstitutions](#searchinstitutions) - Search for financial institutions by name or routing number.
|
|
9
|
+
|
|
10
|
+
This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
|
|
11
|
+
|
|
12
|
+
This can be used to validate a financial institution before initiating payment activity, or to check which payment rails are available for a given routing number.
|
|
13
|
+
|
|
14
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
15
|
+
you'll need to specify the `/institutions.read` scope.
|
|
8
16
|
* [search](#search) - Search for institutions by either their name or routing number.
|
|
9
17
|
|
|
10
18
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
11
19
|
you'll need to specify the `/fed.read` scope.
|
|
12
20
|
|
|
21
|
+
## searchInstitutions
|
|
22
|
+
|
|
23
|
+
Search for financial institutions by name or routing number.
|
|
24
|
+
|
|
25
|
+
This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
|
|
26
|
+
|
|
27
|
+
This can be used to validate a financial institution before initiating payment activity, or to check which payment rails are available for a given routing number.
|
|
28
|
+
|
|
29
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
|
+
you'll need to specify the `/institutions.read` scope.
|
|
31
|
+
|
|
32
|
+
### Example Usage
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { Moov } from "@moovio/sdk";
|
|
36
|
+
|
|
37
|
+
const moov = new Moov({
|
|
38
|
+
xMoovVersion: "v2024.01.00",
|
|
39
|
+
security: {
|
|
40
|
+
username: "",
|
|
41
|
+
password: "",
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
async function run() {
|
|
46
|
+
const result = await moov.institutions.searchInstitutions({});
|
|
47
|
+
|
|
48
|
+
console.log(result);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
run();
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Standalone function
|
|
55
|
+
|
|
56
|
+
The standalone function version of this method:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
60
|
+
import { institutionsSearchInstitutions } from "@moovio/sdk/funcs/institutionsSearchInstitutions.js";
|
|
61
|
+
|
|
62
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
63
|
+
// You can create one instance of it to use across an application.
|
|
64
|
+
const moov = new MoovCore({
|
|
65
|
+
xMoovVersion: "v2024.01.00",
|
|
66
|
+
security: {
|
|
67
|
+
username: "",
|
|
68
|
+
password: "",
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
async function run() {
|
|
73
|
+
const res = await institutionsSearchInstitutions(moov, {});
|
|
74
|
+
if (res.ok) {
|
|
75
|
+
const { value: result } = res;
|
|
76
|
+
console.log(result);
|
|
77
|
+
} else {
|
|
78
|
+
console.log("institutionsSearchInstitutions failed:", res.error);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
run();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
| Parameter | Type | Required | Description |
|
|
88
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
89
|
+
| `request` | [operations.SearchInstitutionsRequest](../../models/operations/searchinstitutionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
90
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
91
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
92
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
93
|
+
|
|
94
|
+
### Response
|
|
95
|
+
|
|
96
|
+
**Promise\<[operations.SearchInstitutionsResponse](../../models/operations/searchinstitutionsresponse.md)\>**
|
|
97
|
+
|
|
98
|
+
### Errors
|
|
99
|
+
|
|
100
|
+
| Error Type | Status Code | Content Type |
|
|
101
|
+
| --------------- | --------------- | --------------- |
|
|
102
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
103
|
+
|
|
13
104
|
## search
|
|
14
105
|
|
|
15
106
|
Search for institutions by either their name or routing number.
|
|
@@ -23,6 +114,7 @@ you'll need to specify the `/fed.read` scope.
|
|
|
23
114
|
import { Moov } from "@moovio/sdk";
|
|
24
115
|
|
|
25
116
|
const moov = new Moov({
|
|
117
|
+
xMoovVersion: "v2024.01.00",
|
|
26
118
|
security: {
|
|
27
119
|
username: "",
|
|
28
120
|
password: "",
|
|
@@ -32,7 +124,6 @@ const moov = new Moov({
|
|
|
32
124
|
async function run() {
|
|
33
125
|
const result = await moov.institutions.search({});
|
|
34
126
|
|
|
35
|
-
// Handle the result
|
|
36
127
|
console.log(result);
|
|
37
128
|
}
|
|
38
129
|
|
|
@@ -50,6 +141,7 @@ import { institutionsSearch } from "@moovio/sdk/funcs/institutionsSearch.js";
|
|
|
50
141
|
// Use `MoovCore` for best tree-shaking performance.
|
|
51
142
|
// You can create one instance of it to use across an application.
|
|
52
143
|
const moov = new MoovCore({
|
|
144
|
+
xMoovVersion: "v2024.01.00",
|
|
53
145
|
security: {
|
|
54
146
|
username: "",
|
|
55
147
|
password: "",
|
|
@@ -58,15 +150,12 @@ const moov = new MoovCore({
|
|
|
58
150
|
|
|
59
151
|
async function run() {
|
|
60
152
|
const res = await institutionsSearch(moov, {});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
153
|
+
if (res.ok) {
|
|
154
|
+
const { value: result } = res;
|
|
155
|
+
console.log(result);
|
|
156
|
+
} else {
|
|
157
|
+
console.log("institutionsSearch failed:", res.error);
|
|
64
158
|
}
|
|
65
|
-
|
|
66
|
-
const { value: result } = res;
|
|
67
|
-
|
|
68
|
-
// Handle the result
|
|
69
|
-
console.log(result);
|
|
70
159
|
}
|
|
71
160
|
|
|
72
161
|
run();
|