@develit-services/bank 0.8.2 → 0.8.4

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.
Files changed (41) hide show
  1. package/README.md +82 -6
  2. package/dist/database/schema.cjs +9 -7
  3. package/dist/database/schema.d.cts +1 -1
  4. package/dist/database/schema.d.mts +1 -1
  5. package/dist/database/schema.d.ts +1 -1
  6. package/dist/database/schema.mjs +1 -1
  7. package/dist/export/worker.cjs +221 -43
  8. package/dist/export/worker.d.cts +24 -8
  9. package/dist/export/worker.d.mts +24 -8
  10. package/dist/export/worker.d.ts +24 -8
  11. package/dist/export/worker.mjs +212 -34
  12. package/dist/export/workflows.cjs +71 -52
  13. package/dist/export/workflows.mjs +71 -52
  14. package/dist/export/wrangler.d.cts +1 -2
  15. package/dist/export/wrangler.d.mts +1 -2
  16. package/dist/export/wrangler.d.ts +1 -2
  17. package/dist/shared/{bank.Du70-Kk_.d.ts → bank.6faPHUEY.d.ts} +211 -1
  18. package/dist/shared/{bank.Bs7mkXbR.cjs → bank.BOnP9p9Y.cjs} +15 -2
  19. package/dist/shared/{bank.BJ7LqYtJ.d.cts → bank.BaMRCHk-.d.cts} +707 -126
  20. package/dist/shared/{bank.BJ7LqYtJ.d.mts → bank.BaMRCHk-.d.mts} +707 -126
  21. package/dist/shared/{bank.BJ7LqYtJ.d.ts → bank.BaMRCHk-.d.ts} +707 -126
  22. package/dist/shared/{bank.Du70-Kk_.d.cts → bank.BoWCMu5n.d.cts} +211 -1
  23. package/dist/shared/bank.C-T1FQxg.cjs +17 -0
  24. package/dist/shared/{bank.993UA65l.mjs → bank.C4VOdIx1.mjs} +57 -5
  25. package/dist/shared/{bank.BC06Rbrx.d.cts → bank.CQBfbG8u.d.cts} +0 -1
  26. package/dist/shared/{bank.BC06Rbrx.d.mts → bank.CQBfbG8u.d.mts} +0 -1
  27. package/dist/shared/{bank.BC06Rbrx.d.ts → bank.CQBfbG8u.d.ts} +0 -1
  28. package/dist/shared/{bank.Ce-NBBw1.cjs → bank.CQURey1E.cjs} +64 -7
  29. package/dist/shared/{bank.CGIeLo8U.mjs → bank.Cpy9PULF.mjs} +14 -3
  30. package/dist/shared/bank.DDHrdFgy.mjs +15 -0
  31. package/dist/shared/{bank.Du70-Kk_.d.mts → bank.DOL1uM4n.d.mts} +211 -1
  32. package/dist/shared/{bank.CeRbuycV.mjs → bank.DRrBrAdI.mjs} +62 -8
  33. package/dist/shared/{bank.IVhZ_RlH.cjs → bank.SQ4Mmr8u.cjs} +57 -3
  34. package/dist/types.cjs +25 -23
  35. package/dist/types.d.cts +29 -180
  36. package/dist/types.d.mts +29 -180
  37. package/dist/types.d.ts +29 -180
  38. package/dist/types.mjs +2 -2
  39. package/package.json +1 -1
  40. package/dist/shared/bank.Cp0yvOdq.cjs +0 -15
  41. package/dist/shared/bank.fIGTiPnp.mjs +0 -13
@@ -1,5 +1,215 @@
1
+ import { X as CurrencyCode, H as BankCode, U as CountryCode } from './bank.BaMRCHk-.mjs';
1
2
  import { z } from 'zod';
2
3
 
