@moovio/sdk 0.21.0 → 0.21.2
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/bin/mcp-server.js +79 -61
- package/bin/mcp-server.js.map +11 -10
- package/examples/package-lock.json +1 -1
- package/hooks/hooks.d.ts +3 -2
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js.map +1 -1
- package/hooks/moov-version-hook.d.ts +6 -0
- package/hooks/moov-version-hook.d.ts.map +1 -0
- package/hooks/moov-version-hook.js +12 -0
- package/hooks/moov-version-hook.js.map +1 -0
- package/hooks/registration.d.ts.map +1 -1
- package/hooks/registration.js +3 -1
- package/hooks/registration.js.map +1 -1
- package/hooks/types.d.ts +2 -6
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +5 -6
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/package.json +1 -1
- package/src/hooks/hooks.ts +2 -2
- package/src/hooks/moov-version-hook.ts +9 -0
- package/src/hooks/registration.ts +4 -1
- package/src/hooks/types.ts +2 -7
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +6 -7
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/docs/sdks/accounts/README.md +0 -1038
- package/docs/sdks/accountterminalapplications/README.md +0 -371
- package/docs/sdks/adjustments/README.md +0 -185
- package/docs/sdks/applepay/README.md +0 -572
- package/docs/sdks/authentication/README.md +0 -191
- package/docs/sdks/avatars/README.md +0 -95
- package/docs/sdks/bankaccounts/README.md +0 -951
- package/docs/sdks/branding/README.md +0 -407
- package/docs/sdks/capabilities/README.md +0 -380
- package/docs/sdks/cardissuing/README.md +0 -533
- package/docs/sdks/cards/README.md +0 -544
- package/docs/sdks/disputes/README.md +0 -1085
- package/docs/sdks/endtoendencryption/README.md +0 -174
- package/docs/sdks/enrichedaddress/README.md +0 -95
- package/docs/sdks/enrichedprofile/README.md +0 -95
- package/docs/sdks/feeplans/README.md +0 -921
- package/docs/sdks/files/README.md +0 -293
- package/docs/sdks/images/README.md +0 -616
- package/docs/sdks/industries/README.md +0 -91
- package/docs/sdks/institutions/README.md +0 -184
- package/docs/sdks/issuingtransactions/README.md +0 -465
- package/docs/sdks/onboarding/README.md +0 -389
- package/docs/sdks/paymentlinks/README.md +0 -615
- package/docs/sdks/paymentmethods/README.md +0 -187
- package/docs/sdks/ping/README.md +0 -91
- package/docs/sdks/products/README.md +0 -616
- package/docs/sdks/receipts/README.md +0 -180
- package/docs/sdks/representatives/README.md +0 -603
- package/docs/sdks/scheduling/README.md +0 -1018
- package/docs/sdks/statements/README.md +0 -194
- package/docs/sdks/support/README.md +0 -505
- package/docs/sdks/sweeps/README.md +0 -571
- package/docs/sdks/terminalapplications/README.md +0 -460
- package/docs/sdks/transfers/README.md +0 -1136
- package/docs/sdks/underwriting/README.md +0 -331
- package/docs/sdks/wallets/README.md +0 -416
- package/docs/sdks/wallettransactions/README.md +0 -202
- package/examples/README.md +0 -31
- package/test/README.md +0 -14
|
@@ -1,533 +0,0 @@
|
|
|
1
|
-
# CardIssuing
|
|
2
|
-
(*cardIssuing*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [request](#request) - Request a virtual card be issued.
|
|
9
|
-
|
|
10
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
11
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
12
|
-
* [list](#list) - List Moov issued cards existing for the account.
|
|
13
|
-
|
|
14
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
15
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
16
|
-
* [get](#get) - Retrieve a single issued card associated with a Moov account.
|
|
17
|
-
|
|
18
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
20
|
-
* [update](#update) - Update a Moov issued card.
|
|
21
|
-
|
|
22
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
23
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
24
|
-
* [getFull](#getfull) - Get issued card with PAN, CVV, and expiration.
|
|
25
|
-
|
|
26
|
-
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
27
|
-
|
|
28
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scope.
|
|
30
|
-
|
|
31
|
-
## request
|
|
32
|
-
|
|
33
|
-
Request a virtual card be issued.
|
|
34
|
-
|
|
35
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
36
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
37
|
-
|
|
38
|
-
### Example Usage
|
|
39
|
-
|
|
40
|
-
<!-- UsageSnippet language="typescript" operationID="requestCard" method="post" path="/issuing/{accountID}/issued-cards" -->
|
|
41
|
-
```typescript
|
|
42
|
-
import { Moov } from "@moovio/sdk";
|
|
43
|
-
|
|
44
|
-
const moov = new Moov({
|
|
45
|
-
xMoovVersion: "v2024.01.00",
|
|
46
|
-
security: {
|
|
47
|
-
username: "",
|
|
48
|
-
password: "",
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
async function run() {
|
|
53
|
-
const result = await moov.cardIssuing.request({
|
|
54
|
-
accountID: "d9ac71ae-fccb-4dfc-9fed-710ca654e3ed",
|
|
55
|
-
requestCard: {
|
|
56
|
-
fundingWalletID: "fd98e3b2-696f-4f67-9250-17b3474ababf",
|
|
57
|
-
authorizedUser: {
|
|
58
|
-
firstName: "Milton",
|
|
59
|
-
lastName: "Stiedemann",
|
|
60
|
-
birthDate: {
|
|
61
|
-
day: 9,
|
|
62
|
-
month: 11,
|
|
63
|
-
year: 1989,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
formFactor: "virtual",
|
|
67
|
-
expiration: {
|
|
68
|
-
month: "01",
|
|
69
|
-
year: "21",
|
|
70
|
-
},
|
|
71
|
-
controls: {
|
|
72
|
-
velocityLimits: [
|
|
73
|
-
{
|
|
74
|
-
amount: 10000,
|
|
75
|
-
interval: "per-transaction",
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
console.log(result);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
run();
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Standalone function
|
|
89
|
-
|
|
90
|
-
The standalone function version of this method:
|
|
91
|
-
|
|
92
|
-
```typescript
|
|
93
|
-
import { MoovCore } from "@moovio/sdk/core.js";
|
|
94
|
-
import { cardIssuingRequest } from "@moovio/sdk/funcs/cardIssuingRequest.js";
|
|
95
|
-
|
|
96
|
-
// Use `MoovCore` for best tree-shaking performance.
|
|
97
|
-
// You can create one instance of it to use across an application.
|
|
98
|
-
const moov = new MoovCore({
|
|
99
|
-
xMoovVersion: "v2024.01.00",
|
|
100
|
-
security: {
|
|
101
|
-
username: "",
|
|
102
|
-
password: "",
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
async function run() {
|
|
107
|
-
const res = await cardIssuingRequest(moov, {
|
|
108
|
-
accountID: "d9ac71ae-fccb-4dfc-9fed-710ca654e3ed",
|
|
109
|
-
requestCard: {
|
|
110
|
-
fundingWalletID: "fd98e3b2-696f-4f67-9250-17b3474ababf",
|
|
111
|
-
authorizedUser: {
|
|
112
|
-
firstName: "Milton",
|
|
113
|
-
lastName: "Stiedemann",
|
|
114
|
-
birthDate: {
|
|
115
|
-
day: 9,
|
|
116
|
-
month: 11,
|
|
117
|
-
year: 1989,
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
formFactor: "virtual",
|
|
121
|
-
expiration: {
|
|
122
|
-
month: "01",
|
|
123
|
-
year: "21",
|
|
124
|
-
},
|
|
125
|
-
controls: {
|
|
126
|
-
velocityLimits: [
|
|
127
|
-
{
|
|
128
|
-
amount: 10000,
|
|
129
|
-
interval: "per-transaction",
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
if (res.ok) {
|
|
136
|
-
const { value: result } = res;
|
|
137
|
-
console.log(result);
|
|
138
|
-
} else {
|
|
139
|
-
console.log("cardIssuingRequest failed:", res.error);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
run();
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Parameters
|
|
147
|
-
|
|
148
|
-
| Parameter | Type | Required | Description |
|
|
149
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
150
|
-
| `request` | [operations.RequestCardRequest](../../models/operations/requestcardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
151
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
152
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
153
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
154
|
-
|
|
155
|
-
### Response
|
|
156
|
-
|
|
157
|
-
**Promise\<[operations.RequestCardResponse](../../models/operations/requestcardresponse.md)\>**
|
|
158
|
-
|
|
159
|
-
### Errors
|
|
160
|
-
|
|
161
|
-
| Error Type | Status Code | Content Type |
|
|
162
|
-
| ----------------------- | ----------------------- | ----------------------- |
|
|
163
|
-
| errors.GenericError | 400 | application/json |
|
|
164
|
-
| errors.RequestCardError | 422 | application/json |
|
|
165
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
166
|
-
|
|
167
|
-
## list
|
|
168
|
-
|
|
169
|
-
List Moov issued cards existing for the account.
|
|
170
|
-
|
|
171
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
172
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
173
|
-
|
|
174
|
-
### Example Usage
|
|
175
|
-
|
|
176
|
-
<!-- UsageSnippet language="typescript" operationID="listIssuedCards" method="get" path="/issuing/{accountID}/issued-cards" -->
|
|
177
|
-
```typescript
|
|
178
|
-
import { Moov } from "@moovio/sdk";
|
|
179
|
-
|
|
180
|
-
const moov = new Moov({
|
|
181
|
-
xMoovVersion: "v2024.01.00",
|
|
182
|
-
security: {
|
|
183
|
-
username: "",
|
|
184
|
-
password: "",
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
async function run() {
|
|
189
|
-
const result = await moov.cardIssuing.list({
|
|
190
|
-
accountID: "17c958e0-3abe-46e5-8afb-98742f1fb8ac",
|
|
191
|
-
skip: 60,
|
|
192
|
-
count: 20,
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
console.log(result);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
run();
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Standalone function
|
|
202
|
-
|
|
203
|
-
The standalone function version of this method:
|
|
204
|
-
|
|
205
|
-
```typescript
|
|
206
|
-
import { MoovCore } from "@moovio/sdk/core.js";
|
|
207
|
-
import { cardIssuingList } from "@moovio/sdk/funcs/cardIssuingList.js";
|
|
208
|
-
|
|
209
|
-
// Use `MoovCore` for best tree-shaking performance.
|
|
210
|
-
// You can create one instance of it to use across an application.
|
|
211
|
-
const moov = new MoovCore({
|
|
212
|
-
xMoovVersion: "v2024.01.00",
|
|
213
|
-
security: {
|
|
214
|
-
username: "",
|
|
215
|
-
password: "",
|
|
216
|
-
},
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
async function run() {
|
|
220
|
-
const res = await cardIssuingList(moov, {
|
|
221
|
-
accountID: "17c958e0-3abe-46e5-8afb-98742f1fb8ac",
|
|
222
|
-
skip: 60,
|
|
223
|
-
count: 20,
|
|
224
|
-
});
|
|
225
|
-
if (res.ok) {
|
|
226
|
-
const { value: result } = res;
|
|
227
|
-
console.log(result);
|
|
228
|
-
} else {
|
|
229
|
-
console.log("cardIssuingList failed:", res.error);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
run();
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
### Parameters
|
|
237
|
-
|
|
238
|
-
| Parameter | Type | Required | Description |
|
|
239
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
240
|
-
| `request` | [operations.ListIssuedCardsRequest](../../models/operations/listissuedcardsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
241
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
242
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
243
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
244
|
-
|
|
245
|
-
### Response
|
|
246
|
-
|
|
247
|
-
**Promise\<[operations.ListIssuedCardsResponse](../../models/operations/listissuedcardsresponse.md)\>**
|
|
248
|
-
|
|
249
|
-
### Errors
|
|
250
|
-
|
|
251
|
-
| Error Type | Status Code | Content Type |
|
|
252
|
-
| --------------- | --------------- | --------------- |
|
|
253
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
254
|
-
|
|
255
|
-
## get
|
|
256
|
-
|
|
257
|
-
Retrieve a single issued card associated with a Moov account.
|
|
258
|
-
|
|
259
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
260
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
261
|
-
|
|
262
|
-
### Example Usage
|
|
263
|
-
|
|
264
|
-
<!-- UsageSnippet language="typescript" operationID="getIssuedCard" method="get" path="/issuing/{accountID}/issued-cards/{issuedCardID}" -->
|
|
265
|
-
```typescript
|
|
266
|
-
import { Moov } from "@moovio/sdk";
|
|
267
|
-
|
|
268
|
-
const moov = new Moov({
|
|
269
|
-
xMoovVersion: "v2024.01.00",
|
|
270
|
-
security: {
|
|
271
|
-
username: "",
|
|
272
|
-
password: "",
|
|
273
|
-
},
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
async function run() {
|
|
277
|
-
const result = await moov.cardIssuing.get({
|
|
278
|
-
accountID: "4fde8da4-b6c5-4379-82a2-4ff6a742e41a",
|
|
279
|
-
issuedCardID: "d04885c9-ea6b-43a7-9186-63d9fbd57716",
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
console.log(result);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
run();
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### Standalone function
|
|
289
|
-
|
|
290
|
-
The standalone function version of this method:
|
|
291
|
-
|
|
292
|
-
```typescript
|
|
293
|
-
import { MoovCore } from "@moovio/sdk/core.js";
|
|
294
|
-
import { cardIssuingGet } from "@moovio/sdk/funcs/cardIssuingGet.js";
|
|
295
|
-
|
|
296
|
-
// Use `MoovCore` for best tree-shaking performance.
|
|
297
|
-
// You can create one instance of it to use across an application.
|
|
298
|
-
const moov = new MoovCore({
|
|
299
|
-
xMoovVersion: "v2024.01.00",
|
|
300
|
-
security: {
|
|
301
|
-
username: "",
|
|
302
|
-
password: "",
|
|
303
|
-
},
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
async function run() {
|
|
307
|
-
const res = await cardIssuingGet(moov, {
|
|
308
|
-
accountID: "4fde8da4-b6c5-4379-82a2-4ff6a742e41a",
|
|
309
|
-
issuedCardID: "d04885c9-ea6b-43a7-9186-63d9fbd57716",
|
|
310
|
-
});
|
|
311
|
-
if (res.ok) {
|
|
312
|
-
const { value: result } = res;
|
|
313
|
-
console.log(result);
|
|
314
|
-
} else {
|
|
315
|
-
console.log("cardIssuingGet failed:", res.error);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
run();
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
### Parameters
|
|
323
|
-
|
|
324
|
-
| Parameter | Type | Required | Description |
|
|
325
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
326
|
-
| `request` | [operations.GetIssuedCardRequest](../../models/operations/getissuedcardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
327
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
328
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
329
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
330
|
-
|
|
331
|
-
### Response
|
|
332
|
-
|
|
333
|
-
**Promise\<[operations.GetIssuedCardResponse](../../models/operations/getissuedcardresponse.md)\>**
|
|
334
|
-
|
|
335
|
-
### Errors
|
|
336
|
-
|
|
337
|
-
| Error Type | Status Code | Content Type |
|
|
338
|
-
| --------------- | --------------- | --------------- |
|
|
339
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
340
|
-
|
|
341
|
-
## update
|
|
342
|
-
|
|
343
|
-
Update a Moov issued card.
|
|
344
|
-
|
|
345
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
346
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.write` scope.
|
|
347
|
-
|
|
348
|
-
### Example Usage
|
|
349
|
-
|
|
350
|
-
<!-- UsageSnippet language="typescript" operationID="updateIssuedCard" method="patch" path="/issuing/{accountID}/issued-cards/{issuedCardID}" -->
|
|
351
|
-
```typescript
|
|
352
|
-
import { Moov } from "@moovio/sdk";
|
|
353
|
-
|
|
354
|
-
const moov = new Moov({
|
|
355
|
-
xMoovVersion: "v2024.01.00",
|
|
356
|
-
security: {
|
|
357
|
-
username: "",
|
|
358
|
-
password: "",
|
|
359
|
-
},
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
async function run() {
|
|
363
|
-
const result = await moov.cardIssuing.update({
|
|
364
|
-
accountID: "44db31bc-2813-424b-9b8c-2d3f5f1300e3",
|
|
365
|
-
issuedCardID: "69ca2a7e-7bbc-4176-9d0c-2a1aa7143006",
|
|
366
|
-
updateIssuedCard: {
|
|
367
|
-
authorizedUser: {
|
|
368
|
-
birthDate: {
|
|
369
|
-
day: 9,
|
|
370
|
-
month: 11,
|
|
371
|
-
year: 1989,
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
console.log(result);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
run();
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
### Standalone function
|
|
384
|
-
|
|
385
|
-
The standalone function version of this method:
|
|
386
|
-
|
|
387
|
-
```typescript
|
|
388
|
-
import { MoovCore } from "@moovio/sdk/core.js";
|
|
389
|
-
import { cardIssuingUpdate } from "@moovio/sdk/funcs/cardIssuingUpdate.js";
|
|
390
|
-
|
|
391
|
-
// Use `MoovCore` for best tree-shaking performance.
|
|
392
|
-
// You can create one instance of it to use across an application.
|
|
393
|
-
const moov = new MoovCore({
|
|
394
|
-
xMoovVersion: "v2024.01.00",
|
|
395
|
-
security: {
|
|
396
|
-
username: "",
|
|
397
|
-
password: "",
|
|
398
|
-
},
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
async function run() {
|
|
402
|
-
const res = await cardIssuingUpdate(moov, {
|
|
403
|
-
accountID: "44db31bc-2813-424b-9b8c-2d3f5f1300e3",
|
|
404
|
-
issuedCardID: "69ca2a7e-7bbc-4176-9d0c-2a1aa7143006",
|
|
405
|
-
updateIssuedCard: {
|
|
406
|
-
authorizedUser: {
|
|
407
|
-
birthDate: {
|
|
408
|
-
day: 9,
|
|
409
|
-
month: 11,
|
|
410
|
-
year: 1989,
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
});
|
|
415
|
-
if (res.ok) {
|
|
416
|
-
const { value: result } = res;
|
|
417
|
-
console.log(result);
|
|
418
|
-
} else {
|
|
419
|
-
console.log("cardIssuingUpdate failed:", res.error);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
run();
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
### Parameters
|
|
427
|
-
|
|
428
|
-
| Parameter | Type | Required | Description |
|
|
429
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
430
|
-
| `request` | [operations.UpdateIssuedCardRequest](../../models/operations/updateissuedcardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
431
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
432
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
433
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
434
|
-
|
|
435
|
-
### Response
|
|
436
|
-
|
|
437
|
-
**Promise\<[operations.UpdateIssuedCardResponse](../../models/operations/updateissuedcardresponse.md)\>**
|
|
438
|
-
|
|
439
|
-
### Errors
|
|
440
|
-
|
|
441
|
-
| Error Type | Status Code | Content Type |
|
|
442
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
443
|
-
| errors.GenericError | 400, 409 | application/json |
|
|
444
|
-
| errors.UpdateIssuedCardError | 422 | application/json |
|
|
445
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
446
|
-
|
|
447
|
-
## getFull
|
|
448
|
-
|
|
449
|
-
Get issued card with PAN, CVV, and expiration.
|
|
450
|
-
|
|
451
|
-
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
452
|
-
|
|
453
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
454
|
-
you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scope.
|
|
455
|
-
|
|
456
|
-
### Example Usage
|
|
457
|
-
|
|
458
|
-
<!-- UsageSnippet language="typescript" operationID="getFullIssuedCard" method="get" path="/issuing/{accountID}/issued-cards/{issuedCardID}/details" -->
|
|
459
|
-
```typescript
|
|
460
|
-
import { Moov } from "@moovio/sdk";
|
|
461
|
-
|
|
462
|
-
const moov = new Moov({
|
|
463
|
-
xMoovVersion: "v2024.01.00",
|
|
464
|
-
security: {
|
|
465
|
-
username: "",
|
|
466
|
-
password: "",
|
|
467
|
-
},
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
async function run() {
|
|
471
|
-
const result = await moov.cardIssuing.getFull({
|
|
472
|
-
accountID: "512052fb-5e2c-4d24-98dd-fa893c9d8a03",
|
|
473
|
-
issuedCardID: "087ecc51-11fe-4471-a3bb-44f20c1e87a9",
|
|
474
|
-
});
|
|
475
|
-
|
|
476
|
-
console.log(result);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
run();
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
### Standalone function
|
|
483
|
-
|
|
484
|
-
The standalone function version of this method:
|
|
485
|
-
|
|
486
|
-
```typescript
|
|
487
|
-
import { MoovCore } from "@moovio/sdk/core.js";
|
|
488
|
-
import { cardIssuingGetFull } from "@moovio/sdk/funcs/cardIssuingGetFull.js";
|
|
489
|
-
|
|
490
|
-
// Use `MoovCore` for best tree-shaking performance.
|
|
491
|
-
// You can create one instance of it to use across an application.
|
|
492
|
-
const moov = new MoovCore({
|
|
493
|
-
xMoovVersion: "v2024.01.00",
|
|
494
|
-
security: {
|
|
495
|
-
username: "",
|
|
496
|
-
password: "",
|
|
497
|
-
},
|
|
498
|
-
});
|
|
499
|
-
|
|
500
|
-
async function run() {
|
|
501
|
-
const res = await cardIssuingGetFull(moov, {
|
|
502
|
-
accountID: "512052fb-5e2c-4d24-98dd-fa893c9d8a03",
|
|
503
|
-
issuedCardID: "087ecc51-11fe-4471-a3bb-44f20c1e87a9",
|
|
504
|
-
});
|
|
505
|
-
if (res.ok) {
|
|
506
|
-
const { value: result } = res;
|
|
507
|
-
console.log(result);
|
|
508
|
-
} else {
|
|
509
|
-
console.log("cardIssuingGetFull failed:", res.error);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
run();
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
### Parameters
|
|
517
|
-
|
|
518
|
-
| Parameter | Type | Required | Description |
|
|
519
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
520
|
-
| `request` | [operations.GetFullIssuedCardRequest](../../models/operations/getfullissuedcardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
521
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
522
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
523
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
524
|
-
|
|
525
|
-
### Response
|
|
526
|
-
|
|
527
|
-
**Promise\<[operations.GetFullIssuedCardResponse](../../models/operations/getfullissuedcardresponse.md)\>**
|
|
528
|
-
|
|
529
|
-
### Errors
|
|
530
|
-
|
|
531
|
-
| Error Type | Status Code | Content Type |
|
|
532
|
-
| --------------- | --------------- | --------------- |
|
|
533
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|