@develit-services/bank 0.7.1 → 0.7.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.
@@ -11,7 +11,7 @@ require('date-fns');
11
11
  require('jose');
12
12
  const drizzleOrm = require('drizzle-orm');
13
13
  require('node:crypto');
14
- const mock_connector = require('../shared/bank.iEgK7rge.cjs');
14
+ const mock_connector = require('../shared/bank.CNXTZfXB.cjs');
15
15
  require('../shared/bank.DlW1XNug.cjs');
16
16
  require('drizzle-orm/relations');
17
17
  require('drizzle-orm/sqlite-core');
@@ -9,7 +9,7 @@ import 'date-fns';
9
9
  import 'jose';
10
10
  import { eq, sql, inArray, and, asc, desc, gte, lte } from 'drizzle-orm';
11
11
  import 'node:crypto';
12
- import { i as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment } from '../shared/bank.CkUMU1sJ.mjs';
12
+ import { i as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment } from '../shared/bank.4MQtZVnP.mjs';
13
13
  import '../shared/bank.CTtFAN03.mjs';
14
14
  import 'drizzle-orm/relations';
15
15
  import 'drizzle-orm/sqlite-core';
@@ -3,7 +3,7 @@
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
4
  const drizzle = require('../shared/bank.CTqIXnHg.cjs');
5
5
  const batchLifecycle = require('../shared/bank.Bg3Pdwm4.cjs');
6
- const mock_connector = require('../shared/bank.iEgK7rge.cjs');
6
+ const mock_connector = require('../shared/bank.CNXTZfXB.cjs');
7
7
  const drizzleOrm = require('drizzle-orm');
8
8
  const cloudflare_workers = require('cloudflare:workers');
9
9
  const cloudflare_workflows = require('cloudflare:workflows');
@@ -1,7 +1,7 @@
1
1
  import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
2
2
  import { t as tables, g as getBatchByIdQuery, c as checksum, u as upsertBatchCommand, a as getAccountByIdQuery, i as importAesKey, b as getCredentialsByAccountId, d as createPaymentCommand } from '../shared/bank.e8T8fQDG.mjs';
3
3
  import { f as isBatchSigned, a as isBatchFailed, c as isBatchOpen, g as isPaymentCompleted } from '../shared/bank.CbAwwIhZ.mjs';
4
- import { h as toPreparedPayment, i as initiateConnector, f as toCompletedPayment } from '../shared/bank.CkUMU1sJ.mjs';
4
+ import { h as toPreparedPayment, i as initiateConnector, f as toCompletedPayment } from '../shared/bank.4MQtZVnP.mjs';
5
5
  import { eq } from 'drizzle-orm';
6
6
  import { WorkflowEntrypoint } from 'cloudflare:workers';
7
7
  import { NonRetryableError } from 'cloudflare:workflows';
@@ -305,7 +305,7 @@ const mapFinbricksAccountInsert = ({
305
305
  connectorKey,
306
306
  status,
307
307
  currency: account.currency,
308
- number: account.identification.accountNumber,
308
+ number: account.identification.accountNumber.split("/")[0],
309
309
  bankCode: account.servicer.bankCode,
310
310
  // For now we are using CZ as fallback because finbricks does not provide country code 100% of the time (f.e FIO)
311
311
  countryCode: account.servicer.countryCode || "CZ",
@@ -307,7 +307,7 @@ const mapFinbricksAccountInsert = ({
307
307
  connectorKey,
308
308
  status,
309
309
  currency: account.currency,
310
- number: account.identification.accountNumber,
310
+ number: account.identification.accountNumber.split("/")[0],
311
311
  bankCode: account.servicer.bankCode,
312
312
  // For now we are using CZ as fallback because finbricks does not provide country code 100% of the time (f.e FIO)
313
313
  countryCode: account.servicer.countryCode || "CZ",
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const mock_connector = require('./shared/bank.iEgK7rge.cjs');
3
+ const mock_connector = require('./shared/bank.CNXTZfXB.cjs');
4
4
  const payment_schema = require('./shared/bank.D7kwLMqF.cjs');
5
5
  const batchLifecycle = require('./shared/bank.Bg3Pdwm4.cjs');
6
6
  const generalCodes = require('@develit-io/general-codes');
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, e as batchTransform, s as signFinbricksJws, t as toBatchedPayment, f as toCompletedPayment, g as toIncomingPayment, h as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.CkUMU1sJ.mjs';
1
+ export { D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, e as batchTransform, s as signFinbricksJws, t as toBatchedPayment, f as toCompletedPayment, g as toIncomingPayment, h as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.4MQtZVnP.mjs';
2
2
  export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, a as CONNECTOR_KEYS, b as COUNTRY_CODES, c as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, e as PAYMENT_TYPES, T as TOKEN_TYPES, f as accountCredentialsInsertSchema, g as accountCredentialsSelectSchema, h as accountCredentialsUpdateSchema, i as accountInsertSchema, j as accountSelectSchema, k as accountUpdateSchema, o as ottInsertSchema, l as ottSelectSchema, m as ottUpdateSchema } from './shared/bank.BnIYdBEF.mjs';
3
3
  export { h as hasPaymentAccountAssigned, i as isBatchCompleted, a as isBatchFailed, b as isBatchInitiated, c as isBatchOpen, d as isBatchProcessing, e as isBatchReadyToSign, f as isBatchSigned, g as isPaymentCompleted, j as isPaymentPrepared } from './shared/bank.CbAwwIhZ.mjs';
4
4
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {