@mbanq/core-sdk-js 1.0.0-alpha.12 → 1.0.0-alpha.14

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.
@@ -125,6 +125,137 @@ declare const PaymentFiltersSchema: z.ZodObject<{
125
125
  offset?: number | undefined;
126
126
  }>;
127
127
  type PaymentFilters = z.infer<typeof PaymentFiltersSchema>;
128
+ declare const PaymentShape: {
129
+ id: z.ZodNumber;
130
+ clientId: z.ZodNumber;
131
+ amount: z.ZodNumber;
132
+ correlationId: z.ZodString;
133
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
134
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
135
+ recipient: z.ZodObject<{
136
+ cardId: z.ZodOptional<z.ZodString>;
137
+ recipientType: z.ZodString;
138
+ address: z.ZodObject<{
139
+ line1: z.ZodOptional<z.ZodString>;
140
+ line2: z.ZodOptional<z.ZodString>;
141
+ stateCode: z.ZodOptional<z.ZodString>;
142
+ countryCode: z.ZodString;
143
+ postalCode: z.ZodOptional<z.ZodString>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ countryCode: string;
146
+ line1?: string | undefined;
147
+ line2?: string | undefined;
148
+ stateCode?: string | undefined;
149
+ postalCode?: string | undefined;
150
+ }, {
151
+ countryCode: string;
152
+ line1?: string | undefined;
153
+ line2?: string | undefined;
154
+ stateCode?: string | undefined;
155
+ postalCode?: string | undefined;
156
+ }>;
157
+ name: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ recipientType: string;
160
+ address: {
161
+ countryCode: string;
162
+ line1?: string | undefined;
163
+ line2?: string | undefined;
164
+ stateCode?: string | undefined;
165
+ postalCode?: string | undefined;
166
+ };
167
+ name: string;
168
+ cardId?: string | undefined;
169
+ }, {
170
+ recipientType: string;
171
+ address: {
172
+ countryCode: string;
173
+ line1?: string | undefined;
174
+ line2?: string | undefined;
175
+ stateCode?: string | undefined;
176
+ postalCode?: string | undefined;
177
+ };
178
+ name: string;
179
+ cardId?: string | undefined;
180
+ }>;
181
+ originator: z.ZodObject<{
182
+ accountId: z.ZodOptional<z.ZodString>;
183
+ recipientType: z.ZodString;
184
+ address: z.ZodObject<{
185
+ line1: z.ZodOptional<z.ZodString>;
186
+ line2: z.ZodOptional<z.ZodString>;
187
+ stateCode: z.ZodOptional<z.ZodString>;
188
+ countryCode: z.ZodString;
189
+ postalCode: z.ZodOptional<z.ZodString>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ countryCode: string;
192
+ line1?: string | undefined;
193
+ line2?: string | undefined;
194
+ stateCode?: string | undefined;
195
+ postalCode?: string | undefined;
196
+ }, {
197
+ countryCode: string;
198
+ line1?: string | undefined;
199
+ line2?: string | undefined;
200
+ stateCode?: string | undefined;
201
+ postalCode?: string | undefined;
202
+ }>;
203
+ name: z.ZodString;
204
+ }, "strip", z.ZodTypeAny, {
205
+ recipientType: string;
206
+ address: {
207
+ countryCode: string;
208
+ line1?: string | undefined;
209
+ line2?: string | undefined;
210
+ stateCode?: string | undefined;
211
+ postalCode?: string | undefined;
212
+ };
213
+ name: string;
214
+ accountId?: string | undefined;
215
+ }, {
216
+ recipientType: string;
217
+ address: {
218
+ countryCode: string;
219
+ line1?: string | undefined;
220
+ line2?: string | undefined;
221
+ stateCode?: string | undefined;
222
+ postalCode?: string | undefined;
223
+ };
224
+ name: string;
225
+ accountId?: string | undefined;
226
+ }>;
227
+ executedAt: z.ZodString;
228
+ createdAt: z.ZodString;
229
+ externalId: z.ZodString;
230
+ status: z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>;
231
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
232
+ currencyData: z.ZodObject<{
233
+ code: z.ZodString;
234
+ name: z.ZodString;
235
+ decimalPlaces: z.ZodNumber;
236
+ displaySymbol: z.ZodString;
237
+ nameCode: z.ZodString;
238
+ currencyCodeInDigit: z.ZodNumber;
239
+ isBaseCurrency: z.ZodBoolean;
240
+ }, "strip", z.ZodTypeAny, {
241
+ code: string;
242
+ name: string;
243
+ decimalPlaces: number;
244
+ displaySymbol: string;
245
+ nameCode: string;
246
+ currencyCodeInDigit: number;
247
+ isBaseCurrency: boolean;
248
+ }, {
249
+ code: string;
250
+ name: string;
251
+ decimalPlaces: number;
252
+ displaySymbol: string;
253
+ nameCode: string;
254
+ currencyCodeInDigit: number;
255
+ isBaseCurrency: boolean;
256
+ }>;
257
+ currency: z.ZodString;
258
+ };
128
259
  declare const PaymentSchema: z.ZodObject<{
129
260
  id: z.ZodNumber;
130
261
  clientId: z.ZodNumber;
@@ -516,7 +647,7 @@ declare const PaymentSchema: z.ZodObject<{
516
647
  }>;
517
648
  currency: z.ZodString;
518
649
  }, z.ZodAny, "strip">>;
