@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.
Files changed (118) hide show
  1. package/FUNCTIONS.md +6 -22
  2. package/README.md +97 -55
  3. package/bin/mcp-server.js +749 -415
  4. package/bin/mcp-server.js.map +19 -9
  5. package/docs/sdks/accounts/README.md +63 -81
  6. package/docs/sdks/accountterminalapplications/README.md +28 -36
  7. package/docs/sdks/adjustments/README.md +14 -18
  8. package/docs/sdks/applepay/README.md +35 -45
  9. package/docs/sdks/authentication/README.md +14 -18
  10. package/docs/sdks/avatars/README.md +7 -9
  11. package/docs/sdks/bankaccounts/README.md +63 -81
  12. package/docs/sdks/branding/README.md +28 -36
  13. package/docs/sdks/capabilities/README.md +28 -36
  14. package/docs/sdks/cardissuing/README.md +35 -45
  15. package/docs/sdks/cards/README.md +35 -45
  16. package/docs/sdks/disputes/README.md +77 -99
  17. package/docs/sdks/endtoendencryption/README.md +14 -18
  18. package/docs/sdks/enrichedaddress/README.md +7 -9
  19. package/docs/sdks/enrichedprofile/README.md +7 -9
  20. package/docs/sdks/feeplans/README.md +49 -63
  21. package/docs/sdks/files/README.md +21 -27
  22. package/docs/sdks/industries/README.md +7 -9
  23. package/docs/sdks/institutions/README.md +98 -9
  24. package/docs/sdks/issuingtransactions/README.md +35 -45
  25. package/docs/sdks/onboarding/README.md +28 -36
  26. package/docs/sdks/paymentlinks/README.md +42 -54
  27. package/docs/sdks/paymentmethods/README.md +14 -18
  28. package/docs/sdks/ping/README.md +7 -9
  29. package/docs/sdks/receipts/README.md +14 -18
  30. package/docs/sdks/representatives/README.md +35 -45
  31. package/docs/sdks/scheduling/README.md +42 -54
  32. package/docs/sdks/sweeps/README.md +42 -54
  33. package/docs/sdks/terminalapplications/README.md +28 -36
  34. package/docs/sdks/transfers/README.md +77 -99
  35. package/docs/sdks/underwriting/README.md +14 -18
  36. package/docs/sdks/wallets/README.md +14 -18
  37. package/docs/sdks/wallettransactions/README.md +14 -18
  38. package/funcs/institutionsSearchInstitutions.d.ts +20 -0
  39. package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
  40. package/funcs/institutionsSearchInstitutions.js +129 -0
  41. package/funcs/institutionsSearchInstitutions.js.map +1 -0
  42. package/jsr.json +1 -1
  43. package/lib/config.d.ts +3 -3
  44. package/lib/config.js +3 -3
  45. package/mcp-server/mcp-server.js +1 -1
  46. package/mcp-server/server.d.ts.map +1 -1
  47. package/mcp-server/server.js +3 -1
  48. package/mcp-server/server.js.map +1 -1
  49. package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
  50. package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
  51. package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
  52. package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
  53. package/models/components/achinstitution.d.ts +40 -0
  54. package/models/components/achinstitution.d.ts.map +1 -0
  55. package/models/components/achinstitution.js +77 -0
  56. package/models/components/achinstitution.js.map +1 -0
  57. package/models/components/contact.d.ts +30 -0
  58. package/models/components/contact.d.ts.map +1 -0
  59. package/models/components/contact.js +70 -0
  60. package/models/components/contact.js.map +1 -0
  61. package/models/components/index.d.ts +7 -0
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +7 -0
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/institutionssearchresponse.d.ts +36 -0
  66. package/models/components/institutionssearchresponse.d.ts.map +1 -0
  67. package/models/components/institutionssearchresponse.js +76 -0
  68. package/models/components/institutionssearchresponse.js.map +1 -0
  69. package/models/components/rtpinstitution.d.ts +37 -0
  70. package/models/components/rtpinstitution.d.ts.map +1 -0
  71. package/models/components/rtpinstitution.js +74 -0
  72. package/models/components/rtpinstitution.js.map +1 -0
  73. package/models/components/rtpservices.d.ts +37 -0
  74. package/models/components/rtpservices.d.ts.map +1 -0
  75. package/models/components/rtpservices.js +71 -0
  76. package/models/components/rtpservices.js.map +1 -0
  77. package/models/components/wireinstitution.d.ts +40 -0
  78. package/models/components/wireinstitution.d.ts.map +1 -0
  79. package/models/components/wireinstitution.js +77 -0
  80. package/models/components/wireinstitution.js.map +1 -0
  81. package/models/components/wireservices.d.ts +42 -0
  82. package/models/components/wireservices.d.ts.map +1 -0
  83. package/models/components/wireservices.js +73 -0
  84. package/models/components/wireservices.js.map +1 -0
  85. package/models/errors/apierror.d.ts +14 -2
  86. package/models/errors/apierror.d.ts.map +1 -1
  87. package/models/errors/apierror.js +1 -1
  88. package/models/errors/apierror.js.map +1 -1
  89. package/models/operations/index.d.ts +1 -0
  90. package/models/operations/index.d.ts.map +1 -1
  91. package/models/operations/index.js +1 -0
  92. package/models/operations/index.js.map +1 -1
  93. package/models/operations/searchinstitutions.d.ts +112 -0
  94. package/models/operations/searchinstitutions.d.ts.map +1 -0
  95. package/models/operations/searchinstitutions.js +149 -0
  96. package/models/operations/searchinstitutions.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/institutions.d.ts +11 -0
  99. package/sdk/institutions.d.ts.map +1 -1
  100. package/sdk/institutions.js +14 -0
  101. package/sdk/institutions.js.map +1 -1
  102. package/src/funcs/institutionsSearchInstitutions.ts +179 -0
  103. package/src/lib/config.ts +3 -3
  104. package/src/mcp-server/mcp-server.ts +1 -1
  105. package/src/mcp-server/server.ts +3 -1
  106. package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
  107. package/src/models/components/achinstitution.ts +89 -0
  108. package/src/models/components/contact.ts +65 -0
  109. package/src/models/components/index.ts +7 -0
  110. package/src/models/components/institutionssearchresponse.ts +92 -0
  111. package/src/models/components/rtpinstitution.ts +79 -0
  112. package/src/models/components/rtpservices.ts +72 -0
  113. package/src/models/components/wireinstitution.ts +91 -0
  114. package/src/models/components/wireservices.ts +79 -0
  115. package/src/models/errors/apierror.ts +18 -3
  116. package/src/models/operations/index.ts +1 -0
  117. package/src/models/operations/searchinstitutions.ts +236 -0
  118. package/src/sdk/institutions.ts +22 -0
