@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
|
@@ -94,6 +94,7 @@ to specify the `/accounts.write` scope.
|
|
|
94
94
|
import { Moov } from "@moovio/sdk";
|
|
95
95
|
|
|
96
96
|
const moov = new Moov({
|
|
97
|
+
xMoovVersion: "v2024.01.00",
|
|
97
98
|
security: {
|
|
98
99
|
username: "",
|
|
99
100
|
password: "",
|
|
@@ -110,7 +111,6 @@ async function run() {
|
|
|
110
111
|
},
|
|
111
112
|
});
|
|
112
113
|
|
|
113
|
-
// Handle the result
|
|
114
114
|
console.log(result);
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -128,6 +128,7 @@ import { accountsCreate } from "@moovio/sdk/funcs/accountsCreate.js";
|
|
|
128
128
|
// Use `MoovCore` for best tree-shaking performance.
|
|
129
129
|
// You can create one instance of it to use across an application.
|
|
130
130
|
const moov = new MoovCore({
|
|
131
|
+
xMoovVersion: "v2024.01.00",
|
|
131
132
|
security: {
|
|
132
133
|
username: "",
|
|
133
134
|
password: "",
|
|
@@ -143,15 +144,12 @@ async function run() {
|
|
|
143
144
|
},
|
|
144
145
|
},
|
|
145
146
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
if (res.ok) {
|
|
148
|
+
const { value: result } = res;
|
|
149
|
+
console.log(result);
|
|
150
|
+
} else {
|
|
151
|
+
console.log("accountsCreate failed:", res.error);
|
|
149
152
|
}
|
|
150
|
-
|
|
151
|
-
const { value: result } = res;
|
|
152
|
-
|
|
153
|
-
// Handle the result
|
|
154
|
-
console.log(result);
|
|
155
153
|
}
|
|
156
154
|
|
|
157
155
|
run();
|
|
@@ -195,6 +193,7 @@ to specify the `/accounts.read` scope.
|
|
|
195
193
|
import { Moov } from "@moovio/sdk";
|
|
196
194
|
|
|
197
195
|
const moov = new Moov({
|
|
196
|
+
xMoovVersion: "v2024.01.00",
|
|
198
197
|
security: {
|
|
199
198
|
username: "",
|
|
200
199
|
password: "",
|
|
@@ -208,7 +207,6 @@ async function run() {
|
|
|
208
207
|
count: 20,
|
|
209
208
|
});
|
|
210
209
|
|
|
211
|
-
// Handle the result
|
|
212
210
|
console.log(result);
|
|
213
211
|
}
|
|
214
212
|
|
|
@@ -226,6 +224,7 @@ import { accountsList } from "@moovio/sdk/funcs/accountsList.js";
|
|
|
226
224
|
// Use `MoovCore` for best tree-shaking performance.
|
|
227
225
|
// You can create one instance of it to use across an application.
|
|
228
226
|
const moov = new MoovCore({
|
|
227
|
+
xMoovVersion: "v2024.01.00",
|
|
229
228
|
security: {
|
|
230
229
|
username: "",
|
|
231
230
|
password: "",
|
|
@@ -238,15 +237,12 @@ async function run() {
|
|
|
238
237
|
skip: 60,
|
|
239
238
|
count: 20,
|
|
240
239
|
});
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
if (res.ok) {
|
|
241
|
+
const { value: result } = res;
|
|
242
|
+
console.log(result);
|
|
243
|
+
} else {
|
|
244
|
+
console.log("accountsList failed:", res.error);
|
|
244
245
|
}
|
|
245
|
-
|
|
246
|
-
const { value: result } = res;
|
|
247
|
-
|
|
248
|
-
// Handle the result
|
|
249
|
-
console.log(result);
|
|
250
246
|
}
|
|
251
247
|
|
|
252
248
|
run();
|
|
@@ -284,6 +280,7 @@ to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
284
280
|
import { Moov } from "@moovio/sdk";
|
|
285
281
|
|
|
286
282
|
const moov = new Moov({
|
|
283
|
+
xMoovVersion: "v2024.01.00",
|
|
287
284
|
security: {
|
|
288
285
|
username: "",
|
|
289
286
|
password: "",
|
|
@@ -295,7 +292,6 @@ async function run() {
|
|
|
295
292
|
accountID: "2f93a6cf-3b3b-4c17-8d3b-110dfadccea4",
|
|
296
293
|
});
|
|
297
294
|
|
|
298
|
-
// Handle the result
|
|
299
295
|
console.log(result);
|
|
300
296
|
}
|
|
301
297
|
|
|
@@ -313,6 +309,7 @@ import { accountsGet } from "@moovio/sdk/funcs/accountsGet.js";
|
|
|
313
309
|
// Use `MoovCore` for best tree-shaking performance.
|
|
314
310
|
// You can create one instance of it to use across an application.
|
|
315
311
|
const moov = new MoovCore({
|
|
312
|
+
xMoovVersion: "v2024.01.00",
|
|
316
313
|
security: {
|
|
317
314
|
username: "",
|
|
318
315
|
password: "",
|
|
@@ -323,15 +320,12 @@ async function run() {
|
|
|
323
320
|
const res = await accountsGet(moov, {
|
|
324
321
|
accountID: "2f93a6cf-3b3b-4c17-8d3b-110dfadccea4",
|
|
325
322
|
});
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
323
|
+
if (res.ok) {
|
|
324
|
+
const { value: result } = res;
|
|
325
|
+
console.log(result);
|
|
326
|
+
} else {
|
|
327
|
+
console.log("accountsGet failed:", res.error);
|
|
329
328
|
}
|
|
330
|
-
|
|
331
|
-
const { value: result } = res;
|
|
332
|
-
|
|
333
|
-
// Handle the result
|
|
334
|
-
console.log(result);
|
|
335
329
|
}
|
|
336
330
|
|
|
337
331
|
run();
|
|
@@ -377,6 +371,7 @@ to specify the `/accounts/{accountID}/profile.write` scope.
|
|
|
377
371
|
import { Moov } from "@moovio/sdk";
|
|
378
372
|
|
|
379
373
|
const moov = new Moov({
|
|
374
|
+
xMoovVersion: "v2024.01.00",
|
|
380
375
|
security: {
|
|
381
376
|
username: "",
|
|
382
377
|
password: "",
|
|
@@ -465,7 +460,6 @@ async function run() {
|
|
|
465
460
|
},
|
|
466
461
|
});
|
|
467
462
|
|
|
468
|
-
// Handle the result
|
|
469
463
|
console.log(result);
|
|
470
464
|
}
|
|
471
465
|
|
|
@@ -483,6 +477,7 @@ import { accountsUpdate } from "@moovio/sdk/funcs/accountsUpdate.js";
|
|
|
483
477
|
// Use `MoovCore` for best tree-shaking performance.
|
|
484
478
|
// You can create one instance of it to use across an application.
|
|
485
479
|
const moov = new MoovCore({
|
|
480
|
+
xMoovVersion: "v2024.01.00",
|
|
486
481
|
security: {
|
|
487
482
|
username: "",
|
|
488
483
|
password: "",
|
|
@@ -570,15 +565,12 @@ async function run() {
|
|
|
570
565
|
},
|
|
571
566
|
},
|
|
572
567
|
});
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
568
|
+
if (res.ok) {
|
|
569
|
+
const { value: result } = res;
|
|
570
|
+
console.log(result);
|
|
571
|
+
} else {
|
|
572
|
+
console.log("accountsUpdate failed:", res.error);
|
|
576
573
|
}
|
|
577
|
-
|
|
578
|
-
const { value: result } = res;
|
|
579
|
-
|
|
580
|
-
// Handle the result
|
|
581
|
-
console.log(result);
|
|
582
574
|
}
|
|
583
575
|
|
|
584
576
|
run();
|
|
@@ -620,6 +612,7 @@ you'll need to specify the `/accounts/{accountID}/profile.disconnect` scope.
|
|
|
620
612
|
import { Moov } from "@moovio/sdk";
|
|
621
613
|
|
|
622
614
|
const moov = new Moov({
|
|
615
|
+
xMoovVersion: "v2024.01.00",
|
|
623
616
|
security: {
|
|
624
617
|
username: "",
|
|
625
618
|
password: "",
|
|
@@ -631,7 +624,6 @@ async function run() {
|
|
|
631
624
|
accountID: "cfdfea7d-f185-4de5-ba90-b09f14fe6683",
|
|
632
625
|
});
|
|
633
626
|
|
|
634
|
-
// Handle the result
|
|
635
627
|
console.log(result);
|
|
636
628
|
}
|
|
637
629
|
|
|
@@ -649,6 +641,7 @@ import { accountsDisconnect } from "@moovio/sdk/funcs/accountsDisconnect.js";
|
|
|
649
641
|
// Use `MoovCore` for best tree-shaking performance.
|
|
650
642
|
// You can create one instance of it to use across an application.
|
|
651
643
|
const moov = new MoovCore({
|
|
644
|
+
xMoovVersion: "v2024.01.00",
|
|
652
645
|
security: {
|
|
653
646
|
username: "",
|
|
654
647
|
password: "",
|
|
@@ -659,15 +652,12 @@ async function run() {
|
|
|
659
652
|
const res = await accountsDisconnect(moov, {
|
|
660
653
|
accountID: "cfdfea7d-f185-4de5-ba90-b09f14fe6683",
|
|
661
654
|
});
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
655
|
+
if (res.ok) {
|
|
656
|
+
const { value: result } = res;
|
|
657
|
+
console.log(result);
|
|
658
|
+
} else {
|
|
659
|
+
console.log("accountsDisconnect failed:", res.error);
|
|
665
660
|
}
|
|
666
|
-
|
|
667
|
-
const { value: result } = res;
|
|
668
|
-
|
|
669
|
-
// Handle the result
|
|
670
|
-
console.log(result);
|
|
671
661
|
}
|
|
672
662
|
|
|
673
663
|
run();
|
|
@@ -706,6 +696,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
706
696
|
import { Moov } from "@moovio/sdk";
|
|
707
697
|
|
|
708
698
|
const moov = new Moov({
|
|
699
|
+
xMoovVersion: "v2024.01.00",
|
|
709
700
|
security: {
|
|
710
701
|
username: "",
|
|
711
702
|
password: "",
|
|
@@ -717,7 +708,6 @@ async function run() {
|
|
|
717
708
|
accountID: "a2026036-cc26-42c1-beef-950662d13b5d",
|
|
718
709
|
});
|
|
719
710
|
|
|
720
|
-
// Handle the result
|
|
721
711
|
console.log(result);
|
|
722
712
|
}
|
|
723
713
|
|
|
@@ -735,6 +725,7 @@ import { accountsGetCountries } from "@moovio/sdk/funcs/accountsGetCountries.js"
|
|
|
735
725
|
// Use `MoovCore` for best tree-shaking performance.
|
|
736
726
|
// You can create one instance of it to use across an application.
|
|
737
727
|
const moov = new MoovCore({
|
|
728
|
+
xMoovVersion: "v2024.01.00",
|
|
738
729
|
security: {
|
|
739
730
|
username: "",
|
|
740
731
|
password: "",
|
|
@@ -745,15 +736,12 @@ async function run() {
|
|
|
745
736
|
const res = await accountsGetCountries(moov, {
|
|
746
737
|
accountID: "a2026036-cc26-42c1-beef-950662d13b5d",
|
|
747
738
|
});
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
739
|
+
if (res.ok) {
|
|
740
|
+
const { value: result } = res;
|
|
741
|
+
console.log(result);
|
|
742
|
+
} else {
|
|
743
|
+
console.log("accountsGetCountries failed:", res.error);
|
|
751
744
|
}
|
|
752
|
-
|
|
753
|
-
const { value: result } = res;
|
|
754
|
-
|
|
755
|
-
// Handle the result
|
|
756
|
-
console.log(result);
|
|
757
745
|
}
|
|
758
746
|
|
|
759
747
|
run();
|
|
@@ -793,6 +781,7 @@ you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
|
793
781
|
import { Moov } from "@moovio/sdk";
|
|
794
782
|
|
|
795
783
|
const moov = new Moov({
|
|
784
|
+
xMoovVersion: "v2024.01.00",
|
|
796
785
|
security: {
|
|
797
786
|
username: "",
|
|
798
787
|
password: "",
|
|
@@ -809,7 +798,6 @@ async function run() {
|
|
|
809
798
|
},
|
|
810
799
|
});
|
|
811
800
|
|
|
812
|
-
// Handle the result
|
|
813
801
|
console.log(result);
|
|
814
802
|
}
|
|
815
803
|
|
|
@@ -827,6 +815,7 @@ import { accountsAssignCountries } from "@moovio/sdk/funcs/accountsAssignCountri
|
|
|
827
815
|
// Use `MoovCore` for best tree-shaking performance.
|
|
828
816
|
// You can create one instance of it to use across an application.
|
|
829
817
|
const moov = new MoovCore({
|
|
818
|
+
xMoovVersion: "v2024.01.00",
|
|
830
819
|
security: {
|
|
831
820
|
username: "",
|
|
832
821
|
password: "",
|
|
@@ -842,15 +831,12 @@ async function run() {
|
|
|
842
831
|
],
|
|
843
832
|
},
|
|
844
833
|
});
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
834
|
+
if (res.ok) {
|
|
835
|
+
const { value: result } = res;
|
|
836
|
+
console.log(result);
|
|
837
|
+
} else {
|
|
838
|
+
console.log("accountsAssignCountries failed:", res.error);
|
|
848
839
|
}
|
|
849
|
-
|
|
850
|
-
const { value: result } = res;
|
|
851
|
-
|
|
852
|
-
// Handle the result
|
|
853
|
-
console.log(result);
|
|
854
840
|
}
|
|
855
841
|
|
|
856
842
|
run();
|
|
@@ -890,6 +876,7 @@ you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
|
890
876
|
import { Moov } from "@moovio/sdk";
|
|
891
877
|
|
|
892
878
|
const moov = new Moov({
|
|
879
|
+
xMoovVersion: "v2024.01.00",
|
|
893
880
|
security: {
|
|
894
881
|
username: "",
|
|
895
882
|
password: "",
|
|
@@ -901,7 +888,6 @@ async function run() {
|
|
|
901
888
|
accountID: "6180d9b9-2377-4190-8530-70a99d31a578",
|
|
902
889
|
});
|
|
903
890
|
|
|
904
|
-
// Handle the result
|
|
905
891
|
console.log(result);
|
|
906
892
|
}
|
|
907
893
|
|
|
@@ -919,6 +905,7 @@ import { accountsGetMerchantProcessingAgreement } from "@moovio/sdk/funcs/accoun
|
|
|
919
905
|
// Use `MoovCore` for best tree-shaking performance.
|
|
920
906
|
// You can create one instance of it to use across an application.
|
|
921
907
|
const moov = new MoovCore({
|
|
908
|
+
xMoovVersion: "v2024.01.00",
|
|
922
909
|
security: {
|
|
923
910
|
username: "",
|
|
924
911
|
password: "",
|
|
@@ -929,15 +916,12 @@ async function run() {
|
|
|
929
916
|
const res = await accountsGetMerchantProcessingAgreement(moov, {
|
|
930
917
|
accountID: "6180d9b9-2377-4190-8530-70a99d31a578",
|
|
931
918
|
});
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
919
|
+
if (res.ok) {
|
|
920
|
+
const { value: result } = res;
|
|
921
|
+
console.log(result);
|
|
922
|
+
} else {
|
|
923
|
+
console.log("accountsGetMerchantProcessingAgreement failed:", res.error);
|
|
935
924
|
}
|
|
936
|
-
|
|
937
|
-
const { value: result } = res;
|
|
938
|
-
|
|
939
|
-
// Handle the result
|
|
940
|
-
console.log(result);
|
|
941
925
|
}
|
|
942
926
|
|
|
943
927
|
run();
|
|
@@ -976,6 +960,7 @@ token patched to the account. Read more in our [documentation](https://docs.moov
|
|
|
976
960
|
import { Moov } from "@moovio/sdk";
|
|
977
961
|
|
|
978
962
|
const moov = new Moov({
|
|
963
|
+
xMoovVersion: "v2024.01.00",
|
|
979
964
|
security: {
|
|
980
965
|
username: "",
|
|
981
966
|
password: "",
|
|
@@ -985,7 +970,6 @@ const moov = new Moov({
|
|
|
985
970
|
async function run() {
|
|
986
971
|
const result = await moov.accounts.getTermsOfServiceToken({});
|
|
987
972
|
|
|
988
|
-
// Handle the result
|
|
989
973
|
console.log(result);
|
|
990
974
|
}
|
|
991
975
|
|
|
@@ -1003,6 +987,7 @@ import { accountsGetTermsOfServiceToken } from "@moovio/sdk/funcs/accountsGetTer
|
|
|
1003
987
|
// Use `MoovCore` for best tree-shaking performance.
|
|
1004
988
|
// You can create one instance of it to use across an application.
|
|
1005
989
|
const moov = new MoovCore({
|
|
990
|
+
xMoovVersion: "v2024.01.00",
|
|
1006
991
|
security: {
|
|
1007
992
|
username: "",
|
|
1008
993
|
password: "",
|
|
@@ -1011,15 +996,12 @@ const moov = new MoovCore({
|
|
|
1011
996
|
|
|
1012
997
|
async function run() {
|
|
1013
998
|
const res = await accountsGetTermsOfServiceToken(moov, {});
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
999
|
+
if (res.ok) {
|
|
1000
|
+
const { value: result } = res;
|
|
1001
|
+
console.log(result);
|
|
1002
|
+
} else {
|
|
1003
|
+
console.log("accountsGetTermsOfServiceToken failed:", res.error);
|
|
1017
1004
|
}
|
|
1018
|
-
|
|
1019
|
-
const { value: result } = res;
|
|
1020
|
-
|
|
1021
|
-
// Handle the result
|
|
1022
|
-
console.log(result);
|
|
1023
1005
|
}
|
|
1024
1006
|
|
|
1025
1007
|
run();
|
|
@@ -35,6 +35,7 @@ you'll need to specify the `/accounts/{accountID}/terminal-applications.write` s
|
|
|
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: "",
|
|
@@ -49,7 +50,6 @@ async function run() {
|
|
|
49
50
|
},
|
|
50
51
|
});
|
|
51
52
|
|
|
52
|
-
// Handle the result
|
|
53
53
|
console.log(result);
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -67,6 +67,7 @@ import { accountTerminalApplicationsLink } from "@moovio/sdk/funcs/accountTermin
|
|
|
67
67
|
// Use `MoovCore` for best tree-shaking performance.
|
|
68
68
|
// You can create one instance of it to use across an application.
|
|
69
69
|
const moov = new MoovCore({
|
|
70
|
+
xMoovVersion: "v2024.01.00",
|
|
70
71
|
security: {
|
|
71
72
|
username: "",
|
|
72
73
|
password: "",
|
|
@@ -80,15 +81,12 @@ async function run() {
|
|
|
80
81
|
terminalApplicationID: "12345678-1234-1234-1234-123456789012",
|
|
81
82
|
},
|
|
82
83
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
if (res.ok) {
|
|
85
|
+
const { value: result } = res;
|
|
86
|
+
console.log(result);
|
|
87
|
+
} else {
|
|
88
|
+
console.log("accountTerminalApplicationsLink failed:", res.error);
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
const { value: result } = res;
|
|
89
|
-
|
|
90
|
-
// Handle the result
|
|
91
|
-
console.log(result);
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
run();
|
|
@@ -128,6 +126,7 @@ you'll need to specify the `/accounts/{accountID}/terminal-applications.read` sc
|
|
|
128
126
|
import { Moov } from "@moovio/sdk";
|
|
129
127
|
|
|
130
128
|
const moov = new Moov({
|
|
129
|
+
xMoovVersion: "v2024.01.00",
|
|
131
130
|
security: {
|
|
132
131
|
username: "",
|
|
133
132
|
password: "",
|
|
@@ -139,7 +138,6 @@ async function run() {
|
|
|
139
138
|
accountID: "76d4c8a0-1f2b-4e3b-8f5c-7a9e1b2c3d4e",
|
|
140
139
|
});
|
|
141
140
|
|
|
142
|
-
// Handle the result
|
|
143
141
|
console.log(result);
|
|
144
142
|
}
|
|
145
143
|
|
|
@@ -157,6 +155,7 @@ import { accountTerminalApplicationsList } from "@moovio/sdk/funcs/accountTermin
|
|
|
157
155
|
// Use `MoovCore` for best tree-shaking performance.
|
|
158
156
|
// You can create one instance of it to use across an application.
|
|
159
157
|
const moov = new MoovCore({
|
|
158
|
+
xMoovVersion: "v2024.01.00",
|
|
160
159
|
security: {
|
|
161
160
|
username: "",
|
|
162
161
|
password: "",
|
|
@@ -167,15 +166,12 @@ async function run() {
|
|
|
167
166
|
const res = await accountTerminalApplicationsList(moov, {
|
|
168
167
|
accountID: "76d4c8a0-1f2b-4e3b-8f5c-7a9e1b2c3d4e",
|
|
169
168
|
});
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
if (res.ok) {
|
|
170
|
+
const { value: result } = res;
|
|
171
|
+
console.log(result);
|
|
172
|
+
} else {
|
|
173
|
+
console.log("accountTerminalApplicationsList failed:", res.error);
|
|
173
174
|
}
|
|
174
|
-
|
|
175
|
-
const { value: result } = res;
|
|
176
|
-
|
|
177
|
-
// Handle the result
|
|
178
|
-
console.log(result);
|
|
179
175
|
}
|
|
180
176
|
|
|
181
177
|
run();
|
|
@@ -213,6 +209,7 @@ you'll need to specify the `/accounts/{accountID}/terminal-applications.read` sc
|
|
|
213
209
|
import { Moov } from "@moovio/sdk";
|
|
214
210
|
|
|
215
211
|
const moov = new Moov({
|
|
212
|
+
xMoovVersion: "v2024.01.00",
|
|
216
213
|
security: {
|
|
217
214
|
username: "",
|
|
218
215
|
password: "",
|
|
@@ -225,7 +222,6 @@ async function run() {
|
|
|
225
222
|
terminalApplicationID: "12345678-1234-1234-1234-123456789012",
|
|
226
223
|
});
|
|
227
224
|
|
|
228
|
-
// Handle the result
|
|
229
225
|
console.log(result);
|
|
230
226
|
}
|
|
231
227
|
|
|
@@ -243,6 +239,7 @@ import { accountTerminalApplicationsGet } from "@moovio/sdk/funcs/accountTermina
|
|
|
243
239
|
// Use `MoovCore` for best tree-shaking performance.
|
|
244
240
|
// You can create one instance of it to use across an application.
|
|
245
241
|
const moov = new MoovCore({
|
|
242
|
+
xMoovVersion: "v2024.01.00",
|
|
246
243
|
security: {
|
|
247
244
|
username: "",
|
|
248
245
|
password: "",
|
|
@@ -254,15 +251,12 @@ async function run() {
|
|
|
254
251
|
accountID: "76d4c8a0-1f2b-4e3b-8f5c-7a9e1b2c3d4e",
|
|
255
252
|
terminalApplicationID: "12345678-1234-1234-1234-123456789012",
|
|
256
253
|
});
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
if (res.ok) {
|
|
255
|
+
const { value: result } = res;
|
|
256
|
+
console.log(result);
|
|
257
|
+
} else {
|
|
258
|
+
console.log("accountTerminalApplicationsGet failed:", res.error);
|
|
260
259
|
}
|
|
261
|
-
|
|
262
|
-
const { value: result } = res;
|
|
263
|
-
|
|
264
|
-
// Handle the result
|
|
265
|
-
console.log(result);
|
|
266
260
|
}
|
|
267
261
|
|
|
268
262
|
run();
|
|
@@ -300,6 +294,7 @@ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` s
|
|
|
300
294
|
import { Moov } from "@moovio/sdk";
|
|
301
295
|
|
|
302
296
|
const moov = new Moov({
|
|
297
|
+
xMoovVersion: "v2024.01.00",
|
|
303
298
|
security: {
|
|
304
299
|
username: "",
|
|
305
300
|
password: "",
|
|
@@ -312,7 +307,6 @@ async function run() {
|
|
|
312
307
|
terminalApplicationID: "12345678-1234-1234-1234-123456789012",
|
|
313
308
|
});
|
|
314
309
|
|
|
315
|
-
// Handle the result
|
|
316
310
|
console.log(result);
|
|
317
311
|
}
|
|
318
312
|
|
|
@@ -330,6 +324,7 @@ import { accountTerminalApplicationsGetConfiguration } from "@moovio/sdk/funcs/a
|
|
|
330
324
|
// Use `MoovCore` for best tree-shaking performance.
|
|
331
325
|
// You can create one instance of it to use across an application.
|
|
332
326
|
const moov = new MoovCore({
|
|
327
|
+
xMoovVersion: "v2024.01.00",
|
|
333
328
|
security: {
|
|
334
329
|
username: "",
|
|
335
330
|
password: "",
|
|
@@ -341,15 +336,12 @@ async function run() {
|
|
|
341
336
|
accountID: "76d4c8a0-1f2b-4e3b-8f5c-7a9e1b2c3d4e",
|
|
342
337
|
terminalApplicationID: "12345678-1234-1234-1234-123456789012",
|
|
343
338
|
});
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
339
|
+
if (res.ok) {
|
|
340
|
+
const { value: result } = res;
|
|
341
|
+
console.log(result);
|
|
342
|
+
} else {
|
|
343
|
+
console.log("accountTerminalApplicationsGetConfiguration failed:", res.error);
|
|
347
344
|
}
|
|
348
|
-
|
|
349
|
-
const { value: result } = res;
|
|
350
|
-
|
|
351
|
-
// Handle the result
|
|
352
|
-
console.log(result);
|
|
353
345
|
}
|
|
354
346
|
|
|
355
347
|
run();
|
|
@@ -27,6 +27,7 @@ you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
|
27
27
|
import { Moov } from "@moovio/sdk";
|
|
28
28
|
|
|
29
29
|
const moov = new Moov({
|
|
30
|
+
xMoovVersion: "v2024.01.00",
|
|
30
31
|
security: {
|
|
31
32
|
username: "",
|
|
32
33
|
password: "",
|
|
@@ -38,7 +39,6 @@ async function run() {
|
|
|
38
39
|
accountID: "c054f3a6-d542-4310-a955-830739f800f0",
|
|
39
40
|
});
|
|
40
41
|
|
|
41
|
-
// Handle the result
|
|
42
42
|
console.log(result);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -56,6 +56,7 @@ import { adjustmentsList } from "@moovio/sdk/funcs/adjustmentsList.js";
|
|
|
56
56
|
// Use `MoovCore` for best tree-shaking performance.
|
|
57
57
|
// You can create one instance of it to use across an application.
|
|
58
58
|
const moov = new MoovCore({
|
|
59
|
+
xMoovVersion: "v2024.01.00",
|
|
59
60
|
security: {
|
|
60
61
|
username: "",
|
|
61
62
|
password: "",
|
|
@@ -66,15 +67,12 @@ async function run() {
|
|
|
66
67
|
const res = await adjustmentsList(moov, {
|
|
67
68
|
accountID: "c054f3a6-d542-4310-a955-830739f800f0",
|
|
68
69
|
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
if (res.ok) {
|
|
71
|
+
const { value: result } = res;
|
|
72
|
+
console.log(result);
|
|
73
|
+
} else {
|
|
74
|
+
console.log("adjustmentsList failed:", res.error);
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
const { value: result } = res;
|
|
75
|
-
|
|
76
|
-
// Handle the result
|
|
77
|
-
console.log(result);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
run();
|
|
@@ -112,6 +110,7 @@ you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
|
112
110
|
import { Moov } from "@moovio/sdk";
|
|
113
111
|
|
|
114
112
|
const moov = new Moov({
|
|
113
|
+
xMoovVersion: "v2024.01.00",
|
|
115
114
|
security: {
|
|
116
115
|
username: "",
|
|
117
116
|
password: "",
|
|
@@ -124,7 +123,6 @@ async function run() {
|
|
|
124
123
|
adjustmentID: "cbe4a8e7-605f-4667-a308-1afde85cd7a5",
|
|
125
124
|
});
|
|
126
125
|
|
|
127
|
-
// Handle the result
|
|
128
126
|
console.log(result);
|
|
129
127
|
}
|
|
130
128
|
|
|
@@ -142,6 +140,7 @@ import { adjustmentsGet } from "@moovio/sdk/funcs/adjustmentsGet.js";
|
|
|
142
140
|
// Use `MoovCore` for best tree-shaking performance.
|
|
143
141
|
// You can create one instance of it to use across an application.
|
|
144
142
|
const moov = new MoovCore({
|
|
143
|
+
xMoovVersion: "v2024.01.00",
|
|
145
144
|
security: {
|
|
146
145
|
username: "",
|
|
147
146
|
password: "",
|
|
@@ -153,15 +152,12 @@ async function run() {
|
|
|
153
152
|
accountID: "3ef4e658-8aaa-449f-a7a4-95a6839172a1",
|
|
154
153
|
adjustmentID: "cbe4a8e7-605f-4667-a308-1afde85cd7a5",
|
|
155
154
|
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
if (res.ok) {
|
|
156
|
+
const { value: result } = res;
|
|
157
|
+
console.log(result);
|
|
158
|
+
} else {
|
|
159
|
+
console.log("adjustmentsGet failed:", res.error);
|
|
159
160
|
}
|
|
160
|
-
|
|
161
|
-
const { value: result } = res;
|
|
162
|
-
|
|
163
|
-
// Handle the result
|
|
164
|
-
console.log(result);
|
|
165
161
|
}
|
|
166
162
|
|
|
167
163
|
run();
|