519
- declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
650
+ declare const CreatePaymentInputShape: {
520
651
  amount: z.ZodNumber;
521
652
  currency: z.ZodString;
522
653
  paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
@@ -863,7 +994,8 @@ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
863
994
  purposeCode: z.ZodOptional<z.ZodString>;
864
995
  valueDate: z.ZodOptional<z.ZodString>;
865
996
  executionDate: z.ZodOptional<z.ZodString>;
866
- }, "strip", z.ZodAny, z.objectOutputType<{
997
+ };
998
+ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
867
999
  amount: z.ZodNumber;
868
1000
  currency: z.ZodString;
869
1001
  paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
@@ -1210,7 +1342,7 @@ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
1210
1342
  purposeCode: z.ZodOptional<z.ZodString>;
1211
1343
  valueDate: z.ZodOptional<z.ZodString>;
1212
1344
  executionDate: z.ZodOptional<z.ZodString>;
1213
- }, z.ZodAny, "strip">, z.objectInputType<{
1345
+ }, "strip", z.ZodAny, z.objectOutputType<{
1214
1346
  amount: z.ZodNumber;
1215
1347
  currency: z.ZodString;
1216
1348
  paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
@@ -1557,7 +1689,7 @@ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
1557
1689
  purposeCode: z.ZodOptional<z.ZodString>;
1558
1690
  valueDate: z.ZodOptional<z.ZodString>;
1559
1691
  executionDate: z.ZodOptional<z.ZodString>;
1560
- }, z.ZodAny, "strip">>, z.objectOutputType<{
1692
+ }, z.ZodAny, "strip">, z.objectInputType<{
1561
1693
  amount: z.ZodNumber;
1562
1694
  currency: z.ZodString;
1563
1695
  paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
@@ -1904,7 +2036,7 @@ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
1904
2036
  purposeCode: z.ZodOptional<z.ZodString>;
1905
2037
  valueDate: z.ZodOptional<z.ZodString>;
1906
2038
  executionDate: z.ZodOptional<z.ZodString>;
1907
- }, z.ZodAny, "strip">, z.objectInputType<{
2039
+ }, z.ZodAny, "strip">>, z.objectOutputType<{
1908
2040
  amount: z.ZodNumber;
1909
2041
  currency: z.ZodString;
1910
2042
  paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
@@ -2251,7 +2383,439 @@ declare const CreatePaymentInputSchema: z.ZodEffects<z.ZodObject<{
2251
2383
  purposeCode: z.ZodOptional<z.ZodString>;
2252
2384
  valueDate: z.ZodOptional<z.ZodString>;
2253
2385
  executionDate: z.ZodOptional<z.ZodString>;
2254
- }, z.ZodAny, "strip">>;
2386
+ }, z.ZodAny, "strip">, z.objectInputType<{
2387
+ amount: z.ZodNumber;
2388
+ currency: z.ZodString;
2389
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
2390
+ paymentType: z.ZodEnum<["CREDIT", "DEBIT"]>;
2391
+ debtor: z.ZodObject<{
2392
+ name: z.ZodString;
2393
+ identifier: z.ZodString;
2394
+ accountType: z.ZodOptional<z.ZodEnum<["CHECKING", "SAVINGS"]>>;
2395
+ address: z.ZodOptional<z.ZodObject<{
2396
+ streetAddress: z.ZodOptional<z.ZodString>;
2397
+ city: z.ZodOptional<z.ZodString>;
2398
+ state: z.ZodOptional<z.ZodString>;
2399
+ country: z.ZodOptional<z.ZodString>;
2400
+ postalCode: z.ZodOptional<z.ZodString>;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ postalCode?: string | undefined;
2403
+ streetAddress?: string | undefined;
2404
+ city?: string | undefined;
2405
+ state?: string | undefined;
2406
+ country?: string | undefined;
2407
+ }, {
2408
+ postalCode?: string | undefined;
2409
+ streetAddress?: string | undefined;
2410
+ city?: string | undefined;
2411
+ state?: string | undefined;
2412
+ country?: string | undefined;
2413
+ }>>;
2414
+ agent: z.ZodOptional<z.ZodObject<{
2415
+ name: z.ZodOptional<z.ZodString>;
2416
+ identifier: z.ZodOptional<z.ZodString>;
2417
+ address: z.ZodOptional<z.ZodObject<{
2418
+ streetAddress: z.ZodOptional<z.ZodString>;
2419
+ city: z.ZodOptional<z.ZodString>;
2420
+ state: z.ZodOptional<z.ZodString>;
2421
+ country: z.ZodOptional<z.ZodString>;
2422
+ postalCode: z.ZodOptional<z.ZodString>;
2423
+ }, "strip", z.ZodTypeAny, {
2424
+ postalCode?: string | undefined;
2425
+ streetAddress?: string | undefined;
2426
+ city?: string | undefined;
2427
+ state?: string | undefined;
2428
+ country?: string | undefined;
2429
+ }, {
2430
+ postalCode?: string | undefined;
2431
+ streetAddress?: string | undefined;
2432
+ city?: string | undefined;
2433
+ state?: string | undefined;
2434
+ country?: string | undefined;
2435
+ }>>;
2436
+ }, "strip", z.ZodTypeAny, {
2437
+ address?: {
2438
+ postalCode?: string | undefined;
2439
+ streetAddress?: string | undefined;
2440
+ city?: string | undefined;
2441
+ state?: string | undefined;
2442
+ country?: string | undefined;
2443
+ } | undefined;
2444
+ name?: string | undefined;
2445
+ identifier?: string | undefined;
2446
+ }, {
2447
+ address?: {
2448
+ postalCode?: string | undefined;
2449
+ streetAddress?: string | undefined;
2450
+ city?: string | undefined;
2451
+ state?: string | undefined;
2452
+ country?: string | undefined;
2453
+ } | undefined;
2454
+ name?: string | undefined;
2455
+ identifier?: string | undefined;
2456
+ }>>;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ name: string;
2459
+ identifier: string;
2460
+ address?: {
2461
+ postalCode?: string | undefined;
2462
+ streetAddress?: string | undefined;
2463
+ city?: string | undefined;
2464
+ state?: string | undefined;
2465
+ country?: string | undefined;
2466
+ } | undefined;
2467
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2468
+ agent?: {
2469
+ address?: {
2470
+ postalCode?: string | undefined;
2471
+ streetAddress?: string | undefined;
2472
+ city?: string | undefined;
2473
+ state?: string | undefined;
2474
+ country?: string | undefined;
2475
+ } | undefined;
2476
+ name?: string | undefined;
2477
+ identifier?: string | undefined;
2478
+ } | undefined;
2479
+ }, {
2480
+ name: string;
2481
+ identifier: string;
2482
+ address?: {
2483
+ postalCode?: string | undefined;
2484
+ streetAddress?: string | undefined;
2485
+ city?: string | undefined;
2486
+ state?: string | undefined;
2487
+ country?: string | undefined;
2488
+ } | undefined;
2489
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2490
+ agent?: {
2491
+ address?: {
2492
+ postalCode?: string | undefined;
2493
+ streetAddress?: string | undefined;
2494
+ city?: string | undefined;
2495
+ state?: string | undefined;
2496
+ country?: string | undefined;
2497
+ } | undefined;
2498
+ name?: string | undefined;
2499
+ identifier?: string | undefined;
2500
+ } | undefined;
2501
+ }>;
2502
+ creditor: z.ZodObject<{
2503
+ name: z.ZodString;
2504
+ identifier: z.ZodString;
2505
+ accountType: z.ZodOptional<z.ZodEnum<["CHECKING", "SAVINGS"]>>;
2506
+ address: z.ZodOptional<z.ZodObject<{
2507
+ streetAddress: z.ZodOptional<z.ZodString>;
2508
+ city: z.ZodOptional<z.ZodString>;
2509
+ state: z.ZodOptional<z.ZodString>;
2510
+ country: z.ZodOptional<z.ZodString>;
2511
+ postalCode: z.ZodOptional<z.ZodString>;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ postalCode?: string | undefined;
2514
+ streetAddress?: string | undefined;
2515
+ city?: string | undefined;
2516
+ state?: string | undefined;
2517
+ country?: string | undefined;
2518
+ }, {
2519
+ postalCode?: string | undefined;
2520
+ streetAddress?: string | undefined;
2521
+ city?: string | undefined;
2522
+ state?: string | undefined;
2523
+ country?: string | undefined;
2524
+ }>>;
2525
+ agent: z.ZodOptional<z.ZodObject<{
2526
+ name: z.ZodOptional<z.ZodString>;
2527
+ identifier: z.ZodOptional<z.ZodString>;
2528
+ address: z.ZodOptional<z.ZodObject<{
2529
+ streetAddress: z.ZodOptional<z.ZodString>;
2530
+ city: z.ZodOptional<z.ZodString>;
2531
+ state: z.ZodOptional<z.ZodString>;
2532
+ country: z.ZodOptional<z.ZodString>;
2533
+ postalCode: z.ZodOptional<z.ZodString>;
2534
+ }, "strip", z.ZodTypeAny, {
2535
+ postalCode?: string | undefined;
2536
+ streetAddress?: string | undefined;
2537
+ city?: string | undefined;
2538
+ state?: string | undefined;
2539
+ country?: string | undefined;
2540
+ }, {
2541
+ postalCode?: string | undefined;
2542
+ streetAddress?: string | undefined;
2543
+ city?: string | undefined;
2544
+ state?: string | undefined;
2545
+ country?: string | undefined;
2546
+ }>>;
2547
+ }, "strip", z.ZodTypeAny, {
2548
+ address?: {
2549
+ postalCode?: string | undefined;
2550
+ streetAddress?: string | undefined;
2551
+ city?: string | undefined;
2552
+ state?: string | undefined;
2553
+ country?: string | undefined;
2554
+ } | undefined;
2555
+ name?: string | undefined;
2556
+ identifier?: string | undefined;
2557
+ }, {
2558
+ address?: {
2559
+ postalCode?: string | undefined;
2560
+ streetAddress?: string | undefined;
2561
+ city?: string | undefined;
2562
+ state?: string | undefined;
2563
+ country?: string | undefined;
2564
+ } | undefined;
2565
+ name?: string | undefined;
2566
+ identifier?: string | undefined;
2567
+ }>>;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ name: string;
2570
+ identifier: string;
2571
+ address?: {
2572
+ postalCode?: string | undefined;
2573
+ streetAddress?: string | undefined;
2574
+ city?: string | undefined;
2575
+ state?: string | undefined;
2576
+ country?: string | undefined;
2577
+ } | undefined;
2578
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2579
+ agent?: {
2580
+ address?: {
2581
+ postalCode?: string | undefined;
2582
+ streetAddress?: string | undefined;
2583
+ city?: string | undefined;
2584
+ state?: string | undefined;
2585
+ country?: string | undefined;
2586
+ } | undefined;
2587
+ name?: string | undefined;
2588
+ identifier?: string | undefined;
2589
+ } | undefined;
2590
+ }, {
2591
+ name: string;
2592
+ identifier: string;
2593
+ address?: {
2594
+ postalCode?: string | undefined;
2595
+ streetAddress?: string | undefined;
2596
+ city?: string | undefined;
2597
+ state?: string | undefined;
2598
+ country?: string | undefined;
2599
+ } | undefined;
2600
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2601
+ agent?: {
2602
+ address?: {
2603
+ postalCode?: string | undefined;
2604
+ streetAddress?: string | undefined;
2605
+ city?: string | undefined;
2606
+ state?: string | undefined;
2607
+ country?: string | undefined;
2608
+ } | undefined;
2609
+ name?: string | undefined;
2610
+ identifier?: string | undefined;
2611
+ } | undefined;
2612
+ }>;
2613
+ clientId: z.ZodOptional<z.ZodString>;
2614
+ correspondent: z.ZodOptional<z.ZodObject<{
2615
+ name: z.ZodString;
2616
+ identifier: z.ZodString;
2617
+ accountType: z.ZodOptional<z.ZodEnum<["CHECKING", "SAVINGS"]>>;
2618
+ address: z.ZodOptional<z.ZodObject<{
2619
+ streetAddress: z.ZodOptional<z.ZodString>;
2620
+ city: z.ZodOptional<z.ZodString>;
2621
+ state: z.ZodOptional<z.ZodString>;
2622
+ country: z.ZodOptional<z.ZodString>;
2623
+ postalCode: z.ZodOptional<z.ZodString>;
2624
+ }, "strip", z.ZodTypeAny, {
2625
+ postalCode?: string | undefined;
2626
+ streetAddress?: string | undefined;
2627
+ city?: string | undefined;
2628
+ state?: string | undefined;
2629
+ country?: string | undefined;
2630
+ }, {
2631
+ postalCode?: string | undefined;
2632
+ streetAddress?: string | undefined;
2633
+ city?: string | undefined;
2634
+ state?: string | undefined;
2635
+ country?: string | undefined;
2636
+ }>>;
2637
+ agent: z.ZodOptional<z.ZodObject<{
2638
+ name: z.ZodOptional<z.ZodString>;
2639
+ identifier: z.ZodOptional<z.ZodString>;
2640
+ address: z.ZodOptional<z.ZodObject<{
2641
+ streetAddress: z.ZodOptional<z.ZodString>;
2642
+ city: z.ZodOptional<z.ZodString>;
2643
+ state: z.ZodOptional<z.ZodString>;
2644
+ country: z.ZodOptional<z.ZodString>;
2645
+ postalCode: z.ZodOptional<z.ZodString>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ postalCode?: string | undefined;
2648
+ streetAddress?: string | undefined;
2649
+ city?: string | undefined;
2650
+ state?: string | undefined;
2651
+ country?: string | undefined;
2652
+ }, {
2653
+ postalCode?: string | undefined;
2654
+ streetAddress?: string | undefined;
2655
+ city?: string | undefined;
2656
+ state?: string | undefined;
2657
+ country?: string | undefined;
2658
+ }>>;
2659
+ }, "strip", z.ZodTypeAny, {
2660
+ address?: {
2661
+ postalCode?: string | undefined;
2662
+ streetAddress?: string | undefined;
2663
+ city?: string | undefined;
2664
+ state?: string | undefined;
2665
+ country?: string | undefined;
2666
+ } | undefined;
2667
+ name?: string | undefined;
2668
+ identifier?: string | undefined;
2669
+ }, {
2670
+ address?: {
2671
+ postalCode?: string | undefined;
2672
+ streetAddress?: string | undefined;
2673
+ city?: string | undefined;
2674
+ state?: string | undefined;
2675
+ country?: string | undefined;
2676
+ } | undefined;
2677
+ name?: string | undefined;
2678
+ identifier?: string | undefined;
2679
+ }>>;
2680
+ }, "strip", z.ZodTypeAny, {
2681
+ name: string;
2682
+ identifier: string;
2683
+ address?: {
2684
+ postalCode?: string | undefined;
2685
+ streetAddress?: string | undefined;
2686
+ city?: string | undefined;
2687
+ state?: string | undefined;
2688
+ country?: string | undefined;
2689
+ } | undefined;
2690
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2691
+ agent?: {
2692
+ address?: {
2693
+ postalCode?: string | undefined;
2694
+ streetAddress?: string | undefined;
2695
+ city?: string | undefined;
2696
+ state?: string | undefined;
2697
+ country?: string | undefined;
2698
+ } | undefined;
2699
+ name?: string | undefined;
2700
+ identifier?: string | undefined;
2701
+ } | undefined;
2702
+ }, {
2703
+ name: string;
2704
+ identifier: string;
2705
+ address?: {
2706
+ postalCode?: string | undefined;
2707
+ streetAddress?: string | undefined;
2708
+ city?: string | undefined;
2709
+ state?: string | undefined;
2710
+ country?: string | undefined;
2711
+ } | undefined;
2712
+ accountType?: "CHECKING" | "SAVINGS" | undefined;
2713
+ agent?: {
2714
+ address?: {
2715
+ postalCode?: string | undefined;
2716
+ streetAddress?: string | undefined;
2717
+ city?: string | undefined;
2718
+ state?: string | undefined;
2719
+ country?: string | undefined;
2720
+ } | undefined;
2721
+ name?: string | undefined;
2722
+ identifier?: string | undefined;
2723
+ } | undefined;
2724
+ }>>;
2725
+ exchangeRate: z.ZodOptional<z.ZodNumber>;
2726
+ externalId: z.ZodOptional<z.ZodString>;
2727
+ reference: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2728
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2729
+ chargeBearer: z.ZodOptional<z.ZodEnum<["OUR", "BEN", "SHA"]>>;
2730
+ purposeCode: z.ZodOptional<z.ZodString>;
2731
+ valueDate: z.ZodOptional<z.ZodString>;
2732
+ executionDate: z.ZodOptional<z.ZodString>;
2733
+ }, z.ZodAny, "strip">>;
2734
+ declare const UpdatePaymentInputShape: {
2735
+ amount: z.ZodOptional<z.ZodNumber>;
2736
+ correspondent: z.ZodOptional<z.ZodObject<{
2737
+ name: z.ZodOptional<z.ZodString>;
2738
+ identifier: z.ZodOptional<z.ZodString>;
2739
+ accountType: z.ZodOptional<z.ZodString>;
2740
+ }, "strip", z.ZodTypeAny, {
2741
+ name?: string | undefined;
2742
+ identifier?: string | undefined;
2743
+ accountType?: string | undefined;
2744
+ }, {
2745
+ name?: string | undefined;
2746
+ identifier?: string | undefined;
2747
+ accountType?: string | undefined;
2748
+ }>>;
2749
+ creditor: z.ZodOptional<z.ZodObject<{
2750
+ name: z.ZodOptional<z.ZodString>;
2751
+ identifier: z.ZodOptional<z.ZodString>;
2752
+ accountType: z.ZodOptional<z.ZodString>;
2753
+ agent: z.ZodOptional<z.ZodObject<{
2754
+ name: z.ZodOptional<z.ZodString>;
2755
+ identifier: z.ZodOptional<z.ZodString>;
2756
+ }, "strip", z.ZodTypeAny, {
2757
+ name?: string | undefined;
2758
+ identifier?: string | undefined;
2759
+ }, {
2760
+ name?: string | undefined;
2761
+ identifier?: string | undefined;
2762
+ }>>;
2763
+ }, "strip", z.ZodTypeAny, {
2764
+ name?: string | undefined;
2765
+ identifier?: string | undefined;
2766
+ accountType?: string | undefined;
2767
+ agent?: {
2768
+ name?: string | undefined;
2769
+ identifier?: string | undefined;
2770
+ } | undefined;
2771
+ }, {
2772
+ name?: string | undefined;
2773
+ identifier?: string | undefined;
2774
+ accountType?: string | undefined;
2775
+ agent?: {
2776
+ name?: string | undefined;
2777
+ identifier?: string | undefined;
2778
+ } | undefined;
2779
+ }>>;
2780
+ debtor: z.ZodOptional<z.ZodObject<{
2781
+ name: z.ZodOptional<z.ZodString>;
2782
+ identifier: z.ZodOptional<z.ZodString>;
2783
+ accountType: z.ZodOptional<z.ZodString>;
2784
+ agent: z.ZodOptional<z.ZodObject<{
2785
+ name: z.ZodOptional<z.ZodString>;
2786
+ identifier: z.ZodOptional<z.ZodString>;
2787
+ }, "strip", z.ZodTypeAny, {
2788
+ name?: string | undefined;
2789
+ identifier?: string | undefined;
2790
+ }, {
2791
+ name?: string | undefined;
2792
+ identifier?: string | undefined;
2793
+ }>>;
2794
+ }, "strip", z.ZodTypeAny, {
2795
+ name?: string | undefined;
2796
+ identifier?: string | undefined;
2797
+ accountType?: string | undefined;
2798
+ agent?: {
2799
+ name?: string | undefined;
2800
+ identifier?: string | undefined;
2801
+ } | undefined;
2802
+ }, {
2803
+ name?: string | undefined;
2804
+ identifier?: string | undefined;
2805
+ accountType?: string | undefined;
2806
+ agent?: {
2807
+ name?: string | undefined;
2808
+ identifier?: string | undefined;
2809
+ } | undefined;
2810
+ }>>;
2811
+ exchangeRate: z.ZodOptional<z.ZodNumber>;
2812
+ externalId: z.ZodOptional<z.ZodString>;
2813
+ errorCode: z.ZodOptional<z.ZodString>;
2814
+ errorMessage: z.ZodOptional<z.ZodString>;
2815
+ reference: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2816
+ paymentRailMetaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2817
+ status: z.ZodOptional<z.ZodEnum<["DRAFT", "AML_SCREENING", "AML_REJECTED", "EXECUTION_SCHEDULED", "EXECUTION_PROCESSING", "EXECUTION_SUCCESS", "EXECUTION_FAILURE", "RETURNED", "CANCELLED", "COMPLIANCE_FAILURE", "DELETED", "UNKNOWN"]>>;
2818
+ };
2255
2819
  declare const UpdatePaymentInputSchema: z.ZodObject<{
2256
2820
  amount: z.ZodOptional<z.ZodNumber>;
2257
2821
  correspondent: z.ZodOptional<z.ZodObject<{
@@ -4001,4 +4565,4 @@ declare const createClient: (initialConfig: Config) => {
4001
4565
  };
4002
4566
  };
4003
4567
 
4004
- export { type CreatePaymentInput as C, type Payment as P, SortOrderSchema as S, type UpdatePaymentInput as U, type PaymentFilters as a, type PaymentResponse as b, createClient as c, type PaymentStatus as d, type PaymentRailType as e, type PaymentType as f, PaymentStatusSchema as g, PaymentFilterKeySchema as h, PaymentRailSchema as i, PaymentTypeSchema as j, CreatePaymentInputSchema as k, UpdatePaymentInputSchema as l, PaymentResponseSchema as m, PaymentFiltersSchema as n, PaymentFilterShape as o };
4568
+ export { type CreatePaymentInput as C, type Payment as P, SortOrderSchema as S, type UpdatePaymentInput as U, type PaymentFilters as a, type PaymentResponse as b, createClient as c, type PaymentStatus as d, type PaymentRailType as e, type PaymentType as f, PaymentStatusSchema as g, PaymentFilterKeySchema as h, PaymentRailSchema as i, PaymentTypeSchema as j, CreatePaymentInputSchema as k, UpdatePaymentInputSchema as l, PaymentResponseSchema as m, PaymentFiltersSchema as n, PaymentFilterShape as o, PaymentShape as p, CreatePaymentInputShape as q, UpdatePaymentInputShape as r };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CreatePaymentInput, P as Payment, U as UpdatePaymentInput, a as PaymentFilters, b as PaymentResponse } from './index-CASxEasn.mjs';
2
- export { k as CreatePaymentInputZod, h as PaymentFilterKeyZod, o as PaymentFilterShape, n as PaymentFiltersZod, e as PaymentRailType, i as PaymentRailZod, m as PaymentResponseZod, d as PaymentStatus, g as PaymentStatusZod, f as PaymentType, j as PaymentTypeZod, S as SortOrderZod, l as UpdatePaymentInputZod, c as createClient } from './index-CASxEasn.mjs';
1
+ import { C as CreatePaymentInput, P as Payment, U as UpdatePaymentInput, a as PaymentFilters, b as PaymentResponse } from './index-DvE2ddFU.mjs';
2
+ export { q as CreatePaymentInputShape, k as CreatePaymentInputZod, h as PaymentFilterKeyZod, o as PaymentFilterShape, n as PaymentFiltersZod, e as PaymentRailType, i as PaymentRailZod, m as PaymentResponseZod, p as PaymentShape, d as PaymentStatus, g as PaymentStatusZod, f as PaymentType, j as PaymentTypeZod, S as SortOrderZod, r as UpdatePaymentInputShape, l as UpdatePaymentInputZod, c as createClient } from './index-DvE2ddFU.mjs';
3
3
  import { M as Middleware, C as Command } from './config.d-CyK6ZM6s.mjs';