@@ -39,6 +39,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.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: "",
@@ -52,7 +53,6 @@ async function run() {
52
53
  count: 20,
53
54
  });
54
55
 
55
- // Handle the result
56
56
  console.log(result);
57
57
  }
58
58
 
@@ -70,6 +70,7 @@ import { issuingTransactionsListAuthorizations } from "@moovio/sdk/funcs/issuing
70
70
  // Use `MoovCore` for best tree-shaking performance.
71
71
  // You can create one instance of it to use across an application.
72
72
  const moov = new MoovCore({
73
+ xMoovVersion: "v2024.01.00",
73
74
  security: {
74
75
  username: "",
75
76
  password: "",
@@ -82,15 +83,12 @@ async function run() {
82
83
  skip: 60,
83
84
  count: 20,
84
85
  });
85
-
86
- if (!res.ok) {
87
- throw res.error;
86
+ if (res.ok) {
87
+ const { value: result } = res;
88
+ console.log(result);
89
+ } else {
90
+ console.log("issuingTransactionsListAuthorizations failed:", res.error);
88
91
  }
89
-
90
- const { value: result } = res;
91
-
92
- // Handle the result
93
- console.log(result);
94
92
  }
95
93
 
96
94
  run();
@@ -128,6 +126,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
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: "",
@@ -140,7 +139,6 @@ async function run() {
140
139
  authorizationID: "d9ee8dde-b1eb-492f-bea1-d8e09bccbc52",
141
140
  });
142
141
 
143
- // Handle the result
144
142
  console.log(result);
145
143
  }
