@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
|
@@ -111,6 +111,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
111
111
|
import { Moov } from "@moovio/sdk";
|
|
112
112
|
|
|
113
113
|
const moov = new Moov({
|
|
114
|
+
xMoovVersion: "v2024.01.00",
|
|
114
115
|
security: {
|
|
115
116
|
username: "",
|
|
116
117
|
password: "",
|
|
@@ -127,7 +128,6 @@ async function run() {
|
|
|
127
128
|
},
|
|
128
129
|
});
|
|
129
130
|
|
|
130
|
-
// Handle the result
|
|
131
131
|
console.log(result);
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -145,6 +145,7 @@ import { bankAccountsLink } from "@moovio/sdk/funcs/bankAccountsLink.js";
|
|
|
145
145
|
// Use `MoovCore` for best tree-shaking performance.
|
|
146
146
|
// You can create one instance of it to use across an application.
|
|
147
147
|
const moov = new MoovCore({
|
|
148
|
+
xMoovVersion: "v2024.01.00",
|
|
148
149
|
security: {
|
|
149
150
|
username: "",
|
|
150
151
|
password: "",
|
|
@@ -160,15 +161,12 @@ async function run() {
|
|
|
160
161
|
},
|
|
161
162
|
},
|
|
162
163
|
});
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
if (res.ok) {
|
|
165
|
+
const { value: result } = res;
|
|
166
|
+
console.log(result);
|
|
167
|
+
} else {
|
|
168
|
+
console.log("bankAccountsLink failed:", res.error);
|
|
166
169
|
}
|
|
167
|
-
|
|
168
|
-
const { value: result } = res;
|
|
169
|
-
|
|
170
|
-
// Handle the result
|
|
171
|
-
console.log(result);
|
|
172
170
|
}
|
|
173
171
|
|
|
174
172
|
run();
|
|
@@ -210,6 +208,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
|
|
|
210
208
|
import { Moov } from "@moovio/sdk";
|
|
211
209
|
|
|
212
210
|
const moov = new Moov({
|
|
211
|
+
xMoovVersion: "v2024.01.00",
|
|
213
212
|
security: {
|
|
214
213
|
username: "",
|
|
215
214
|
password: "",
|
|
@@ -221,7 +220,6 @@ async function run() {
|
|
|
221
220
|
accountID: "85539920-22dd-4900-a07e-7a88268456d9",
|
|
222
221
|
});
|
|
223
222
|
|
|
224
|
-
// Handle the result
|
|
225
223
|
console.log(result);
|
|
226
224
|
}
|
|
227
225
|
|
|
@@ -239,6 +237,7 @@ import { bankAccountsList } from "@moovio/sdk/funcs/bankAccountsList.js";
|
|
|
239
237
|
// Use `MoovCore` for best tree-shaking performance.
|
|
240
238
|
// You can create one instance of it to use across an application.
|
|
241
239
|
const moov = new MoovCore({
|
|
240
|
+
xMoovVersion: "v2024.01.00",
|
|
242
241
|
security: {
|
|
243
242
|
username: "",
|
|
244
243
|
password: "",
|
|
@@ -249,15 +248,12 @@ async function run() {
|
|
|
249
248
|
const res = await bankAccountsList(moov, {
|
|
250
249
|
accountID: "85539920-22dd-4900-a07e-7a88268456d9",
|
|
251
250
|
});
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
if (res.ok) {
|
|
252
|
+
const { value: result } = res;
|
|
253
|
+
console.log(result);
|
|
254
|
+
} else {
|
|
255
|
+
console.log("bankAccountsList failed:", res.error);
|
|
255
256
|
}
|
|
256
|
-
|
|
257
|
-
const { value: result } = res;
|
|
258
|
-
|
|
259
|
-
// Handle the result
|
|
260
|
-
console.log(result);
|
|
261
257
|
}
|
|
262
258
|
|
|
263
259
|
run();
|
|
@@ -297,6 +293,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
|
|
|
297
293
|
import { Moov } from "@moovio/sdk";
|
|
298
294
|
|
|
299
295
|
const moov = new Moov({
|
|
296
|
+
xMoovVersion: "v2024.01.00",
|
|
300
297
|
security: {
|
|
301
298
|
username: "",
|
|
302
299
|
password: "",
|
|
@@ -309,7 +306,6 @@ async function run() {
|
|
|
309
306
|
bankAccountID: "dd241177-be83-4aad-80f8-31aded5f3616",
|
|
310
307
|
});
|
|
311
308
|
|
|
312
|
-
// Handle the result
|
|
313
309
|
console.log(result);
|
|
314
310
|
}
|
|
315
311
|
|
|
@@ -327,6 +323,7 @@ import { bankAccountsGet } from "@moovio/sdk/funcs/bankAccountsGet.js";
|
|
|
327
323
|
// Use `MoovCore` for best tree-shaking performance.
|
|
328
324
|
// You can create one instance of it to use across an application.
|
|
329
325
|
const moov = new MoovCore({
|
|
326
|
+
xMoovVersion: "v2024.01.00",
|
|
330
327
|
security: {
|
|
331
328
|
username: "",
|
|
332
329
|
password: "",
|
|
@@ -338,15 +335,12 @@ async function run() {
|
|
|
338
335
|
accountID: "32ac681d-3244-4673-8541-362e40b7677a",
|
|
339
336
|
bankAccountID: "dd241177-be83-4aad-80f8-31aded5f3616",
|
|
340
337
|
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
338
|
+
if (res.ok) {
|
|
339
|
+
const { value: result } = res;
|
|
340
|
+
console.log(result);
|
|
341
|
+
} else {
|
|
342
|
+
console.log("bankAccountsGet failed:", res.error);
|
|
344
343
|
}
|
|
345
|
-
|
|
346
|
-
const { value: result } = res;
|
|
347
|
-
|
|
348
|
-
// Handle the result
|
|
349
|
-
console.log(result);
|
|
350
344
|
}
|
|
351
345
|
|
|
352
346
|
run();
|
|
@@ -384,6 +378,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
384
378
|
import { Moov } from "@moovio/sdk";
|
|
385
379
|
|
|
386
380
|
const moov = new Moov({
|
|
381
|
+
xMoovVersion: "v2024.01.00",
|
|
387
382
|
security: {
|
|
388
383
|
username: "",
|
|
389
384
|
password: "",
|
|
@@ -396,7 +391,6 @@ async function run() {
|
|
|
396
391
|
bankAccountID: "b9295fc2-f5fd-4767-894f-5ca45abfd3fc",
|
|
397
392
|
});
|
|
398
393
|
|
|
399
|
-
// Handle the result
|
|
400
394
|
console.log(result);
|
|
401
395
|
}
|
|
402
396
|
|
|
@@ -414,6 +408,7 @@ import { bankAccountsDisable } from "@moovio/sdk/funcs/bankAccountsDisable.js";
|
|
|
414
408
|
// Use `MoovCore` for best tree-shaking performance.
|
|
415
409
|
// You can create one instance of it to use across an application.
|
|
416
410
|
const moov = new MoovCore({
|
|
411
|
+
xMoovVersion: "v2024.01.00",
|
|
417
412
|
security: {
|
|
418
413
|
username: "",
|
|
419
414
|
password: "",
|
|
@@ -425,15 +420,12 @@ async function run() {
|
|
|
425
420
|
accountID: "6b6ade5f-0b20-493c-b483-cf1f670a1055",
|
|
426
421
|
bankAccountID: "b9295fc2-f5fd-4767-894f-5ca45abfd3fc",
|
|
427
422
|
});
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
423
|
+
if (res.ok) {
|
|
424
|
+
const { value: result } = res;
|
|
425
|
+
console.log(result);
|
|
426
|
+
} else {
|
|
427
|
+
console.log("bankAccountsDisable failed:", res.error);
|
|
431
428
|
}
|
|
432
|
-
|
|
433
|
-
const { value: result } = res;
|
|
434
|
-
|
|
435
|
-
// Handle the result
|
|
436
|
-
console.log(result);
|
|
437
429
|
}
|
|
438
430
|
|
|
439
431
|
run();
|
|
@@ -483,6 +475,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
483
475
|
import { Moov } from "@moovio/sdk";
|
|
484
476
|
|
|
485
477
|
const moov = new Moov({
|
|
478
|
+
xMoovVersion: "v2024.01.00",
|
|
486
479
|
security: {
|
|
487
480
|
username: "",
|
|
488
481
|
password: "",
|
|
@@ -495,7 +488,6 @@ async function run() {
|
|
|
495
488
|
bankAccountID: "f2b630cc-a8ae-44be-970b-7bed47b2d952",
|
|
496
489
|
});
|
|
497
490
|
|
|
498
|
-
// Handle the result
|
|
499
491
|
console.log(result);
|
|
500
492
|
}
|
|
501
493
|
|
|
@@ -513,6 +505,7 @@ import { bankAccountsInitiateMicroDeposits } from "@moovio/sdk/funcs/bankAccount
|
|
|
513
505
|
// Use `MoovCore` for best tree-shaking performance.
|
|
514
506
|
// You can create one instance of it to use across an application.
|
|
515
507
|
const moov = new MoovCore({
|
|
508
|
+
xMoovVersion: "v2024.01.00",
|
|
516
509
|
security: {
|
|
517
510
|
username: "",
|
|
518
511
|
password: "",
|
|
@@ -524,15 +517,12 @@ async function run() {
|
|
|
524
517
|
accountID: "ced90412-ebb4-43d4-a171-0a929ed5fb37",
|
|
525
518
|
bankAccountID: "f2b630cc-a8ae-44be-970b-7bed47b2d952",
|
|
526
519
|
});
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
520
|
+
if (res.ok) {
|
|
521
|
+
const { value: result } = res;
|
|
522
|
+
console.log(result);
|
|
523
|
+
} else {
|
|
524
|
+
console.log("bankAccountsInitiateMicroDeposits failed:", res.error);
|
|
530
525
|
}
|
|
531
|
-
|
|
532
|
-
const { value: result } = res;
|
|
533
|
-
|
|
534
|
-
// Handle the result
|
|
535
|
-
console.log(result);
|
|
536
526
|
}
|
|
537
527
|
|
|
538
528
|
run();
|
|
@@ -571,6 +561,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
571
561
|
import { Moov } from "@moovio/sdk";
|
|
572
562
|
|
|
573
563
|
const moov = new Moov({
|
|
564
|
+
xMoovVersion: "v2024.01.00",
|
|
574
565
|
security: {
|
|
575
566
|
username: "",
|
|
576
567
|
password: "",
|
|
@@ -589,7 +580,6 @@ async function run() {
|
|
|
589
580
|
},
|
|
590
581
|
});
|
|
591
582
|
|
|
592
|
-
// Handle the result
|
|
593
583
|
console.log(result);
|
|
594
584
|
}
|
|
595
585
|
|
|
@@ -607,6 +597,7 @@ import { bankAccountsCompleteMicroDeposits } from "@moovio/sdk/funcs/bankAccount
|
|
|
607
597
|
// Use `MoovCore` for best tree-shaking performance.
|
|
608
598
|
// You can create one instance of it to use across an application.
|
|
609
599
|
const moov = new MoovCore({
|
|
600
|
+
xMoovVersion: "v2024.01.00",
|
|
610
601
|
security: {
|
|
611
602
|
username: "",
|
|
612
603
|
password: "",
|
|
@@ -624,15 +615,12 @@ async function run() {
|
|
|
624
615
|
],
|
|
625
616
|
},
|
|
626
617
|
});
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
618
|
+
if (res.ok) {
|
|
619
|
+
const { value: result } = res;
|
|
620
|
+
console.log(result);
|
|
621
|
+
} else {
|
|
622
|
+
console.log("bankAccountsCompleteMicroDeposits failed:", res.error);
|
|
630
623
|
}
|
|
631
|
-
|
|
632
|
-
const { value: result } = res;
|
|
633
|
-
|
|
634
|
-
// Handle the result
|
|
635
|
-
console.log(result);
|
|
636
624
|
}
|
|
637
625
|
|
|
638
626
|
run();
|
|
@@ -681,6 +669,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
|
|
|
681
669
|
import { Moov } from "@moovio/sdk";
|
|
682
670
|
|
|
683
671
|
const moov = new Moov({
|
|
672
|
+
xMoovVersion: "v2024.01.00",
|
|
684
673
|
security: {
|
|
685
674
|
username: "",
|
|
686
675
|
password: "",
|
|
@@ -693,7 +682,6 @@ async function run() {
|
|
|
693
682
|
bankAccountID: "aaceed83-ef83-4d48-8136-096f834280cc",
|
|
694
683
|
});
|
|
695
684
|
|
|
696
|
-
// Handle the result
|
|
697
685
|
console.log(result);
|
|
698
686
|
}
|
|
699
687
|
|
|
@@ -711,6 +699,7 @@ import { bankAccountsGetVerification } from "@moovio/sdk/funcs/bankAccountsGetVe
|
|
|
711
699
|
// Use `MoovCore` for best tree-shaking performance.
|
|
712
700
|
// You can create one instance of it to use across an application.
|
|
713
701
|
const moov = new MoovCore({
|
|
702
|
+
xMoovVersion: "v2024.01.00",
|
|
714
703
|
security: {
|
|
715
704
|
username: "",
|
|
716
705
|
password: "",
|
|
@@ -722,15 +711,12 @@ async function run() {
|
|
|
722
711
|
accountID: "c87bc077-580a-4c2a-b312-2afbd21fc1cd",
|
|
723
712
|
bankAccountID: "aaceed83-ef83-4d48-8136-096f834280cc",
|
|
724
713
|
});
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
714
|
+
if (res.ok) {
|
|
715
|
+
const { value: result } = res;
|
|
716
|
+
console.log(result);
|
|
717
|
+
} else {
|
|
718
|
+
console.log("bankAccountsGetVerification failed:", res.error);
|
|
728
719
|
}
|
|
729
|
-
|
|
730
|
-
const { value: result } = res;
|
|
731
|
-
|
|
732
|
-
// Handle the result
|
|
733
|
-
console.log(result);
|
|
734
720
|
}
|
|
735
721
|
|
|
736
722
|
run();
|
|
@@ -783,6 +769,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
783
769
|
import { Moov } from "@moovio/sdk";
|
|
784
770
|
|
|
785
771
|
const moov = new Moov({
|
|
772
|
+
xMoovVersion: "v2024.01.00",
|
|
786
773
|
security: {
|
|
787
774
|
username: "",
|
|
788
775
|
password: "",
|
|
@@ -795,7 +782,6 @@ async function run() {
|
|
|
795
782
|
bankAccountID: "bd092468-393d-4ee0-85a8-48238fee70d2",
|
|
796
783
|
});
|
|
797
784
|
|
|
798
|
-
// Handle the result
|
|
799
785
|
console.log(result);
|
|
800
786
|
}
|
|
801
787
|
|
|
@@ -813,6 +799,7 @@ import { bankAccountsInitiateVerification } from "@moovio/sdk/funcs/bankAccounts
|
|
|
813
799
|
// Use `MoovCore` for best tree-shaking performance.
|
|
814
800
|
// You can create one instance of it to use across an application.
|
|
815
801
|
const moov = new MoovCore({
|
|
802
|
+
xMoovVersion: "v2024.01.00",
|
|
816
803
|
security: {
|
|
817
804
|
username: "",
|
|
818
805
|
password: "",
|
|
@@ -824,15 +811,12 @@ async function run() {
|
|
|
824
811
|
accountID: "9d6d433b-c13a-48d7-849a-1897fa71375b",
|
|
825
812
|
bankAccountID: "bd092468-393d-4ee0-85a8-48238fee70d2",
|
|
826
813
|
});
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
814
|
+
if (res.ok) {
|
|
815
|
+
const { value: result } = res;
|
|
816
|
+
console.log(result);
|
|
817
|
+
} else {
|
|
818
|
+
console.log("bankAccountsInitiateVerification failed:", res.error);
|
|
830
819
|
}
|
|
831
|
-
|
|
832
|
-
const { value: result } = res;
|
|
833
|
-
|
|
834
|
-
// Handle the result
|
|
835
|
-
console.log(result);
|
|
836
820
|
}
|
|
837
821
|
|
|
838
822
|
run();
|
|
@@ -878,6 +862,7 @@ you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
|
|
|
878
862
|
import { Moov } from "@moovio/sdk";
|
|
879
863
|
|
|
880
864
|
const moov = new Moov({
|
|
865
|
+
xMoovVersion: "v2024.01.00",
|
|
881
866
|
security: {
|
|
882
867
|
username: "",
|
|
883
868
|
password: "",
|
|
@@ -893,7 +878,6 @@ async function run() {
|
|
|
893
878
|
},
|
|
894
879
|
});
|
|
895
880
|
|
|
896
|
-
// Handle the result
|
|
897
881
|
console.log(result);
|
|
898
882
|
}
|
|
899
883
|
|
|
@@ -911,6 +895,7 @@ import { bankAccountsCompleteVerification } from "@moovio/sdk/funcs/bankAccounts
|
|
|
911
895
|
// Use `MoovCore` for best tree-shaking performance.
|
|
912
896
|
// You can create one instance of it to use across an application.
|
|
913
897
|
const moov = new MoovCore({
|
|
898
|
+
xMoovVersion: "v2024.01.00",
|
|
914
899
|
security: {
|
|
915
900
|
username: "",
|
|
916
901
|
password: "",
|
|
@@ -925,15 +910,12 @@ async function run() {
|
|
|
925
910
|
code: "MV1234",
|
|
926
911
|
},
|
|
927
912
|
});
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
913
|
+
if (res.ok) {
|
|
914
|
+
const { value: result } = res;
|
|
915
|
+
console.log(result);
|
|
916
|
+
} else {
|
|
917
|
+
console.log("bankAccountsCompleteVerification failed:", res.error);
|
|
931
918
|
}
|
|
932
|
-
|
|
933
|
-
const { value: result } = res;
|
|
934
|
-
|
|
935
|
-
// Handle the result
|
|
936
|
-
console.log(result);
|
|
937
919
|
}
|
|
938
920
|
|
|
939
921
|
run();
|
|
@@ -35,6 +35,7 @@ you'll need to specify the `/accounts/{accountID}/branding.write` scope.
|
|
|
35
35
|
import { Moov } from "@moovio/sdk";
|
|
36
36
|
|
|
37
37
|
const moov = new Moov({
|
|
38
|
+
xMoovVersion: "v2024.01.00",
|
|
38
39
|
security: {
|
|
39
40
|
username: "",
|
|
40
41
|
password: "",
|
|
@@ -56,7 +57,6 @@ async function run() {
|
|
|
56
57
|
},
|
|
57
58
|
});
|
|
58
59
|
|
|
59
|
-
// Handle the result
|
|
60
60
|
console.log(result);
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -74,6 +74,7 @@ import { brandingCreate } from "@moovio/sdk/funcs/brandingCreate.js";
|
|
|
74
74
|
// Use `MoovCore` for best tree-shaking performance.
|
|
75
75
|
// You can create one instance of it to use across an application.
|
|
76
76
|
const moov = new MoovCore({
|
|
77
|
+
xMoovVersion: "v2024.01.00",
|
|
77
78
|
security: {
|
|
78
79
|
username: "",
|
|
79
80
|
password: "",
|
|
@@ -94,15 +95,12 @@ async function run() {
|
|
|
94
95
|
},
|
|
95
96
|
},
|
|
96
97
|
});
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
if (res.ok) {
|
|
99
|
+
const { value: result } = res;
|
|
100
|
+
console.log(result);
|
|
101
|
+
} else {
|
|
102
|
+
console.log("brandingCreate failed:", res.error);
|
|
100
103
|
}
|
|
101
|
-
|
|
102
|
-
const { value: result } = res;
|
|
103
|
-
|
|
104
|
-
// Handle the result
|
|
105
|
-
console.log(result);
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
run();
|
|
@@ -142,6 +140,7 @@ you'll need to specify the `/accounts/{accountID}/branding.write` scope.
|
|
|
142
140
|
import { Moov } from "@moovio/sdk";
|
|
143
141
|
|
|
144
142
|
const moov = new Moov({
|
|
143
|
+
xMoovVersion: "v2024.01.00",
|
|
145
144
|
security: {
|
|
146
145
|
username: "",
|
|
147
146
|
password: "",
|
|
@@ -163,7 +162,6 @@ async function run() {
|
|
|
163
162
|
},
|
|
164
163
|
});
|
|
165
164
|
|
|
166
|
-
// Handle the result
|
|
167
165
|
console.log(result);
|
|
168
166
|
}
|
|
169
167
|
|
|
@@ -181,6 +179,7 @@ import { brandingUpsert } from "@moovio/sdk/funcs/brandingUpsert.js";
|
|
|
181
179
|
// Use `MoovCore` for best tree-shaking performance.
|
|
182
180
|
// You can create one instance of it to use across an application.
|
|
183
181
|
const moov = new MoovCore({
|
|
182
|
+
xMoovVersion: "v2024.01.00",
|
|
184
183
|
security: {
|
|
185
184
|
username: "",
|
|
186
185
|
password: "",
|
|
@@ -201,15 +200,12 @@ async function run() {
|
|
|
201
200
|
},
|
|
202
201
|
},
|
|
203
202
|
});
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
if (res.ok) {
|
|
204
|
+
const { value: result } = res;
|
|
205
|
+
console.log(result);
|
|
206
|
+
} else {
|
|
207
|
+
console.log("brandingUpsert failed:", res.error);
|
|
207
208
|
}
|
|
208
|
-
|
|
209
|
-
const { value: result } = res;
|
|
210
|
-
|
|
211
|
-
// Handle the result
|
|
212
|
-
console.log(result);
|
|
213
209
|
}
|
|
214
210
|
|
|
215
211
|
run();
|
|
@@ -249,6 +245,7 @@ you'll need to specify the `/accounts/{accountID}/branding.read` scope.
|
|
|
249
245
|
import { Moov } from "@moovio/sdk";
|
|
250
246
|
|
|
251
247
|
const moov = new Moov({
|
|
248
|
+
xMoovVersion: "v2024.01.00",
|
|
252
249
|
security: {
|
|
253
250
|
username: "",
|
|
254
251
|
password: "",
|
|
@@ -260,7 +257,6 @@ async function run() {
|
|
|
260
257
|
accountID: "8a4ec43e-d45f-481d-a291-683cb221e3cc",
|
|
261
258
|
});
|
|
262
259
|
|
|
263
|
-
// Handle the result
|
|
264
260
|
console.log(result);
|
|
265
261
|
}
|
|
266
262
|
|
|
@@ -278,6 +274,7 @@ import { brandingGet } from "@moovio/sdk/funcs/brandingGet.js";
|
|
|
278
274
|
// Use `MoovCore` for best tree-shaking performance.
|
|
279
275
|
// You can create one instance of it to use across an application.
|
|
280
276
|
const moov = new MoovCore({
|
|
277
|
+
xMoovVersion: "v2024.01.00",
|
|
281
278
|
security: {
|
|
282
279
|
username: "",
|
|
283
280
|
password: "",
|
|
@@ -288,15 +285,12 @@ async function run() {
|
|
|
288
285
|
const res = await brandingGet(moov, {
|
|
289
286
|
accountID: "8a4ec43e-d45f-481d-a291-683cb221e3cc",
|
|
290
287
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
if (res.ok) {
|
|
289
|
+
const { value: result } = res;
|
|
290
|
+
console.log(result);
|
|
291
|
+
} else {
|
|
292
|
+
console.log("brandingGet failed:", res.error);
|
|
294
293
|
}
|
|
295
|
-
|
|
296
|
-
const { value: result } = res;
|
|
297
|
-
|
|
298
|
-
// Handle the result
|
|
299
|
-
console.log(result);
|
|
300
294
|
}
|
|
301
295
|
|
|
302
296
|
run();
|
|
@@ -334,6 +328,7 @@ you'll need to specify the `/accounts/{accountID}/branding.write` scope.
|
|
|
334
328
|
import { Moov } from "@moovio/sdk";
|
|
335
329
|
|
|
336
330
|
const moov = new Moov({
|
|
331
|
+
xMoovVersion: "v2024.01.00",
|
|
337
332
|
security: {
|
|
338
333
|
username: "",
|
|
339
334
|
password: "",
|
|
@@ -346,7 +341,6 @@ async function run() {
|
|
|
346
341
|
updateBrand: {},
|
|
347
342
|
});
|
|
348
343
|
|
|
349
|
-
// Handle the result
|
|
350
344
|
console.log(result);
|
|
351
345
|
}
|
|
352
346
|
|
|
@@ -364,6 +358,7 @@ import { brandingUpdate } from "@moovio/sdk/funcs/brandingUpdate.js";
|
|
|
364
358
|
// Use `MoovCore` for best tree-shaking performance.
|
|
365
359
|
// You can create one instance of it to use across an application.
|
|
366
360
|
const moov = new MoovCore({
|
|
361
|
+
xMoovVersion: "v2024.01.00",
|
|
367
362
|
security: {
|
|
368
363
|
username: "",
|
|
369
364
|
password: "",
|
|
@@ -375,15 +370,12 @@ async function run() {
|
|
|
375
370
|
accountID: "0c0dc4a5-ecd9-4223-810a-a71632980156",
|
|
376
371
|
updateBrand: {},
|
|
377
372
|
});
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
373
|
+
if (res.ok) {
|
|
374
|
+
const { value: result } = res;
|
|
375
|
+
console.log(result);
|
|
376
|
+
} else {
|
|
377
|
+
console.log("brandingUpdate failed:", res.error);
|
|
381
378
|
}
|
|
382
|
-
|
|
383
|
-
const { value: result } = res;
|
|
384
|
-
|
|
385
|
-
// Handle the result
|
|
386
|
-
console.log(result);
|
|
387
379
|
}
|
|
388
380
|
|
|
389
381
|
run();
|