4
4
  export { a as Config } from './config.d-CyK6ZM6s.mjs';
5
5
  export { G as GetClientData, c as GraphQL, S as SendAuthorizationToCore, U as UpdateCardID, a as UpdateClient, b as UpdateClientIdentifier } from './index-5Sj83ZJ4.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CreatePaymentInput, P as Payment, U as UpdatePaymentInput, a as PaymentFilters, b as PaymentResponse } from './index-CDXiIoqN.js';
2
- export { k as CreatePaymentInputZod, h as PaymentFilterKeyZod, o as PaymentFilterShape, n as PaymentFiltersZod, e as PaymentRailType, i as PaymentRailZod, m as PaymentResponseZod, d as PaymentStatus, g as PaymentStatusZod, f as PaymentType, j as PaymentTypeZod, S as SortOrderZod, l as UpdatePaymentInputZod, c as createClient } from './index-CDXiIoqN.js';
1
+ import { C as CreatePaymentInput, P as Payment, U as UpdatePaymentInput, a as PaymentFilters, b as PaymentResponse } from './index-vaBvDmsq.js';
2
+ export { q as CreatePaymentInputShape, k as CreatePaymentInputZod, h as PaymentFilterKeyZod, o as PaymentFilterShape, n as PaymentFiltersZod, e as PaymentRailType, i as PaymentRailZod, m as PaymentResponseZod, p as PaymentShape, d as PaymentStatus, g as PaymentStatusZod, f as PaymentType, j as PaymentTypeZod, S as SortOrderZod, r as UpdatePaymentInputShape, l as UpdatePaymentInputZod, c as createClient } from './index-vaBvDmsq.js';
3
3
  import { M as Middleware, C as Command } from './config.d-CyK6ZM6s.js';