4
+ type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
5
+
6
+ type FinbricksAuthTokenResponse = {
7
+ clientId: string;
8
+ provider: string;
9
+ scope: 'AISP' | 'AISP_PISP';
10
+ validFrom: string;
11
+ validTo: string;
12
+ stronglyAuthenticatedTo?: string;
13
+ }[];
14
+ type RedirectUrl = {
15
+ redirectUrl: string;
16
+ };
17
+ type FinbricksIdentification = {
18
+ accountNumber: string;
19
+ iban: string;
20
+ other: {
21
+ type: string;
22
+ value: string;
23
+ };
24
+ };
25
+ type FinbricksServicer = {
26
+ bankCode: BankCode;
27
+ countryCode: CountryCode;
28
+ bic: string;
29
+ };
30
+ type FinbricksAccount = {
31
+ id: string;
32
+ identification: FinbricksIdentification;
33
+ currency: CurrencyCode;
34
+ servicer: FinbricksServicer;
35
+ accountName: string;
36
+ productName: string;
37
+ ownersNames: string[];
38
+ relationship: {
39
+ isOwner: boolean;
40
+ };
41
+ pispSuitable: boolean;
42
+ };
43
+ type FinbricksPaymentResponse = RedirectUrl;
44
+ type FinbricksBatchResponse = RedirectUrl;
45
+ type FinbricksConnectAccountResponse = RedirectUrl;
46
+ type FinbricksAccountsListResponse = {
47
+ accounts: FinbricksAccount[];
48
+ };
49
+ type FinbricksTransactionLink = {
50
+ rel: string;
51
+ value: string;
52
+ };
53
+ type FinbricksAmount = {
54
+ value: number;
55
+ currency: CurrencyCode;
56
+ };
57
+ type FinbricksAddress = {
58
+ streetName: string;
59
+ buildingNumber: string;
60
+ postCode: string;
61
+ townName: string;
62
+ country: CountryCode;
63
+ adressLine: string;
64
+ };
65
+ type FinbricksTransaction = {
66
+ fbxReference: string;
67
+ entryReference: string;
68
+ amount: FinbricksAmount;
69
+ creditDebitIndicator: 'CRDT' | 'DBIT';
70
+ reversalIndicator: boolean;
71
+ status: string;
72
+ bookingDate: {
73
+ date: Date;
74
+ };
75
+ valueDate: {
76
+ date: Date;
77
+ };
78
+ bankTransactionCode: {
79
+ proprietary: {
80
+ code: string;
81
+ issuer: string;
82
+ };
83
+ };
84
+ entryDetails: {
85
+ transactionDetails: {
86
+ references: {
87
+ messageIdentification: string;
88
+ accountServicerReference: string;
89
+ paymentInformationIdentification: string;
90
+ instructionIdentification: string;
91
+ endToEndIdentification: string;
92
+ chequeNumber: string;
93
+ clearingSystemReference: string;
94
+ };
95
+ amountDetails: {
96
+ instructedAmount: {
97
+ amount: FinbricksAmount;
98
+ };
99
+ transactionAmount: {
100
+ amount: FinbricksAmount;
101
+ };
102
+ counterValueAmount: {
103
+ amount: FinbricksAmount;
104
+ currencyExchange: {
105
+ sourceCurrency: CurrencyCode;
106
+ targetCurrency: CurrencyCode;
107
+ exchangeRate: number;
108
+ };
109
+ };
110
+ proprietaryAmount: {
111
+ type: string;
112
+ amount: FinbricksAmount;
113
+ };
114
+ };
115
+ charges: {
116
+ bearer: string;
117
+ value: number;
118
+ currency: CurrencyCode;
119
+ };
120
+ relatedParties: {
121
+ debtor?: {
122
+ name: string;
123
+ postalAddress: FinbricksAddress;
124
+ identification: {
125
+ organizationIdentification: {
126
+ bicOrBei: string;
127
+ };
128
+ };
129
+ };
130
+ debtorAccount?: {
131
+ name: string;
132
+ identification: {
133
+ iban: string;
134
+ other: {
135
+ identification: string;
136
+ };
137
+ };
138
+ };
139
+ creditor?: {
140
+ name: string;
141
+ postalAddress: FinbricksAddress;
142
+ identification: {
143
+ organizationIdentification: {
144
+ bicOrBei: string;
145
+ };
146
+ };
147
+ };
148
+ creditorAccount?: {
149
+ name: string;
150
+ identification: {
151
+ iban: string;
152
+ other: {
153
+ identification: string;
154
+ };
155
+ };
156
+ };
157
+ };
158
+ remittanceInformation: {
159
+ unstructured: string;
160
+ structured: {
161
+ creditorReferenceInformation: {
162
+ reference: ReferenceType[];
163
+ };
164
+ };
165
+ };
166
+ additionalRemittanceInformation: string;
167
+ additionalTransactionInformation: string;
168
+ };
169
+ };
170
+ };
171
+ type FinbricksSupportedBank = {
172
+ bankName: string;
173
+ paymentProvider: string;
174
+ bankCode?: string;
175
+ countryCode: string;
176
+ bic?: string;
177
+ enabledForMerchant: boolean;
178
+ /** @deprecated use supportedInstantPayments.domesticCreditor */
179
+ domesticInstantPaymentCreditorSupported: boolean;
180
+ /** @deprecated use supportedInstantPayments.domesticDebtor */
181
+ domesticInstantPaymentDebtorSupported: boolean;
182
+ /** @deprecated use supportedInstantPayments.sepaDebtor */
183
+ sepaInstantPaymentDebtorSupported: boolean;
184
+ /** @deprecated use supportedInstantPayments.sepaCreditor */
185
+ sepaInstantPaymentCreditorSupported: boolean;
186
+ logoUrl?: string;
187
+ supportedServices: {
188
+ domesticPayment: boolean;
189
+ sepaPayment: boolean;
190
+ foreignPayment: boolean;
191
+ accountInformation: boolean;
192
+ accountBalance: boolean;
193
+ accountTransactions: boolean;
194
+ batchPayment: boolean;
195
+ recurringPayment: boolean;
196
+ paymentPairing: boolean;
197
+ statusSettled: boolean;
198
+ };
199
+ supportedInstantPayments: {
200
+ domesticCreditor: boolean;
201
+ domesticDebtor: boolean;
202
+ sepaCreditor: boolean;
203
+ sepaDebtor: boolean;
204
+ };
205
+ };
206
+ type FinbricksSupportedBanksResponse = FinbricksSupportedBank[];
207
+ type FinbricksAccountTransactionsResponse = {
208
+ pageSize: number;
209
+ links: FinbricksTransactionLink[];
210
+ transactions: FinbricksTransaction[];
211
+ };
212
+
3
213
  declare const sendPaymentInputSchema: z.ZodObject<{
4
214
  correlationId: z.ZodString;
5
215
  refId: z.ZodOptional<z.ZodString>;
@@ -1497,4 +1707,4 @@ type SendPaymentSyncOutput = {
1497
1707
  authorizationUrl: string;
1498
1708
  };
1499
1709
 
1500
- export type { SendPaymentInput as S, SendPaymentOutput as a, SendPaymentSyncInput as b, SendPaymentSyncOutput as c };
1710
+ export type { FinbricksSupportedBanksResponse as F, ReferenceType as R, SendPaymentInput as S, SendPaymentOutput as a, SendPaymentSyncInput as b, SendPaymentSyncOutput as c, FinbricksAccount as d, FinbricksAccountTransactionsResponse as e, FinbricksAccountsListResponse as f, FinbricksAuthTokenResponse as g, FinbricksBatchResponse as h, FinbricksConnectAccountResponse as i, FinbricksPaymentResponse as j, FinbricksSupportedBank as k };
@@ -1,7 +1,7 @@
1
1
  import { uuidv4, createInternalError, useResult } from '@develit-io/backend-sdk';
2
2
  import { format, parseISO } from 'date-fns';
3
3
  import { CURRENCY_CODES } from '@develit-io/general-codes';
4
- import './bank.993UA65l.mjs';
4
+ import './bank.C4VOdIx1.mjs';
5
5
  import 'drizzle-orm';
6
6
  import { importPKCS8, SignJWT } from 'jose';
7
7
  import 'node:crypto';
@@ -63,6 +63,58 @@ function toCompletedPayment(payment, status, bankRefId, processedAt) {
63
63
  function batchTransform(payments, transformer) {
64
64
  return payments.map(transformer);
65
65
  }
66
+ function toPaymentRequestInsert(payment, batchId) {
67
+ return {
68
+ id: payment.id,
69
+ batchId,
70
+ accountId: payment.accountId,
71
+ correlationId: payment.correlationId,
72
+ refId: payment.refId ?? null,
73
+ connectorKey: payment.connectorKey,
74
+ amount: payment.amount,
75
+ paymentType: payment.paymentType,
76
+ currency: payment.currency,
77
+ status: "CREATED",
78
+ vs: payment.vs ?? null,
79
+ ss: payment.ss ?? null,
80
+ ks: payment.ks ?? null,
81
+ message: payment.message ?? null,
82
+ chargeBearer: payment.chargeBearer,
83
+ instructionPriority: payment.instructionPriority,
84
+ creditor: payment.creditor,
85
+ creditorIban: payment.creditorIban ?? null,
86
+ debtor: payment.debtor,
87
+ debtorIban: payment.debtorIban ?? null
88
+ };
89
+ }
90
+ function toBatchedPaymentFromPaymentRequest(sp) {
91
+ return {
92
+ id: sp.id,
93
+ correlationId: sp.correlationId,
94
+ refId: sp.refId,
95
+ accountId: sp.accountId,
96
+ connectorKey: sp.connectorKey,
97
+ amount: sp.amount,
98
+ direction: "OUTGOING",
99
+ paymentType: sp.paymentType,
100
+ currency: sp.currency,
101
+ status: "CREATED",
102
+ statusReason: sp.statusReason,
103
+ batchId: sp.batchId,
104
+ initiatedAt: sp.initiatedAt,
105
+ processedAt: sp.processedAt,
106
+ vs: sp.vs,
107
+ ss: sp.ss,
108
+ ks: sp.ks,
109
+ message: sp.message,
110
+ chargeBearer: sp.chargeBearer,
111
+ instructionPriority: sp.instructionPriority,
112
+ creditor: sp.creditor,
113
+ creditorIban: sp.creditorIban,
114
+ debtor: sp.debtor,
115
+ debtorIban: sp.debtorIban
116
+ };
117
+ }
66
118
 
67
119
  class IBankConnector {
68
120
  // ── Deprecated methods (backward compatibility) ────────────────────
@@ -77,7 +129,7 @@ class IBankConnector {
77
129
  * @deprecated Use initiateDomesticPayment instead.
78
130
  * Delegates to initiateDomesticPayment for backward compatibility.
79
131
  */
80
- initiateSinglePayment(payment) {
132
+ initiatePaymentRequest(payment) {
81
133
  return this.initiateDomesticPayment(payment);
82
134
  }
83
135
  // ── Batch methods ─────────────────────────────────────────────────
@@ -250,7 +302,8 @@ const FINBRICKS_ENDPOINTS = {
250
302
  TRANSACTION_SEPA_INIT: "/transaction/platform/sepa/init",
251
303
  TRANSACTION_FOREIGN_INIT: "/transaction/platform/foreign/init",
252
304
  TRANSACTION_BATCH_INIT: "/transaction/platform/batchPayment/init",
253
- BATCH_STATUS: "/transaction/platform/batchPayment/status"
305
+ BATCH_STATUS: "/transaction/platform/batchPayment/status",
306
+ BANK_INFO: "/status/bankInfo"
254
307
  };
255
308
 
256
309
  const mapFinbricksStatus = (status) => {
@@ -657,7 +710,7 @@ class FinbricksConnector extends IBankConnector {
657
710
  },
658
711
  creditorName: payment.creditor.holderName || ""
659
712
  },
660
- callbackUrl: "https://www.example.com"
713
+ callbackUrl: `${this.finbricks.REDIRECT_URI}?type=payment&paymentId=${payment.id}`
661
714
  }
662
715
  })
663
716
  );
@@ -698,7 +751,8 @@ class FinbricksConnector extends IBankConnector {
698
751
  clientId
699
752
  },
700
753
  paymentIdentification: {
701
- merchantTransactionId: bankRefId
754
+ merchantTransactionId: bankRefId,
755
+ endToEndIdentification: payment.id
702
756
  },
703
757
  amount: payment.amount,
704
758
  debtor: {
@@ -710,7 +764,7 @@ class FinbricksConnector extends IBankConnector {
710
764
  creditorAccountIban: payment.creditor.iban,
711
765
  creditorName: payment.creditor.holderName
712
766
  },
713
- callbackUrl: "https://www.example.com"
767
+ callbackUrl: `${this.finbricks.REDIRECT_URI}?type=payment&paymentId=${payment.id}`
714
768
  }
715
769
  })