146
144
 
@@ -158,6 +156,7 @@ import { issuingTransactionsGetAuthorization } from "@moovio/sdk/funcs/issuingTr
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: "",
@@ -169,15 +168,12 @@ async function run() {
169
168
  accountID: "0ccac2cc-6692-44a9-b0d1-35a1892c2db2",
170
169
  authorizationID: "d9ee8dde-b1eb-492f-bea1-d8e09bccbc52",
171
170
  });
172
-
173
- if (!res.ok) {
174
- throw res.error;
171
+ if (res.ok) {
172
+ const { value: result } = res;
173
+ console.log(result);
174
+ } else {
175
+ console.log("issuingTransactionsGetAuthorization failed:", res.error);
175
176
  }
176
-
177
- const { value: result } = res;
178
-
179
- // Handle the result
180
- console.log(result);
181
177
  }
182
178
 
183
179
  run();
@@ -215,6 +211,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
215
211
  import { Moov } from "@moovio/sdk";
216
212
 
217
213
  const moov = new Moov({
214
+ xMoovVersion: "v2024.01.00",
218
215
  security: {
219
216
  username: "",
220
217
  password: "",
@@ -229,7 +226,6 @@ async function run() {
229
226
  count: 20,
230
227
  });
231
228
 
232
- // Handle the result
233
229
  console.log(result);
234
230
  }
235
231
 
@@ -247,6 +243,7 @@ import { issuingTransactionsListAuthorizationEvents } from "@moovio/sdk/funcs/is
247
243
  // Use `MoovCore` for best tree-shaking performance.
248
244
  // You can create one instance of it to use across an application.
249
245
  const moov = new MoovCore({
246
+ xMoovVersion: "v2024.01.00",
250
247
  security: {
251
248
  username: "",
252
249
  password: "",
@@ -260,15 +257,12 @@ async function run() {
260
257
  skip: 60,
261
258
  count: 20,
262
259
  });
263
-
264
- if (!res.ok) {
265
- throw res.error;
260
+ if (res.ok) {
261
+ const { value: result } = res;
262
+ console.log(result);
263
+ } else {
264
+ console.log("issuingTransactionsListAuthorizationEvents failed:", res.error);
266
265
  }
267
-
268
- const { value: result } = res;
269
-
270
- // Handle the result
271
- console.log(result);
272
266
  }
273
267
 
274
268
  run();
@@ -306,6 +300,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
306
300
  import { Moov } from "@moovio/sdk";
307
301
 
308
302
  const moov = new Moov({
303
+ xMoovVersion: "v2024.01.00",
309
304
  security: {
310
305
  username: "",
311
306
  password: "",
@@ -319,7 +314,6 @@ async function run() {
319
314
  count: 20,
320
315
  });
321
316
 
322
- // Handle the result
323
317
  console.log(result);
324
318
  }
325
319
 
@@ -337,6 +331,7 @@ import { issuingTransactionsList } from "@moovio/sdk/funcs/issuingTransactionsLi
337
331
  // Use `MoovCore` for best tree-shaking performance.
338
332
  // You can create one instance of it to use across an application.
339
333
  const moov = new MoovCore({
334
+ xMoovVersion: "v2024.01.00",
340
335
  security: {
341
336
  username: "",
342
337
  password: "",
@@ -349,15 +344,12 @@ async function run() {
349
344
  skip: 60,
350
345
  count: 20,
351
346
  });
352
-
353
- if (!res.ok) {
354
- throw res.error;
347
+ if (res.ok) {
348
+ const { value: result } = res;
349
+ console.log(result);
350
+ } else {
351
+ console.log("issuingTransactionsList 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();
@@ -395,6 +387,7 @@ you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
395
387
  import { Moov } from "@moovio/sdk";
396
388
 
397
389
  const moov = new Moov({
390
+ xMoovVersion: "v2024.01.00",
398
391
  security: {
399
392
  username: "",
400
393
  password: "",
@@ -407,7 +400,6 @@ async function run() {
407
400
  cardTransactionID: "d5a1aab9-eb96-409a-ab95-88ac99cf00a5",
408
401
  });
409
402
 
410
- // Handle the result
411
403
  console.log(result);
412
404
  }
413
405
 
@@ -425,6 +417,7 @@ import { issuingTransactionsGet } from "@moovio/sdk/funcs/issuingTransactionsGet
425
417
  // Use `MoovCore` for best tree-shaking performance.
426
418
  // You can create one instance of it to use across an application.
427
419
  const moov = new MoovCore({
420
+ xMoovVersion: "v2024.01.00",
428
421
  security: {
429
422
  username: "",
430
423
  password: "",
@@ -436,15 +429,12 @@ async function run() {
436
429
  accountID: "b2b6e23c-a5aa-46a9-adb7-d12876e47288",
437
430
  cardTransactionID: "d5a1aab9-eb96-409a-ab95-88ac99cf00a5",
438
431
  });
439
-
440
- if (!res.ok) {
441
- throw res.error;
432
+ if (res.ok) {
433
+ const { value: result } = res;
434
+ console.log(result);
435
+ } else {
436
+ console.log("issuingTransactionsGet failed:", res.error);
442
437
  }
443
-
444
- const { value: result } = res;
445
-
446
- // Handle the result
447
- console.log(result);
448
438
  }
449
439
 
450
440
  run();
@@ -35,6 +35,7 @@ you'll need to specify the `/accounts.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: "",
@@ -62,7 +63,6 @@ async function run() {
62
63
  },
63
64
  });
64
65
 
65
- // Handle the result
66
66
  console.log(result);
67
67
  }
68
68
 
@@ -80,6 +80,7 @@ import { onboardingCreateInvite } from "@moovio/sdk/funcs/onboardingCreateInvite
80
80
  // Use `MoovCore` for best tree-shaking performance.
81
81
  // You can create one instance of it to use across an application.
82
82
  const moov = new MoovCore({
83
+ xMoovVersion: "v2024.01.00",
83
84
  security: {
84
85
  username: "",
85
86
  password: "",
@@ -106,15 +107,12 @@ async function run() {
106
107
  },
107
108
  },
108
109
  });
109
-
110
- if (!res.ok) {
111
- throw res.error;
110
+ if (res.ok) {
111
+ const { value: result } = res;
112
+ console.log(result);
113
+ } else {
114
+ console.log("onboardingCreateInvite failed:", res.error);
112
115
  }
113
-
114
- const { value: result } = res;
115
-
116
- // Handle the result
117
- console.log(result);
118
116
  }
119
117
 
120
118
  run();
@@ -154,6 +152,7 @@ you'll need to specify the `/accounts.read` scope.
154
152
  import { Moov } from "@moovio/sdk";
155
153
 
156
154
  const moov = new Moov({
155
+ xMoovVersion: "v2024.01.00",
157
156
  security: {
158
157
  username: "",
159
158
  password: "",
@@ -163,7 +162,6 @@ const moov = new Moov({
163
162
  async function run() {
164
163
  const result = await moov.onboarding.listInvites({});
165
164
 
166
- // Handle the result
167
165
  console.log(result);
168
166
  }
169
167
 
@@ -181,6 +179,7 @@ import { onboardingListInvites } from "@moovio/sdk/funcs/onboardingListInvites.j
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: "",
@@ -189,15 +188,12 @@ const moov = new MoovCore({
189
188
 
190
189
  async function run() {
191
190
  const res = await onboardingListInvites(moov, {});
192
-
193
- if (!res.ok) {
194
- throw res.error;
191
+ if (res.ok) {
192
+ const { value: result } = res;
193
+ console.log(result);
194
+ } else {
195
+ console.log("onboardingListInvites failed:", res.error);
195
196
  }
196
-
197
- const { value: result } = res;
198
-
199
- // Handle the result
200
- console.log(result);
201
197
  }
202
198
 
203
199
  run();
@@ -235,6 +231,7 @@ you'll need to specify the `/accounts.read` scope.
235
231
  import { Moov } from "@moovio/sdk";
236
232
 
237
233
  const moov = new Moov({
234
+ xMoovVersion: "v2024.01.00",
238
235
  security: {
239
236
  username: "",
240
237
  password: "",
@@ -246,7 +243,6 @@ async function run() {
246
243
  code: "N1IA5eWYNh",
247
244
  });
248
245
 
249
- // Handle the result
250
246
  console.log(result);
251
247
  }
252
248
 
@@ -264,6 +260,7 @@ import { onboardingGetInvite } from "@moovio/sdk/funcs/onboardingGetInvite.js";
264
260
  // Use `MoovCore` for best tree-shaking performance.
265
261
  // You can create one instance of it to use across an application.
266
262
  const moov = new MoovCore({
263
+ xMoovVersion: "v2024.01.00",
267
264
  security: {
268
265
  username: "",
269
266
  password: "",
@@ -274,15 +271,12 @@ async function run() {
274
271
  const res = await onboardingGetInvite(moov, {
275
272
  code: "N1IA5eWYNh",
276
273
  });
277
-
278
- if (!res.ok) {
279
- throw res.error;
274
+ if (res.ok) {
275
+ const { value: result } = res;
276
+ console.log(result);
277
+ } else {
278
+ console.log("onboardingGetInvite failed:", res.error);
280
279
  }
281
-
282
- const { value: result } = res;
283
-
284
- // Handle the result
285
- console.log(result);
286
280
  }
287
281
 
288
282
  run();
@@ -320,6 +314,7 @@ you'll need to specify the `/accounts.write` scope.
320
314
  import { Moov } from "@moovio/sdk";
321
315
 
322
316
  const moov = new Moov({
317
+ xMoovVersion: "v2024.01.00",
323
318
  security: {
324
319
  username: "",
325
320
  password: "",
@@ -331,7 +326,6 @@ async function run() {
331
326
  code: "N1IA5eWYNh",
332
327
  });
333
328
 
334
- // Handle the result
335
329
  console.log(result);
336
330
  }
337
331
 
@@ -349,6 +343,7 @@ import { onboardingRevokeInvite } from "@moovio/sdk/funcs/onboardingRevokeInvite
349
343
  // Use `MoovCore` for best tree-shaking performance.
350
344
  // You can create one instance of it to use across an application.
351
345
  const moov = new MoovCore({
346
+ xMoovVersion: "v2024.01.00",
352
347
  security: {
353
348
  username: "",
354
349
  password: "",
@@ -359,15 +354,12 @@ async function run() {
359
354
  const res = await onboardingRevokeInvite(moov, {
360
355
  code: "N1IA5eWYNh",
361
356
  });
362
-
363
- if (!res.ok) {
364
- throw res.error;
357
+ if (res.ok) {
358
+ const { value: result } = res;
359
+ console.log(result);
360
+ } else {
361
+ console.log("onboardingRevokeInvite 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();
@@ -45,6 +45,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
45
45
  import { Moov } from "@moovio/sdk";
46
46
 
47
47
  const moov = new Moov({
48
+ xMoovVersion: "v2024.01.00",
48
49
  security: {
49
50
  username: "",
50
51
  password: "",
@@ -78,7 +79,6 @@ async function run() {
78
79
  },
79
80
  });
80
81
 
81
- // Handle the result
82
82
  console.log(result);
83
83
  }
84
84
 
@@ -96,6 +96,7 @@ import { paymentLinksCreate } from "@moovio/sdk/funcs/paymentLinksCreate.js";
96
96
  // Use `MoovCore` for best tree-shaking performance.
97
97
  // You can create one instance of it to use across an application.
98
98
  const moov = new MoovCore({
99
+ xMoovVersion: "v2024.01.00",
99
100
  security: {
100
101
  username: "",
101
102
  password: "",
@@ -128,15 +129,12 @@ async function run() {
128
129
  },
129
130
  },
130
131
  });
131
-
132
- if (!res.ok) {
133
- throw res.error;
132
+ if (res.ok) {
133
+ const { value: result } = res;
134
+ console.log(result);
135
+ } else {
136
+ console.log("paymentLinksCreate failed:", res.error);
134
137
  }
135
-
136
- const { value: result } = res;
137
-
138
- // Handle the result
139
- console.log(result);
140
138
  }
141
139
 
142
140
  run();
@@ -176,6 +174,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
176
174
  import { Moov } from "@moovio/sdk";
177
175
 
178
176
  const moov = new Moov({
177
+ xMoovVersion: "v2024.01.00",
179
178
  security: {
180
179
  username: "",
181
180
  password: "",
@@ -187,7 +186,6 @@ async function run() {
187
186
  accountID: "d1039e6d-21ee-4a29-8adf-1dd2a6625a0d",
188
187
  });
189
188
 
190
- // Handle the result
191
189
  console.log(result);
192
190
  }
193
191
 
@@ -205,6 +203,7 @@ import { paymentLinksList } from "@moovio/sdk/funcs/paymentLinksList.js";
205
203
  // Use `MoovCore` for best tree-shaking performance.
206
204
  // You can create one instance of it to use across an application.
207
205
  const moov = new MoovCore({
206
+ xMoovVersion: "v2024.01.00",
208
207
  security: {
209
208
  username: "",
210
209
  password: "",
@@ -215,15 +214,12 @@ async function run() {
215
214
  const res = await paymentLinksList(moov, {
216
215
  accountID: "d1039e6d-21ee-4a29-8adf-1dd2a6625a0d",
217
216
  });
218
-
219
- if (!res.ok) {
220
- throw res.error;
217
+ if (res.ok) {
218
+ const { value: result } = res;
219
+ console.log(result);
220
+ } else {
221
+ console.log("paymentLinksList failed:", res.error);
221
222
  }
222
-
223
- const { value: result } = res;
224
-
225
- // Handle the result
226
- console.log(result);
227
223
  }
228
224
 
229
225
  run();
@@ -261,6 +257,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
261
257
  import { Moov } from "@moovio/sdk";
262
258
 
263
259
  const moov = new Moov({
260
+ xMoovVersion: "v2024.01.00",
264
261
  security: {
265
262
  username: "",
266
263
  password: "",
@@ -273,7 +270,6 @@ async function run() {
273
270
  paymentLinkCode: "uc7ZYKrMhi",
274
271
  });
275
272
 
276
- // Handle the result
277
273
  console.log(result);
278
274
  }
279
275
 
@@ -291,6 +287,7 @@ import { paymentLinksGet } from "@moovio/sdk/funcs/paymentLinksGet.js";
291
287
  // Use `MoovCore` for best tree-shaking performance.
292
288
  // You can create one instance of it to use across an application.
293
289
  const moov = new MoovCore({
290
+ xMoovVersion: "v2024.01.00",
294
291
  security: {
295
292
  username: "",
296
293
  password: "",
@@ -302,15 +299,12 @@ async function run() {
302
299
  accountID: "323f95b1-3798-4203-8a73-5c8668a9226e",
303
300
  paymentLinkCode: "uc7ZYKrMhi",
304
301
  });
305
-
306
- if (!res.ok) {
307
- throw res.error;
302
+ if (res.ok) {
303
+ const { value: result } = res;
304
+ console.log(result);
305
+ } else {
306
+ console.log("paymentLinksGet failed:", res.error);
308
307
  }
309
-
310
- const { value: result } = res;
311
-
312
- // Handle the result
313
- console.log(result);
314
308
  }
315
309
 
316
310
  run();
@@ -348,6 +342,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
348
342
  import { Moov } from "@moovio/sdk";
349
343
 
350
344
  const moov = new Moov({
345
+ xMoovVersion: "v2024.01.00",
351
346
  security: {
352
347
  username: "",
353
348
  password: "",
@@ -370,7 +365,6 @@ async function run() {
370
365
  },
371
366
  });
372
367
 
373
- // Handle the result
374
368
  console.log(result);
375
369
  }
376
370
 
@@ -388,6 +382,7 @@ import { paymentLinksUpdate } from "@moovio/sdk/funcs/paymentLinksUpdate.js";
388
382
  // Use `MoovCore` for best tree-shaking performance.
389
383
  // You can create one instance of it to use across an application.
390
384
  const moov = new MoovCore({
385
+ xMoovVersion: "v2024.01.00",
391
386
  security: {
392
387
  username: "",
393
388
  password: "",
@@ -409,15 +404,12 @@ async function run() {
409
404
  },
410
405
  },
411
406
  });
412
-
413
- if (!res.ok) {
414
- throw res.error;
407
+ if (res.ok) {
408
+ const { value: result } = res;
409
+ console.log(result);
410
+ } else {
411
+ console.log("paymentLinksUpdate failed:", res.error);
415
412
  }
416
-
417
- const { value: result } = res;
418
-
419
- // Handle the result
420
- console.log(result);
421
413
  }
422
414
 
423
415
  run();
@@ -457,6 +449,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
457
449
  import { Moov } from "@moovio/sdk";
458
450
 
459
451
  const moov = new Moov({
452
+ xMoovVersion: "v2024.01.00",
460
453
  security: {
461
454
  username: "",
462
455
  password: "",
@@ -469,7 +462,6 @@ async function run() {
469
462
  paymentLinkCode: "uc7ZYKrMhi",
470
463
  });
471
464
 
472
- // Handle the result
473
465
  console.log(result);
474
466
  }
475
467
 
@@ -487,6 +479,7 @@ import { paymentLinksDisable } from "@moovio/sdk/funcs/paymentLinksDisable.js";
487
479
  // Use `MoovCore` for best tree-shaking performance.
488
480
  // You can create one instance of it to use across an application.
489
481
  const moov = new MoovCore({
482
+ xMoovVersion: "v2024.01.00",
490
483
  security: {
491
484
  username: "",
492
485
  password: "",
@@ -498,15 +491,12 @@ async function run() {
498
491
  accountID: "c1cf000d-0dd9-4dec-bd5e-a88e135adf82",
499
492
  paymentLinkCode: "uc7ZYKrMhi",
500
493
  });
501
-
502
- if (!res.ok) {
503
- throw res.error;
494
+ if (res.ok) {
495
+ const { value: result } = res;
496
+ console.log(result);
497
+ } else {
498
+ console.log("paymentLinksDisable failed:", res.error);
504
499
  }
505
-
506
- const { value: result } = res;
507
-
508
- // Handle the result
509
- console.log(result);
510
500
  }
511
501
 
512
502
  run();
@@ -546,6 +536,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
546
536
  import { Moov } from "@moovio/sdk";
547
537
 
548
538
  const moov = new Moov({
539
+ xMoovVersion: "v2024.01.00",
549
540
  security: {
550
541
  username: "",
551
542
  password: "",
@@ -558,7 +549,6 @@ async function run() {
558
549
  paymentLinkCode: "uc7ZYKrMhi",
559
550
  });
560
551
 
561
- // Handle the result
562
552
  console.log(result);
563
553
  }
564
554
 
@@ -576,6 +566,7 @@ import { paymentLinksGetQRCode } from "@moovio/sdk/funcs/paymentLinksGetQRCode.j
576
566
  // Use `MoovCore` for best tree-shaking performance.
577
567
  // You can create one instance of it to use across an application.
578
568
  const moov = new MoovCore({
569
+ xMoovVersion: "v2024.01.00",
579
570
  security: {
580
571
  username: "",
581
572
  password: "",
@@ -587,15 +578,12 @@ async function run() {
587
578
  accountID: "2f01a42a-aa5a-424f-9f47-6f8999ed05dc",
588
579
  paymentLinkCode: "uc7ZYKrMhi",
589
580
  });
590
-
591
- if (!res.ok) {
592
- throw res.error;
581
+ if (res.ok) {
582
+ const { value: result } = res;
583
+ console.log(result);
584
+ } else {
585
+ console.log("paymentLinksGetQRCode failed:", res.error);
593
586
  }
594
-
595
- const { value: result } = res;
596
-
597
- // Handle the result
598
- console.log(result);
599
587
  }
600
588
 
601
589
  run();