@develit-services/bank 0.0.3 → 0.0.5
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/@types.cjs +29 -0
- package/dist/@types.d.cts +445 -0
- package/dist/database/schema.cjs +12 -0
- package/dist/database/schema.d.cts +4 -0
- package/dist/export/worker.cjs +1224 -0
- package/dist/export/worker.d.cts +243 -0
- package/dist/export/worker.d.mts +4 -4
- package/dist/export/worker.d.ts +7 -5
- package/dist/export/worker.mjs +3 -3
- package/dist/export/wrangler.cjs +131 -0
- package/dist/export/wrangler.d.cts +59 -0
- package/dist/shared/bank.BU2_AKRG.cjs +724 -0
- package/dist/shared/bank.CrAQe4PH.cjs +72 -0
- package/dist/shared/bank.DmLulSzu.d.cts +98 -0
- package/dist/shared/bank.DxGqqFhD.d.cts +36 -0
- package/dist/shared/bank.dxpKOn1t.d.cts +785 -0
- package/package.json +10 -6
package/dist/@types.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const db = require('./shared/bank.BU2_AKRG.cjs');
|
|
4
|
+
const generalCodes = require('@develit-io/general-codes');
|
|
5
|
+
require('@develit-io/backend-sdk');
|
|
6
|
+
require('./shared/bank.CrAQe4PH.cjs');
|
|
7
|
+
require('drizzle-orm/sqlite-core');
|
|
8
|
+
require('drizzle-orm/relations');
|
|
9
|
+
require('drizzle-orm');
|
|
10
|
+
require('date-fns');
|
|
11
|
+
require('jose');
|
|
12
|
+
require('zod');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.BATCH_STATUES = db.BATCH_STATUSES;
|
|
17
|
+
exports.BATCH_STATUSES = db.BATCH_STATUSES;
|
|
18
|
+
exports.COUNTRY_CODES = db.COUNTRY_CODES;
|
|
19
|
+
exports.ErsteConnector = db.ErsteConnector;
|
|
20
|
+
exports.FinbricksConnector = db.FinbricksConnector;
|
|
21
|
+
exports.IBankConnector = db.IBankConnector;
|
|
22
|
+
exports.MockCobsConnector = db.MockCobsConnector;
|
|
23
|
+
exports.MockConnector = db.MockConnector;
|
|
24
|
+
exports.PAYMENT_DIRECTIONS = db.PAYMENT_DIRECTIONS;
|
|
25
|
+
exports.PAYMENT_STATUSES = db.PAYMENT_STATUSES;
|
|
26
|
+
exports.PAYMENT_TYPES = db.PAYMENT_TYPES;
|
|
27
|
+
exports.paymentInsertTypeZod = db.paymentInsertTypeZod;
|
|
28
|
+
exports.BANK_CODES = generalCodes.BANK_CODES;
|
|
29
|
+
exports.CURRENCY_CODES = generalCodes.CURRENCY_CODES;
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.DmLulSzu.cjs';
|
|
2
|
+
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.DmLulSzu.cjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.dxpKOn1t.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.dxpKOn1t.cjs';
|
|
5
|
+
import { Environment } from '@develit-io/backend-sdk';
|
|
6
|
+
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
|
+
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.DxGqqFhD.cjs';
|
|
8
|
+
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
9
|
+
import 'drizzle-orm/sqlite-core';
|
|
10
|
+
import 'drizzle-orm';
|
|
11
|
+
import 'zod';
|
|
12
|
+
|
|
13
|
+
type FinbricksProvider = 'KB' | 'ERSTE' | 'CSOB' | 'MOCK_COBS' | 'CREDITAS' | 'FIO';
|
|
14
|
+
type FinbricksPaymentBody = {
|
|
15
|
+
merchantId: string;
|
|
16
|
+
merchantTransactionId: string;
|
|
17
|
+
totalPrice: number;
|
|
18
|
+
debtorAccountIban: string;
|
|
19
|
+
creditorAccountIban: string;
|
|
20
|
+
creditorName?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
variableSymbol?: string;
|
|
23
|
+
specificSymbol?: string;
|
|
24
|
+
constantSymbol?: string;
|
|
25
|
+
callbackUrl: string;
|
|
26
|
+
clientId?: string;
|
|
27
|
+
operationId?: string;
|
|
28
|
+
instructionPriority?: 'NORM' | 'INST';
|
|
29
|
+
initiatorName?: string;
|
|
30
|
+
paymentProvider: FinbricksProvider;
|
|
31
|
+
};
|
|
32
|
+
type FinbricksBatchBody = {
|
|
33
|
+
batchPaymentIdentification: {
|
|
34
|
+
merchantId: string;
|
|
35
|
+
debtorAccountIban: string;
|
|
36
|
+
clientId?: string;
|
|
37
|
+
operationId?: string;
|
|
38
|
+
callbackUrl?: string;
|
|
39
|
+
merchantBatchId: string;
|
|
40
|
+
instructionName?: string;
|
|
41
|
+
};
|
|
42
|
+
payments: {
|
|
43
|
+
merchantTransactionId: string;
|
|
44
|
+
creditorAccountIban?: string;
|
|
45
|
+
amount: number;
|
|
46
|
+
description?: string;
|
|
47
|
+
variableSymbol?: string;
|
|
48
|
+
specificSymbol?: string;
|
|
49
|
+
constantSymbol?: string;
|
|
50
|
+
instructionPriority?: 'NORM' | 'INST';
|
|
51
|
+
initiatorName?: string;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
56
|
+
|
|
57
|
+
type RedirectUrl = {
|
|
58
|
+
redirectUrl: string;
|
|
59
|
+
};
|
|
60
|
+
type FinbricksIdentification = {
|
|
61
|
+
accountNumber: string;
|
|
62
|
+
iban: string;
|
|
63
|
+
other: {
|
|
64
|
+
type: string;
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
type FinbricksServicer = {
|
|
69
|
+
bankCode: BankCode;
|
|
70
|
+
countryCode: CountryCode;
|
|
71
|
+
bic: string;
|
|
72
|
+
};
|
|
73
|
+
type FinbricksAccount = {
|
|
74
|
+
id: string;
|
|
75
|
+
identification: FinbricksIdentification;
|
|
76
|
+
currency: CurrencyCode;
|
|
77
|
+
servicer: FinbricksServicer;
|
|
78
|
+
accountName: string;
|
|
79
|
+
productName: string;
|
|
80
|
+
ownersNames: string[];
|
|
81
|
+
relationship: {
|
|
82
|
+
isOwner: boolean;
|
|
83
|
+
};
|
|
84
|
+
pispSuitable: boolean;
|
|
85
|
+
};
|
|
86
|
+
type FinbricksPaymentResponse = RedirectUrl;
|
|
87
|
+
type FinbricksBatchResponse = RedirectUrl;
|
|
88
|
+
type FinbricksAccountsListResponse = {
|
|
89
|
+
accounts: FinbricksAccount[];
|
|
90
|
+
};
|
|
91
|
+
type FinbricksTransactionLink = {
|
|
92
|
+
rel: string;
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
95
|
+
type FinbricksAmount = {
|
|
96
|
+
value: number;
|
|
97
|
+
currency: CurrencyCode;
|
|
98
|
+
};
|
|
99
|
+
type FinbricksAddress = {
|
|
100
|
+
streetName: string;
|
|
101
|
+
buildingNumber: string;
|
|
102
|
+
postCode: string;
|
|
103
|
+
townName: string;
|
|
104
|
+
country: CountryCode;
|
|
105
|
+
adressLine: string;
|
|
106
|
+
};
|
|
107
|
+
type FinbricksTransaction = {
|
|
108
|
+
fbxReference: string;
|
|
109
|
+
entryReference: string;
|
|
110
|
+
amount: FinbricksAmount;
|
|
111
|
+
creditDebitIndicator: string;
|
|
112
|
+
reversalIndicator: boolean;
|
|
113
|
+
status: string;
|
|
114
|
+
bookingDate: {
|
|
115
|
+
date: Date;
|
|
116
|
+
};
|
|
117
|
+
valueDate: {
|
|
118
|
+
date: Date;
|
|
119
|
+
};
|
|
120
|
+
bankTransactionCode: {
|
|
121
|
+
proprietary: {
|
|
122
|
+
code: string;
|
|
123
|
+
issuer: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
entryDetails: {
|
|
127
|
+
transactionDetails: {
|
|
128
|
+
references: {
|
|
129
|
+
messageIdentification: string;
|
|
130
|
+
accountServicerReference: string;
|
|
131
|
+
paymentInformationIdentification: string;
|
|
132
|
+
instructionIdentification: string;
|
|
133
|
+
endToEndIdentification: string;
|
|
134
|
+
chequeNumber: string;
|
|
135
|
+
clearingSystemReference: string;
|
|
136
|
+
};
|
|
137
|
+
amountDetails: {
|
|
138
|
+
instructedAmount: {
|
|
139
|
+
amount: FinbricksAmount;
|
|
140
|
+
};
|
|
141
|
+
transactionAmount: {
|
|
142
|
+
amount: FinbricksAmount;
|
|
143
|
+
};
|
|
144
|
+
counterValueAmount: {
|
|
145
|
+
amount: FinbricksAmount;
|
|
146
|
+
currencyExchange: {
|
|
147
|
+
sourceCurrency: CurrencyCode;
|
|
148
|
+
targetCurrency: CurrencyCode;
|
|
149
|
+
exchangeRate: number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
proprietaryAmount: {
|
|
153
|
+
type: string;
|
|
154
|
+
amount: FinbricksAmount;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
charges: {
|
|
158
|
+
bearer: string;
|
|
159
|
+
value: number;
|
|
160
|
+
currency: CurrencyCode;
|
|
161
|
+
};
|
|
162
|
+
relatedParties: {
|
|
163
|
+
debtor: {
|
|
164
|
+
name: string;
|
|
165
|
+
postalAddress: FinbricksAddress;
|
|
166
|
+
identification: {
|
|
167
|
+
organizationIdentification: {
|
|
168
|
+
bicOrBei: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
debtorAccount: {
|
|
173
|
+
identification: {
|
|
174
|
+
iban: string;
|
|
175
|
+
other: {
|
|
176
|
+
identification: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
creditor: {
|
|
181
|
+
name: string;
|
|
182
|
+
postalAddress: FinbricksAddress;
|
|
183
|
+
identification: {
|
|
184
|
+
organizationIdentification: {
|
|
185
|
+
bicOrBei: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
creditorAccount: {
|
|
190
|
+
identification: {
|
|
191
|
+
iban: string;
|
|
192
|
+
other: {
|
|
193
|
+
identification: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
remittanceInformation: {
|
|
199
|
+
unstructured: string;
|
|
200
|
+
structured: {
|
|
201
|
+
creditorReferenceInformation: {
|
|
202
|
+
reference: ReferenceType[];
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
additionalRemittanceInformation: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
type FinbricksAccountTransactionsResponse = {
|
|
211
|
+
pageSize: number;
|
|
212
|
+
links: FinbricksTransactionLink[];
|
|
213
|
+
transactions: FinbricksTransaction[];
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
type FinbricksJWSData = {
|
|
217
|
+
uri: string;
|
|
218
|
+
body: string;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
interface FinbricksConnectorConfig {
|
|
222
|
+
MERCHANT_ID: string;
|
|
223
|
+
PRIVATE_KEY_PEM: string;
|
|
224
|
+
BASE_URI: string;
|
|
225
|
+
}
|
|
226
|
+
declare abstract class FinbricksConnector extends IBankConnector {
|
|
227
|
+
connectorKey: ConnectorKey;
|
|
228
|
+
readonly BASE_URI: string;
|
|
229
|
+
readonly MERCHANT_ID: string;
|
|
230
|
+
readonly PRIVATE_KEY_PEM: string;
|
|
231
|
+
private readonly PROVIDER;
|
|
232
|
+
static readonly FETCH_INTERVAL: number;
|
|
233
|
+
private lastValidClientId;
|
|
234
|
+
private readonly apiDictionary;
|
|
235
|
+
constructor(PROVIDER: FinbricksProvider, { BASE_URI, MERCHANT_ID, PRIVATE_KEY_PEM }: FinbricksConnectorConfig);
|
|
236
|
+
signFinbricksJws({ jwsData }: {
|
|
237
|
+
jwsData: FinbricksJWSData;
|
|
238
|
+
}): Promise<string>;
|
|
239
|
+
authenticate({ token }: AuthInput): Promise<string>;
|
|
240
|
+
isClientIdExpired(clientId: string): Promise<boolean>;
|
|
241
|
+
preparePayment(payment: IncomingPaymentMessage): Promise<PaymentPreparedInsertType>;
|
|
242
|
+
initiateBatchFromPayments({ payments, }: {
|
|
243
|
+
payments: PaymentPreparedInsertType[];
|
|
244
|
+
}): Promise<InitiatedBatch>;
|
|
245
|
+
initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
|
|
246
|
+
getAllAccountPayments({ account, lastSync, }: {
|
|
247
|
+
account: ConfigBankAccount;
|
|
248
|
+
lastSync: SyncLog;
|
|
249
|
+
db: DrizzleD1Database<typeof tables>;
|
|
250
|
+
env: Environment;
|
|
251
|
+
}): Promise<PaymentInsertType[]>;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
interface ErsteConnectorConfig {
|
|
255
|
+
API_KEY: string;
|
|
256
|
+
CLIENT_ID: string;
|
|
257
|
+
CLIENT_SECRET: string;
|
|
258
|
+
REDIRECT_URI: string;
|
|
259
|
+
AUTH_URI: string;
|
|
260
|
+
PAYMENTS_URI: string;
|
|
261
|
+
ACCOUNTS_URI: string;
|
|
262
|
+
}
|
|
263
|
+
declare class ErsteConnector extends IBankConnector {
|
|
264
|
+
static readonly FETCH_INTERVAL: number;
|
|
265
|
+
private readonly API_KEY;
|
|
266
|
+
private readonly CLIENT_ID;
|
|
267
|
+
private readonly CLIENT_SECRET;
|
|
268
|
+
private readonly AUTH_URI;
|
|
269
|
+
private readonly PAYMENTS_URI;
|
|
270
|
+
private readonly REDIRECT_URI;
|
|
271
|
+
private readonly ACCOUNTS_URI;
|
|
272
|
+
connectorKey: ConnectorKey;
|
|
273
|
+
private accessToken;
|
|
274
|
+
constructor(config: ErsteConnectorConfig);
|
|
275
|
+
get adminCodeCreationURI(): string;
|
|
276
|
+
authenticate({ token, refreshToken }: AuthInput): Promise<string>;
|
|
277
|
+
preparePayment(payment: IncomingPaymentMessage): Promise<PaymentPreparedInsertType>;
|
|
278
|
+
initiateBatchFromPayments({ payments, }: {
|
|
279
|
+
payments: PaymentPreparedInsertType[];
|
|
280
|
+
}): Promise<InitiatedBatch>;
|
|
281
|
+
initiateSinglePayment(): Promise<InitiatedPayment>;
|
|
282
|
+
sendBatchPaymentForAuthorization(paymentIds: string[]): Promise<BatchMetadata>;
|
|
283
|
+
getBatchAuthorizationURI({ signId, signHash, }: {
|
|
284
|
+
signId: string;
|
|
285
|
+
signHash: string;
|
|
286
|
+
}): Promise<string>;
|
|
287
|
+
getAllAccountPayments({ account, lastSync, }: {
|
|
288
|
+
account: ConfigBankAccount;
|
|
289
|
+
lastSync: SyncLog;
|
|
290
|
+
}): Promise<PaymentInsertType[]>;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare class MockConnector extends IBankConnector {
|
|
294
|
+
connectorKey: ConnectorKey;
|
|
295
|
+
static readonly FETCH_INTERVAL: number;
|
|
296
|
+
authenticate(): Promise<string>;
|
|
297
|
+
preparePayment(payment: IncomingPaymentMessage): Promise<PaymentPreparedInsertType>;
|
|
298
|
+
initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
|
|
299
|
+
initiateBatchFromPayments({ payments, }: {
|
|
300
|
+
payments: IncomingPaymentMessage[];
|
|
301
|
+
}): Promise<InitiatedBatch>;
|
|
302
|
+
getAllAccountPayments({ db, }: {
|
|
303
|
+
db: DrizzleD1Database<typeof tables>;
|
|
304
|
+
}): Promise<PaymentInsertType[]>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare class MockCobsConnector extends FinbricksConnector {
|
|
308
|
+
constructor(config: FinbricksConnectorConfig);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
interface ErsteAuthenticationResponse {
|
|
312
|
+
access_token: string;
|
|
313
|
+
token_type: string;
|
|
314
|
+
expires_in: number;
|
|
315
|
+
scope: string;
|
|
316
|
+
refresh_token: string;
|
|
317
|
+
}
|
|
318
|
+
interface ErsteParty {
|
|
319
|
+
name: string;
|
|
320
|
+
}
|
|
321
|
+
interface ErsteAccount {
|
|
322
|
+
identification: {
|
|
323
|
+
iban: string;
|
|
324
|
+
other: {
|
|
325
|
+
identification: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
interface ErsteSignInfo {
|
|
330
|
+
signId: string;
|
|
331
|
+
hash: string;
|
|
332
|
+
state: 'OPEN' | 'NONE' | 'DECLINED';
|
|
333
|
+
}
|
|
334
|
+
interface ErsteIncomingPaymentResponse {
|
|
335
|
+
entryReference: string;
|
|
336
|
+
reservationId: string;
|
|
337
|
+
amount: {
|
|
338
|
+
value: number;
|
|
339
|
+
currency: Currency;
|
|
340
|
+
};
|
|
341
|
+
bookingDate: {
|
|
342
|
+
date: string;
|
|
343
|
+
};
|
|
344
|
+
status: 'BOOK' | 'INFO';
|
|
345
|
+
entryDetails: {
|
|
346
|
+
transactionDetails: {
|
|
347
|
+
references: {
|
|
348
|
+
accountServicerReference?: string;
|
|
349
|
+
endToEndIdentification?: string;
|
|
350
|
+
chequeNumber?: string;
|
|
351
|
+
};
|
|
352
|
+
amountDetails: {
|
|
353
|
+
instructedAmount: {
|
|
354
|
+
value: number;
|
|
355
|
+
currency: Currency;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
charges: {
|
|
359
|
+
bearer: 'SHA' | 'OUR' | 'BEN';
|
|
360
|
+
};
|
|
361
|
+
relatedParties: {
|
|
362
|
+
debtor: ErsteParty;
|
|
363
|
+
debtorAccount: ErsteAccount;
|
|
364
|
+
creditor?: ErsteParty;
|
|
365
|
+
creditorAccount: ErsteAccount;
|
|
366
|
+
};
|
|
367
|
+
remittanceInformation: {
|
|
368
|
+
unstructured?: string;
|
|
369
|
+
structured: {
|
|
370
|
+
creditorReferenceInformation: {
|
|
371
|
+
reference: ReferenceType[];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
additionalRemittanceInformation: string;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
interface ErstePaymentInitiationResponse {
|
|
380
|
+
paymentIdentification: {
|
|
381
|
+
endToEndIdentification: string;
|
|
382
|
+
instructionIdentification: string;
|
|
383
|
+
transactionIdentification: string;
|
|
384
|
+
};
|
|
385
|
+
paymentTypeInformation: {
|
|
386
|
+
instructedPriority: 'NORM' | 'HIGH' | 'INST' | 'DOMESTIC';
|
|
387
|
+
serviceLevel: {
|
|
388
|
+
code: 'DOMESTIC' | 'SEPA';
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
amount: {
|
|
392
|
+
instructedAmount: {
|
|
393
|
+
value: number;
|
|
394
|
+
currency: Currency;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
requestedExecutionDate: string;
|
|
398
|
+
chargeBearer: 'SHA' | 'OUR' | 'BEN';
|
|
399
|
+
debtorAccount: {
|
|
400
|
+
identification: {
|
|
401
|
+
iban: string;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
creditorAccount: {
|
|
405
|
+
identification: {
|
|
406
|
+
iban: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
creditorAgent: {
|
|
410
|
+
financialInstitutionIdentification: {
|
|
411
|
+
bic: string;
|
|
412
|
+
name: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
creditor: {
|
|
416
|
+
name: string;
|
|
417
|
+
};
|
|
418
|
+
remittanceInformation: {
|
|
419
|
+
structured: {
|
|
420
|
+
creditorReferenceInformation: {
|
|
421
|
+
reference: ReferenceType[];
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
unstructured: string;
|
|
425
|
+
additionalRemittanceInformation: string;
|
|
426
|
+
};
|
|
427
|
+
signInfo: ErsteSignInfo;
|
|
428
|
+
intructionStatus: 'ACTC' | 'ACSP' | 'RJCT';
|
|
429
|
+
}
|
|
430
|
+
interface ErsteBatchPaymentInitiationResponse {
|
|
431
|
+
transactionIdentification: string;
|
|
432
|
+
signInfo: ErsteSignInfo;
|
|
433
|
+
}
|
|
434
|
+
interface ErsteObtainAuthorizationURLResponse {
|
|
435
|
+
signInfo: ErsteSignInfo;
|
|
436
|
+
validTo: string;
|
|
437
|
+
signingUrl: string;
|
|
438
|
+
poll: {
|
|
439
|
+
id: string;
|
|
440
|
+
interval: number;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export { AuthInput, BankCode, BatchMetadata, CountryCode, Currency, CurrencyCode, ErsteConnector, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, PaymentInsertType, PaymentPreparedInsertType };
|
|
445
|
+
export type { ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksConnectorConfig, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const database_schema = require('../shared/bank.CrAQe4PH.cjs');
|
|
4
|
+
require('@develit-io/backend-sdk');
|
|
5
|
+
require('drizzle-orm/sqlite-core');
|
|
6
|
+
require('drizzle-orm/relations');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.batch = database_schema.batch;
|
|
11
|
+
exports.payment = database_schema.payment;
|
|
12
|
+
exports.paymentRelations = database_schema.paymentRelations;
|