@develit-services/bank 5.5.4 → 5.6.1
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/base.cjs +2 -2
- package/dist/base.mjs +2 -2
- package/dist/export/workflows.cjs +2 -2
- package/dist/export/workflows.mjs +2 -2
- package/dist/shared/{bank.Bcn8spzj.cjs → bank.B-7lJ4uA.cjs} +1 -1
- package/dist/shared/{bank.BEpgphDY.mjs → bank.BZkc4e0m.mjs} +12 -1
- package/dist/shared/{bank.6n35fwUh.cjs → bank.CYnp7V23.cjs} +12 -1
- package/dist/shared/{bank.BG5L8Nyp.mjs → bank.toAgXBfS.mjs} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +38 -1
- package/dist/types.d.mts +38 -1
- package/dist/types.d.ts +38 -1
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/base.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const paymentDirection = require('./shared/bank.
|
|
4
|
+
const paymentDirection = require('./shared/bank.CYnp7V23.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
8
|
require('jose');
|
|
9
|
-
const bank = require('./shared/bank.
|
|
9
|
+
const bank = require('./shared/bank.B-7lJ4uA.cjs');
|
|
10
10
|
const zod = require('zod');
|
|
11
11
|
const database_schema = require('./shared/bank.9Yw4KHyl.cjs');
|
|
12
12
|
const generalCodes = require('@develit-io/general-codes');
|
package/dist/base.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, bankAccountMetadataSchema, structuredAddressSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { G as tables, g as accountInsertSchema, H as relations, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, N as calculateCzechIban, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from './shared/bank.
|
|
2
|
+
import { G as tables, g as accountInsertSchema, H as relations, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, N as calculateCzechIban, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from './shared/bank.BZkc4e0m.mjs';
|
|
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
6
|
import 'jose';
|
|
7
|
-
import { h as encrypt, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, j as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from './shared/bank.
|
|
7
|
+
import { h as encrypt, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, j as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from './shared/bank.toAgXBfS.mjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, f as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES } from './shared/bank.BzDNLxB_.mjs';
|
|
10
10
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const paymentDirection = require('../shared/bank.
|
|
4
|
+
const paymentDirection = require('../shared/bank.CYnp7V23.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const drizzleOrm = require('drizzle-orm');
|
|
7
|
-
const bank = require('../shared/bank.
|
|
7
|
+
const bank = require('../shared/bank.B-7lJ4uA.cjs');
|
|
8
8
|
const cloudflare_workers = require('cloudflare:workers');
|
|
9
9
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
10
10
|
const d1 = require('drizzle-orm/d1');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
|
|
2
|
-
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, m as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, m as isPaymentCompleted } from '../shared/bank.BZkc4e0m.mjs';
|
|
3
3
|
import { i as isBatchAuthorized, b as isBatchFailed, d as isBatchProcessing } from '../shared/bank.XqSw509X.mjs';
|
|
4
4
|
import { eq, and, inArray } from 'drizzle-orm';
|
|
5
|
-
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.
|
|
5
|
+
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.toAgXBfS.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const paymentDirection = require('./bank.
|
|
4
|
+
const paymentDirection = require('./bank.CYnp7V23.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
require('./bank.9Yw4KHyl.cjs');
|
|
7
7
|
require('date-fns');
|
|
@@ -1208,7 +1208,16 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1208
1208
|
ss: payment.ss,
|
|
1209
1209
|
ks: payment.ks
|
|
1210
1210
|
});
|
|
1211
|
-
const
|
|
1211
|
+
const udt = this.PROVIDER === "CSOB" ? buildUltimateCreditor(payment.creditor, {
|
|
1212
|
+
stripDiacritics: payment.currency !== "CZK"
|
|
1213
|
+
}) : void 0;
|
|
1214
|
+
const reserved = (reference ? reference.length + 1 : 0) + (udt ? udt.length + 2 : 0);
|
|
1215
|
+
const base = [message.slice(0, Math.max(0, 140 - reserved)), reference].filter(Boolean).join(" ");
|
|
1216
|
+
const combined = udt ? base ? `${base}, ${udt}` : udt : base;
|
|
1217
|
+
const unstructured = (combined.length >= 3 ? combined : "Platba").slice(
|
|
1218
|
+
0,
|
|
1219
|
+
140
|
|
1220
|
+
);
|
|
1212
1221
|
const bankRefId = uuidv4();
|
|
1213
1222
|
const [response, error] = await useResult(
|
|
1214
1223
|
this.finbricks.request({
|
|
@@ -1240,6 +1249,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1240
1249
|
...creditorAddress && { postalAddress: creditorAddress }
|
|
1241
1250
|
},
|
|
1242
1251
|
remittanceInformation: { unstructured },
|
|
1252
|
+
// Finbricks SEPA init accepts only NORM/INST — internal HIGH maps to NORM.
|
|
1253
|
+
instructionPriority: payment.instructionPriority === "INST" ? "INST" : "NORM",
|
|
1243
1254
|
callbackUrl: `${this.finbricks.REDIRECT_URI}?type=paymentRequest&paymentRequestId=${payment.id}`
|
|
1244
1255
|
}
|
|
1245
1256
|
})
|
|
@@ -1210,7 +1210,16 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1210
1210
|
ss: payment.ss,
|
|
1211
1211
|
ks: payment.ks
|
|
1212
1212
|
});
|
|
1213
|
-
const
|
|
1213
|
+
const udt = this.PROVIDER === "CSOB" ? buildUltimateCreditor(payment.creditor, {
|
|
1214
|
+
stripDiacritics: payment.currency !== "CZK"
|
|
1215
|
+
}) : void 0;
|
|
1216
|
+
const reserved = (reference ? reference.length + 1 : 0) + (udt ? udt.length + 2 : 0);
|
|
1217
|
+
const base = [message.slice(0, Math.max(0, 140 - reserved)), reference].filter(Boolean).join(" ");
|
|
1218
|
+
const combined = udt ? base ? `${base}, ${udt}` : udt : base;
|
|
1219
|
+
const unstructured = (combined.length >= 3 ? combined : "Platba").slice(
|
|
1220
|
+
0,
|
|
1221
|
+
140
|
|
1222
|
+
);
|
|
1214
1223
|
const bankRefId = backendSdk.uuidv4();
|
|
1215
1224
|
const [response, error] = await backendSdk.useResult(
|
|
1216
1225
|
this.finbricks.request({
|
|
@@ -1242,6 +1251,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1242
1251
|
...creditorAddress && { postalAddress: creditorAddress }
|
|
1243
1252
|
},
|
|
1244
1253
|
remittanceInformation: { unstructured },
|
|
1254
|
+
// Finbricks SEPA init accepts only NORM/INST — internal HIGH maps to NORM.
|
|
1255
|
+
instructionPriority: payment.instructionPriority === "INST" ? "INST" : "NORM",
|
|
1245
1256
|
callbackUrl: `${this.finbricks.REDIRECT_URI}?type=paymentRequest&paymentRequestId=${payment.id}`
|
|
1246
1257
|
}
|
|
1247
1258
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sql, and, eq, isNull } from 'drizzle-orm';
|
|
2
|
-
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.
|
|
2
|
+
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.BZkc4e0m.mjs';
|
|
3
3
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
4
4
|
import './bank.BzDNLxB_.mjs';
|
|
5
5
|
import 'date-fns';
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const paymentDirection = require('./shared/bank.
|
|
3
|
+
const paymentDirection = require('./shared/bank.CYnp7V23.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.9Yw4KHyl.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
|
@@ -111,6 +111,43 @@ type FinbricksSupportedBanksQuery = {
|
|
|
111
111
|
statusSettledSupported?: boolean;
|
|
112
112
|
enabledForMerchant?: boolean;
|
|
113
113
|
};
|
|
114
|
+
type FinbricksSepaPaymentBody = {
|
|
115
|
+
merchantIdentification: {
|
|
116
|
+
merchantId: string;
|
|
117
|
+
clientId?: string;
|
|
118
|
+
};
|
|
119
|
+
paymentIdentification: {
|
|
120
|
+
merchantTransactionId: string;
|
|
121
|
+
endToEndIdentification?: string;
|
|
122
|
+
};
|
|
123
|
+
amount: number;
|
|
124
|
+
debtor: {
|
|
125
|
+
debtorAccountIban?: string;
|
|
126
|
+
debtorName?: string;
|
|
127
|
+
paymentProvider: string;
|
|
128
|
+
postalAddress?: {
|
|
129
|
+
streetName?: string;
|
|
130
|
+
buildingNumber?: string;
|
|
131
|
+
town?: string;
|
|
132
|
+
country?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
creditor: {
|
|
136
|
+
creditorAccountIban?: string;
|
|
137
|
+
creditorName?: string;
|
|
138
|
+
postalAddress?: {
|
|
139
|
+
streetName?: string;
|
|
140
|
+
buildingNumber?: string;
|
|
141
|
+
town?: string;
|
|
142
|
+
country?: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
remittanceInformation?: {
|
|
146
|
+
unstructured?: string;
|
|
147
|
+
};
|
|
148
|
+
instructionPriority?: 'NORM' | 'INST';
|
|
149
|
+
callbackUrl: string;
|
|
150
|
+
};
|
|
114
151
|
type FinbricksForeignPaymentBody = {
|
|
115
152
|
merchantIdentification: {
|
|
116
153
|
merchantId: string;
|
|
@@ -1293,4 +1330,4 @@ declare function toPaymentRequestInsert(payment: AccountAssignedPayment, batchId
|
|
|
1293
1330
|
declare function toBatchedPaymentFromPaymentRequest(sp: PaymentRequestSelectType): BatchedPayment;
|
|
1294
1331
|
|
|
1295
1332
|
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BatchMetadata, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CredentialsResolver, CsobConnector, Currency, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksAccount, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentRequestInsertType, PaymentRequestSelectType, PaymentRequestStatus, PaymentSelectType, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, dbuAccountConfigSchema, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toBatchedPaymentFromPaymentRequest, toCompletedPayment, toIncomingPayment, toPaymentRequestInsert, toPreparedPayment, useFinbricksFetch };
|
|
1296
|
-
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
|
1333
|
+
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSepaPaymentBody, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.mts
CHANGED
|
@@ -111,6 +111,43 @@ type FinbricksSupportedBanksQuery = {
|
|
|
111
111
|
statusSettledSupported?: boolean;
|
|
112
112
|
enabledForMerchant?: boolean;
|
|
113
113
|
};
|
|
114
|
+
type FinbricksSepaPaymentBody = {
|
|
115
|
+
merchantIdentification: {
|
|
116
|
+
merchantId: string;
|
|
117
|
+
clientId?: string;
|
|
118
|
+
};
|
|
119
|
+
paymentIdentification: {
|
|
120
|
+
merchantTransactionId: string;
|
|
121
|
+
endToEndIdentification?: string;
|
|
122
|
+
};
|
|
123
|
+
amount: number;
|
|
124
|
+
debtor: {
|
|
125
|
+
debtorAccountIban?: string;
|
|
126
|
+
debtorName?: string;
|
|
127
|
+
paymentProvider: string;
|
|
128
|
+
postalAddress?: {
|
|
129
|
+
streetName?: string;
|
|
130
|
+
buildingNumber?: string;
|
|
131
|
+
town?: string;
|
|
132
|
+
country?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
creditor: {
|
|
136
|
+
creditorAccountIban?: string;
|
|
137
|
+
creditorName?: string;
|
|
138
|
+
postalAddress?: {
|
|
139
|
+
streetName?: string;
|
|
140
|
+
buildingNumber?: string;
|
|
141
|
+
town?: string;
|
|
142
|
+
country?: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
remittanceInformation?: {
|
|
146
|
+
unstructured?: string;
|
|
147
|
+
};
|
|
148
|
+
instructionPriority?: 'NORM' | 'INST';
|
|
149
|
+
callbackUrl: string;
|
|
150
|
+
};
|
|
114
151
|
type FinbricksForeignPaymentBody = {
|
|
115
152
|
merchantIdentification: {
|
|
116
153
|
merchantId: string;
|
|
@@ -1293,4 +1330,4 @@ declare function toPaymentRequestInsert(payment: AccountAssignedPayment, batchId
|
|
|
1293
1330
|
declare function toBatchedPaymentFromPaymentRequest(sp: PaymentRequestSelectType): BatchedPayment;
|
|
1294
1331
|
|
|
1295
1332
|
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BatchMetadata, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CredentialsResolver, CsobConnector, Currency, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksAccount, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentRequestInsertType, PaymentRequestSelectType, PaymentRequestStatus, PaymentSelectType, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, dbuAccountConfigSchema, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toBatchedPaymentFromPaymentRequest, toCompletedPayment, toIncomingPayment, toPaymentRequestInsert, toPreparedPayment, useFinbricksFetch };
|
|
1296
|
-
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
|
1333
|
+
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSepaPaymentBody, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.ts
CHANGED
|
@@ -111,6 +111,43 @@ type FinbricksSupportedBanksQuery = {
|
|
|
111
111
|
statusSettledSupported?: boolean;
|
|
112
112
|
enabledForMerchant?: boolean;
|
|
113
113
|
};
|
|
114
|
+
type FinbricksSepaPaymentBody = {
|
|
115
|
+
merchantIdentification: {
|
|
116
|
+
merchantId: string;
|
|
117
|
+
clientId?: string;
|
|
118
|
+
};
|
|
119
|
+
paymentIdentification: {
|
|
120
|
+
merchantTransactionId: string;
|
|
121
|
+
endToEndIdentification?: string;
|
|
122
|
+
};
|
|
123
|
+
amount: number;
|
|
124
|
+
debtor: {
|
|
125
|
+
debtorAccountIban?: string;
|
|
126
|
+
debtorName?: string;
|
|
127
|
+
paymentProvider: string;
|
|
128
|
+
postalAddress?: {
|
|
129
|
+
streetName?: string;
|
|
130
|
+
buildingNumber?: string;
|
|
131
|
+
town?: string;
|
|
132
|
+
country?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
creditor: {
|
|
136
|
+
creditorAccountIban?: string;
|
|
137
|
+
creditorName?: string;
|
|
138
|
+
postalAddress?: {
|
|
139
|
+
streetName?: string;
|
|
140
|
+
buildingNumber?: string;
|
|
141
|
+
town?: string;
|
|
142
|
+
country?: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
remittanceInformation?: {
|
|
146
|
+
unstructured?: string;
|
|
147
|
+
};
|
|
148
|
+
instructionPriority?: 'NORM' | 'INST';
|
|
149
|
+
callbackUrl: string;
|
|
150
|
+
};
|
|
114
151
|
type FinbricksForeignPaymentBody = {
|
|
115
152
|
merchantIdentification: {
|
|
116
153
|
merchantId: string;
|
|
@@ -1293,4 +1330,4 @@ declare function toPaymentRequestInsert(payment: AccountAssignedPayment, batchId
|
|
|
1293
1330
|
declare function toBatchedPaymentFromPaymentRequest(sp: PaymentRequestSelectType): BatchedPayment;
|
|
1294
1331
|
|
|
1295
1332
|
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BatchMetadata, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CredentialsResolver, CsobConnector, Currency, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksAccount, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentRequestInsertType, PaymentRequestSelectType, PaymentRequestStatus, PaymentSelectType, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, dbuAccountConfigSchema, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toBatchedPaymentFromPaymentRequest, toCompletedPayment, toIncomingPayment, toPaymentRequestInsert, toPreparedPayment, useFinbricksFetch };
|
|
1296
|
-
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
|
1333
|
+
export type { BankPaymentEvent, BankPaymentRequestEvent, DbuAccountConfig, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksBatchBody, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksProvider, FinbricksRequestInit, FinbricksSepaPaymentBody, FinbricksSupportedBanksQuery, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BASE_TERMINAL_STATUSES, 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 accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
export { B as BASE_TERMINAL_STATUSES, 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 accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.BZkc4e0m.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 } from './shared/bank.BzDNLxB_.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';
|