@mbanq/core-sdk-js 0.4.1 → 0.5.0
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/dist/chunk-HUUKIV67.js +1 -0
- package/dist/chunk-ICLPMQUX.mjs +1 -0
- package/dist/chunk-NKXRKPEC.js +32 -0
- package/dist/chunk-PEZBB7Q7.mjs +32 -0
- package/dist/{chunk-TIFVVBDZ.mjs → chunk-VKDW7GQQ.mjs} +1 -1
- package/dist/{chunk-ZOZRUFBN.js → chunk-ZJN6HYOW.js} +1 -1
- package/dist/client/index.d.mts +109 -311
- package/dist/client/index.d.ts +109 -311
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{client-BUCNGFJy.d.mts → client-CHyhpYj2.d.mts} +2348 -1823
- package/dist/{client-BUCNGFJy.d.ts → client-CHyhpYj2.d.ts} +2348 -1823
- package/dist/commands/index.d.mts +2 -2
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.js +1 -1
- package/dist/commands/index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index-Dxa-lc7x.d.mts → user-D60hmfvO.d.mts} +87 -6
- package/dist/{index-DD8EyNPZ.d.ts → user-DgjDSbhD.d.ts} +87 -6
- package/package.json +1 -1
- package/dist/chunk-5DOBPPEL.js +0 -1
- package/dist/chunk-67S4CQFY.mjs +0 -1
- package/dist/chunk-AVRYYGRQ.js +0 -32
- package/dist/chunk-ZRBPB43P.mjs +0 -32
package/dist/client/index.d.ts
CHANGED
|
@@ -1,142 +1,41 @@
|
|
|
1
|
-
import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-
|
|
1
|
+
import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-CHyhpYj2.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
import 'graphql';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
declare const createClient: (initialConfig: Config) => {
|
|
7
|
+
user: {
|
|
8
|
+
getDetail: () => {
|
|
9
|
+
execute: () => Promise<{
|
|
10
|
+
officeId: number;
|
|
11
|
+
officeName: string;
|
|
12
|
+
username: string;
|
|
13
|
+
userId: number;
|
|
14
|
+
accessToken: string;
|
|
15
|
+
authenticated: boolean;
|
|
16
|
+
roles: {
|
|
17
|
+
name: string;
|
|
18
|
+
id: number;
|
|
19
|
+
description: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
isSelfService: boolean;
|
|
22
|
+
position: number;
|
|
23
|
+
}[];
|
|
24
|
+
permissions: string[];
|
|
25
|
+
shouldRenewPassword: boolean;
|
|
26
|
+
isTwoFactorAuthenticationRequired: boolean;
|
|
27
|
+
isSelfServiceUser: boolean;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
7
31
|
payment: {
|
|
8
32
|
create: (data: CreatePaymentInput) => {
|
|
9
|
-
execute: () => Promise<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
|
|
16
|
-
recipient: z.ZodObject<{
|
|
17
|
-
cardId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
recipientType: z.ZodString;
|
|
19
|
-
address: z.ZodObject<{
|
|
20
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
21
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
22
|
-
stateCode: z.ZodOptional<z.ZodString>;
|
|
23
|
-
countryCode: z.ZodString;
|
|
24
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
countryCode: string;
|
|
27
|
-
line1?: string | undefined;
|
|
28
|
-
line2?: string | undefined;
|
|
29
|
-
stateCode?: string | undefined;
|
|
30
|
-
postalCode?: string | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
countryCode: string;
|
|
33
|
-
line1?: string | undefined;
|
|
34
|
-
line2?: string | undefined;
|
|
35
|
-
stateCode?: string | undefined;
|
|
36
|
-
postalCode?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
recipientType: string;
|
|
41
|
-
address: {
|
|
42
|
-
countryCode: string;
|
|
43
|
-
line1?: string | undefined;
|
|
44
|
-
line2?: string | undefined;
|
|
45
|
-
stateCode?: string | undefined;
|
|
46
|
-
postalCode?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
name: string;
|
|
49
|
-
cardId?: string | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
recipientType: string;
|
|
52
|
-
address: {
|
|
53
|
-
countryCode: string;
|
|
54
|
-
line1?: string | undefined;
|
|
55
|
-
line2?: string | undefined;
|
|
56
|
-
stateCode?: string | undefined;
|
|
57
|
-
postalCode?: string | undefined;
|
|
58
|
-
};
|
|
59
|
-
name: string;
|
|
60
|
-
cardId?: string | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
originator: z.ZodObject<{
|
|
63
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
64
|
-
recipientType: z.ZodString;
|
|
65
|
-
address: z.ZodObject<{
|
|
66
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
67
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
68
|
-
stateCode: z.ZodOptional<z.ZodString>;
|
|
69
|
-
countryCode: z.ZodString;
|
|
70
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
countryCode: string;
|
|
73
|
-
line1?: string | undefined;
|
|
74
|
-
line2?: string | undefined;
|
|
75
|
-
stateCode?: string | undefined;
|
|
76
|
-
postalCode?: string | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
countryCode: string;
|
|
79
|
-
line1?: string | undefined;
|
|
80
|
-
line2?: string | undefined;
|
|
81
|
-
stateCode?: string | undefined;
|
|
82
|
-
postalCode?: string | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
name: z.ZodString;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
recipientType: string;
|
|
87
|
-
address: {
|
|
88
|
-
countryCode: string;
|
|
89
|
-
line1?: string | undefined;
|
|
90
|
-
line2?: string | undefined;
|
|
91
|
-
stateCode?: string | undefined;
|
|
92
|
-
postalCode?: string | undefined;
|
|
93
|
-
};
|
|
94
|
-
name: string;
|
|
95
|
-
accountId?: string | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
recipientType: string;
|
|
98
|
-
address: {
|
|
99
|
-
countryCode: string;
|
|
100
|
-
line1?: string | undefined;
|
|
101
|
-
line2?: string | undefined;
|
|
102
|
-
stateCode?: string | undefined;
|
|
103
|
-
postalCode?: string | undefined;
|
|
104
|
-
};
|
|
105
|
-
name: string;
|
|
106
|
-
accountId?: string | undefined;
|
|
107
|
-
}>;
|
|
108
|
-
executedAt: z.ZodString;
|
|
109
|
-
createdAt: z.ZodString;
|
|
110
|
-
externalId: z.ZodString;
|
|
111
|
-
status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
|
|
112
|
-
paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
113
|
-
currencyData: z.ZodObject<{
|
|
114
|
-
code: z.ZodString;
|
|
115
|
-
name: z.ZodString;
|
|
116
|
-
decimalPlaces: z.ZodNumber;
|
|
117
|
-
displaySymbol: z.ZodString;
|
|
118
|
-
nameCode: z.ZodString;
|
|
119
|
-
currencyCodeInDigit: z.ZodNumber;
|
|
120
|
-
isBaseCurrency: z.ZodBoolean;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
code: string;
|
|
123
|
-
name: string;
|
|
124
|
-
decimalPlaces: number;
|
|
125
|
-
displaySymbol: string;
|
|
126
|
-
nameCode: string;
|
|
127
|
-
currencyCodeInDigit: number;
|
|
128
|
-
isBaseCurrency: boolean;
|
|
129
|
-
}, {
|
|
130
|
-
code: string;
|
|
131
|
-
name: string;
|
|
132
|
-
decimalPlaces: number;
|
|
133
|
-
displaySymbol: string;
|
|
134
|
-
nameCode: string;
|
|
135
|
-
currencyCodeInDigit: number;
|
|
136
|
-
isBaseCurrency: boolean;
|
|
137
|
-
}>;
|
|
138
|
-
currency: z.ZodString;
|
|
139
|
-
}, z.ZodAny, "strip"> | undefined>;
|
|
33
|
+
execute: () => Promise<{
|
|
34
|
+
clientId: number;
|
|
35
|
+
id: string;
|
|
36
|
+
resourceId: number;
|
|
37
|
+
resourceIdentifier: string;
|
|
38
|
+
} | undefined>;
|
|
140
39
|
};
|
|
141
40
|
get: (id: number) => {
|
|
142
41
|
execute: () => Promise<z.objectOutputType<{
|
|
@@ -170,6 +69,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
170
69
|
}>;
|
|
171
70
|
name: z.ZodString;
|
|
172
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
name: string;
|
|
173
73
|
recipientType: string;
|
|
174
74
|
address: {
|
|
175
75
|
countryCode: string;
|
|
@@ -178,9 +78,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
178
78
|
stateCode?: string | undefined;
|
|
179
79
|
postalCode?: string | undefined;
|
|
180
80
|
};
|
|
181
|
-
name: string;
|
|
182
81
|
cardId?: string | undefined;
|
|
183
82
|
}, {
|
|
83
|
+
name: string;
|
|
184
84
|
recipientType: string;
|
|
185
85
|
address: {
|
|
186
86
|
countryCode: string;
|
|
@@ -189,7 +89,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
189
89
|
stateCode?: string | undefined;
|
|
190
90
|
postalCode?: string | undefined;
|
|
191
91
|
};
|
|
192
|
-
name: string;
|
|
193
92
|
cardId?: string | undefined;
|
|
194
93
|
}>;
|
|
195
94
|
originator: z.ZodObject<{
|
|
@@ -216,6 +115,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
216
115
|
}>;
|
|
217
116
|
name: z.ZodString;
|
|
218
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
name: string;
|
|
219
119
|
recipientType: string;
|
|
220
120
|
address: {
|
|
221
121
|
countryCode: string;
|
|
@@ -224,9 +124,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
224
124
|
stateCode?: string | undefined;
|
|
225
125
|
postalCode?: string | undefined;
|
|
226
126
|
};
|
|
227
|
-
name: string;
|
|
228
127
|
accountId?: string | undefined;
|
|
229
128
|
}, {
|
|
129
|
+
name: string;
|
|
230
130
|
recipientType: string;
|
|
231
131
|
address: {
|
|
232
132
|
countryCode: string;
|
|
@@ -235,7 +135,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
235
135
|
stateCode?: string | undefined;
|
|
236
136
|
postalCode?: string | undefined;
|
|
237
137
|
};
|
|
238
|
-
name: string;
|
|
239
138
|
accountId?: string | undefined;
|
|
240
139
|
}>;
|
|
241
140
|
executedAt: z.ZodString;
|
|
@@ -252,16 +151,16 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
252
151
|
currencyCodeInDigit: z.ZodNumber;
|
|
253
152
|
isBaseCurrency: z.ZodBoolean;
|
|
254
153
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
code: string;
|
|
256
154
|
name: string;
|
|
155
|
+
code: string;
|
|
257
156
|
decimalPlaces: number;
|
|
258
157
|
displaySymbol: string;
|
|
259
158
|
nameCode: string;
|
|
260
159
|
currencyCodeInDigit: number;
|
|
261
160
|
isBaseCurrency: boolean;
|
|
262
161
|
}, {
|
|
263
|
-
code: string;
|
|
264
162
|
name: string;
|
|
163
|
+
code: string;
|
|
265
164
|
decimalPlaces: number;
|
|
266
165
|
displaySymbol: string;
|
|
267
166
|
nameCode: string;
|
|
@@ -303,6 +202,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
303
202
|
}>;
|
|
304
203
|
name: z.ZodString;
|
|
305
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
name: string;
|
|
306
206
|
recipientType: string;
|
|
307
207
|
address: {
|
|
308
208
|
countryCode: string;
|
|
@@ -311,9 +211,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
311
211
|
stateCode?: string | undefined;
|
|
312
212
|
postalCode?: string | undefined;
|
|
313
213
|
};
|
|
314
|
-
name: string;
|
|
315
214
|
cardId?: string | undefined;
|
|
316
215
|
}, {
|
|
216
|
+
name: string;
|
|
317
217
|
recipientType: string;
|
|
318
218
|
address: {
|
|
319
219
|
countryCode: string;
|
|
@@ -322,7 +222,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
322
222
|
stateCode?: string | undefined;
|
|
323
223
|
postalCode?: string | undefined;
|
|
324
224
|
};
|
|
325
|
-
name: string;
|
|
326
225
|
cardId?: string | undefined;
|
|
327
226
|
}>;
|
|
328
227
|
originator: z.ZodObject<{
|
|
@@ -349,6 +248,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
349
248
|
}>;
|
|
350
249
|
name: z.ZodString;
|
|
351
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
name: string;
|
|
352
252
|
recipientType: string;
|
|
353
253
|
address: {
|
|
354
254
|
countryCode: string;
|
|
@@ -357,9 +257,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
357
257
|
stateCode?: string | undefined;
|
|
358
258
|
postalCode?: string | undefined;
|
|
359
259
|
};
|
|
360
|
-
name: string;
|
|
361
260
|
accountId?: string | undefined;
|
|
362
261
|
}, {
|
|
262
|
+
name: string;
|
|
363
263
|
recipientType: string;
|
|
364
264
|
address: {
|
|
365
265
|
countryCode: string;
|
|
@@ -368,7 +268,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
368
268
|
stateCode?: string | undefined;
|
|
369
269
|
postalCode?: string | undefined;
|
|
370
270
|
};
|
|
371
|
-
name: string;
|
|
372
271
|
accountId?: string | undefined;
|
|
373
272
|
}>;
|
|
374
273
|
executedAt: z.ZodString;
|
|
@@ -385,16 +284,16 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
385
284
|
currencyCodeInDigit: z.ZodNumber;
|
|
386
285
|
isBaseCurrency: z.ZodBoolean;
|
|
387
286
|
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
code: string;
|
|
389
287
|
name: string;
|
|
288
|
+
code: string;
|
|
390
289
|
decimalPlaces: number;
|
|
391
290
|
displaySymbol: string;
|
|
392
291
|
nameCode: string;
|
|
393
292
|
currencyCodeInDigit: number;
|
|
394
293
|
isBaseCurrency: boolean;
|
|
395
294
|
}, {
|
|
396
|
-
code: string;
|
|
397
295
|
name: string;
|
|
296
|
+
code: string;
|
|
398
297
|
decimalPlaces: number;
|
|
399
298
|
displaySymbol: string;
|
|
400
299
|
nameCode: string;
|
|
@@ -446,10 +345,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
446
345
|
accounts: {
|
|
447
346
|
get: (accountId: number) => {
|
|
448
347
|
readonly execute: () => Promise<{
|
|
449
|
-
clientId: number;
|
|
450
348
|
status: {
|
|
451
|
-
value: string;
|
|
452
349
|
code: string;
|
|
350
|
+
value: string;
|
|
453
351
|
id: number;
|
|
454
352
|
submittedAndPendingApproval: boolean;
|
|
455
353
|
approved: boolean;
|
|
@@ -462,10 +360,11 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
462
360
|
transferOnHold: boolean;
|
|
463
361
|
matured: boolean;
|
|
464
362
|
};
|
|
363
|
+
clientId: number;
|
|
465
364
|
id: number;
|
|
466
365
|
currency: {
|
|
467
|
-
code: string;
|
|
468
366
|
name: string;
|
|
367
|
+
code: string;
|
|
469
368
|
decimalPlaces: number;
|
|
470
369
|
displaySymbol: string;
|
|
471
370
|
nameCode: string;
|
|
@@ -490,8 +389,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
490
389
|
activatedByLastname?: string | undefined;
|
|
491
390
|
};
|
|
492
391
|
subStatus: {
|
|
493
|
-
value: string;
|
|
494
392
|
code: string;
|
|
393
|
+
value: string;
|
|
495
394
|
id: number;
|
|
496
395
|
none: boolean;
|
|
497
396
|
inactive: boolean;
|
|
@@ -503,8 +402,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
503
402
|
};
|
|
504
403
|
lastActiveTransactionDate: number[];
|
|
505
404
|
depositType: {
|
|
506
|
-
value: string;
|
|
507
405
|
code: string;
|
|
406
|
+
value: string;
|
|
508
407
|
id: number;
|
|
509
408
|
};
|
|
510
409
|
allowPrepaidCard: boolean;
|
|
@@ -524,37 +423,37 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
524
423
|
fieldOfficerId: number;
|
|
525
424
|
nominalAnnualInterestRate: number;
|
|
526
425
|
interestCompoundingPeriodType: {
|
|
527
|
-
value: string;
|
|
528
426
|
code: string;
|
|
427
|
+
value: string;
|
|
529
428
|
id: number;
|
|
530
429
|
};
|
|
531
430
|
interestPostingPeriodType: {
|
|
532
|
-
value: string;
|
|
533
431
|
code: string;
|
|
432
|
+
value: string;
|
|
534
433
|
id: number;
|
|
535
434
|
};
|
|
536
435
|
interestCalculationType: {
|
|
537
|
-
value: string;
|
|
538
436
|
code: string;
|
|
437
|
+
value: string;
|
|
539
438
|
id: number;
|
|
540
439
|
};
|
|
541
440
|
interestCalculationDaysInYearType: {
|
|
542
|
-
value: string;
|
|
543
441
|
code: string;
|
|
442
|
+
value: string;
|
|
544
443
|
id: number;
|
|
545
444
|
};
|
|
546
445
|
lockinPeriodFrequency: number;
|
|
547
446
|
lockinPeriodFrequencyType: {
|
|
548
|
-
value: string;
|
|
549
447
|
code: string;
|
|
448
|
+
value: string;
|
|
550
449
|
id: number;
|
|
551
450
|
};
|
|
552
451
|
onHoldFunds: number;
|
|
553
452
|
savingsAmountOnHold: number;
|
|
554
453
|
summary: {
|
|
555
454
|
currency: {
|
|
556
|
-
code: string;
|
|
557
455
|
name: string;
|
|
456
|
+
code: string;
|
|
558
457
|
decimalPlaces: number;
|
|
559
458
|
displaySymbol: string;
|
|
560
459
|
nameCode: string;
|
|
@@ -577,8 +476,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
577
476
|
floatingRateId: number;
|
|
578
477
|
isFloatingInterestRateCalculationAllowed: boolean;
|
|
579
478
|
bankDetails: {
|
|
580
|
-
address: string;
|
|
581
479
|
name: string;
|
|
480
|
+
address: string;
|
|
582
481
|
city: string;
|
|
583
482
|
routingNumber: string;
|
|
584
483
|
swiftCode: string;
|
|
@@ -742,139 +641,38 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
742
641
|
resetConfig: () => void;
|
|
743
642
|
request: <TOutput>(command: Command<any, TOutput>) => Promise<TOutput | undefined>;
|
|
744
643
|
tenant: (tenantId: string) => {
|
|
644
|
+
user: {
|
|
645
|
+
getDetail: () => {
|
|
646
|
+
execute: () => Promise<{
|
|
647
|
+
officeId: number;
|
|
648
|
+
officeName: string;
|
|
649
|
+
username: string;
|
|
650
|
+
userId: number;
|
|
651
|
+
accessToken: string;
|
|
652
|
+
authenticated: boolean;
|
|
653
|
+
roles: {
|
|
654
|
+
name: string;
|
|
655
|
+
id: number;
|
|
656
|
+
description: string;
|
|
657
|
+
disabled: boolean;
|
|
658
|
+
isSelfService: boolean;
|
|
659
|
+
position: number;
|
|
660
|
+
}[];
|
|
661
|
+
permissions: string[];
|
|
662
|
+
shouldRenewPassword: boolean;
|
|
663
|
+
isTwoFactorAuthenticationRequired: boolean;
|
|
664
|
+
isSelfServiceUser: boolean;
|
|
665
|
+
} | undefined>;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
745
668
|
payment: {
|
|
746
669
|
create: (data: CreatePaymentInput) => {
|
|
747
|
-
execute: () => Promise<
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
|
|
754
|
-
recipient: z.ZodObject<{
|
|
755
|
-
cardId: z.ZodOptional<z.ZodString>;
|
|
756
|
-
recipientType: z.ZodString;
|
|
757
|
-
address: z.ZodObject<{
|
|
758
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
759
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
760
|
-
stateCode: z.ZodOptional<z.ZodString>;
|
|
761
|
-
countryCode: z.ZodString;
|
|
762
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
763
|
-
}, "strip", z.ZodTypeAny, {
|
|
764
|
-
countryCode: string;
|
|
765
|
-
line1?: string | undefined;
|
|
766
|
-
line2?: string | undefined;
|
|
767
|
-
stateCode?: string | undefined;
|
|
768
|
-
postalCode?: string | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
countryCode: string;
|
|
771
|
-
line1?: string | undefined;
|
|
772
|
-
line2?: string | undefined;
|
|
773
|
-
stateCode?: string | undefined;
|
|
774
|
-
postalCode?: string | undefined;
|
|
775
|
-
}>;
|
|
776
|
-
name: z.ZodString;
|
|
777
|
-
}, "strip", z.ZodTypeAny, {
|
|
778
|
-
recipientType: string;
|
|
779
|
-
address: {
|
|
780
|
-
countryCode: string;
|
|
781
|
-
line1?: string | undefined;
|
|
782
|
-
line2?: string | undefined;
|
|
783
|
-
stateCode?: string | undefined;
|
|
784
|
-
postalCode?: string | undefined;
|
|
785
|
-
};
|
|
786
|
-
name: string;
|
|
787
|
-
cardId?: string | undefined;
|
|
788
|
-
}, {
|
|
789
|
-
recipientType: string;
|
|
790
|
-
address: {
|
|
791
|
-
countryCode: string;
|
|
792
|
-
line1?: string | undefined;
|
|
793
|
-
line2?: string | undefined;
|
|
794
|
-
stateCode?: string | undefined;
|
|
795
|
-
postalCode?: string | undefined;
|
|
796
|
-
};
|
|
797
|
-
name: string;
|
|
798
|
-
cardId?: string | undefined;
|
|
799
|
-
}>;
|
|
800
|
-
originator: z.ZodObject<{
|
|
801
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
802
|
-
recipientType: z.ZodString;
|
|
803
|
-
address: z.ZodObject<{
|
|
804
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
805
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
806
|
-
stateCode: z.ZodOptional<z.ZodString>;
|
|
807
|
-
countryCode: z.ZodString;
|
|
808
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
809
|
-
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
countryCode: string;
|
|
811
|
-
line1?: string | undefined;
|
|
812
|
-
line2?: string | undefined;
|
|
813
|
-
stateCode?: string | undefined;
|
|
814
|
-
postalCode?: string | undefined;
|
|
815
|
-
}, {
|
|
816
|
-
countryCode: string;
|
|
817
|
-
line1?: string | undefined;
|
|
818
|
-
line2?: string | undefined;
|
|
819
|
-
stateCode?: string | undefined;
|
|
820
|
-
postalCode?: string | undefined;
|
|
821
|
-
}>;
|
|
822
|
-
name: z.ZodString;
|
|
823
|
-
}, "strip", z.ZodTypeAny, {
|
|
824
|
-
recipientType: string;
|
|
825
|
-
address: {
|
|
826
|
-
countryCode: string;
|
|
827
|
-
line1?: string | undefined;
|
|
828
|
-
line2?: string | undefined;
|
|
829
|
-
stateCode?: string | undefined;
|
|
830
|
-
postalCode?: string | undefined;
|
|
831
|
-
};
|
|
832
|
-
name: string;
|
|
833
|
-
accountId?: string | undefined;
|
|
834
|
-
}, {
|
|
835
|
-
recipientType: string;
|
|
836
|
-
address: {
|
|
837
|
-
countryCode: string;
|
|
838
|
-
line1?: string | undefined;
|
|
839
|
-
line2?: string | undefined;
|
|
840
|
-
stateCode?: string | undefined;
|
|
841
|
-
postalCode?: string | undefined;
|
|
842
|
-
};
|
|
843
|
-
name: string;
|
|
844
|
-
accountId?: string | undefined;
|
|
845
|
-
}>;
|
|
846
|
-
executedAt: z.ZodString;
|
|
847
|
-
createdAt: z.ZodString;
|
|
848
|
-
externalId: z.ZodString;
|
|
849
|
-
status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
|
|
850
|
-
paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
851
|
-
currencyData: z.ZodObject<{
|
|
852
|
-
code: z.ZodString;
|
|
853
|
-
name: z.ZodString;
|
|
854
|
-
decimalPlaces: z.ZodNumber;
|
|
855
|
-
displaySymbol: z.ZodString;
|
|
856
|
-
nameCode: z.ZodString;
|
|
857
|
-
currencyCodeInDigit: z.ZodNumber;
|
|
858
|
-
isBaseCurrency: z.ZodBoolean;
|
|
859
|
-
}, "strip", z.ZodTypeAny, {
|
|
860
|
-
code: string;
|
|
861
|
-
name: string;
|
|
862
|
-
decimalPlaces: number;
|
|
863
|
-
displaySymbol: string;
|
|
864
|
-
nameCode: string;
|
|
865
|
-
currencyCodeInDigit: number;
|
|
866
|
-
isBaseCurrency: boolean;
|
|
867
|
-
}, {
|
|
868
|
-
code: string;
|
|
869
|
-
name: string;
|
|
870
|
-
decimalPlaces: number;
|
|
871
|
-
displaySymbol: string;
|
|
872
|
-
nameCode: string;
|
|
873
|
-
currencyCodeInDigit: number;
|
|
874
|
-
isBaseCurrency: boolean;
|
|
875
|
-
}>;
|
|
876
|
-
currency: z.ZodString;
|
|
877
|
-
}, z.ZodAny, "strip"> | undefined>;
|
|
670
|
+
execute: () => Promise<{
|
|
671
|
+
clientId: number;
|
|
672
|
+
id: string;
|
|
673
|
+
resourceId: number;
|
|
674
|
+
resourceIdentifier: string;
|
|
675
|
+
} | undefined>;
|
|
878
676
|
};
|
|
879
677
|
get: (id: number) => {
|
|
880
678
|
execute: () => Promise<z.objectOutputType<{
|
|
@@ -908,6 +706,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
908
706
|
}>;
|
|
909
707
|
name: z.ZodString;
|
|
910
708
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
name: string;
|
|
911
710
|
recipientType: string;
|
|
912
711
|
address: {
|
|
913
712
|
countryCode: string;
|
|
@@ -916,9 +715,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
916
715
|
stateCode?: string | undefined;
|
|
917
716
|
postalCode?: string | undefined;
|
|
918
717
|
};
|
|
919
|
-
name: string;
|
|
920
718
|
cardId?: string | undefined;
|
|
921
719
|
}, {
|
|
720
|
+
name: string;
|
|
922
721
|
recipientType: string;
|
|
923
722
|
address: {
|
|
924
723
|
countryCode: string;
|
|
@@ -927,7 +726,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
927
726
|
stateCode?: string | undefined;
|
|
928
727
|
postalCode?: string | undefined;
|
|
929
728
|
};
|
|
930
|
-
name: string;
|
|
931
729
|
cardId?: string | undefined;
|
|
932
730
|
}>;
|
|
933
731
|
originator: z.ZodObject<{
|
|
@@ -954,6 +752,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
954
752
|
}>;
|
|
955
753
|
name: z.ZodString;
|
|
956
754
|
}, "strip", z.ZodTypeAny, {
|
|
755
|
+
name: string;
|
|
957
756
|
recipientType: string;
|
|
958
757
|
address: {
|
|
959
758
|
countryCode: string;
|
|
@@ -962,9 +761,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
962
761
|
stateCode?: string | undefined;
|
|
963
762
|
postalCode?: string | undefined;
|
|
964
763
|
};
|
|
965
|
-
name: string;
|
|
966
764
|
accountId?: string | undefined;
|
|
967
765
|
}, {
|
|
766
|
+
name: string;
|
|
968
767
|
recipientType: string;
|
|
969
768
|
address: {
|
|
970
769
|
countryCode: string;
|
|
@@ -973,7 +772,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
973
772
|
stateCode?: string | undefined;
|
|
974
773
|
postalCode?: string | undefined;
|
|
975
774
|
};
|
|
976
|
-
name: string;
|
|
977
775
|
accountId?: string | undefined;
|
|
978
776
|
}>;
|
|
979
777
|
executedAt: z.ZodString;
|
|
@@ -990,16 +788,16 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
990
788
|
currencyCodeInDigit: z.ZodNumber;
|
|
991
789
|
isBaseCurrency: z.ZodBoolean;
|
|
992
790
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
code: string;
|
|
994
791
|
name: string;
|
|
792
|
+
code: string;
|
|
995
793
|
decimalPlaces: number;
|
|
996
794
|
displaySymbol: string;
|
|
997
795
|
nameCode: string;
|
|
998
796
|
currencyCodeInDigit: number;
|
|
999
797
|
isBaseCurrency: boolean;
|
|
1000
798
|
}, {
|
|
1001
|
-
code: string;
|
|
1002
799
|
name: string;
|
|
800
|
+
code: string;
|
|
1003
801
|
decimalPlaces: number;
|
|
1004
802
|
displaySymbol: string;
|
|
1005
803
|
nameCode: string;
|
|
@@ -1041,6 +839,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1041
839
|
}>;
|
|
1042
840
|
name: z.ZodString;
|
|
1043
841
|
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
name: string;
|
|
1044
843
|
recipientType: string;
|
|
1045
844
|
address: {
|
|
1046
845
|
countryCode: string;
|
|
@@ -1049,9 +848,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1049
848
|
stateCode?: string | undefined;
|
|
1050
849
|
postalCode?: string | undefined;
|
|
1051
850
|
};
|
|
1052
|
-
name: string;
|
|
1053
851
|
cardId?: string | undefined;
|
|
1054
852
|
}, {
|
|
853
|
+
name: string;
|
|
1055
854
|
recipientType: string;
|
|
1056
855
|
address: {
|
|
1057
856
|
countryCode: string;
|
|
@@ -1060,7 +859,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1060
859
|
stateCode?: string | undefined;
|
|
1061
860
|
postalCode?: string | undefined;
|
|
1062
861
|
};
|
|
1063
|
-
name: string;
|
|
1064
862
|
cardId?: string | undefined;
|
|
1065
863
|
}>;
|
|
1066
864
|
originator: z.ZodObject<{
|
|
@@ -1087,6 +885,7 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1087
885
|
}>;
|
|
1088
886
|
name: z.ZodString;
|
|
1089
887
|
}, "strip", z.ZodTypeAny, {
|
|
888
|
+
name: string;
|
|
1090
889
|
recipientType: string;
|
|
1091
890
|
address: {
|
|
1092
891
|
countryCode: string;
|
|
@@ -1095,9 +894,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1095
894
|
stateCode?: string | undefined;
|
|
1096
895
|
postalCode?: string | undefined;
|
|
1097
896
|
};
|
|
1098
|
-
name: string;
|
|
1099
897
|
accountId?: string | undefined;
|
|
1100
898
|
}, {
|
|
899
|
+
name: string;
|
|
1101
900
|
recipientType: string;
|
|
1102
901
|
address: {
|
|
1103
902
|
countryCode: string;
|
|
@@ -1106,7 +905,6 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1106
905
|
stateCode?: string | undefined;
|
|
1107
906
|
postalCode?: string | undefined;
|
|
1108
907
|
};
|
|
1109
|
-
name: string;
|
|
1110
908
|
accountId?: string | undefined;
|
|
1111
909
|
}>;
|
|
1112
910
|
executedAt: z.ZodString;
|
|
@@ -1123,16 +921,16 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1123
921
|
currencyCodeInDigit: z.ZodNumber;
|
|
1124
922
|
isBaseCurrency: z.ZodBoolean;
|
|
1125
923
|
}, "strip", z.ZodTypeAny, {
|
|
1126
|
-
code: string;
|
|
1127
924
|
name: string;
|
|
925
|
+
code: string;
|
|
1128
926
|
decimalPlaces: number;
|
|
1129
927
|
displaySymbol: string;
|
|
1130
928
|
nameCode: string;
|
|
1131
929
|
currencyCodeInDigit: number;
|
|
1132
930
|
isBaseCurrency: boolean;
|
|
1133
931
|
}, {
|
|
1134
|
-
code: string;
|
|
1135
932
|
name: string;
|
|
933
|
+
code: string;
|
|
1136
934
|
decimalPlaces: number;
|
|
1137
935
|
displaySymbol: string;
|
|
1138
936
|
nameCode: string;
|
|
@@ -1184,10 +982,9 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1184
982
|
accounts: {
|
|
1185
983
|
get: (accountId: number) => {
|
|
1186
984
|
readonly execute: () => Promise<{
|
|
1187
|
-
clientId: number;
|
|
1188
985
|
status: {
|
|
1189
|
-
value: string;
|
|
1190
986
|
code: string;
|
|
987
|
+
value: string;
|
|
1191
988
|
id: number;
|
|
1192
989
|
submittedAndPendingApproval: boolean;
|
|
1193
990
|
approved: boolean;
|
|
@@ -1200,10 +997,11 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1200
997
|
transferOnHold: boolean;
|
|
1201
998
|
matured: boolean;
|
|
1202
999
|
};
|
|
1000
|
+
clientId: number;
|
|
1203
1001
|
id: number;
|
|
1204
1002
|
currency: {
|
|
1205
|
-
code: string;
|
|
1206
1003
|
name: string;
|
|
1004
|
+
code: string;
|
|
1207
1005
|
decimalPlaces: number;
|
|
1208
1006
|
displaySymbol: string;
|
|
1209
1007
|
nameCode: string;
|
|
@@ -1228,8 +1026,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1228
1026
|
activatedByLastname?: string | undefined;
|
|
1229
1027
|
};
|
|
1230
1028
|
subStatus: {
|
|
1231
|
-
value: string;
|
|
1232
1029
|
code: string;
|
|
1030
|
+
value: string;
|
|
1233
1031
|
id: number;
|
|
1234
1032
|
none: boolean;
|
|
1235
1033
|
inactive: boolean;
|
|
@@ -1241,8 +1039,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1241
1039
|
};
|
|
1242
1040
|
lastActiveTransactionDate: number[];
|
|
1243
1041
|
depositType: {
|
|
1244
|
-
value: string;
|
|
1245
1042
|
code: string;
|
|
1043
|
+
value: string;
|
|
1246
1044
|
id: number;
|
|
1247
1045
|
};
|
|
1248
1046
|
allowPrepaidCard: boolean;
|
|
@@ -1262,37 +1060,37 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1262
1060
|
fieldOfficerId: number;
|
|
1263
1061
|
nominalAnnualInterestRate: number;
|
|
1264
1062
|
interestCompoundingPeriodType: {
|
|
1265
|
-
value: string;
|
|
1266
1063
|
code: string;
|
|
1064
|
+
value: string;
|
|
1267
1065
|
id: number;
|
|
1268
1066
|
};
|
|
1269
1067
|
interestPostingPeriodType: {
|
|
1270
|
-
value: string;
|
|
1271
1068
|
code: string;
|
|
1069
|
+
value: string;
|
|
1272
1070
|
id: number;
|
|
1273
1071
|
};
|
|
1274
1072
|
interestCalculationType: {
|
|
1275
|
-
value: string;
|
|
1276
1073
|
code: string;
|
|
1074
|
+
value: string;
|
|
1277
1075
|
id: number;
|
|
1278
1076
|
};
|
|
1279
1077
|
interestCalculationDaysInYearType: {
|
|
1280
|
-
value: string;
|
|
1281
1078
|
code: string;
|
|
1079
|
+
value: string;
|
|
1282
1080
|
id: number;
|
|
1283
1081
|
};
|
|
1284
1082
|
lockinPeriodFrequency: number;
|
|
1285
1083
|
lockinPeriodFrequencyType: {
|
|
1286
|
-
value: string;
|
|
1287
1084
|
code: string;
|
|
1085
|
+
value: string;
|
|
1288
1086
|
id: number;
|
|
1289
1087
|
};
|
|
1290
1088
|
onHoldFunds: number;
|
|
1291
1089
|
savingsAmountOnHold: number;
|
|
1292
1090
|
summary: {
|
|
1293
1091
|
currency: {
|
|
1294
|
-
code: string;
|
|
1295
1092
|
name: string;
|
|
1093
|
+
code: string;
|
|
1296
1094
|
decimalPlaces: number;
|
|
1297
1095
|
displaySymbol: string;
|
|
1298
1096
|
nameCode: string;
|
|
@@ -1315,8 +1113,8 @@ declare const createClient: (initialConfig: Config) => {
|
|
|
1315
1113
|
floatingRateId: number;
|
|
1316
1114
|
isFloatingInterestRateCalculationAllowed: boolean;
|
|
1317
1115
|
bankDetails: {
|
|
1318
|
-
address: string;
|
|
1319
1116
|
name: string;
|
|
1117
|
+
address: string;
|
|
1320
1118
|
city: string;
|
|
1321
1119
|
routingNumber: string;
|
|
1322
1120
|
swiftCode: string;
|