4
4
  export { a as Config } from './config.d-CyK6ZM6s.js';
5
5
  export { G as GetClientData, c as GraphQL, S as SendAuthorizationToCore, U as UpdateCardID, a as UpdateClient, b as UpdateClientIdentifier } from './index-DXK5OdKW.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSMOK4ASFjs = require('./chunk-SMOK4ASF.js');var _chunkBDI3SHA2js = require('./chunk-BDI3SHA2.js');var _chunkOGW7GTJPjs = require('./chunk-OGW7GTJP.js');var Z=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var I=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});exports.CreatePayment = _chunkSMOK4ASFjs.k; exports.CreatePaymentInputZod = _chunkSMOK4ASFjs.h; exports.GetClientData = _chunkBDI3SHA2js.c; exports.GetPayment = _chunkSMOK4ASFjs.l; exports.GetPayments = _chunkSMOK4ASFjs.n; exports.GraphQL = _chunkBDI3SHA2js.f; exports.PaymentFilterKeyZod = _chunkSMOK4ASFjs.a; exports.PaymentFilterShape = _chunkSMOK4ASFjs.f; exports.PaymentFiltersZod = _chunkSMOK4ASFjs.g; exports.PaymentRailZod = _chunkSMOK4ASFjs.c; exports.PaymentResponseZod = _chunkSMOK4ASFjs.j; exports.PaymentStatusZod = _chunkSMOK4ASFjs.b; exports.PaymentTypeZod = _chunkSMOK4ASFjs.d; exports.SendAuthorizationToCore = _chunkBDI3SHA2js.a; exports.SortOrderZod = _chunkSMOK4ASFjs.e; exports.UpdateCardID = _chunkBDI3SHA2js.b; exports.UpdateClient = _chunkBDI3SHA2js.d; exports.UpdateClientIdentifier = _chunkBDI3SHA2js.e; exports.UpdatePayment = _chunkSMOK4ASFjs.m; exports.UpdatePaymentInputZod = _chunkSMOK4ASFjs.i; exports.createClient = _chunkSMOK4ASFjs.o; exports.createLoggingMiddleware = Z; exports.createMetricsMiddleware = I; exports.isCommandError = _chunkOGW7GTJPjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZTU6WB3Tjs = require('./chunk-ZTU6WB3T.js');var _chunkBDI3SHA2js = require('./chunk-BDI3SHA2.js');var _chunkOGW7GTJPjs = require('./chunk-OGW7GTJP.js');var N=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var v=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});exports.CreatePayment = _chunkZTU6WB3Tjs.n; exports.CreatePaymentInputShape = _chunkZTU6WB3Tjs.i; exports.CreatePaymentInputZod = _chunkZTU6WB3Tjs.j; exports.GetClientData = _chunkBDI3SHA2js.c; exports.GetPayment = _chunkZTU6WB3Tjs.o; exports.GetPayments = _chunkZTU6WB3Tjs.q; exports.GraphQL = _chunkBDI3SHA2js.f; exports.PaymentFilterKeyZod = _chunkZTU6WB3Tjs.a; exports.PaymentFilterShape = _chunkZTU6WB3Tjs.f; exports.PaymentFiltersZod = _chunkZTU6WB3Tjs.g; exports.PaymentRailZod = _chunkZTU6WB3Tjs.c; exports.PaymentResponseZod = _chunkZTU6WB3Tjs.m; exports.PaymentShape = _chunkZTU6WB3Tjs.h; exports.PaymentStatusZod = _chunkZTU6WB3Tjs.b; exports.PaymentTypeZod = _chunkZTU6WB3Tjs.d; exports.SendAuthorizationToCore = _chunkBDI3SHA2js.a; exports.SortOrderZod = _chunkZTU6WB3Tjs.e; exports.UpdateCardID = _chunkBDI3SHA2js.b; exports.UpdateClient = _chunkBDI3SHA2js.d; exports.UpdateClientIdentifier = _chunkBDI3SHA2js.e; exports.UpdatePayment = _chunkZTU6WB3Tjs.p; exports.UpdatePaymentInputShape = _chunkZTU6WB3Tjs.k; exports.UpdatePaymentInputZod = _chunkZTU6WB3Tjs.l; exports.createClient = _chunkZTU6WB3Tjs.r; exports.createLoggingMiddleware = N; exports.createMetricsMiddleware = v; exports.isCommandError = _chunkOGW7GTJPjs.b;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a as n,b as o,c as m,d,e as i,f as p,g as s,h as y,i as c,j as P,k as f,l as u,m as g,n as l,o as x}from"./chunk-DVUWFF32.mjs";import{a as C,b as S,c as w,d as M,e as h,f as E}from"./chunk-5PEETHWV.mjs";import{b as r}from"./chunk-RX3BFHHX.mjs";var Z=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var I=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});export{f as CreatePayment,y as CreatePaymentInputZod,w as GetClientData,u as GetPayment,l as GetPayments,E as GraphQL,n as PaymentFilterKeyZod,p as PaymentFilterShape,s as PaymentFiltersZod,m as PaymentRailZod,P as PaymentResponseZod,o as PaymentStatusZod,d as PaymentTypeZod,C as SendAuthorizationToCore,i as SortOrderZod,S as UpdateCardID,M as UpdateClient,h as UpdateClientIdentifier,g as UpdatePayment,c as UpdatePaymentInputZod,x as createClient,Z as createLoggingMiddleware,I as createMetricsMiddleware,r as isCommandError};