716
770
  );
@@ -749,7 +803,7 @@ class FinbricksConnector extends IBankConnector {
749
803
  creditorName: payment.creditor.holderName,
750
804
  description: payment.message,
751
805
  variableSymbol: payment.vs,
752
- callbackUrl: "https://example.com/callback",
806
+ callbackUrl: `${this.finbricks.REDIRECT_URI}?type=payment&paymentId=${payment.id}`,
753
807
  paymentProvider: this.PROVIDER
754
808
  }
755
809
  })
@@ -1973,4 +2027,4 @@ class MockConnector extends IBankConnector {
1973
2027
  }
1974
2028
  }
1975
2029
 
1976
- export { CsobConnector as C, DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, IBankConnector as I, KBConnector as K, MockCobsConnector as M, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, assignAccount as d, batchTransform as e, toCompletedPayment as f, toIncomingPayment as g, toPreparedPayment as h, initiateConnector as i, signFinbricksJws as s, toBatchedPayment as t, useFinbricksFetch as u };
2030
+ export { CsobConnector as C, DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, IBankConnector as I, KBConnector as K, MockCobsConnector as M, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, assignAccount as d, batchTransform as e, toBatchedPaymentFromPaymentRequest as f, toCompletedPayment as g, toIncomingPayment as h, toPaymentRequestInsert as i, toPreparedPayment as j, initiateConnector as k, mapFinbricksTransactionStatus as m, signFinbricksJws as s, toBatchedPayment as t, useFinbricksFetch as u };
@@ -14,11 +14,12 @@ const PAYMENT_TYPES = ["SEPA", "SWIFT", "DOMESTIC", "UNKNOWN"];
14
14
  const CHARGE_BEARERS = ["SHA", "OUR", "BEN"];
