@develit-services/bank 6.2.2 → 6.2.3

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,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.DIx4G38W.mjs';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.C7zoSV8F.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -364,7 +364,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
364
364
  city: z.ZodOptional<z.ZodString>;
365
365
  postalCode: z.ZodOptional<z.ZodString>;
366
366
  countryCode: z.ZodOptional<z.ZodEnum<{
367
- IM: "IM";
368
367
  AF: "AF";
369
368
  AL: "AL";
370
369
  DZ: "DZ";
@@ -454,6 +453,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
454
453
  IR: "IR";
455
454
  IQ: "IQ";
456
455
  IE: "IE";
456
+ IM: "IM";
457
457
  IL: "IL";
458
458
  IT: "IT";
459
459
  CI: "CI";
@@ -636,7 +636,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
636
636
  AVAX: "AVAX";
637
637
  }>>;
638
638
  countryCode: z.ZodOptional<z.ZodEnum<{
639
- IM: "IM";
640
639
  AF: "AF";
641
640
  AL: "AL";
642
641
  DZ: "DZ";
@@ -726,6 +725,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
726
725
  IR: "IR";
727
726
  IQ: "IQ";
728
727
  IE: "IE";
728
+ IM: "IM";
729
729
  IL: "IL";
730
730
  IT: "IT";
731
731
  CI: "CI";
@@ -929,7 +929,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
929
929
  city: z.ZodOptional<z.ZodString>;
930
930
  postalCode: z.ZodOptional<z.ZodString>;
931
931
  countryCode: z.ZodOptional<z.ZodEnum<{
932
- IM: "IM";
933
932
  AF: "AF";
934
933
  AL: "AL";
935
934
  DZ: "DZ";
@@ -1019,6 +1018,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1019
1018
  IR: "IR";
1020
1019
  IQ: "IQ";
1021
1020
  IE: "IE";
1021
+ IM: "IM";
1022
1022
  IL: "IL";
1023
1023
  IT: "IT";
1024
1024
  CI: "CI";
@@ -1201,7 +1201,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1201
1201
  AVAX: "AVAX";
1202
1202
  }>>;
1203
1203
  countryCode: z.ZodOptional<z.ZodEnum<{
1204
- IM: "IM";
1205
1204
  AF: "AF";
1206
1205
  AL: "AL";
1207
1206
  DZ: "DZ";
@@ -1291,6 +1290,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1291
1290
  IR: "IR";
1292
1291
  IQ: "IQ";
1293
1292
  IE: "IE";
1293
+ IM: "IM";
1294
1294
  IL: "IL";
1295
1295
  IT: "IT";
1296
1296
  CI: "CI";
@@ -1582,7 +1582,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1582
1582
  city: z.ZodOptional<z.ZodString>;
1583
1583
  postalCode: z.ZodOptional<z.ZodString>;
1584
1584
  countryCode: z.ZodOptional<z.ZodEnum<{
1585
- IM: "IM";
1586
1585
  AF: "AF";
1587
1586
  AL: "AL";
1588
1587
  DZ: "DZ";
@@ -1672,6 +1671,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1672
1671
  IR: "IR";
1673
1672
  IQ: "IQ";
1674
1673
  IE: "IE";
1674
+ IM: "IM";
1675
1675
  IL: "IL";
1676
1676
  IT: "IT";
1677
1677
  CI: "CI";
@@ -1854,7 +1854,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1854
1854
  AVAX: "AVAX";
1855
1855
  }>>;
1856
1856
  countryCode: z.ZodOptional<z.ZodEnum<{
1857
- IM: "IM";
1858
1857
  AF: "AF";
1859
1858
  AL: "AL";
1860
1859
  DZ: "DZ";
@@ -1944,6 +1943,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1944
1943
  IR: "IR";
1945
1944
  IQ: "IQ";
1946
1945
  IE: "IE";
1946
+ IM: "IM";
1947
1947
  IL: "IL";
1948
1948
  IT: "IT";
1949
1949
  CI: "CI";
@@ -2147,7 +2147,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2147
2147
  city: z.ZodOptional<z.ZodString>;
2148
2148
  postalCode: z.ZodOptional<z.ZodString>;
2149
2149
  countryCode: z.ZodOptional<z.ZodEnum<{
2150
- IM: "IM";
2151
2150
  AF: "AF";
2152
2151
  AL: "AL";
2153
2152
  DZ: "DZ";
@@ -2237,6 +2236,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2237
2236
  IR: "IR";
2238
2237
  IQ: "IQ";
2239
2238
  IE: "IE";
2239
+ IM: "IM";
2240
2240
  IL: "IL";
2241
2241
  IT: "IT";
2242
2242
  CI: "CI";
@@ -2419,7 +2419,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2419
2419
  AVAX: "AVAX";
2420
2420
  }>>;
2421
2421
  countryCode: z.ZodOptional<z.ZodEnum<{
2422
- IM: "IM";
2423
2422
  AF: "AF";
2424
2423
  AL: "AL";
2425
2424
  DZ: "DZ";
@@ -2509,6 +2508,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2509
2508
  IR: "IR";
2510
2509
  IQ: "IQ";
2511
2510
  IE: "IE";
2511
+ IM: "IM";
2512
2512
  IL: "IL";
2513
2513
  IT: "IT";
2514
2514
  CI: "CI";
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.DIx4G38W.js';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.C7zoSV8F.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -364,7 +364,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
364
364
  city: z.ZodOptional<z.ZodString>;
365
365
  postalCode: z.ZodOptional<z.ZodString>;
366
366
  countryCode: z.ZodOptional<z.ZodEnum<{
367
- IM: "IM";
368
367
  AF: "AF";
369
368
  AL: "AL";
370
369
  DZ: "DZ";
@@ -454,6 +453,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
454
453
  IR: "IR";
455
454
  IQ: "IQ";
456
455
  IE: "IE";
456
+ IM: "IM";
457
457
  IL: "IL";
458
458
  IT: "IT";
459
459
  CI: "CI";
@@ -636,7 +636,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
636
636
  AVAX: "AVAX";
637
637
  }>>;
638
638
  countryCode: z.ZodOptional<z.ZodEnum<{
639
- IM: "IM";
640
639
  AF: "AF";
641
640
  AL: "AL";
642
641
  DZ: "DZ";
@@ -726,6 +725,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
726
725
  IR: "IR";
727
726
  IQ: "IQ";
728
727
  IE: "IE";
728
+ IM: "IM";
729
729
  IL: "IL";
730
730
  IT: "IT";
731
731
  CI: "CI";
@@ -929,7 +929,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
929
929
  city: z.ZodOptional<z.ZodString>;
930
930
  postalCode: z.ZodOptional<z.ZodString>;
931
931
  countryCode: z.ZodOptional<z.ZodEnum<{
932
- IM: "IM";
933
932
  AF: "AF";
934
933
  AL: "AL";
935
934
  DZ: "DZ";
@@ -1019,6 +1018,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1019
1018
  IR: "IR";
1020
1019
  IQ: "IQ";
1021
1020
  IE: "IE";
1021
+ IM: "IM";
1022
1022
  IL: "IL";
1023
1023
  IT: "IT";
1024
1024
  CI: "CI";
@@ -1201,7 +1201,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1201
1201
  AVAX: "AVAX";
1202
1202
  }>>;
1203
1203
  countryCode: z.ZodOptional<z.ZodEnum<{
1204
- IM: "IM";
1205
1204
  AF: "AF";
1206
1205
  AL: "AL";
1207
1206
  DZ: "DZ";
@@ -1291,6 +1290,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1291
1290
  IR: "IR";
1292
1291
  IQ: "IQ";
1293
1292
  IE: "IE";
1293
+ IM: "IM";
1294
1294
  IL: "IL";
1295
1295
  IT: "IT";
1296
1296
  CI: "CI";
@@ -1582,7 +1582,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1582
1582
  city: z.ZodOptional<z.ZodString>;
1583
1583
  postalCode: z.ZodOptional<z.ZodString>;
1584
1584
  countryCode: z.ZodOptional<z.ZodEnum<{
1585
- IM: "IM";
1586
1585
  AF: "AF";
1587
1586
  AL: "AL";
1588
1587
  DZ: "DZ";
@@ -1672,6 +1671,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1672
1671
  IR: "IR";
1673
1672
  IQ: "IQ";
1674
1673
  IE: "IE";
1674
+ IM: "IM";
1675
1675
  IL: "IL";
1676
1676
  IT: "IT";
1677
1677
  CI: "CI";
@@ -1854,7 +1854,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1854
1854
  AVAX: "AVAX";
1855
1855
  }>>;
1856
1856
  countryCode: z.ZodOptional<z.ZodEnum<{
1857
- IM: "IM";
1858
1857
  AF: "AF";
1859
1858
  AL: "AL";
1860
1859
  DZ: "DZ";
@@ -1944,6 +1943,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1944
1943
  IR: "IR";
1945
1944
  IQ: "IQ";
1946
1945
  IE: "IE";
1946
+ IM: "IM";
1947
1947
  IL: "IL";
1948
1948
  IT: "IT";
1949
1949
  CI: "CI";
@@ -2147,7 +2147,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2147
2147
  city: z.ZodOptional<z.ZodString>;
2148
2148
  postalCode: z.ZodOptional<z.ZodString>;
2149
2149
  countryCode: z.ZodOptional<z.ZodEnum<{
2150
- IM: "IM";
2151
2150
  AF: "AF";
2152
2151
  AL: "AL";
2153
2152
  DZ: "DZ";
@@ -2237,6 +2236,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2237
2236
  IR: "IR";
2238
2237
  IQ: "IQ";
2239
2238
  IE: "IE";
2239
+ IM: "IM";
2240
2240
  IL: "IL";
2241
2241
  IT: "IT";
2242
2242
  CI: "CI";
@@ -2419,7 +2419,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2419
2419
  AVAX: "AVAX";
2420
2420
  }>>;
2421
2421
  countryCode: z.ZodOptional<z.ZodEnum<{
2422
- IM: "IM";
2423
2422
  AF: "AF";
2424
2423
  AL: "AL";
2425
2424
  DZ: "DZ";
@@ -2509,6 +2508,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2509
2508
  IR: "IR";
2510
2509
  IQ: "IQ";
2511
2510
  IE: "IE";
2511
+ IM: "IM";
2512
2512
  IL: "IL";
2513
2513
  IT: "IT";
2514
2514
  CI: "CI";
@@ -1401,7 +1401,6 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1401
1401
  city: z.ZodOptional<z.ZodString>;
1402
1402
  postalCode: z.ZodOptional<z.ZodString>;
1403
1403
  countryCode: z.ZodOptional<z.ZodEnum<{
1404
- IM: "IM";
1405
1404
  AF: "AF";
1406
1405
  AL: "AL";
1407
1406
  DZ: "DZ";
@@ -1491,6 +1490,7 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1491
1490
  IR: "IR";
1492
1491
  IQ: "IQ";
1493
1492
  IE: "IE";
1493
+ IM: "IM";
1494
1494
  IL: "IL";
1495
1495
  IT: "IT";
1496
1496
  CI: "CI";
@@ -2122,7 +2122,6 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2122
2122
  city: z.ZodOptional<z.ZodString>;
2123
2123
  postalCode: z.ZodOptional<z.ZodString>;
2124
2124
  countryCode: z.ZodOptional<z.ZodEnum<{
2125
- IM: "IM";
2126
2125
  AF: "AF";
2127
2126
  AL: "AL";
2128
2127
  DZ: "DZ";
@@ -2212,6 +2211,7 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2212
2211
  IR: "IR";
2213
2212
  IQ: "IQ";
2214
2213
  IE: "IE";
2214
+ IM: "IM";
2215
2215
  IL: "IL";
2216
2216
  IT: "IT";
2217
2217
  CI: "CI";
@@ -2843,7 +2843,6 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2843
2843
  city: z.ZodOptional<z.ZodString>;
2844
2844
  postalCode: z.ZodOptional<z.ZodString>;
2845
2845
  countryCode: z.ZodOptional<z.ZodEnum<{
2846
- IM: "IM";
2847
2846
  AF: "AF";
2848
2847
  AL: "AL";
2849
2848
  DZ: "DZ";
@@ -2933,6 +2932,7 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2933
2932
  IR: "IR";
2934
2933
  IQ: "IQ";
2935
2934
  IE: "IE";
2935
+ IM: "IM";
2936
2936
  IL: "IL";
2937
2937
  IT: "IT";
2938
2938
  CI: "CI";
@@ -3656,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3656
3656
  name: string;
3657
3657
  tableName: "payment";
3658
3658
  dataType: "string enum";
3659
- data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3659
+ data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3660
3660
  driverParam: string;
3661
3661
  notNull: true;
3662
3662
  hasDefault: false;
@@ -1401,7 +1401,6 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1401
1401
  city: z.ZodOptional<z.ZodString>;
1402
1402
  postalCode: z.ZodOptional<z.ZodString>;
1403
1403
  countryCode: z.ZodOptional<z.ZodEnum<{
1404
- IM: "IM";
1405
1404
  AF: "AF";
1406
1405
  AL: "AL";
1407
1406
  DZ: "DZ";
@@ -1491,6 +1490,7 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1491
1490
  IR: "IR";
1492
1491
  IQ: "IQ";
1493
1492
  IE: "IE";
1493
+ IM: "IM";
1494
1494
  IL: "IL";
1495
1495
  IT: "IT";
1496
1496
  CI: "CI";
@@ -2122,7 +2122,6 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2122
2122
  city: z.ZodOptional<z.ZodString>;
2123
2123
  postalCode: z.ZodOptional<z.ZodString>;
2124
2124
  countryCode: z.ZodOptional<z.ZodEnum<{
2125
- IM: "IM";
2126
2125
  AF: "AF";
2127
2126
  AL: "AL";
2128
2127
  DZ: "DZ";
@@ -2212,6 +2211,7 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2212
2211
  IR: "IR";
2213
2212
  IQ: "IQ";
2214
2213
  IE: "IE";
2214
+ IM: "IM";
2215
2215
  IL: "IL";
2216
2216
  IT: "IT";
2217
2217
  CI: "CI";
@@ -2843,7 +2843,6 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2843
2843
  city: z.ZodOptional<z.ZodString>;
2844
2844
  postalCode: z.ZodOptional<z.ZodString>;
2845
2845
  countryCode: z.ZodOptional<z.ZodEnum<{
2846
- IM: "IM";
2847
2846
  AF: "AF";
2848
2847
  AL: "AL";
2849
2848
  DZ: "DZ";
@@ -2933,6 +2932,7 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2933
2932
  IR: "IR";
2934
2933
  IQ: "IQ";
2935
2934
  IE: "IE";
2935
+ IM: "IM";
2936
2936
  IL: "IL";
2937
2937
  IT: "IT";
2938
2938
  CI: "CI";
@@ -3656,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3656
3656
  name: string;
3657
3657
  tableName: "payment";
3658
3658
  dataType: "string enum";
3659
- data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3659
+ data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3660
3660
  driverParam: string;
3661
3661
  notNull: true;
3662
3662
  hasDefault: false;
@@ -1401,7 +1401,6 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1401
1401
  city: z.ZodOptional<z.ZodString>;
1402
1402
  postalCode: z.ZodOptional<z.ZodString>;
1403
1403
  countryCode: z.ZodOptional<z.ZodEnum<{
1404
- IM: "IM";
1405
1404
  AF: "AF";
1406
1405
  AL: "AL";
1407
1406
  DZ: "DZ";
@@ -1491,6 +1490,7 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1491
1490
  IR: "IR";
1492
1491
  IQ: "IQ";
1493
1492
  IE: "IE";
1493
+ IM: "IM";
1494
1494
  IL: "IL";
1495
1495
  IT: "IT";
1496
1496
  CI: "CI";
@@ -2122,7 +2122,6 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2122
2122
  city: z.ZodOptional<z.ZodString>;
2123
2123
  postalCode: z.ZodOptional<z.ZodString>;
2124
2124
  countryCode: z.ZodOptional<z.ZodEnum<{
2125
- IM: "IM";
2126
2125
  AF: "AF";
2127
2126
  AL: "AL";
2128
2127
  DZ: "DZ";
@@ -2212,6 +2211,7 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2212
2211
  IR: "IR";
2213
2212
  IQ: "IQ";
2214
2213
  IE: "IE";
2214
+ IM: "IM";
2215
2215
  IL: "IL";
2216
2216
  IT: "IT";
2217
2217
  CI: "CI";
@@ -2843,7 +2843,6 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2843
2843
  city: z.ZodOptional<z.ZodString>;
2844
2844
  postalCode: z.ZodOptional<z.ZodString>;
2845
2845
  countryCode: z.ZodOptional<z.ZodEnum<{
2846
- IM: "IM";
2847
2846
  AF: "AF";
2848
2847
  AL: "AL";
2849
2848
  DZ: "DZ";
@@ -2933,6 +2932,7 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2933
2932
  IR: "IR";
2934
2933
  IQ: "IQ";
2935
2934
  IE: "IE";
2935
+ IM: "IM";
2936
2936
  IL: "IL";
2937
2937
  IT: "IT";
2938
2938
  CI: "CI";
@@ -3656,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3656
3656
  name: string;
3657
3657
  tableName: "payment";
3658
3658
  dataType: "string enum";
3659
- data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3659
+ data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3660
3660
  driverParam: string;
3661
3661
  notNull: true;
3662
3662
  hasDefault: false;
@@ -1224,7 +1224,12 @@ class FinbricksConnector extends IBankConnector {
1224
1224
  ...creditorAddress && { postalAddress: creditorAddress }
1225
1225
  },
1226
1226
  ...creditorAgent && { creditorAgent },
1227
- ...unstructured && { remittanceInformation: { unstructured } },
1227
+ ...unstructured && {
1228
+ remittanceInformation: {
1229
+ unstructured,
1230
+ ...payment.vs && { structured: { reference: payment.vs } }
1231
+ }
1232
+ },
1228
1233
  instructionPriority: toFinbricksForeignPriority(
1229
1234
  payment.instructionPriority
1230
1235
  ),
@@ -1226,7 +1226,12 @@ class FinbricksConnector extends IBankConnector {
1226
1226
  ...creditorAddress && { postalAddress: creditorAddress }
1227
1227
  },
1228
1228
  ...creditorAgent && { creditorAgent },
1229
- ...unstructured && { remittanceInformation: { unstructured } },
1229
+ ...unstructured && {
1230
+ remittanceInformation: {
1231
+ unstructured,
1232
+ ...payment.vs && { structured: { reference: payment.vs } }
1233
+ }
1234
+ },
1230
1235
  instructionPriority: toFinbricksForeignPriority(
1231
1236
  payment.instructionPriority
1232
1237
  ),
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const drizzleOrm = require('drizzle-orm');
4
- const paymentDirection = require('./bank.Z1R7hzNr.cjs');
4
+ const paymentDirection = require('./bank.D2wQhxnG.cjs');
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
6
  require('./bank.Ca3jzmIb.cjs');
7
7
  require('date-fns');
@@ -214,6 +214,16 @@ class MonetaConnector extends paymentDirection.FinbricksConnector {
214
214
  buildEndToEndId(payment) {
215
215
  return paymentDirection.buildEndToEndId(payment, { separator: "" });
216
216
  }
217
+ async initiateForeignPayment(payment) {
218
+ if (!payment.vs) {
219
+ throw backendSdk.createInternalError(null, {
220
+ status: 422,
221
+ code: "VALID-B-020",
222
+ message: "MONETA requires a variable symbol on foreign payments (sent as remittanceInformation.structured). Add the VS and retry."
223
+ });
224
+ }
225
+ return super.initiateForeignPayment(payment);
226
+ }
217
227
  }
218
228
 
219
229
  const initiateConnector = async ({
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.DIx4G38W.cjs';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.C7zoSV8F.cjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -364,7 +364,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
364
364
  city: z.ZodOptional<z.ZodString>;
365
365
  postalCode: z.ZodOptional<z.ZodString>;
366
366
  countryCode: z.ZodOptional<z.ZodEnum<{
367
- IM: "IM";
368
367
  AF: "AF";
369
368
  AL: "AL";
370
369
  DZ: "DZ";
@@ -454,6 +453,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
454
453
  IR: "IR";
455
454
  IQ: "IQ";
456
455
  IE: "IE";
456
+ IM: "IM";
457
457
  IL: "IL";
458
458
  IT: "IT";
459
459
  CI: "CI";
@@ -636,7 +636,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
636
636
  AVAX: "AVAX";
637
637
  }>>;
638
638
  countryCode: z.ZodOptional<z.ZodEnum<{
639
- IM: "IM";
640
639
  AF: "AF";
641
640
  AL: "AL";
642
641
  DZ: "DZ";
@@ -726,6 +725,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
726
725
  IR: "IR";
727
726
  IQ: "IQ";
728
727
  IE: "IE";
728
+ IM: "IM";
729
729
  IL: "IL";
730
730
  IT: "IT";
731
731
  CI: "CI";
@@ -929,7 +929,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
929
929
  city: z.ZodOptional<z.ZodString>;
930
930
  postalCode: z.ZodOptional<z.ZodString>;
931
931
  countryCode: z.ZodOptional<z.ZodEnum<{
932
- IM: "IM";
933
932
  AF: "AF";
934
933
  AL: "AL";
935
934
  DZ: "DZ";
@@ -1019,6 +1018,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1019
1018
  IR: "IR";
1020
1019
  IQ: "IQ";
1021
1020
  IE: "IE";
1021
+ IM: "IM";
1022
1022
  IL: "IL";
1023
1023
  IT: "IT";
1024
1024
  CI: "CI";
@@ -1201,7 +1201,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1201
1201
  AVAX: "AVAX";
1202
1202
  }>>;
1203
1203
  countryCode: z.ZodOptional<z.ZodEnum<{
1204
- IM: "IM";
1205
1204
  AF: "AF";
1206
1205
  AL: "AL";
1207
1206
  DZ: "DZ";
@@ -1291,6 +1290,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1291
1290
  IR: "IR";
1292
1291
  IQ: "IQ";
1293
1292
  IE: "IE";
1293
+ IM: "IM";
1294
1294
  IL: "IL";
1295
1295
  IT: "IT";
1296
1296
  CI: "CI";
@@ -1582,7 +1582,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1582
1582
  city: z.ZodOptional<z.ZodString>;
1583
1583
  postalCode: z.ZodOptional<z.ZodString>;
1584
1584
  countryCode: z.ZodOptional<z.ZodEnum<{
1585
- IM: "IM";
1586
1585
  AF: "AF";
1587
1586
  AL: "AL";
1588
1587
  DZ: "DZ";
@@ -1672,6 +1671,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1672
1671
  IR: "IR";
1673
1672
  IQ: "IQ";
1674
1673
  IE: "IE";
1674
+ IM: "IM";
1675
1675
  IL: "IL";
1676
1676
  IT: "IT";
1677
1677
  CI: "CI";
@@ -1854,7 +1854,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1854
1854
  AVAX: "AVAX";
1855
1855
  }>>;
1856
1856
  countryCode: z.ZodOptional<z.ZodEnum<{
1857
- IM: "IM";
1858
1857
  AF: "AF";
1859
1858
  AL: "AL";
1860
1859
  DZ: "DZ";
@@ -1944,6 +1943,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1944
1943
  IR: "IR";
1945
1944
  IQ: "IQ";
1946
1945
  IE: "IE";
1946
+ IM: "IM";
1947
1947
  IL: "IL";
1948
1948
  IT: "IT";
1949
1949
  CI: "CI";
@@ -2147,7 +2147,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2147
2147
  city: z.ZodOptional<z.ZodString>;
2148
2148
  postalCode: z.ZodOptional<z.ZodString>;
2149
2149
  countryCode: z.ZodOptional<z.ZodEnum<{
2150
- IM: "IM";
2151
2150
  AF: "AF";
2152
2151
  AL: "AL";
2153
2152
  DZ: "DZ";
@@ -2237,6 +2236,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2237
2236
  IR: "IR";
2238
2237
  IQ: "IQ";
2239
2238
  IE: "IE";
2239
+ IM: "IM";
2240
2240
  IL: "IL";
2241
2241
  IT: "IT";
2242
2242
  CI: "CI";
@@ -2419,7 +2419,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2419
2419
  AVAX: "AVAX";
2420
2420
  }>>;
2421
2421
  countryCode: z.ZodOptional<z.ZodEnum<{
2422
- IM: "IM";
2423
2422
  AF: "AF";
2424
2423
  AL: "AL";
2425
2424
  DZ: "DZ";
@@ -2509,6 +2508,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2509
2508
  IR: "IR";
2510
2509
  IQ: "IQ";
2511
2510
  IE: "IE";
2511
+ IM: "IM";
2512
2512
  IL: "IL";
2513
2513
  IT: "IT";
2514
2514
  CI: "CI";
@@ -1,6 +1,6 @@
1
1
  import { sql, and, eq, isNull } from 'drizzle-orm';
2
- import { G as tables, b as FinbricksConnector, L as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.N9K_wiwt.mjs';
3
- import { uuidv4 } from '@develit-io/backend-sdk';
2
+ import { G as tables, b as FinbricksConnector, L as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.CKCnWQLL.mjs';
3
+ import { uuidv4, createInternalError } from '@develit-io/backend-sdk';
4
4
  import './bank.BT7HayCV.mjs';
5
5
  import 'date-fns';
6
6
  import 'jose';
@@ -212,6 +212,16 @@ class MonetaConnector extends FinbricksConnector {
212
212
  buildEndToEndId(payment) {
213
213
  return buildEndToEndId(payment, { separator: "" });
214
214
  }
215
+ async initiateForeignPayment(payment) {
216
+ if (!payment.vs) {
217
+ throw createInternalError(null, {
218
+ status: 422,
219
+ code: "VALID-B-020",
220
+ message: "MONETA requires a variable symbol on foreign payments (sent as remittanceInformation.structured). Add the VS and retry."
221
+ });
222
+ }
223
+ return super.initiateForeignPayment(payment);
224
+ }
215
225
  }
216
226
 
217
227
  const initiateConnector = async ({
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const paymentDirection = require('./shared/bank.Z1R7hzNr.cjs');
3
+ const paymentDirection = require('./shared/bank.D2wQhxnG.cjs');
4
4
  const database_schema = require('./shared/bank.Ca3jzmIb.cjs');
5
5
  const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
6
6
  const generalCodes = require('@develit-io/general-codes');
package/dist/types.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BankAccountMetadata, BaseEvent } from '@develit-io/backend-sdk';
2
- import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.DIx4G38W.cjs';
3
- export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.DIx4G38W.cjs';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Cyzcnl1W.cjs';
5
- export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.Cyzcnl1W.cjs';
2
+ import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.C7zoSV8F.cjs';
3
+ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.C7zoSV8F.cjs';
4
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Dtw4Amqo.cjs';
5
+ export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.Dtw4Amqo.cjs';
6
6
  import { z } from 'zod';
7
7
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
8
8
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';