@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
|
@@ -39,6 +39,7 @@ you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
|
39
39
|
import { Moov } from "@moovio/sdk";
|
|
40
40
|
|
|
41
41
|
const moov = new Moov({
|
|
42
|
+
xMoovVersion: "v2024.01.00",
|
|
42
43
|
security: {
|
|
43
44
|
username: "",
|
|
44
45
|
password: "",
|
|
@@ -50,7 +51,6 @@ async function run() {
|
|
|
50
51
|
accountID: "1a50ab1c-1714-49e7-a016-cea17b33511a",
|
|
51
52
|
});
|
|
52
53
|
|
|
53
|
-
// Handle the result
|
|
54
54
|
console.log(result);
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -68,6 +68,7 @@ import { capabilitiesList } from "@moovio/sdk/funcs/capabilitiesList.js";
|
|
|
68
68
|
// Use `MoovCore` for best tree-shaking performance.
|
|
69
69
|
// You can create one instance of it to use across an application.
|
|
70
70
|
const moov = new MoovCore({
|
|
71
|
+
xMoovVersion: "v2024.01.00",
|
|
71
72
|
security: {
|
|
72
73
|
username: "",
|
|
73
74
|
password: "",
|
|
@@ -78,15 +79,12 @@ async function run() {
|
|
|
78
79
|
const res = await capabilitiesList(moov, {
|
|
79
80
|
accountID: "1a50ab1c-1714-49e7-a016-cea17b33511a",
|
|
80
81
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
if (res.ok) {
|
|
83
|
+
const { value: result } = res;
|
|
84
|
+
console.log(result);
|
|
85
|
+
} else {
|
|
86
|
+
console.log("capabilitiesList failed:", res.error);
|
|
84
87
|
}
|
|
85
|
-
|
|
86
|
-
const { value: result } = res;
|
|
87
|
-
|
|
88
|
-
// Handle the result
|
|
89
|
-
console.log(result);
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
run();
|
|
@@ -124,6 +122,7 @@ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
|
124
122
|
import { Moov } from "@moovio/sdk";
|
|
125
123
|
|
|
126
124
|
const moov = new Moov({
|
|
125
|
+
xMoovVersion: "v2024.01.00",
|
|
127
126
|
security: {
|
|
128
127
|
username: "",
|
|
129
128
|
password: "",
|
|
@@ -140,7 +139,6 @@ async function run() {
|
|
|
140
139
|
},
|
|
141
140
|
});
|
|
142
141
|
|
|
143
|
-
// Handle the result
|
|
144
142
|
console.log(result);
|
|
145
143
|
}
|
|
146
144
|
|
|
@@ -158,6 +156,7 @@ import { capabilitiesRequest } from "@moovio/sdk/funcs/capabilitiesRequest.js";
|
|
|
158
156
|
// Use `MoovCore` for best tree-shaking performance.
|
|
159
157
|
// You can create one instance of it to use across an application.
|
|
160
158
|
const moov = new MoovCore({
|
|
159
|
+
xMoovVersion: "v2024.01.00",
|
|
161
160
|
security: {
|
|
162
161
|
username: "",
|
|
163
162
|
password: "",
|
|
@@ -173,15 +172,12 @@ async function run() {
|
|
|
173
172
|
],
|
|
174
173
|
},
|
|
175
174
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
if (res.ok) {
|
|
176
|
+
const { value: result } = res;
|
|
177
|
+
console.log(result);
|
|
178
|
+
} else {
|
|
179
|
+
console.log("capabilitiesRequest failed:", res.error);
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
const { value: result } = res;
|
|
182
|
-
|
|
183
|
-
// Handle the result
|
|
184
|
-
console.log(result);
|
|
185
181
|
}
|
|
186
182
|
|
|
187
183
|
run();
|
|
@@ -221,6 +217,7 @@ you'll need to specify the `/accounts/{accountID}/capabilities.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
|
capabilityID: "send-funds",
|
|
234
231
|
});
|
|
235
232
|
|
|
236
|
-
// Handle the result
|
|
237
233
|
console.log(result);
|
|
238
234
|
}
|
|
239
235
|
|
|
@@ -251,6 +247,7 @@ import { capabilitiesGet } from "@moovio/sdk/funcs/capabilitiesGet.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: "c1697ea6-c984-4ba1-9b81-93e5e18660af",
|
|
263
260
|
capabilityID: "send-funds",
|
|
264
261
|
});
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
if (res.ok) {
|
|
263
|
+
const { value: result } = res;
|
|
264
|
+
console.log(result);
|
|
265
|
+
} else {
|
|
266
|
+
console.log("capabilitiesGet 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();
|
|
@@ -308,6 +302,7 @@ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
|
308
302
|
import { Moov } from "@moovio/sdk";
|
|
309
303
|
|
|
310
304
|
const moov = new Moov({
|
|
305
|
+
xMoovVersion: "v2024.01.00",
|
|
311
306
|
security: {
|
|
312
307
|
username: "",
|
|
313
308
|
password: "",
|
|
@@ -320,7 +315,6 @@ async function run() {
|
|
|
320
315
|
capabilityID: "transfers",
|
|
321
316
|
});
|
|
322
317
|
|
|
323
|
-
// Handle the result
|
|
324
318
|
console.log(result);
|
|
325
319
|
}
|
|
326
320
|
|
|
@@ -338,6 +332,7 @@ import { capabilitiesDisable } from "@moovio/sdk/funcs/capabilitiesDisable.js";
|
|
|
338
332
|
// Use `MoovCore` for best tree-shaking performance.
|
|
339
333
|
// You can create one instance of it to use across an application.
|
|
340
334
|
const moov = new MoovCore({
|
|
335
|
+
xMoovVersion: "v2024.01.00",
|
|
341
336
|
security: {
|
|
342
337
|
username: "",
|
|
343
338
|
password: "",
|
|
@@ -349,15 +344,12 @@ async function run() {
|
|
|
349
344
|
accountID: "2be80c4e-d409-49ea-8a8a-76dfa4006d69",
|
|
350
345
|
capabilityID: "transfers",
|
|
351
346
|
});
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
347
|
+
if (res.ok) {
|
|
348
|
+
const { value: result } = res;
|
|
349
|
+
console.log(result);
|
|
350
|
+
} else {
|
|
351
|
+
console.log("capabilitiesDisable failed:", res.error);
|
|
355
352
|
}
|
|
356
|
-
|
|
357
|
-
const { value: result } = res;
|
|
358
|
-
|
|
359
|
-
// Handle the result
|
|
360
|
-
console.log(result);
|
|
361
353
|
}
|
|
362
354
|
|
|
363
355
|
run();
|
|
@@ -41,6 +41,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
|
41
41
|
import { Moov } from "@moovio/sdk";
|
|
42
42
|
|
|
43
43
|
const moov = new Moov({
|
|
44
|
+
xMoovVersion: "v2024.01.00",
|
|
44
45
|
security: {
|
|
45
46
|
username: "",
|
|
46
47
|
password: "",
|
|
@@ -77,7 +78,6 @@ async function run() {
|
|
|
77
78
|
},
|
|
78
79
|
});
|
|
79
80
|
|
|
80
|
-
// Handle the result
|
|
81
81
|
console.log(result);
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -95,6 +95,7 @@ import { cardIssuingRequest } from "@moovio/sdk/funcs/cardIssuingRequest.js";
|
|
|
95
95
|
// Use `MoovCore` for best tree-shaking performance.
|
|
96
96
|
// You can create one instance of it to use across an application.
|
|
97
97
|
const moov = new MoovCore({
|
|
98
|
+
xMoovVersion: "v2024.01.00",
|
|
98
99
|
security: {
|
|
99
100
|
username: "",
|
|
100
101
|
password: "",
|
|
@@ -130,15 +131,12 @@ async function run() {
|
|
|
130
131
|
},
|
|
131
132
|
},
|
|
132
133
|
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
if (res.ok) {
|
|
135
|
+
const { value: result } = res;
|
|
136
|
+
console.log(result);
|
|
137
|
+
} else {
|
|
138
|
+
console.log("cardIssuingRequest failed:", res.error);
|
|
136
139
|
}
|
|
137
|
-
|
|
138
|
-
const { value: result } = res;
|
|
139
|
-
|
|
140
|
-
// Handle the result
|
|
141
|
-
console.log(result);
|
|
142
140
|
}
|
|
143
141
|
|
|
144
142
|
run();
|
|
@@ -178,6 +176,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
|
178
176
|
import { Moov } from "@moovio/sdk";
|
|
179
177
|
|
|
180
178
|
const moov = new Moov({
|
|
179
|
+
xMoovVersion: "v2024.01.00",
|
|
181
180
|
security: {
|
|
182
181
|
username: "",
|
|
183
182
|
password: "",
|
|
@@ -191,7 +190,6 @@ async function run() {
|
|
|
191
190
|
count: 20,
|
|
192
191
|
});
|
|
193
192
|
|
|
194
|
-
// Handle the result
|
|
195
193
|
console.log(result);
|
|
196
194
|
}
|
|
197
195
|
|
|
@@ -209,6 +207,7 @@ import { cardIssuingList } from "@moovio/sdk/funcs/cardIssuingList.js";
|
|
|
209
207
|
// Use `MoovCore` for best tree-shaking performance.
|
|
210
208
|
// You can create one instance of it to use across an application.
|
|
211
209
|
const moov = new MoovCore({
|
|
210
|
+
xMoovVersion: "v2024.01.00",
|
|
212
211
|
security: {
|
|
213
212
|
username: "",
|
|
214
213
|
password: "",
|
|
@@ -221,15 +220,12 @@ async function run() {
|
|
|
221
220
|
skip: 60,
|
|
222
221
|
count: 20,
|
|
223
222
|
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
if (res.ok) {
|
|
224
|
+
const { value: result } = res;
|
|
225
|
+
console.log(result);
|
|
226
|
+
} else {
|
|
227
|
+
console.log("cardIssuingList failed:", res.error);
|
|
227
228
|
}
|
|
228
|
-
|
|
229
|
-
const { value: result } = res;
|
|
230
|
-
|
|
231
|
-
// Handle the result
|
|
232
|
-
console.log(result);
|
|
233
229
|
}
|
|
234
230
|
|
|
235
231
|
run();
|
|
@@ -267,6 +263,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
|
267
263
|
import { Moov } from "@moovio/sdk";
|
|
268
264
|
|
|
269
265
|
const moov = new Moov({
|
|
266
|
+
xMoovVersion: "v2024.01.00",
|
|
270
267
|
security: {
|
|
271
268
|
username: "",
|
|
272
269
|
password: "",
|
|
@@ -279,7 +276,6 @@ async function run() {
|
|
|
279
276
|
issuedCardID: "d04885c9-ea6b-43a7-9186-63d9fbd57716",
|
|
280
277
|
});
|
|
281
278
|
|
|
282
|
-
// Handle the result
|
|
283
279
|
console.log(result);
|
|
284
280
|
}
|
|
285
281
|
|
|
@@ -297,6 +293,7 @@ import { cardIssuingGet } from "@moovio/sdk/funcs/cardIssuingGet.js";
|
|
|
297
293
|
// Use `MoovCore` for best tree-shaking performance.
|
|
298
294
|
// You can create one instance of it to use across an application.
|
|
299
295
|
const moov = new MoovCore({
|
|
296
|
+
xMoovVersion: "v2024.01.00",
|
|
300
297
|
security: {
|
|
301
298
|
username: "",
|
|
302
299
|
password: "",
|
|
@@ -308,15 +305,12 @@ async function run() {
|
|
|
308
305
|
accountID: "4fde8da4-b6c5-4379-82a2-4ff6a742e41a",
|
|
309
306
|
issuedCardID: "d04885c9-ea6b-43a7-9186-63d9fbd57716",
|
|
310
307
|
});
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
308
|
+
if (res.ok) {
|
|
309
|
+
const { value: result } = res;
|
|
310
|
+
console.log(result);
|
|
311
|
+
} else {
|
|
312
|
+
console.log("cardIssuingGet failed:", res.error);
|
|
314
313
|
}
|
|
315
|
-
|
|
316
|
-
const { value: result } = res;
|
|
317
|
-
|
|
318
|
-
// Handle the result
|
|
319
|
-
console.log(result);
|
|
320
314
|
}
|
|
321
315
|
|
|
322
316
|
run();
|
|
@@ -354,6 +348,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
|
354
348
|
import { Moov } from "@moovio/sdk";
|
|
355
349
|
|
|
356
350
|
const moov = new Moov({
|
|
351
|
+
xMoovVersion: "v2024.01.00",
|
|
357
352
|
security: {
|
|
358
353
|
username: "",
|
|
359
354
|
password: "",
|
|
@@ -375,7 +370,6 @@ async function run() {
|
|
|
375
370
|
},
|
|
376
371
|
});
|
|
377
372
|
|
|
378
|
-
// Handle the result
|
|
379
373
|
console.log(result);
|
|
380
374
|
}
|
|
381
375
|
|
|
@@ -393,6 +387,7 @@ import { cardIssuingUpdate } from "@moovio/sdk/funcs/cardIssuingUpdate.js";
|
|
|
393
387
|
// Use `MoovCore` for best tree-shaking performance.
|
|
394
388
|
// You can create one instance of it to use across an application.
|
|
395
389
|
const moov = new MoovCore({
|
|
390
|
+
xMoovVersion: "v2024.01.00",
|
|
396
391
|
security: {
|
|
397
392
|
username: "",
|
|
398
393
|
password: "",
|
|
@@ -413,15 +408,12 @@ async function run() {
|
|
|
413
408
|
},
|
|
414
409
|
},
|
|
415
410
|
});
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
411
|
+
if (res.ok) {
|
|
412
|
+
const { value: result } = res;
|
|
413
|
+
console.log(result);
|
|
414
|
+
} else {
|
|
415
|
+
console.log("cardIssuingUpdate failed:", res.error);
|
|
419
416
|
}
|
|
420
|
-
|
|
421
|
-
const { value: result } = res;
|
|
422
|
-
|
|
423
|
-
// Handle the result
|
|
424
|
-
console.log(result);
|
|
425
417
|
}
|
|
426
418
|
|
|
427
419
|
run();
|
|
@@ -463,6 +455,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scop
|
|
|
463
455
|
import { Moov } from "@moovio/sdk";
|
|
464
456
|
|
|
465
457
|
const moov = new Moov({
|
|
458
|
+
xMoovVersion: "v2024.01.00",
|
|
466
459
|
security: {
|
|
467
460
|
username: "",
|
|
468
461
|
password: "",
|
|
@@ -475,7 +468,6 @@ async function run() {
|
|
|
475
468
|
issuedCardID: "087ecc51-11fe-4471-a3bb-44f20c1e87a9",
|
|
476
469
|
});
|
|
477
470
|
|
|
478
|
-
// Handle the result
|
|
479
471
|
console.log(result);
|
|
480
472
|
}
|
|
481
473
|
|
|
@@ -493,6 +485,7 @@ import { cardIssuingGetFull } from "@moovio/sdk/funcs/cardIssuingGetFull.js";
|
|
|
493
485
|
// Use `MoovCore` for best tree-shaking performance.
|
|
494
486
|
// You can create one instance of it to use across an application.
|
|
495
487
|
const moov = new MoovCore({
|
|
488
|
+
xMoovVersion: "v2024.01.00",
|
|
496
489
|
security: {
|
|
497
490
|
username: "",
|
|
498
491
|
password: "",
|
|
@@ -504,15 +497,12 @@ async function run() {
|
|
|
504
497
|
accountID: "512052fb-5e2c-4d24-98dd-fa893c9d8a03",
|
|
505
498
|
issuedCardID: "087ecc51-11fe-4471-a3bb-44f20c1e87a9",
|
|
506
499
|
});
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
500
|
+
if (res.ok) {
|
|
501
|
+
const { value: result } = res;
|
|
502
|
+
console.log(result);
|
|
503
|
+
} else {
|
|
504
|
+
console.log("cardIssuingGetFull failed:", res.error);
|
|
510
505
|
}
|
|
511
|
-
|
|
512
|
-
const { value: result } = res;
|
|
513
|
-
|
|
514
|
-
// Handle the result
|
|
515
|
-
console.log(result);
|
|
516
506
|
}
|
|
517
507
|
|
|
518
508
|
run();
|
|
@@ -80,6 +80,7 @@ you'll need to specify the `/accounts/{accountID}/cards.write` scope.
|
|
|
80
80
|
import { Moov } from "@moovio/sdk";
|
|
81
81
|
|
|
82
82
|
const moov = new Moov({
|
|
83
|
+
xMoovVersion: "v2024.01.00",
|
|
83
84
|
security: {
|
|
84
85
|
username: "",
|
|
85
86
|
password: "",
|
|
@@ -104,7 +105,6 @@ async function run() {
|
|
|
104
105
|
},
|
|
105
106
|
});
|
|
106
107
|
|
|
107
|
-
// Handle the result
|
|
108
108
|
console.log(result);
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -122,6 +122,7 @@ import { cardsLink } from "@moovio/sdk/funcs/cardsLink.js";
|
|
|
122
122
|
// Use `MoovCore` for best tree-shaking performance.
|
|
123
123
|
// You can create one instance of it to use across an application.
|
|
124
124
|
const moov = new MoovCore({
|
|
125
|
+
xMoovVersion: "v2024.01.00",
|
|
125
126
|
security: {
|
|
126
127
|
username: "",
|
|
127
128
|
password: "",
|
|
@@ -145,15 +146,12 @@ async function run() {
|
|
|
145
146
|
},
|
|
146
147
|
},
|
|
147
148
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
if (res.ok) {
|
|
150
|
+
const { value: result } = res;
|
|
151
|
+
console.log(result);
|
|
152
|
+
} else {
|
|
153
|
+
console.log("cardsLink failed:", res.error);
|
|
151
154
|
}
|
|
152
|
-
|
|
153
|
-
const { value: result } = res;
|
|
154
|
-
|
|
155
|
-
// Handle the result
|
|
156
|
-
console.log(result);
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
run();
|
|
@@ -195,6 +193,7 @@ you'll need to specify the `/accounts/{accountID}/cards.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: "",
|
|
@@ -206,7 +205,6 @@ async function run() {
|
|
|
206
205
|
accountID: "b902712f-8ab9-47ba-b39f-5ccfbcac528c",
|
|
207
206
|
});
|
|
208
207
|
|
|
209
|
-
// Handle the result
|
|
210
208
|
console.log(result);
|
|
211
209
|
}
|
|
212
210
|
|
|
@@ -224,6 +222,7 @@ import { cardsList } from "@moovio/sdk/funcs/cardsList.js";
|
|
|
224
222
|
// Use `MoovCore` for best tree-shaking performance.
|
|
225
223
|
// You can create one instance of it to use across an application.
|
|
226
224
|
const moov = new MoovCore({
|
|
225
|
+
xMoovVersion: "v2024.01.00",
|
|
227
226
|
security: {
|
|
228
227
|
username: "",
|
|
229
228
|
password: "",
|
|
@@ -234,15 +233,12 @@ async function run() {
|
|
|
234
233
|
const res = await cardsList(moov, {
|
|
235
234
|
accountID: "b902712f-8ab9-47ba-b39f-5ccfbcac528c",
|
|
236
235
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
if (res.ok) {
|
|
237
|
+
const { value: result } = res;
|
|
238
|
+
console.log(result);
|
|
239
|
+
} else {
|
|
240
|
+
console.log("cardsList failed:", res.error);
|
|
240
241
|
}
|
|
241
|
-
|
|
242
|
-
const { value: result } = res;
|
|
243
|
-
|
|
244
|
-
// Handle the result
|
|
245
|
-
console.log(result);
|
|
246
242
|
}
|
|
247
243
|
|
|
248
244
|
run();
|
|
@@ -282,6 +278,7 @@ you'll need to specify the `/accounts/{accountID}/cards.read` scope.
|
|
|
282
278
|
import { Moov } from "@moovio/sdk";
|
|
283
279
|
|
|
284
280
|
const moov = new Moov({
|
|
281
|
+
xMoovVersion: "v2024.01.00",
|
|
285
282
|
security: {
|
|
286
283
|
username: "",
|
|
287
284
|
password: "",
|
|
@@ -294,7 +291,6 @@ async function run() {
|
|
|
294
291
|
cardID: "01234567-89ab-cdef-0123-456789abcdef",
|
|
295
292
|
});
|
|
296
293
|
|
|
297
|
-
// Handle the result
|
|
298
294
|
console.log(result);
|
|
299
295
|
}
|
|
300
296
|
|
|
@@ -312,6 +308,7 @@ import { cardsGet } from "@moovio/sdk/funcs/cardsGet.js";
|
|
|
312
308
|
// Use `MoovCore` for best tree-shaking performance.
|
|
313
309
|
// You can create one instance of it to use across an application.
|
|
314
310
|
const moov = new MoovCore({
|
|
311
|
+
xMoovVersion: "v2024.01.00",
|
|
315
312
|
security: {
|
|
316
313
|
username: "",
|
|
317
314
|
password: "",
|
|
@@ -323,15 +320,12 @@ async function run() {
|
|
|
323
320
|
accountID: "1f590cf9-4db9-4241-8818-30f9c26362e8",
|
|
324
321
|
cardID: "01234567-89ab-cdef-0123-456789abcdef",
|
|
325
322
|
});
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
323
|
+
if (res.ok) {
|
|
324
|
+
const { value: result } = res;
|
|
325
|
+
console.log(result);
|
|
326
|
+
} else {
|
|
327
|
+
console.log("cardsGet 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();
|
|
@@ -378,6 +372,7 @@ you'll need to specify the `/accounts/{accountID}/cards.write` scope.
|
|
|
378
372
|
import { Moov } from "@moovio/sdk";
|
|
379
373
|
|
|
380
374
|
const moov = new Moov({
|
|
375
|
+
xMoovVersion: "v2024.01.00",
|
|
381
376
|
security: {
|
|
382
377
|
username: "",
|
|
383
378
|
password: "",
|
|
@@ -393,7 +388,6 @@ async function run() {
|
|
|
393
388
|
},
|
|
394
389
|
});
|
|
395
390
|
|
|
396
|
-
// Handle the result
|
|
397
391
|
console.log(result);
|
|
398
392
|
}
|
|
399
393
|
|
|
@@ -411,6 +405,7 @@ import { cardsUpdate } from "@moovio/sdk/funcs/cardsUpdate.js";
|
|
|
411
405
|
// Use `MoovCore` for best tree-shaking performance.
|
|
412
406
|
// You can create one instance of it to use across an application.
|
|
413
407
|
const moov = new MoovCore({
|
|
408
|
+
xMoovVersion: "v2024.01.00",
|
|
414
409
|
security: {
|
|
415
410
|
username: "",
|
|
416
411
|
password: "",
|
|
@@ -425,15 +420,12 @@ async function run() {
|
|
|
425
420
|
cardCvv: "456",
|
|
426
421
|
},
|
|
427
422
|
});
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
423
|
+
if (res.ok) {
|
|
424
|
+
const { value: result } = res;
|
|
425
|
+
console.log(result);
|
|
426
|
+
} else {
|
|
427
|
+
console.log("cardsUpdate 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();
|
|
@@ -473,6 +465,7 @@ you'll need to specify the `/accounts/{accountID}/cards.write` scope.
|
|
|
473
465
|
import { Moov } from "@moovio/sdk";
|
|
474
466
|
|
|
475
467
|
const moov = new Moov({
|
|
468
|
+
xMoovVersion: "v2024.01.00",
|
|
476
469
|
security: {
|
|
477
470
|
username: "",
|
|
478
471
|
password: "",
|
|
@@ -485,7 +478,6 @@ async function run() {
|
|
|
485
478
|
cardID: "01234567-89ab-cdef-0123-456789abcdef",
|
|
486
479
|
});
|
|
487
480
|
|
|
488
|
-
// Handle the result
|
|
489
481
|
console.log(result);
|
|
490
482
|
}
|
|
491
483
|
|
|
@@ -503,6 +495,7 @@ import { cardsDisable } from "@moovio/sdk/funcs/cardsDisable.js";
|
|
|
503
495
|
// Use `MoovCore` for best tree-shaking performance.
|
|
504
496
|
// You can create one instance of it to use across an application.
|
|
505
497
|
const moov = new MoovCore({
|
|
498
|
+
xMoovVersion: "v2024.01.00",
|
|
506
499
|
security: {
|
|
507
500
|
username: "",
|
|
508
501
|
password: "",
|
|
@@ -514,15 +507,12 @@ async function run() {
|
|
|
514
507
|
accountID: "bbd12cb2-58f4-46e5-861d-1e6c4617c0c2",
|
|
515
508
|
cardID: "01234567-89ab-cdef-0123-456789abcdef",
|
|
516
509
|
});
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
510
|
+
if (res.ok) {
|
|
511
|
+
const { value: result } = res;
|
|
512
|
+
console.log(result);
|
|
513
|
+
} else {
|
|
514
|
+
console.log("cardsDisable failed:", res.error);
|
|
520
515
|
}
|
|
521
|
-
|
|
522
|
-
const { value: result } = res;
|
|
523
|
-
|
|
524
|
-
// Handle the result
|
|
525
|
-
console.log(result);
|
|
526
516
|
}
|
|
527
517
|
|
|
528
518
|
run();
|