15
15
  const INSTRUCTION_PRIORITIES = ["NORM", "HIGH", "INST"];
16
16
  const PAYMENT_STATUSES = [
17
+ "CREATED",
17
18
  "PREPARED",
18
- "FAILED",
19
+ "SIGNED",
19
20
  "PENDING",
20
21
  "COMPLETED",
21
- "CREATED"
22
+ "FAILED"
22
23
  ];
23
24
  const PAYMENT_DIRECTIONS = ["INCOMING", "OUTGOING"];
24
25
  const BATCH_STATUSES = [
@@ -126,7 +127,6 @@ const batch = sqliteCore.sqliteTable("batch", {
126
127
  status: sqliteCore.text("status", { enum: BATCH_STATUSES }).$type(),
127
128
  statusReason: sqliteCore.text("status_reason"),
128
129
  statusResponse: sqliteCore.text("status_response", { mode: "json" }).$type(),
129
- payments: sqliteCore.text("payments", { mode: "json" }).$type().notNull(),
130
130
  metadata: sqliteCore.text("metadata", { mode: "json" }).$type(),
131
131
  paymentType: sqliteCore.text("payment_type", {
132
132
  enum: PAYMENT_TYPES
@@ -180,6 +180,58 @@ const paymentRelations = relations.relations(payment, ({ one }) => ({
180
180
  batch: one(batch, { fields: [payment.batchId], references: [batch.id] })
181
181
  }));
182
182
 
183
+ const paymentRequest = sqliteCore.sqliteTable(
184
+ "payment_request",
185
+ {
186
+ ...backendSdk.base,
187
+ batchId: sqliteCore.text("batch_id").references(() => batch.id, {
188
+ onDelete: "restrict",
189
+ onUpdate: "cascade"
190
+ }),
191
+ accountId: sqliteCore.text("account_id").references(() => account.id, {
192
+ onDelete: "restrict",
193
+ onUpdate: "cascade"
194
+ }).notNull(),
195
+ correlationId: sqliteCore.text("correlation_id").notNull(),
196
+ refId: sqliteCore.text("ref_id"),
197
+ bankRefId: sqliteCore.text("bank_ref_id"),
198
+ connectorKey: sqliteCore.text("connector_key", { enum: CONNECTOR_KEYS }).$type().notNull(),
199
+ amount: sqliteCore.real("amount").notNull(),
200
+ paymentType: sqliteCore.text("payment_type", { enum: PAYMENT_TYPES }).$type().notNull(),
201
+ currency: sqliteCore.text("currency").$type().notNull(),
202
+ status: sqliteCore.text("status", { enum: PAYMENT_STATUSES }).$type().notNull(),
203
+ statusReason: sqliteCore.text("status_reason"),
204
+ authorizationUrl: sqliteCore.text("authorization_url"),
205
+ initiatedAt: sqliteCore.integer("initiated_at", { mode: "timestamp_ms" }),
206
+ processedAt: sqliteCore.integer("processed_at", { mode: "timestamp_ms" }),
207
+ vs: sqliteCore.text("vs"),
208
+ ss: sqliteCore.text("ss"),
209
+ ks: sqliteCore.text("ks"),
210
+ message: sqliteCore.text("message"),
211
+ chargeBearer: sqliteCore.text("charge_bearer", {
212
+ enum: CHARGE_BEARERS
213
+ }).$type(),
214
+ instructionPriority: sqliteCore.text("instruction_priority", {
215
+ enum: INSTRUCTION_PRIORITIES
216
+ }).$type(),
217
+ creditor: sqliteCore.text("creditor", { mode: "json" }).$type().notNull(),
218
+ creditorIban: sqliteCore.text("creditor_iban"),
219
+ debtor: sqliteCore.text("debtor", { mode: "json" }).$type().notNull(),
220
+ debtorIban: sqliteCore.text("debtor_iban")
221
+ },
222
+ (t) => [sqliteCore.index("payment_request_batch_id_idx").on(t.batchId)]
223
+ );
224
+ const paymentRequestRelations = relations.relations(paymentRequest, ({ one }) => ({
225
+ batch: one(batch, {
226
+ fields: [paymentRequest.batchId],
227
+ references: [batch.id]
228
+ }),
229
+ account: one(account, {
230
+ fields: [paymentRequest.accountId],
231
+ references: [account.id]
232
+ })
233
+ }));
234
+
183
235
  exports.ACCOUNT_STATUSES = ACCOUNT_STATUSES;
184
236
  exports.BATCH_STATUSES = BATCH_STATUSES;
185
237
  exports.CHARGE_BEARERS = CHARGE_BEARERS;
@@ -206,3 +258,5 @@ exports.ottSelectSchema = ottSelectSchema;
206
258
  exports.ottUpdateSchema = ottUpdateSchema;
207
259
  exports.payment = payment;
208
260
  exports.paymentRelations = paymentRelations;
261
+ exports.paymentRequest = paymentRequest;
262
+ exports.paymentRequestRelations = paymentRequestRelations;
package/dist/types.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const mock_connector = require('./shared/bank.Ce-NBBw1.cjs');
4
- const payment_schema = require('./shared/bank.IVhZ_RlH.cjs');
3
+ const mock_connector = require('./shared/bank.CQURey1E.cjs');
4
+ const paymentRequest_schema = require('./shared/bank.SQ4Mmr8u.cjs');
5
5
  const batchLifecycle = require('./shared/bank.Bg3Pdwm4.cjs');
6
6
  const generalCodes = require('@develit-io/general-codes');
7
7
  require('@develit-io/backend-sdk');
@@ -29,31 +29,33 @@ exports.assignAccount = mock_connector.assignAccount;
29
29
  exports.batchTransform = mock_connector.batchTransform;
30
30
  exports.signFinbricksJws = mock_connector.signFinbricksJws;
31
31
  exports.toBatchedPayment = mock_connector.toBatchedPayment;
32
+ exports.toBatchedPaymentFromPaymentRequest = mock_connector.toBatchedPaymentFromPaymentRequest;
32
33
  exports.toCompletedPayment = mock_connector.toCompletedPayment;
33
34
  exports.toIncomingPayment = mock_connector.toIncomingPayment;
35
+ exports.toPaymentRequestInsert = mock_connector.toPaymentRequestInsert;
34
36
  exports.toPreparedPayment = mock_connector.toPreparedPayment;
35
37
  exports.useFinbricksFetch = mock_connector.useFinbricksFetch;
36
- exports.ACCOUNT_STATUSES = payment_schema.ACCOUNT_STATUSES;
37
- exports.BATCH_STATUES = payment_schema.BATCH_STATUSES;
38
- exports.BATCH_STATUSES = payment_schema.BATCH_STATUSES;
39
- exports.CHARGE_BEARERS = payment_schema.CHARGE_BEARERS;
40
- exports.CONNECTOR_KEYS = payment_schema.CONNECTOR_KEYS;
41
- exports.COUNTRY_CODES = payment_schema.COUNTRY_CODES;
42
- exports.CREDENTIALS_TYPES = payment_schema.CREDENTIALS_TYPES;
43
- exports.INSTRUCTION_PRIORITIES = payment_schema.INSTRUCTION_PRIORITIES;
44
- exports.PAYMENT_DIRECTIONS = payment_schema.PAYMENT_DIRECTIONS;
45
- exports.PAYMENT_STATUSES = payment_schema.PAYMENT_STATUSES;
46
- exports.PAYMENT_TYPES = payment_schema.PAYMENT_TYPES;
47
- exports.TOKEN_TYPES = payment_schema.TOKEN_TYPES;
48
- exports.accountCredentialsInsertSchema = payment_schema.accountCredentialsInsertSchema;
49
- exports.accountCredentialsSelectSchema = payment_schema.accountCredentialsSelectSchema;
50
- exports.accountCredentialsUpdateSchema = payment_schema.accountCredentialsUpdateSchema;
51
- exports.accountInsertSchema = payment_schema.accountInsertSchema;
52
- exports.accountSelectSchema = payment_schema.accountSelectSchema;
53
- exports.accountUpdateSchema = payment_schema.accountUpdateSchema;
54
- exports.ottInsertSchema = payment_schema.ottInsertSchema;
55
- exports.ottSelectSchema = payment_schema.ottSelectSchema;
56
- exports.ottUpdateSchema = payment_schema.ottUpdateSchema;
38
+ exports.ACCOUNT_STATUSES = paymentRequest_schema.ACCOUNT_STATUSES;
39
+ exports.BATCH_STATUES = paymentRequest_schema.BATCH_STATUSES;
40
+ exports.BATCH_STATUSES = paymentRequest_schema.BATCH_STATUSES;
41
+ exports.CHARGE_BEARERS = paymentRequest_schema.CHARGE_BEARERS;
42
+ exports.CONNECTOR_KEYS = paymentRequest_schema.CONNECTOR_KEYS;
43
+ exports.COUNTRY_CODES = paymentRequest_schema.COUNTRY_CODES;
44
+ exports.CREDENTIALS_TYPES = paymentRequest_schema.CREDENTIALS_TYPES;
45
+ exports.INSTRUCTION_PRIORITIES = paymentRequest_schema.INSTRUCTION_PRIORITIES;
46
+ exports.PAYMENT_DIRECTIONS = paymentRequest_schema.PAYMENT_DIRECTIONS;
47
+ exports.PAYMENT_STATUSES = paymentRequest_schema.PAYMENT_STATUSES;
48
+ exports.PAYMENT_TYPES = paymentRequest_schema.PAYMENT_TYPES;
49
+ exports.TOKEN_TYPES = paymentRequest_schema.TOKEN_TYPES;
50
+ exports.accountCredentialsInsertSchema = paymentRequest_schema.accountCredentialsInsertSchema;
51
+ exports.accountCredentialsSelectSchema = paymentRequest_schema.accountCredentialsSelectSchema;
52
+ exports.accountCredentialsUpdateSchema = paymentRequest_schema.accountCredentialsUpdateSchema;
53
+ exports.accountInsertSchema = paymentRequest_schema.accountInsertSchema;
54
+ exports.accountSelectSchema = paymentRequest_schema.accountSelectSchema;
55
+ exports.accountUpdateSchema = paymentRequest_schema.accountUpdateSchema;
56
+ exports.ottInsertSchema = paymentRequest_schema.ottInsertSchema;
57
+ exports.ottSelectSchema = paymentRequest_schema.ottSelectSchema;
58
+ exports.ottUpdateSchema = paymentRequest_schema.ottUpdateSchema;
57
59
  exports.hasPaymentAccountAssigned = batchLifecycle.hasPaymentAccountAssigned;
58
60
  exports.isBatchCompleted = batchLifecycle.isBatchCompleted;
59
61
  exports.isBatchFailed = batchLifecycle.isBatchFailed;