@develit-services/bank 0.3.3 → 0.3.41
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/database/schema.cjs +1 -1
- package/dist/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +28 -4
- package/dist/export/worker.d.cts +10 -4
- package/dist/export/worker.d.mts +10 -4
- package/dist/export/worker.d.ts +10 -4
- package/dist/export/worker.mjs +28 -4
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +4 -4
- package/dist/shared/{bank.lZMrqjVR.mjs → bank.7e-LCMJ-.mjs} +2 -1
- package/dist/shared/{bank.BX43jn5k.mjs → bank.BQXTsTfX.mjs} +2 -2
- package/dist/shared/{bank.BGuS_o9V.cjs → bank.BUuz9ahr.cjs} +1 -1
- package/dist/shared/{bank.wqkNncOE.cjs → bank.Dc6O7-dN.cjs} +2 -2
- package/dist/shared/{bank.CthUj-ff.mjs → bank.DokzI07s.mjs} +1 -1
- package/dist/shared/{bank.CpcK1Dse.cjs → bank.HlxUqlDv.cjs} +2 -1
- package/dist/types.cjs +2 -2
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.7e-LCMJ-.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import 'date-fns';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const cloudflare_workers = require('cloudflare:workers');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const database_schema = require('../shared/bank.
|
|
6
|
+
const database_schema = require('../shared/bank.HlxUqlDv.cjs');
|
|
7
7
|
require('jose');
|
|
8
8
|
const generalCodes = require('@develit-io/general-codes');
|
|
9
9
|
const zod = require('zod');
|
|
10
|
-
const processBatch_workflow = require('../shared/bank.
|
|
10
|
+
const processBatch_workflow = require('../shared/bank.Dc6O7-dN.cjs');
|
|
11
11
|
const drizzleOrm = require('drizzle-orm');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('date-fns');
|
|
@@ -15,7 +15,7 @@ require('drizzle-zod');
|
|
|
15
15
|
require('drizzle-orm/relations');
|
|
16
16
|
require('node:crypto');
|
|
17
17
|
require('cloudflare:workflows');
|
|
18
|
-
require('../shared/bank.
|
|
18
|
+
require('../shared/bank.BUuz9ahr.cjs');
|
|
19
19
|
|
|
20
20
|
const upsertAccountCommand = (db, { account }) => {
|
|
21
21
|
const id = account.id || backendSdk.uuidv4();
|
|
@@ -1079,7 +1079,31 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1079
1079
|
{ data: input, schema: getBatchesInputSchema },
|
|
1080
1080
|
{ successMessage: "Batches retrieved successfully" },
|
|
1081
1081
|
async (params) => {
|
|
1082
|
-
|
|
1082
|
+
const { batches, totalCount } = await getBatchesQuery(this.db, params);
|
|
1083
|
+
const batchesWithWorkflows = await Promise.all(
|
|
1084
|
+
batches.map(async (batch) => {
|
|
1085
|
+
let status;
|
|
1086
|
+
try {
|
|
1087
|
+
const instance = await this.env.PROCESS_BATCH_WORKFLOW.get(
|
|
1088
|
+
batch.id
|
|
1089
|
+
);
|
|
1090
|
+
status = await instance.status();
|
|
1091
|
+
} catch (_) {
|
|
1092
|
+
status = null;
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
...batch,
|
|
1096
|
+
workflow: status ? {
|
|
1097
|
+
instanceId: batch.id,
|
|
1098
|
+
details: status
|
|
1099
|
+
} : null
|
|
1100
|
+
};
|
|
1101
|
+
})
|
|
1102
|
+
);
|
|
1103
|
+
return {
|
|
1104
|
+
batches: batchesWithWorkflows,
|
|
1105
|
+
totalCount
|
|
1106
|
+
};
|
|
1083
1107
|
}
|
|
1084
1108
|
);
|
|
1085
1109
|
}
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1518,9 +1518,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1518
1518
|
limit: z.ZodNumber;
|
|
1519
1519
|
sort: z.ZodObject<{
|
|
1520
1520
|
column: z.ZodEnum<{
|
|
1521
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1521
1522
|
createdAt: "createdAt";
|
|
1522
1523
|
updatedAt: "updatedAt";
|
|
1523
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1524
1524
|
}>;
|
|
1525
1525
|
direction: z.ZodEnum<{
|
|
1526
1526
|
asc: "asc";
|
|
@@ -1547,8 +1547,14 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -2462,14 +2468,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
+
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
+
authorizationUrls: string[] | null;
|
|
2465
2473
|
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2466
2474
|
id: string;
|
|
2467
2475
|
createdAt: Date | null;
|
|
2468
2476
|
updatedAt: Date | null;
|
|
2469
2477
|
deletedAt: Date | null;
|
|
2470
2478
|
accountId: string | null;
|
|
2471
|
-
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
-
authorizationUrls: string[] | null;
|
|
2473
2479
|
payments: PaymentInsertType[];
|
|
2474
2480
|
metadata: BatchMetadata | null;
|
|
2475
2481
|
paymentsChecksum: string | null;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1518,9 +1518,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1518
1518
|
limit: z.ZodNumber;
|
|
1519
1519
|
sort: z.ZodObject<{
|
|
1520
1520
|
column: z.ZodEnum<{
|
|
1521
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1521
1522
|
createdAt: "createdAt";
|
|
1522
1523
|
updatedAt: "updatedAt";
|
|
1523
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1524
1524
|
}>;
|
|
1525
1525
|
direction: z.ZodEnum<{
|
|
1526
1526
|
asc: "asc";
|
|
@@ -1547,8 +1547,14 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -2462,14 +2468,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
+
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
+
authorizationUrls: string[] | null;
|
|
2465
2473
|
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2466
2474
|
id: string;
|
|
2467
2475
|
createdAt: Date | null;
|
|
2468
2476
|
updatedAt: Date | null;
|
|
2469
2477
|
deletedAt: Date | null;
|
|
2470
2478
|
accountId: string | null;
|
|
2471
|
-
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
-
authorizationUrls: string[] | null;
|
|
2473
2479
|
payments: PaymentInsertType[];
|
|
2474
2480
|
metadata: BatchMetadata | null;
|
|
2475
2481
|
paymentsChecksum: string | null;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1518,9 +1518,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1518
1518
|
limit: z.ZodNumber;
|
|
1519
1519
|
sort: z.ZodObject<{
|
|
1520
1520
|
column: z.ZodEnum<{
|
|
1521
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1521
1522
|
createdAt: "createdAt";
|
|
1522
1523
|
updatedAt: "updatedAt";
|
|
1523
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
1524
1524
|
}>;
|
|
1525
1525
|
direction: z.ZodEnum<{
|
|
1526
1526
|
asc: "asc";
|
|
@@ -1547,8 +1547,14 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -2462,14 +2468,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
+
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
+
authorizationUrls: string[] | null;
|
|
2465
2473
|
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2466
2474
|
id: string;
|
|
2467
2475
|
createdAt: Date | null;
|
|
2468
2476
|
updatedAt: Date | null;
|
|
2469
2477
|
deletedAt: Date | null;
|
|
2470
2478
|
accountId: string | null;
|
|
2471
|
-
batchPaymentInitiatedAt: Date | null;
|
|
2472
|
-
authorizationUrls: string[] | null;
|
|
2473
2479
|
payments: PaymentInsertType[];
|
|
2474
2480
|
metadata: BatchMetadata | null;
|
|
2475
2481
|
paymentsChecksum: string | null;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { uuidv4, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, first, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables, c as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, g as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, e as PAYMENT_DIRECTIONS, i as accountInsertSchema, M as MockConnector, F as FinbricksConnector, E as ErsteConnector } from '../shared/bank.
|
|
4
|
+
import { t as tables, c as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, g as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, e as PAYMENT_DIRECTIONS, i as accountInsertSchema, M as MockConnector, F as FinbricksConnector, E as ErsteConnector } from '../shared/bank.7e-LCMJ-.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { e as encrypt, P as PROCESS_BATCH_WORKFLOW_EVENTS, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.
|
|
8
|
+
import { e as encrypt, P as PROCESS_BATCH_WORKFLOW_EVENTS, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.BQXTsTfX.mjs';
|
|
9
9
|
import { eq, inArray, and, sql, asc, desc, gte, lte } from 'drizzle-orm';
|
|
10
10
|
import 'drizzle-orm/sqlite-core';
|
|
11
11
|
import 'date-fns';
|
|
@@ -13,7 +13,7 @@ import 'drizzle-zod';
|
|
|
13
13
|
import 'drizzle-orm/relations';
|
|
14
14
|
import 'node:crypto';
|
|
15
15
|
import 'cloudflare:workflows';
|
|
16
|
-
import '../shared/bank.
|
|
16
|
+
import '../shared/bank.DokzI07s.mjs';
|
|
17
17
|
|
|
18
18
|
const upsertAccountCommand = (db, { account }) => {
|
|
19
19
|
const id = account.id || uuidv4();
|
|
@@ -1077,7 +1077,31 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1077
1077
|
{ data: input, schema: getBatchesInputSchema },
|
|
1078
1078
|
{ successMessage: "Batches retrieved successfully" },
|
|
1079
1079
|
async (params) => {
|
|
1080
|
-
|
|
1080
|
+
const { batches, totalCount } = await getBatchesQuery(this.db, params);
|
|
1081
|
+
const batchesWithWorkflows = await Promise.all(
|
|
1082
|
+
batches.map(async (batch) => {
|
|
1083
|
+
let status;
|
|
1084
|
+
try {
|
|
1085
|
+
const instance = await this.env.PROCESS_BATCH_WORKFLOW.get(
|
|
1086
|
+
batch.id
|
|
1087
|
+
);
|
|
1088
|
+
status = await instance.status();
|
|
1089
|
+
} catch (_) {
|
|
1090
|
+
status = null;
|
|
1091
|
+
}
|
|
1092
|
+
return {
|
|
1093
|
+
...batch,
|
|
1094
|
+
workflow: status ? {
|
|
1095
|
+
instanceId: batch.id,
|
|
1096
|
+
details: status
|
|
1097
|
+
} : null
|
|
1098
|
+
};
|
|
1099
|
+
})
|
|
1100
|
+
);
|
|
1101
|
+
return {
|
|
1102
|
+
batches: batchesWithWorkflows,
|
|
1103
|
+
totalCount
|
|
1104
|
+
};
|
|
1081
1105
|
}
|
|
1082
1106
|
);
|
|
1083
1107
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const cloudflare_workers = require('cloudflare:workers');
|
|
4
4
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const database_schema = require('../shared/bank.
|
|
6
|
+
const database_schema = require('../shared/bank.HlxUqlDv.cjs');
|
|
7
7
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
8
|
-
const processBatch_workflow = require('../shared/bank.
|
|
8
|
+
const processBatch_workflow = require('../shared/bank.Dc6O7-dN.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
10
|
require('drizzle-orm/sqlite-core');
|
|
11
11
|
require('date-fns');
|
|
@@ -14,7 +14,7 @@ require('@develit-io/general-codes');
|
|
|
14
14
|
require('drizzle-zod');
|
|
15
15
|
require('drizzle-orm/relations');
|
|
16
16
|
require('node:crypto');
|
|
17
|
-
require('../shared/bank.
|
|
17
|
+
require('../shared/bank.BUuz9ahr.cjs');
|
|
18
18
|
|
|
19
19
|
const updateAccountLastSyncCommand = (db, {
|
|
20
20
|
lastSyncAt,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
2
2
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables } from '../shared/bank.
|
|
4
|
+
import { t as tables } from '../shared/bank.7e-LCMJ-.mjs';
|
|
5
5
|
import { asNonEmpty } from '@develit-io/backend-sdk';
|
|
6
|
-
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand } from '../shared/bank.
|
|
7
|
-
export { B as BankProcessBatch } from '../shared/bank.
|
|
6
|
+
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand } from '../shared/bank.BQXTsTfX.mjs';
|
|
7
|
+
export { B as BankProcessBatch } from '../shared/bank.BQXTsTfX.mjs';
|
|
8
8
|
import { eq } from 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import 'date-fns';
|
|
@@ -13,7 +13,7 @@ import '@develit-io/general-codes';
|
|
|
13
13
|
import 'drizzle-zod';
|
|
14
14
|
import 'drizzle-orm/relations';
|
|
15
15
|
import 'node:crypto';
|
|
16
|
-
import '../shared/bank.
|
|
16
|
+
import '../shared/bank.DokzI07s.mjs';
|
|
17
17
|
|
|
18
18
|
const updateAccountLastSyncCommand = (db, {
|
|
19
19
|
lastSyncAt,
|
|
@@ -431,7 +431,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
431
431
|
return {
|
|
432
432
|
...payment,
|
|
433
433
|
id: uuidv4(),
|
|
434
|
-
bankRefId:
|
|
434
|
+
bankRefId: uuidv4(),
|
|
435
|
+
// merchantTransactionId
|
|
435
436
|
direction: "OUTGOING",
|
|
436
437
|
paymentType: "DOMESTIC",
|
|
437
438
|
status: "PREPARED",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector } from './bank.
|
|
1
|
+
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector } from './bank.7e-LCMJ-.mjs';
|
|
2
2
|
import { uuidv4, first } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
@@ -7,7 +7,7 @@ import { eq } from 'drizzle-orm';
|
|
|
7
7
|
import 'jose';
|
|
8
8
|
import '@develit-io/general-codes';
|
|
9
9
|
import { createHash } from 'node:crypto';
|
|
10
|
-
import { M as MockCobsConnector } from './bank.
|
|
10
|
+
import { M as MockCobsConnector } from './bank.DokzI07s.mjs';
|
|
11
11
|
|
|
12
12
|
const createPaymentCommand = (db, { payment }) => {
|
|
13
13
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./bank.
|
|
3
|
+
const database_schema = require('./bank.HlxUqlDv.cjs');
|
|
4
4
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
5
5
|
const cloudflare_workers = require('cloudflare:workers');
|
|
6
6
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
@@ -9,7 +9,7 @@ const drizzleOrm = require('drizzle-orm');
|
|
|
9
9
|
require('jose');
|
|
10
10
|
require('@develit-io/general-codes');
|
|
11
11
|
const node_crypto = require('node:crypto');
|
|
12
|
-
const mockCobs_connector = require('./bank.
|
|
12
|
+
const mockCobs_connector = require('./bank.BUuz9ahr.cjs');
|
|
13
13
|
|
|
14
14
|
const createPaymentCommand = (db, { payment }) => {
|
|
15
15
|
return {
|
|
@@ -433,7 +433,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
433
433
|
return {
|
|
434
434
|
...payment,
|
|
435
435
|
id: backendSdk.uuidv4(),
|
|
436
|
-
bankRefId:
|
|
436
|
+
bankRefId: backendSdk.uuidv4(),
|
|
437
|
+
// merchantTransactionId
|
|
437
438
|
direction: "OUTGOING",
|
|
438
439
|
paymentType: "DOMESTIC",
|
|
439
440
|
status: "PREPARED",
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./shared/bank.
|
|
4
|
-
const mockCobs_connector = require('./shared/bank.
|
|
3
|
+
const database_schema = require('./shared/bank.HlxUqlDv.cjs');
|
|
4
|
+
const mockCobs_connector = require('./shared/bank.BUuz9ahr.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
7
7
|
require('drizzle-orm/sqlite-core');
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { M as MockCobsConnector } from './shared/bank.
|
|
1
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.7e-LCMJ-.mjs';
|
|
2
|
+
export { M as MockCobsConnector } from './shared/bank.DokzI07s.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|