@develit-services/bank 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export/worker.cjs +1 -1
- package/dist/export/worker.mjs +1 -1
- package/dist/export/workflows.cjs +1 -1
- package/dist/export/workflows.mjs +1 -1
- package/dist/shared/{bank.aSyaZEZI.mjs → bank.B9HFqAex.mjs} +8 -3
- package/dist/shared/{bank.C8oW81NT.cjs → bank.BDJqvCeZ.cjs} +8 -3
- package/dist/types.cjs +1 -1
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/export/worker.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const database_schema = require('../shared/bank.CIWYI18z.cjs');
|
|
|
5
5
|
const drizzleOrm = require('drizzle-orm');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
|
-
const mock_connector = require('../shared/bank.
|
|
8
|
+
const mock_connector = require('../shared/bank.BDJqvCeZ.cjs');
|
|
9
9
|
require('jose');
|
|
10
10
|
const zod = require('zod');
|
|
11
11
|
const generalCodes = require('@develit-io/general-codes');
|
package/dist/export/worker.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { v as tables, I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAY
|
|
|
3
3
|
import { eq, sql, and, like, asc, desc, inArray, gte, lte, isNull, count } from 'drizzle-orm';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { drizzle } from 'drizzle-orm/d1';
|
|
6
|
-
import { j as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment, h as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.
|
|
6
|
+
import { j as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment, h as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.B9HFqAex.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const database_schema = require('../shared/bank.CIWYI18z.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
|
-
const mock_connector = require('../shared/bank.
|
|
6
|
+
const mock_connector = require('../shared/bank.BDJqvCeZ.cjs');
|
|
7
7
|
const drizzleOrm = require('drizzle-orm');
|
|
8
8
|
const credentialsResolver = require('../shared/bank.B0EWZbAs.cjs');
|
|
9
9
|
const cloudflare_workers = require('cloudflare:workers');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
|
|
2
2
|
import { v as tables, o as isPaymentCompleted } from '../shared/bank.C7MA33AX.mjs';
|
|
3
3
|
import { i as isBatchAuthorized, b as isBatchFailed, d as isBatchProcessing } from '../shared/bank.XqSw509X.mjs';
|
|
4
|
-
import { e as toBatchedPaymentFromPaymentRequest, i as toPreparedPayment, j as initiateConnector } from '../shared/bank.
|
|
4
|
+
import { e as toBatchedPaymentFromPaymentRequest, i as toPreparedPayment, j as initiateConnector } from '../shared/bank.B9HFqAex.mjs';
|
|
5
5
|
import { eq, and, inArray } from 'drizzle-orm';
|
|
6
6
|
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.UBWdag5k.mjs';
|
|
7
7
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
@@ -494,7 +494,7 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
494
494
|
const isIncoming = tx.creditDebitIndicator === "CRDT";
|
|
495
495
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
496
496
|
const endToEndId = tx.entryDetails.transactionDetails?.references?.endToEndIdentification;
|
|
497
|
-
const symbolsRegex =
|
|
497
|
+
const symbolsRegex = /^\/?VS\d+/;
|
|
498
498
|
const base = {
|
|
499
499
|
id: uuidv4(),
|
|
500
500
|
correlationId: uuidv4(),
|
|
@@ -1135,11 +1135,16 @@ class MonetaConnector extends FinbricksConnector {
|
|
|
1135
1135
|
return paymentType === "DOMESTIC";
|
|
1136
1136
|
}
|
|
1137
1137
|
/**
|
|
1138
|
-
* MONETA rejects
|
|
1138
|
+
* MONETA rejects all special characters in endToEndIdentification.
|
|
1139
|
+
* Boundaries between segments are unambiguous without a separator —
|
|
1140
|
+
* `VS`/`SS`/`KS` prefixes are alphabetic and values are always numeric,
|
|
1141
|
+
* so the parsing regex `VS[:\s]*(\d+)` extracts each value correctly.
|
|
1142
|
+
*
|
|
1143
|
+
* Format: `VS1234SS5678KS0308` (max 30 chars).
|
|
1139
1144
|
* Confirmed by Finbricks support (2026-04-23).
|
|
1140
1145
|
*/
|
|
1141
1146
|
buildEndToEndId(payment) {
|
|
1142
|
-
return buildEndToEndId(payment, { separator: "
|
|
1147
|
+
return buildEndToEndId(payment, { separator: "" });
|
|
1143
1148
|
}
|
|
1144
1149
|
}
|
|
1145
1150
|
|
|
@@ -496,7 +496,7 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
496
496
|
const isIncoming = tx.creditDebitIndicator === "CRDT";
|
|
497
497
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
498
498
|
const endToEndId = tx.entryDetails.transactionDetails?.references?.endToEndIdentification;
|
|
499
|
-
const symbolsRegex =
|
|
499
|
+
const symbolsRegex = /^\/?VS\d+/;
|
|
500
500
|
const base = {
|
|
501
501
|
id: backendSdk.uuidv4(),
|
|
502
502
|
correlationId: backendSdk.uuidv4(),
|
|
@@ -1137,11 +1137,16 @@ class MonetaConnector extends FinbricksConnector {
|
|
|
1137
1137
|
return paymentType === "DOMESTIC";
|
|
1138
1138
|
}
|
|
1139
1139
|
/**
|
|
1140
|
-
* MONETA rejects
|
|
1140
|
+
* MONETA rejects all special characters in endToEndIdentification.
|
|
1141
|
+
* Boundaries between segments are unambiguous without a separator —
|
|
1142
|
+
* `VS`/`SS`/`KS` prefixes are alphabetic and values are always numeric,
|
|
1143
|
+
* so the parsing regex `VS[:\s]*(\d+)` extracts each value correctly.
|
|
1144
|
+
*
|
|
1145
|
+
* Format: `VS1234SS5678KS0308` (max 30 chars).
|
|
1141
1146
|
* Confirmed by Finbricks support (2026-04-23).
|
|
1142
1147
|
*/
|
|
1143
1148
|
buildEndToEndId(payment) {
|
|
1144
|
-
return buildEndToEndId(payment, { separator: "
|
|
1149
|
+
return buildEndToEndId(payment, { separator: "" });
|
|
1145
1150
|
}
|
|
1146
1151
|
}
|
|
1147
1152
|
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mock_connector = require('./shared/bank.
|
|
3
|
+
const mock_connector = require('./shared/bank.BDJqvCeZ.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.CIWYI18z.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
export { C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.B9HFqAex.mjs';
|
|
2
2
|
export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES, h as accountCredentialsInsertSchema, i as accountCredentialsSelectSchema, j as accountCredentialsUpdateSchema, k as accountInsertSchema, l as accountSelectSchema, m as accountUpdateSchema, n as hasPaymentAccountAssigned, o as isPaymentCompleted, p as isPendingStatus, q as isProcessedStatus, r as isTerminalStatus, s as ottInsertSchema, t as ottSelectSchema, u as ottUpdateSchema } from './shared/bank.C7MA33AX.mjs';
|
|
3
3
|
export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
|
|
4
4
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|