1
+ import{a as n,b as o,c as m,d,e as p,f as i,g as s,h as y,i as c,j as P,k as f,l as u,m as g,n as l,o as S,p as C,q as x,r as h}from"./chunk-GZY2CY5Q.mjs";import{a as w,b as M,c as E,d as I,e as Z,f as U}from"./chunk-5PEETHWV.mjs";import{b as r}from"./chunk-RX3BFHHX.mjs";var N=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var v=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});export{l as CreatePayment,c as CreatePaymentInputShape,P as CreatePaymentInputZod,E as GetClientData,S as GetPayment,x as GetPayments,U as GraphQL,n as PaymentFilterKeyZod,i as PaymentFilterShape,s as PaymentFiltersZod,m as PaymentRailZod,g as PaymentResponseZod,y as PaymentShape,o as PaymentStatusZod,d as PaymentTypeZod,w as SendAuthorizationToCore,p as SortOrderZod,M as UpdateCardID,I as UpdateClient,Z as UpdateClientIdentifier,C as UpdatePayment,f as UpdatePaymentInputShape,u as UpdatePaymentInputZod,h as createClient,N as createLoggingMiddleware,v as createMetricsMiddleware,r as isCommandError};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbanq/core-sdk-js",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.14",
4
4
  "description": "A comprehensive JavaScript SDK for interacting with the Mbanq payment API. Features type-safe payment operations, multi-tenant support, and Zod validation.",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {