@mbanq/core-sdk-js 0.2.1 → 0.3.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.
@@ -1,5 +1,1293 @@
1
- import '../client-DhU5QMWd.mjs';
2
- export { c as createClient } from '../index-BC3pkS--.mjs';
3
- import 'zod';
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, a as Command } from '../client-z_1PDcj6.mjs';
2
+ import * as z from 'zod';
4
3
  import 'graphql';
5
4
  import 'axios';
5
+
6
+ declare const createClient: (initialConfig: Config) => {
7
+ payment: {
8
+ create: (data: CreatePaymentInput) => {
9
+ execute: () => Promise<z.objectOutputType<{
10
+ id: z.ZodNumber;
11
+ clientId: z.ZodNumber;
12
+ amount: z.ZodNumber;
13
+ correlationId: z.ZodString;
14
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
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>;
140
+ };
141
+ get: (id: number) => {
142
+ execute: () => Promise<z.objectOutputType<{
143
+ id: z.ZodNumber;
144
+ clientId: z.ZodNumber;
145
+ amount: z.ZodNumber;
146
+ correlationId: z.ZodString;
147
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
148
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
149
+ recipient: z.ZodObject<{
150
+ cardId: z.ZodOptional<z.ZodString>;
151
+ recipientType: z.ZodString;
152
+ address: z.ZodObject<{
153
+ line1: z.ZodOptional<z.ZodString>;
154
+ line2: z.ZodOptional<z.ZodString>;
155
+ stateCode: z.ZodOptional<z.ZodString>;
156
+ countryCode: z.ZodString;
157
+ postalCode: z.ZodOptional<z.ZodString>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ countryCode: string;
160
+ line1?: string | undefined;
161
+ line2?: string | undefined;
162
+ stateCode?: string | undefined;
163
+ postalCode?: string | undefined;
164
+ }, {
165
+ countryCode: string;
166
+ line1?: string | undefined;
167
+ line2?: string | undefined;
168
+ stateCode?: string | undefined;
169
+ postalCode?: string | undefined;
170
+ }>;
171
+ name: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ recipientType: string;
174
+ address: {
175
+ countryCode: string;
176
+ line1?: string | undefined;
177
+ line2?: string | undefined;
178
+ stateCode?: string | undefined;
179
+ postalCode?: string | undefined;
180
+ };
181
+ name: string;
182
+ cardId?: string | undefined;
183
+ }, {
184
+ recipientType: string;
185
+ address: {
186
+ countryCode: string;
187
+ line1?: string | undefined;
188
+ line2?: string | undefined;
189
+ stateCode?: string | undefined;
190
+ postalCode?: string | undefined;
191
+ };
192
+ name: string;
193
+ cardId?: string | undefined;
194
+ }>;
195
+ originator: z.ZodObject<{
196
+ accountId: z.ZodOptional<z.ZodString>;
197
+ recipientType: z.ZodString;
198
+ address: z.ZodObject<{
199
+ line1: z.ZodOptional<z.ZodString>;
200
+ line2: z.ZodOptional<z.ZodString>;
201
+ stateCode: z.ZodOptional<z.ZodString>;
202
+ countryCode: z.ZodString;
203
+ postalCode: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ countryCode: string;
206
+ line1?: string | undefined;
207
+ line2?: string | undefined;
208
+ stateCode?: string | undefined;
209
+ postalCode?: string | undefined;
210
+ }, {
211
+ countryCode: string;
212
+ line1?: string | undefined;
213
+ line2?: string | undefined;
214
+ stateCode?: string | undefined;
215
+ postalCode?: string | undefined;
216
+ }>;
217
+ name: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ recipientType: string;
220
+ address: {
221
+ countryCode: string;
222
+ line1?: string | undefined;
223
+ line2?: string | undefined;
224
+ stateCode?: string | undefined;
225
+ postalCode?: string | undefined;
226
+ };
227
+ name: string;
228
+ accountId?: string | undefined;
229
+ }, {
230
+ recipientType: string;
231
+ address: {
232
+ countryCode: string;
233
+ line1?: string | undefined;
234
+ line2?: string | undefined;
235
+ stateCode?: string | undefined;
236
+ postalCode?: string | undefined;
237
+ };
238
+ name: string;
239
+ accountId?: string | undefined;
240
+ }>;
241
+ executedAt: z.ZodString;
242
+ createdAt: z.ZodString;
243
+ externalId: z.ZodString;
244
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
245
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
246
+ currencyData: z.ZodObject<{
247
+ code: z.ZodString;
248
+ name: z.ZodString;
249
+ decimalPlaces: z.ZodNumber;
250
+ displaySymbol: z.ZodString;
251
+ nameCode: z.ZodString;
252
+ currencyCodeInDigit: z.ZodNumber;
253
+ isBaseCurrency: z.ZodBoolean;
254
+ }, "strip", z.ZodTypeAny, {
255
+ code: string;
256
+ name: string;
257
+ decimalPlaces: number;
258
+ displaySymbol: string;
259
+ nameCode: string;
260
+ currencyCodeInDigit: number;
261
+ isBaseCurrency: boolean;
262
+ }, {
263
+ code: string;
264
+ name: string;
265
+ decimalPlaces: number;
266
+ displaySymbol: string;
267
+ nameCode: string;
268
+ currencyCodeInDigit: number;
269
+ isBaseCurrency: boolean;
270
+ }>;
271
+ currency: z.ZodString;
272
+ }, z.ZodAny, "strip"> | undefined>;
273
+ };
274
+ update: (id: number, data: UpdatePaymentInput) => {
275
+ execute: () => Promise<z.objectOutputType<{
276
+ id: z.ZodNumber;
277
+ clientId: z.ZodNumber;
278
+ amount: z.ZodNumber;
279
+ correlationId: z.ZodString;
280
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
281
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
282
+ recipient: z.ZodObject<{
283
+ cardId: z.ZodOptional<z.ZodString>;
284
+ recipientType: z.ZodString;
285
+ address: z.ZodObject<{
286
+ line1: z.ZodOptional<z.ZodString>;
287
+ line2: z.ZodOptional<z.ZodString>;
288
+ stateCode: z.ZodOptional<z.ZodString>;
289
+ countryCode: z.ZodString;
290
+ postalCode: z.ZodOptional<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ countryCode: string;
293
+ line1?: string | undefined;
294
+ line2?: string | undefined;
295
+ stateCode?: string | undefined;
296
+ postalCode?: string | undefined;
297
+ }, {
298
+ countryCode: string;
299
+ line1?: string | undefined;
300
+ line2?: string | undefined;
301
+ stateCode?: string | undefined;
302
+ postalCode?: string | undefined;
303
+ }>;
304
+ name: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ recipientType: string;
307
+ address: {
308
+ countryCode: string;
309
+ line1?: string | undefined;
310
+ line2?: string | undefined;
311
+ stateCode?: string | undefined;
312
+ postalCode?: string | undefined;
313
+ };
314
+ name: string;
315
+ cardId?: string | undefined;
316
+ }, {
317
+ recipientType: string;
318
+ address: {
319
+ countryCode: string;
320
+ line1?: string | undefined;
321
+ line2?: string | undefined;
322
+ stateCode?: string | undefined;
323
+ postalCode?: string | undefined;
324
+ };
325
+ name: string;
326
+ cardId?: string | undefined;
327
+ }>;
328
+ originator: z.ZodObject<{
329
+ accountId: z.ZodOptional<z.ZodString>;
330
+ recipientType: z.ZodString;
331
+ address: z.ZodObject<{
332
+ line1: z.ZodOptional<z.ZodString>;
333
+ line2: z.ZodOptional<z.ZodString>;
334
+ stateCode: z.ZodOptional<z.ZodString>;
335
+ countryCode: z.ZodString;
336
+ postalCode: z.ZodOptional<z.ZodString>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ countryCode: string;
339
+ line1?: string | undefined;
340
+ line2?: string | undefined;
341
+ stateCode?: string | undefined;
342
+ postalCode?: string | undefined;
343
+ }, {
344
+ countryCode: string;
345
+ line1?: string | undefined;
346
+ line2?: string | undefined;
347
+ stateCode?: string | undefined;
348
+ postalCode?: string | undefined;
349
+ }>;
350
+ name: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ recipientType: string;
353
+ address: {
354
+ countryCode: string;
355
+ line1?: string | undefined;
356
+ line2?: string | undefined;
357
+ stateCode?: string | undefined;
358
+ postalCode?: string | undefined;
359
+ };
360
+ name: string;
361
+ accountId?: string | undefined;
362
+ }, {
363
+ recipientType: string;
364
+ address: {
365
+ countryCode: string;
366
+ line1?: string | undefined;
367
+ line2?: string | undefined;
368
+ stateCode?: string | undefined;
369
+ postalCode?: string | undefined;
370
+ };
371
+ name: string;
372
+ accountId?: string | undefined;
373
+ }>;
374
+ executedAt: z.ZodString;
375
+ createdAt: z.ZodString;
376
+ externalId: z.ZodString;
377
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
378
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
379
+ currencyData: z.ZodObject<{
380
+ code: z.ZodString;
381
+ name: z.ZodString;
382
+ decimalPlaces: z.ZodNumber;
383
+ displaySymbol: z.ZodString;
384
+ nameCode: z.ZodString;
385
+ currencyCodeInDigit: z.ZodNumber;
386
+ isBaseCurrency: z.ZodBoolean;
387
+ }, "strip", z.ZodTypeAny, {
388
+ code: string;
389
+ name: string;
390
+ decimalPlaces: number;
391
+ displaySymbol: string;
392
+ nameCode: string;
393
+ currencyCodeInDigit: number;
394
+ isBaseCurrency: boolean;
395
+ }, {
396
+ code: string;
397
+ name: string;
398
+ decimalPlaces: number;
399
+ displaySymbol: string;
400
+ nameCode: string;
401
+ currencyCodeInDigit: number;
402
+ isBaseCurrency: boolean;
403
+ }>;
404
+ currency: z.ZodString;
405
+ }, z.ZodAny, "strip"> | undefined>;
406
+ };
407
+ delete: (id: number) => {
408
+ execute: () => Promise<void | undefined>;
409
+ };
410
+ list: () => {
411
+ where: any;
412
+ limit: (value: number) => /*elided*/ any;
413
+ offset: (value: number) => /*elided*/ any;
414
+ all: () => /*elided*/ any;
415
+ execute: () => Promise<unknown>;
416
+ };
417
+ };
418
+ client: {
419
+ create: (data: CreateClientRequest) => {
420
+ execute: () => Promise<z.objectOutputType<{
421
+ clientId: z.ZodNumber;
422
+ status: z.ZodString;
423
+ }, z.ZodAny, "strip"> | undefined>;
424
+ };
425
+ get: (id: number) => {
426
+ execute: () => Promise<any>;
427
+ };
428
+ update: (id: number, data: UpdateClientRequest) => {
429
+ execute: () => Promise<ProcessOutput | undefined>;
430
+ };
431
+ updateDocumentRecord: (id: number, data: UpdateClientIdentifierRequest) => {
432
+ execute: () => Promise<z.objectOutputType<{
433
+ id: z.ZodNumber;
434
+ officeId: z.ZodNumber;
435
+ clientId: z.ZodNumber;
436
+ resourceId: z.ZodNumber;
437
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
438
+ isScheduledTransfer: z.ZodBoolean;
439
+ isSkipNotification: z.ZodBoolean;
440
+ }, z.ZodAny, "strip"> | undefined>;
441
+ };
442
+ delete: (id: number) => {
443
+ execute: () => Promise<ProcessOutput | undefined>;
444
+ };
445
+ for: (clientId: string) => {
446
+ accounts: {
447
+ get: (accountId: number) => {
448
+ readonly execute: () => Promise<{
449
+ clientId: number;
450
+ status: {
451
+ value: string;
452
+ code: string;
453
+ id: number;
454
+ submittedAndPendingApproval: boolean;
455
+ approved: boolean;
456
+ rejected: boolean;
457
+ withdrawnByApplicant: boolean;
458
+ active: boolean;
459
+ closed: boolean;
460
+ prematureClosed: boolean;
461
+ transferInProgress: boolean;
462
+ transferOnHold: boolean;
463
+ matured: boolean;
464
+ };
465
+ id: number;
466
+ currency: {
467
+ code: string;
468
+ name: string;
469
+ decimalPlaces: number;
470
+ displaySymbol: string;
471
+ nameCode: string;
472
+ inMultiplesOf: number;
473
+ displayLabel: string;
474
+ currencyCodeInDigit?: number | undefined;
475
+ isBaseCurrency?: boolean | undefined;
476
+ };
477
+ accountNo: string;
478
+ timeline: {
479
+ submittedOnDate: number[];
480
+ submittedByUsername: string;
481
+ submittedByFirstname: string;
482
+ submittedByLastname: string;
483
+ approvedOnDate?: number[] | undefined;
484
+ approvedByUsername?: string | undefined;
485
+ approvedByFirstname?: string | undefined;
486
+ approvedByLastname?: string | undefined;
487
+ activatedOnDate?: number[] | undefined;
488
+ activatedByUsername?: string | undefined;
489
+ activatedByFirstname?: string | undefined;
490
+ activatedByLastname?: string | undefined;
491
+ };
492
+ subStatus: {
493
+ value: string;
494
+ code: string;
495
+ id: number;
496
+ none: boolean;
497
+ inactive: boolean;
498
+ dormant: boolean;
499
+ escheat: boolean;
500
+ block: boolean;
501
+ blockCredit: boolean;
502
+ blockDebit: boolean;
503
+ };
504
+ lastActiveTransactionDate: number[];
505
+ depositType: {
506
+ value: string;
507
+ code: string;
508
+ id: number;
509
+ };
510
+ allowPrepaidCard: boolean;
511
+ withdrawalFeeForTransfers: boolean;
512
+ allowOverdraft: boolean;
513
+ enforceMinRequiredBalance: boolean;
514
+ withHoldTax: boolean;
515
+ isDormancyTrackingActive: boolean;
516
+ isLinkedToFloatingInterestRates: boolean;
517
+ isBaseLendingRate: boolean;
518
+ skipCollectTransferCharge: boolean;
519
+ cardRestricted: boolean;
520
+ prepaidAccount: boolean;
521
+ clientName: string;
522
+ savingsProductId: number;
523
+ savingsProductName: string;
524
+ fieldOfficerId: number;
525
+ nominalAnnualInterestRate: number;
526
+ interestCompoundingPeriodType: {
527
+ value: string;
528
+ code: string;
529
+ id: number;
530
+ };
531
+ interestPostingPeriodType: {
532
+ value: string;
533
+ code: string;
534
+ id: number;
535
+ };
536
+ interestCalculationType: {
537
+ value: string;
538
+ code: string;
539
+ id: number;
540
+ };
541
+ interestCalculationDaysInYearType: {
542
+ value: string;
543
+ code: string;
544
+ id: number;
545
+ };
546
+ lockinPeriodFrequency: number;
547
+ lockinPeriodFrequencyType: {
548
+ value: string;
549
+ code: string;
550
+ id: number;
551
+ };
552
+ onHoldFunds: number;
553
+ savingsAmountOnHold: number;
554
+ summary: {
555
+ currency: {
556
+ code: string;
557
+ name: string;
558
+ decimalPlaces: number;
559
+ displaySymbol: string;
560
+ nameCode: string;
561
+ inMultiplesOf: number;
562
+ displayLabel: string;
563
+ currencyCodeInDigit?: number | undefined;
564
+ isBaseCurrency?: boolean | undefined;
565
+ };
566
+ accountBalance: number;
567
+ availableBalance: number;
568
+ totalDeposits: number;
569
+ totalInterestEarned: number;
570
+ totalInterestPosted: number;
571
+ totalOverdraftInterestDerived: number;
572
+ interestNotPosted: number;
573
+ lastInterestCalculationDate: number[];
574
+ };
575
+ interestRateDifferential: number;
576
+ overdraftInterestRateDifferential: number;
577
+ floatingRateId: number;
578
+ isFloatingInterestRateCalculationAllowed: boolean;
579
+ bankDetails: {
580
+ address: string;
581
+ name: string;
582
+ city: string;
583
+ routingNumber: string;
584
+ swiftCode: string;
585
+ postcode: string;
586
+ };
587
+ overdraftLimit: number;
588
+ minRequiredBalance: number;
589
+ minBalanceForInterestCalculation: number;
590
+ minOverdraftForInterestCalculation: number;
591
+ overdraftMinimumDue: number;
592
+ currentFloatingInterestPeriod: {
593
+ fromDate: number[];
594
+ interestRate: number;
595
+ isDifferentialToBLR: boolean;
596
+ };
597
+ floatingRateName: string;
598
+ floatingRateDifferential: number;
599
+ parentAccount: {
600
+ allowPrepaidCard: boolean;
601
+ withdrawalFeeForTransfers: boolean;
602
+ allowOverdraft: boolean;
603
+ enforceMinRequiredBalance: boolean;
604
+ withHoldTax: boolean;
605
+ isDormancyTrackingActive: boolean;
606
+ isLinkedToFloatingInterestRates: boolean;
607
+ isBaseLendingRate: boolean;
608
+ skipCollectTransferCharge: boolean;
609
+ cardRestricted: boolean;
610
+ prepaidAccount: boolean;
611
+ };
612
+ prepaidLimitAmount: number;
613
+ } | undefined>;
614
+ };
615
+ getFromList: (accountId: number) => {
616
+ readonly execute: () => Promise<any>;
617
+ };
618
+ update: (accountId: number, updates: UpdateAccountRequest) => {
619
+ execute: () => Promise<any>;
620
+ };
621
+ delete: (accountId: number) => {
622
+ execute: () => Promise<ProcessOutput | undefined>;
623
+ };
624
+ where: () => {
625
+ eq: () => {
626
+ list: () => {
627
+ where: any;
628
+ execute: () => Promise<unknown>;
629
+ };
630
+ };
631
+ };
632
+ list: () => {
633
+ where: any;
634
+ execute: () => Promise<unknown>;
635
+ };
636
+ };
637
+ };
638
+ list: () => {
639
+ where: any;
640
+ limit: (value: number) => /*elided*/ any;
641
+ offset: (value: number) => /*elided*/ any;
642
+ all: () => /*elided*/ any;
643
+ execute: () => Promise<unknown>;
644
+ };
645
+ };
646
+ setConfig: (config: Config) => void;
647
+ updateConfig: (config: Partial<Config>) => void;
648
+ resetConfig: () => void;
649
+ request: <TOutput>(command: Command<any, TOutput>) => Promise<TOutput | undefined>;
650
+ tenant: (tenantId: string) => {
651
+ payment: {
652
+ create: (data: CreatePaymentInput) => {
653
+ execute: () => Promise<z.objectOutputType<{
654
+ id: z.ZodNumber;
655
+ clientId: z.ZodNumber;
656
+ amount: z.ZodNumber;
657
+ correlationId: z.ZodString;
658
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
659
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
660
+ recipient: z.ZodObject<{
661
+ cardId: z.ZodOptional<z.ZodString>;
662
+ recipientType: z.ZodString;
663
+ address: z.ZodObject<{
664
+ line1: z.ZodOptional<z.ZodString>;
665
+ line2: z.ZodOptional<z.ZodString>;
666
+ stateCode: z.ZodOptional<z.ZodString>;
667
+ countryCode: z.ZodString;
668
+ postalCode: z.ZodOptional<z.ZodString>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ countryCode: string;
671
+ line1?: string | undefined;
672
+ line2?: string | undefined;
673
+ stateCode?: string | undefined;
674
+ postalCode?: string | undefined;
675
+ }, {
676
+ countryCode: string;
677
+ line1?: string | undefined;
678
+ line2?: string | undefined;
679
+ stateCode?: string | undefined;
680
+ postalCode?: string | undefined;
681
+ }>;
682
+ name: z.ZodString;
683
+ }, "strip", z.ZodTypeAny, {
684
+ recipientType: string;
685
+ address: {
686
+ countryCode: string;
687
+ line1?: string | undefined;
688
+ line2?: string | undefined;
689
+ stateCode?: string | undefined;
690
+ postalCode?: string | undefined;
691
+ };
692
+ name: string;
693
+ cardId?: string | undefined;
694
+ }, {
695
+ recipientType: string;
696
+ address: {
697
+ countryCode: string;
698
+ line1?: string | undefined;
699
+ line2?: string | undefined;
700
+ stateCode?: string | undefined;
701
+ postalCode?: string | undefined;
702
+ };
703
+ name: string;
704
+ cardId?: string | undefined;
705
+ }>;
706
+ originator: z.ZodObject<{
707
+ accountId: z.ZodOptional<z.ZodString>;
708
+ recipientType: z.ZodString;
709
+ address: z.ZodObject<{
710
+ line1: z.ZodOptional<z.ZodString>;
711
+ line2: z.ZodOptional<z.ZodString>;
712
+ stateCode: z.ZodOptional<z.ZodString>;
713
+ countryCode: z.ZodString;
714
+ postalCode: z.ZodOptional<z.ZodString>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ countryCode: string;
717
+ line1?: string | undefined;
718
+ line2?: string | undefined;
719
+ stateCode?: string | undefined;
720
+ postalCode?: string | undefined;
721
+ }, {
722
+ countryCode: string;
723
+ line1?: string | undefined;
724
+ line2?: string | undefined;
725
+ stateCode?: string | undefined;
726
+ postalCode?: string | undefined;
727
+ }>;
728
+ name: z.ZodString;
729
+ }, "strip", z.ZodTypeAny, {
730
+ recipientType: string;
731
+ address: {
732
+ countryCode: string;
733
+ line1?: string | undefined;
734
+ line2?: string | undefined;
735
+ stateCode?: string | undefined;
736
+ postalCode?: string | undefined;
737
+ };
738
+ name: string;
739
+ accountId?: string | undefined;
740
+ }, {
741
+ recipientType: string;
742
+ address: {
743
+ countryCode: string;
744
+ line1?: string | undefined;
745
+ line2?: string | undefined;
746
+ stateCode?: string | undefined;
747
+ postalCode?: string | undefined;
748
+ };
749
+ name: string;
750
+ accountId?: string | undefined;
751
+ }>;
752
+ executedAt: z.ZodString;
753
+ createdAt: z.ZodString;
754
+ externalId: z.ZodString;
755
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
756
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
757
+ currencyData: z.ZodObject<{
758
+ code: z.ZodString;
759
+ name: z.ZodString;
760
+ decimalPlaces: z.ZodNumber;
761
+ displaySymbol: z.ZodString;
762
+ nameCode: z.ZodString;
763
+ currencyCodeInDigit: z.ZodNumber;
764
+ isBaseCurrency: z.ZodBoolean;
765
+ }, "strip", z.ZodTypeAny, {
766
+ code: string;
767
+ name: string;
768
+ decimalPlaces: number;
769
+ displaySymbol: string;
770
+ nameCode: string;
771
+ currencyCodeInDigit: number;
772
+ isBaseCurrency: boolean;
773
+ }, {
774
+ code: string;
775
+ name: string;
776
+ decimalPlaces: number;
777
+ displaySymbol: string;
778
+ nameCode: string;
779
+ currencyCodeInDigit: number;
780
+ isBaseCurrency: boolean;
781
+ }>;
782
+ currency: z.ZodString;
783
+ }, z.ZodAny, "strip"> | undefined>;
784
+ };
785
+ get: (id: number) => {
786
+ execute: () => Promise<z.objectOutputType<{
787
+ id: z.ZodNumber;
788
+ clientId: z.ZodNumber;
789
+ amount: z.ZodNumber;
790
+ correlationId: z.ZodString;
791
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
792
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
793
+ recipient: z.ZodObject<{
794
+ cardId: z.ZodOptional<z.ZodString>;
795
+ recipientType: z.ZodString;
796
+ address: z.ZodObject<{
797
+ line1: z.ZodOptional<z.ZodString>;
798
+ line2: z.ZodOptional<z.ZodString>;
799
+ stateCode: z.ZodOptional<z.ZodString>;
800
+ countryCode: z.ZodString;
801
+ postalCode: z.ZodOptional<z.ZodString>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ countryCode: string;
804
+ line1?: string | undefined;
805
+ line2?: string | undefined;
806
+ stateCode?: string | undefined;
807
+ postalCode?: string | undefined;
808
+ }, {
809
+ countryCode: string;
810
+ line1?: string | undefined;
811
+ line2?: string | undefined;
812
+ stateCode?: string | undefined;
813
+ postalCode?: string | undefined;
814
+ }>;
815
+ name: z.ZodString;
816
+ }, "strip", z.ZodTypeAny, {
817
+ recipientType: string;
818
+ address: {
819
+ countryCode: string;
820
+ line1?: string | undefined;
821
+ line2?: string | undefined;
822
+ stateCode?: string | undefined;
823
+ postalCode?: string | undefined;
824
+ };
825
+ name: string;
826
+ cardId?: string | undefined;
827
+ }, {
828
+ recipientType: string;
829
+ address: {
830
+ countryCode: string;
831
+ line1?: string | undefined;
832
+ line2?: string | undefined;
833
+ stateCode?: string | undefined;
834
+ postalCode?: string | undefined;
835
+ };
836
+ name: string;
837
+ cardId?: string | undefined;
838
+ }>;
839
+ originator: z.ZodObject<{
840
+ accountId: z.ZodOptional<z.ZodString>;
841
+ recipientType: z.ZodString;
842
+ address: z.ZodObject<{
843
+ line1: z.ZodOptional<z.ZodString>;
844
+ line2: z.ZodOptional<z.ZodString>;
845
+ stateCode: z.ZodOptional<z.ZodString>;
846
+ countryCode: z.ZodString;
847
+ postalCode: z.ZodOptional<z.ZodString>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ countryCode: string;
850
+ line1?: string | undefined;
851
+ line2?: string | undefined;
852
+ stateCode?: string | undefined;
853
+ postalCode?: string | undefined;
854
+ }, {
855
+ countryCode: string;
856
+ line1?: string | undefined;
857
+ line2?: string | undefined;
858
+ stateCode?: string | undefined;
859
+ postalCode?: string | undefined;
860
+ }>;
861
+ name: z.ZodString;
862
+ }, "strip", z.ZodTypeAny, {
863
+ recipientType: string;
864
+ address: {
865
+ countryCode: string;
866
+ line1?: string | undefined;
867
+ line2?: string | undefined;
868
+ stateCode?: string | undefined;
869
+ postalCode?: string | undefined;
870
+ };
871
+ name: string;
872
+ accountId?: string | undefined;
873
+ }, {
874
+ recipientType: string;
875
+ address: {
876
+ countryCode: string;
877
+ line1?: string | undefined;
878
+ line2?: string | undefined;
879
+ stateCode?: string | undefined;
880
+ postalCode?: string | undefined;
881
+ };
882
+ name: string;
883
+ accountId?: string | undefined;
884
+ }>;
885
+ executedAt: z.ZodString;
886
+ createdAt: z.ZodString;
887
+ externalId: z.ZodString;
888
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
889
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
890
+ currencyData: z.ZodObject<{
891
+ code: z.ZodString;
892
+ name: z.ZodString;
893
+ decimalPlaces: z.ZodNumber;
894
+ displaySymbol: z.ZodString;
895
+ nameCode: z.ZodString;
896
+ currencyCodeInDigit: z.ZodNumber;
897
+ isBaseCurrency: z.ZodBoolean;
898
+ }, "strip", z.ZodTypeAny, {
899
+ code: string;
900
+ name: string;
901
+ decimalPlaces: number;
902
+ displaySymbol: string;
903
+ nameCode: string;
904
+ currencyCodeInDigit: number;
905
+ isBaseCurrency: boolean;
906
+ }, {
907
+ code: string;
908
+ name: string;
909
+ decimalPlaces: number;
910
+ displaySymbol: string;
911
+ nameCode: string;
912
+ currencyCodeInDigit: number;
913
+ isBaseCurrency: boolean;
914
+ }>;
915
+ currency: z.ZodString;
916
+ }, z.ZodAny, "strip"> | undefined>;
917
+ };
918
+ update: (id: number, data: UpdatePaymentInput) => {
919
+ execute: () => Promise<z.objectOutputType<{
920
+ id: z.ZodNumber;
921
+ clientId: z.ZodNumber;
922
+ amount: z.ZodNumber;
923
+ correlationId: z.ZodString;
924
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
925
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
926
+ recipient: z.ZodObject<{
927
+ cardId: z.ZodOptional<z.ZodString>;
928
+ recipientType: z.ZodString;
929
+ address: z.ZodObject<{
930
+ line1: z.ZodOptional<z.ZodString>;
931
+ line2: z.ZodOptional<z.ZodString>;
932
+ stateCode: z.ZodOptional<z.ZodString>;
933
+ countryCode: z.ZodString;
934
+ postalCode: z.ZodOptional<z.ZodString>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ countryCode: string;
937
+ line1?: string | undefined;
938
+ line2?: string | undefined;
939
+ stateCode?: string | undefined;
940
+ postalCode?: string | undefined;
941
+ }, {
942
+ countryCode: string;
943
+ line1?: string | undefined;
944
+ line2?: string | undefined;
945
+ stateCode?: string | undefined;
946
+ postalCode?: string | undefined;
947
+ }>;
948
+ name: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ recipientType: string;
951
+ address: {
952
+ countryCode: string;
953
+ line1?: string | undefined;
954
+ line2?: string | undefined;
955
+ stateCode?: string | undefined;
956
+ postalCode?: string | undefined;
957
+ };
958
+ name: string;
959
+ cardId?: string | undefined;
960
+ }, {
961
+ recipientType: string;
962
+ address: {
963
+ countryCode: string;
964
+ line1?: string | undefined;
965
+ line2?: string | undefined;
966
+ stateCode?: string | undefined;
967
+ postalCode?: string | undefined;
968
+ };
969
+ name: string;
970
+ cardId?: string | undefined;
971
+ }>;
972
+ originator: z.ZodObject<{
973
+ accountId: z.ZodOptional<z.ZodString>;
974
+ recipientType: z.ZodString;
975
+ address: z.ZodObject<{
976
+ line1: z.ZodOptional<z.ZodString>;
977
+ line2: z.ZodOptional<z.ZodString>;
978
+ stateCode: z.ZodOptional<z.ZodString>;
979
+ countryCode: z.ZodString;
980
+ postalCode: z.ZodOptional<z.ZodString>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ countryCode: string;
983
+ line1?: string | undefined;
984
+ line2?: string | undefined;
985
+ stateCode?: string | undefined;
986
+ postalCode?: string | undefined;
987
+ }, {
988
+ countryCode: string;
989
+ line1?: string | undefined;
990
+ line2?: string | undefined;
991
+ stateCode?: string | undefined;
992
+ postalCode?: string | undefined;
993
+ }>;
994
+ name: z.ZodString;
995
+ }, "strip", z.ZodTypeAny, {
996
+ recipientType: string;
997
+ address: {
998
+ countryCode: string;
999
+ line1?: string | undefined;
1000
+ line2?: string | undefined;
1001
+ stateCode?: string | undefined;
1002
+ postalCode?: string | undefined;
1003
+ };
1004
+ name: string;
1005
+ accountId?: string | undefined;
1006
+ }, {
1007
+ recipientType: string;
1008
+ address: {
1009
+ countryCode: string;
1010
+ line1?: string | undefined;
1011
+ line2?: string | undefined;
1012
+ stateCode?: string | undefined;
1013
+ postalCode?: string | undefined;
1014
+ };
1015
+ name: string;
1016
+ accountId?: string | undefined;
1017
+ }>;
1018
+ executedAt: z.ZodString;
1019
+ createdAt: z.ZodString;
1020
+ externalId: z.ZodString;
1021
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
1022
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1023
+ currencyData: z.ZodObject<{
1024
+ code: z.ZodString;
1025
+ name: z.ZodString;
1026
+ decimalPlaces: z.ZodNumber;
1027
+ displaySymbol: z.ZodString;
1028
+ nameCode: z.ZodString;
1029
+ currencyCodeInDigit: z.ZodNumber;
1030
+ isBaseCurrency: z.ZodBoolean;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ code: string;
1033
+ name: string;
1034
+ decimalPlaces: number;
1035
+ displaySymbol: string;
1036
+ nameCode: string;
1037
+ currencyCodeInDigit: number;
1038
+ isBaseCurrency: boolean;
1039
+ }, {
1040
+ code: string;
1041
+ name: string;
1042
+ decimalPlaces: number;
1043
+ displaySymbol: string;
1044
+ nameCode: string;
1045
+ currencyCodeInDigit: number;
1046
+ isBaseCurrency: boolean;
1047
+ }>;
1048
+ currency: z.ZodString;
1049
+ }, z.ZodAny, "strip"> | undefined>;
1050
+ };
1051
+ delete: (id: number) => {
1052
+ execute: () => Promise<void | undefined>;
1053
+ };
1054
+ list: () => {
1055
+ where: any;
1056
+ limit: (value: number) => /*elided*/ any;
1057
+ offset: (value: number) => /*elided*/ any;
1058
+ all: () => /*elided*/ any;
1059
+ execute: () => Promise<unknown>;
1060
+ };
1061
+ };
1062
+ client: {
1063
+ create: (data: CreateClientRequest) => {
1064
+ execute: () => Promise<z.objectOutputType<{
1065
+ clientId: z.ZodNumber;
1066
+ status: z.ZodString;
1067
+ }, z.ZodAny, "strip"> | undefined>;
1068
+ };
1069
+ get: (id: number) => {
1070
+ execute: () => Promise<any>;
1071
+ };
1072
+ update: (id: number, data: UpdateClientRequest) => {
1073
+ execute: () => Promise<ProcessOutput | undefined>;
1074
+ };
1075
+ updateDocumentRecord: (id: number, data: UpdateClientIdentifierRequest) => {
1076
+ execute: () => Promise<z.objectOutputType<{
1077
+ id: z.ZodNumber;
1078
+ officeId: z.ZodNumber;
1079
+ clientId: z.ZodNumber;
1080
+ resourceId: z.ZodNumber;
1081
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
1082
+ isScheduledTransfer: z.ZodBoolean;
1083
+ isSkipNotification: z.ZodBoolean;
1084
+ }, z.ZodAny, "strip"> | undefined>;
1085
+ };
1086
+ delete: (id: number) => {
1087
+ execute: () => Promise<ProcessOutput | undefined>;
1088
+ };
1089
+ for: (clientId: string) => {
1090
+ accounts: {
1091
+ get: (accountId: number) => {
1092
+ readonly execute: () => Promise<{
1093
+ clientId: number;
1094
+ status: {
1095
+ value: string;
1096
+ code: string;
1097
+ id: number;
1098
+ submittedAndPendingApproval: boolean;
1099
+ approved: boolean;
1100
+ rejected: boolean;
1101
+ withdrawnByApplicant: boolean;
1102
+ active: boolean;
1103
+ closed: boolean;
1104
+ prematureClosed: boolean;
1105
+ transferInProgress: boolean;
1106
+ transferOnHold: boolean;
1107
+ matured: boolean;
1108
+ };
1109
+ id: number;
1110
+ currency: {
1111
+ code: string;
1112
+ name: string;
1113
+ decimalPlaces: number;
1114
+ displaySymbol: string;
1115
+ nameCode: string;
1116
+ inMultiplesOf: number;
1117
+ displayLabel: string;
1118
+ currencyCodeInDigit?: number | undefined;
1119
+ isBaseCurrency?: boolean | undefined;
1120
+ };
1121
+ accountNo: string;
1122
+ timeline: {
1123
+ submittedOnDate: number[];
1124
+ submittedByUsername: string;
1125
+ submittedByFirstname: string;
1126
+ submittedByLastname: string;
1127
+ approvedOnDate?: number[] | undefined;
1128
+ approvedByUsername?: string | undefined;
1129
+ approvedByFirstname?: string | undefined;
1130
+ approvedByLastname?: string | undefined;
1131
+ activatedOnDate?: number[] | undefined;
1132
+ activatedByUsername?: string | undefined;
1133
+ activatedByFirstname?: string | undefined;
1134
+ activatedByLastname?: string | undefined;
1135
+ };
1136
+ subStatus: {
1137
+ value: string;
1138
+ code: string;
1139
+ id: number;
1140
+ none: boolean;
1141
+ inactive: boolean;
1142
+ dormant: boolean;
1143
+ escheat: boolean;
1144
+ block: boolean;
1145
+ blockCredit: boolean;
1146
+ blockDebit: boolean;
1147
+ };
1148
+ lastActiveTransactionDate: number[];
1149
+ depositType: {
1150
+ value: string;
1151
+ code: string;
1152
+ id: number;
1153
+ };
1154
+ allowPrepaidCard: boolean;
1155
+ withdrawalFeeForTransfers: boolean;
1156
+ allowOverdraft: boolean;
1157
+ enforceMinRequiredBalance: boolean;
1158
+ withHoldTax: boolean;
1159
+ isDormancyTrackingActive: boolean;
1160
+ isLinkedToFloatingInterestRates: boolean;
1161
+ isBaseLendingRate: boolean;
1162
+ skipCollectTransferCharge: boolean;
1163
+ cardRestricted: boolean;
1164
+ prepaidAccount: boolean;
1165
+ clientName: string;
1166
+ savingsProductId: number;
1167
+ savingsProductName: string;
1168
+ fieldOfficerId: number;
1169
+ nominalAnnualInterestRate: number;
1170
+ interestCompoundingPeriodType: {
1171
+ value: string;
1172
+ code: string;
1173
+ id: number;
1174
+ };
1175
+ interestPostingPeriodType: {
1176
+ value: string;
1177
+ code: string;
1178
+ id: number;
1179
+ };
1180
+ interestCalculationType: {
1181
+ value: string;
1182
+ code: string;
1183
+ id: number;
1184
+ };
1185
+ interestCalculationDaysInYearType: {
1186
+ value: string;
1187
+ code: string;
1188
+ id: number;
1189
+ };
1190
+ lockinPeriodFrequency: number;
1191
+ lockinPeriodFrequencyType: {
1192
+ value: string;
1193
+ code: string;
1194
+ id: number;
1195
+ };
1196
+ onHoldFunds: number;
1197
+ savingsAmountOnHold: number;
1198
+ summary: {
1199
+ currency: {
1200
+ code: string;
1201
+ name: string;
1202
+ decimalPlaces: number;
1203
+ displaySymbol: string;
1204
+ nameCode: string;
1205
+ inMultiplesOf: number;
1206
+ displayLabel: string;
1207
+ currencyCodeInDigit?: number | undefined;
1208
+ isBaseCurrency?: boolean | undefined;
1209
+ };
1210
+ accountBalance: number;
1211
+ availableBalance: number;
1212
+ totalDeposits: number;
1213
+ totalInterestEarned: number;
1214
+ totalInterestPosted: number;
1215
+ totalOverdraftInterestDerived: number;
1216
+ interestNotPosted: number;
1217
+ lastInterestCalculationDate: number[];
1218
+ };
1219
+ interestRateDifferential: number;
1220
+ overdraftInterestRateDifferential: number;
1221
+ floatingRateId: number;
1222
+ isFloatingInterestRateCalculationAllowed: boolean;
1223
+ bankDetails: {
1224
+ address: string;
1225
+ name: string;
1226
+ city: string;
1227
+ routingNumber: string;
1228
+ swiftCode: string;
1229
+ postcode: string;
1230
+ };
1231
+ overdraftLimit: number;
1232
+ minRequiredBalance: number;
1233
+ minBalanceForInterestCalculation: number;
1234
+ minOverdraftForInterestCalculation: number;
1235
+ overdraftMinimumDue: number;
1236
+ currentFloatingInterestPeriod: {
1237
+ fromDate: number[];
1238
+ interestRate: number;
1239
+ isDifferentialToBLR: boolean;
1240
+ };
1241
+ floatingRateName: string;
1242
+ floatingRateDifferential: number;
1243
+ parentAccount: {
1244
+ allowPrepaidCard: boolean;
1245
+ withdrawalFeeForTransfers: boolean;
1246
+ allowOverdraft: boolean;
1247
+ enforceMinRequiredBalance: boolean;
1248
+ withHoldTax: boolean;
1249
+ isDormancyTrackingActive: boolean;
1250
+ isLinkedToFloatingInterestRates: boolean;
1251
+ isBaseLendingRate: boolean;
1252
+ skipCollectTransferCharge: boolean;
1253
+ cardRestricted: boolean;
1254
+ prepaidAccount: boolean;
1255
+ };
1256
+ prepaidLimitAmount: number;
1257
+ } | undefined>;
1258
+ };
1259
+ getFromList: (accountId: number) => {
1260
+ readonly execute: () => Promise<any>;
1261
+ };
1262
+ update: (accountId: number, updates: UpdateAccountRequest) => {
1263
+ execute: () => Promise<any>;
1264
+ };
1265
+ delete: (accountId: number) => {
1266
+ execute: () => Promise<ProcessOutput | undefined>;
1267
+ };
1268
+ where: () => {
1269
+ eq: () => {
1270
+ list: () => {
1271
+ where: any;
1272
+ execute: () => Promise<unknown>;
1273
+ };
1274
+ };
1275
+ };
1276
+ list: () => {
1277
+ where: any;
1278
+ execute: () => Promise<unknown>;
1279
+ };
1280
+ };
1281
+ };
1282
+ list: () => {
1283
+ where: any;
1284
+ limit: (value: number) => /*elided*/ any;
1285
+ offset: (value: number) => /*elided*/ any;
1286
+ all: () => /*elided*/ any;
1287
+ execute: () => Promise<unknown>;
1288
+ };
1289
+ };
1290
+ };
1291
+ };
1292
+
1293
+ export { createClient };