@develit-services/bank 0.8.6 → 0.8.7

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 (32) hide show
  1. package/dist/database/schema.cjs +1 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +1 -1
  6. package/dist/export/worker.cjs +583 -146
  7. package/dist/export/worker.d.cts +251 -39
  8. package/dist/export/worker.d.mts +251 -39
  9. package/dist/export/worker.d.ts +251 -39
  10. package/dist/export/worker.mjs +584 -147
  11. package/dist/export/workflows.cjs +132 -16
  12. package/dist/export/workflows.mjs +133 -17
  13. package/dist/shared/{bank.C-T1FQxg.cjs → bank.62VzK9Aj.cjs} +1 -1
  14. package/dist/shared/{bank.SQ4Mmr8u.cjs → bank.BS7fFjGA.cjs} +34 -4
  15. package/dist/shared/{bank.B6U8sUZn.d.mts → bank.BYRq3yJf.d.ts} +17 -7
  16. package/dist/shared/{bank.C4VOdIx1.mjs → bank.C0UN6luZ.mjs} +34 -4
  17. package/dist/shared/{bank.DDHrdFgy.mjs → bank.CA5ytXxp.mjs} +1 -1
  18. package/dist/shared/{bank.BoMDujsl.d.ts → bank.CO89tR9U.d.cts} +17 -7
  19. package/dist/shared/{bank.BliD3oCT.d.ts → bank.Cns5ss41.d.cts} +47 -10
  20. package/dist/shared/{bank.BliD3oCT.d.cts → bank.Cns5ss41.d.mts} +47 -10
  21. package/dist/shared/{bank.BliD3oCT.d.mts → bank.Cns5ss41.d.ts} +47 -10
  22. package/dist/shared/{bank.lbzMqyr3.d.cts → bank.CreoSb2d.d.mts} +17 -7
  23. package/dist/shared/{bank.DRrBrAdI.mjs → bank.D1jqaHaF.mjs} +91 -31
  24. package/dist/shared/{bank.Cpy9PULF.mjs → bank.DEmzZGZW.mjs} +31 -5
  25. package/dist/shared/{bank.BOnP9p9Y.cjs → bank.Dm8GHThw.cjs} +31 -5
  26. package/dist/shared/{bank.CQURey1E.cjs → bank.DwyCCyd0.cjs} +90 -31
  27. package/dist/types.cjs +3 -4
  28. package/dist/types.d.cts +8 -16
  29. package/dist/types.d.mts +8 -16
  30. package/dist/types.d.ts +8 -16
  31. package/dist/types.mjs +3 -3
  32. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { X as CurrencyCode, H as BankCode, U as CountryCode } from './bank.BliD3oCT.js';
1
+ import { d as CurrencyCode, J as BankCode, V as CountryCode } from './bank.Cns5ss41.cjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -210,6 +210,18 @@ type FinbricksAccountTransactionsResponse = {
210
210
  transactions: FinbricksTransaction[];
211
211
  };
212
212
 
213
+ /**
214
+ * @deprecated Use IncomingPayment from './payment-lifecycle' instead
215
+ * This type is kept for backward compatibility during migration
216
+ */
217
+
218
+ /**
219
+ * Message pushed to PAYMENTS_READY_TO_BATCH_QUEUE after payment_request is created in DB
220
+ */
221
+ type PaymentQueueMessage = {
222
+ paymentId: string;
223
+ };
224
+
213
225
  declare const sendPaymentInputSchema: z.ZodObject<{
214
226
  correlationId: z.ZodString;
215
227
  refId: z.ZodOptional<z.ZodString>;
@@ -225,7 +237,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
225
237
  OUR: "OUR";
226
238
  BEN: "BEN";
227
239
  }>>;
228
- executionDate: z.ZodOptional<z.ZodString>;
229
240
  instructionPriority: z.ZodOptional<z.ZodEnum<{
230
241
  NORM: "NORM";
231
242
  HIGH: "HIGH";
@@ -980,12 +991,13 @@ declare const sendPaymentInputSchema: z.ZodObject<{
980
991
  bsb: z.ZodOptional<z.ZodString>;
981
992
  brBankNumber: z.ZodOptional<z.ZodString>;
982
993
  }, z.core.$strip>;
983
- purpose: z.ZodOptional<z.ZodString>;
984
994
  sendAsSinglePayment: z.ZodOptional<z.ZodBoolean>;
985
995
  }, z.core.$strip>;
986
996
  interface SendPaymentInput extends z.infer<typeof sendPaymentInputSchema> {
987
997
  }
988
- type SendPaymentOutput = void;
998
+ type SendPaymentOutput = {
999
+ paymentId: string;
1000
+ };
989
1001
 
990
1002
  declare const sendPaymentSyncInputSchema: z.ZodObject<{
991
1003
  correlationId: z.ZodString;
@@ -1002,7 +1014,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1002
1014
  OUR: "OUR";
1003
1015
  BEN: "BEN";
1004
1016
  }>>;
1005
- executionDate: z.ZodOptional<z.ZodString>;
1006
1017
  instructionPriority: z.ZodOptional<z.ZodEnum<{
1007
1018
  NORM: "NORM";
1008
1019
  HIGH: "HIGH";
@@ -1757,7 +1768,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1757
1768
  bsb: z.ZodOptional<z.ZodString>;
1758
1769
  brBankNumber: z.ZodOptional<z.ZodString>;
1759
1770
  }, z.core.$strip>;
1760
- purpose: z.ZodOptional<z.ZodString>;
1761
1771
  sendAsSinglePayment: z.ZodOptional<z.ZodBoolean>;
1762
1772
  }, z.core.$strip>;
1763
1773
  interface SendPaymentSyncInput extends z.infer<typeof sendPaymentSyncInputSchema> {
@@ -1767,4 +1777,4 @@ type SendPaymentSyncOutput = {
1767
1777
  authorizationUrl: string;
1768
1778
  };
1769
1779
 
1770
- 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 };
1780
+ export type { FinbricksSupportedBanksResponse as F, PaymentQueueMessage as P, 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 };
@@ -42,7 +42,7 @@ type CurrencyCode = (typeof CURRENCY_CODES)[number];
42
42
  /**
43
43
  * Batch status constants
44
44
  */
45
- declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
45
+ declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
46
46
  /**
47
47
  * Type definition for batch status
48
48
  */
@@ -102,6 +102,7 @@ declare abstract class IBankConnector {
102
102
  * @returns true if native batch API is supported, false if fallback to single payments is needed
103
103
  */
104
104
  abstract supportsBatch(paymentType: PaymentType): boolean;
105
+ supportsPaymentType(paymentType: PaymentType): boolean;
105
106
  /**
106
107
  * Generates authorization URI for connecting a new bank account.
107
108
  * @param ott - One-time token used to identify the authorization flow
@@ -2629,20 +2630,20 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2629
2630
  tableName: "batch";
2630
2631
  dataType: "string";
2631
2632
  columnType: "SQLiteText";
2632
- data: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
+ data: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
2634
  driverParam: string;
2634
2635
  notNull: false;
2635
2636
  hasDefault: false;
2636
2637
  isPrimaryKey: false;
2637
2638
  isAutoincrement: false;
2638
2639
  hasRuntimeDefault: false;
2639
- enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
2640
+ enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
2640
2641
  baseColumn: never;
2641
2642
  identity: undefined;
2642
2643
  generated: undefined;
2643
2644
  }, {}, {
2644
2645
  length: number | undefined;
2645
- $type: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
+ $type: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
2647
  }>;
2647
2648
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
2648
2649
  name: "status_reason";
@@ -2894,6 +2895,25 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2894
2895
  }, {}, {
2895
2896
  length: number | undefined;
2896
2897
  }>;
2898
+ paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
2899
+ name: "payment_request_id";
2900
+ tableName: "payment";
2901
+ dataType: "string";
2902
+ columnType: "SQLiteText";
2903
+ data: string;
2904
+ driverParam: string;
2905
+ notNull: false;
2906
+ hasDefault: false;
2907
+ isPrimaryKey: false;
2908
+ isAutoincrement: false;
2909
+ hasRuntimeDefault: false;
2910
+ enumValues: [string, ...string[]];
2911
+ baseColumn: never;
2912
+ identity: undefined;
2913
+ generated: undefined;
2914
+ }, {}, {
2915
+ length: number | undefined;
2916
+ }>;
2897
2917
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
2898
2918
  name: "ref_id";
2899
2919
  tableName: "payment";
@@ -3053,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3053
3073
  tableName: "payment";
3054
3074
  dataType: "string";
3055
3075
  columnType: "SQLiteText";
3056
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3076
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3057
3077
  driverParam: string;
3058
3078
  notNull: true;
3059
3079
  hasDefault: false;
@@ -3066,7 +3086,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3066
3086
  generated: undefined;
3067
3087
  }, {}, {
3068
3088
  length: number | undefined;
3069
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3089
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3070
3090
  }>;
3071
3091
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3072
3092
  name: "status_reason";
@@ -3647,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3647
3667
  tableName: "payment_request";
3648
3668
  dataType: "string";
3649
3669
  columnType: "SQLiteText";
3650
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3670
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3651
3671
  driverParam: string;
3652
3672
  notNull: true;
3653
3673
  hasDefault: false;
@@ -3660,7 +3680,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3660
3680
  generated: undefined;
3661
3681
  }, {}, {
3662
3682
  length: number | undefined;
3663
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3683
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3664
3684
  }>;
3665
3685
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3666
3686
  name: "status_reason";
@@ -3926,6 +3946,23 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3926
3946
  }, {}, {
3927
3947
  length: number | undefined;
3928
3948
  }>;
3949
+ sendAsSinglePayment: drizzle_orm_sqlite_core.SQLiteColumn<{
3950
+ name: "send_as_single_payment";
3951
+ tableName: "payment_request";
3952
+ dataType: "boolean";
3953
+ columnType: "SQLiteBoolean";
3954
+ data: boolean;
3955
+ driverParam: number;
3956
+ notNull: false;
3957
+ hasDefault: false;
3958
+ isPrimaryKey: false;
3959
+ isAutoincrement: false;
3960
+ hasRuntimeDefault: false;
3961
+ enumValues: undefined;
3962
+ baseColumn: never;
3963
+ identity: undefined;
3964
+ generated: undefined;
3965
+ }, {}, {}>;
3929
3966
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3930
3967
  name: "id";
3931
3968
  tableName: "payment_request";
@@ -5342,5 +5379,5 @@ declare function isBatchFailed(batch: {
5342
5379
  status?: string | null;
5343
5380
  }): batch is CompletedBatch;
5344
5381
 
5345
- export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
5346
- export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
5382
+ export { PAYMENT_STATUSES as $, BATCH_STATUSES as G, IBankConnector as I, CHARGE_BEARERS as O, CONNECTOR_KEYS as Q, COUNTRY_CODES as R, CREDENTIALS_TYPES as S, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as w };
5383
+ export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountPatchType as D, AccountStatus as E, AccountUpdateType as F, BankAccountWithLastSync as H, BankCode as J, BatchInsertType as K, LastSyncMetadata as L, BatchLifecycle as M, BatchPayment as N, PaymentSelectType as P, ChargeBearer as T, CompletedBatch as U, CountryCode as V, CreatedBatch as W, CredentialsType as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, PaymentType as c, CurrencyCode as d, ConnectedAccount as e, CredentialsResolver as f, AccountCredentialsInsertType as g, AccountInsertType as h, BatchedPayment as i, InitiatedBatch as j, IncomingPayment as k, InitiatedPayment as l, ParsedBankPayment as m, PaymentStatus as n, BatchStatus as o, BatchMetadata as p, Currency as q, AccountAssignedPayment as r, PreparedPayment as s, CompletedPayment as u, PaymentRequestInsertType as v, AccountCredentialsPatchType as x, AccountCredentialsSelectType as y, AccountCredentialsUpdateType as z };
@@ -42,7 +42,7 @@ type CurrencyCode = (typeof CURRENCY_CODES)[number];
42
42
  /**
43
43
  * Batch status constants
44
44
  */
45
- declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
45
+ declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
46
46
  /**
47
47
  * Type definition for batch status
48
48
  */
@@ -102,6 +102,7 @@ declare abstract class IBankConnector {
102
102
  * @returns true if native batch API is supported, false if fallback to single payments is needed
103
103
  */
104
104
  abstract supportsBatch(paymentType: PaymentType): boolean;
105
+ supportsPaymentType(paymentType: PaymentType): boolean;
105
106
  /**
106
107
  * Generates authorization URI for connecting a new bank account.
107
108
  * @param ott - One-time token used to identify the authorization flow
@@ -2629,20 +2630,20 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2629
2630
  tableName: "batch";
2630
2631
  dataType: "string";
2631
2632
  columnType: "SQLiteText";
2632
- data: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
+ data: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
2634
  driverParam: string;
2634
2635
  notNull: false;
2635
2636
  hasDefault: false;
2636
2637
  isPrimaryKey: false;
2637
2638
  isAutoincrement: false;
2638
2639
  hasRuntimeDefault: false;
2639
- enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
2640
+ enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
2640
2641
  baseColumn: never;
2641
2642
  identity: undefined;
2642
2643
  generated: undefined;
2643
2644
  }, {}, {
2644
2645
  length: number | undefined;
2645
- $type: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
+ $type: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
2647
  }>;
2647
2648
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
2648
2649
  name: "status_reason";
@@ -2894,6 +2895,25 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2894
2895
  }, {}, {
2895
2896
  length: number | undefined;
2896
2897
  }>;
2898
+ paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
2899
+ name: "payment_request_id";
2900
+ tableName: "payment";
2901
+ dataType: "string";
2902
+ columnType: "SQLiteText";
2903
+ data: string;
2904
+ driverParam: string;
2905
+ notNull: false;
2906
+ hasDefault: false;
2907
+ isPrimaryKey: false;
2908
+ isAutoincrement: false;
2909
+ hasRuntimeDefault: false;
2910
+ enumValues: [string, ...string[]];
2911
+ baseColumn: never;
2912
+ identity: undefined;
2913
+ generated: undefined;
2914
+ }, {}, {
2915
+ length: number | undefined;
2916
+ }>;
2897
2917
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
2898
2918
  name: "ref_id";
2899
2919
  tableName: "payment";
@@ -3053,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3053
3073
  tableName: "payment";
3054
3074
  dataType: "string";
3055
3075
  columnType: "SQLiteText";
3056
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3076
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3057
3077
  driverParam: string;
3058
3078
  notNull: true;
3059
3079
  hasDefault: false;
@@ -3066,7 +3086,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3066
3086
  generated: undefined;
3067
3087
  }, {}, {
3068
3088
  length: number | undefined;
3069
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3089
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3070
3090
  }>;
3071
3091
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3072
3092
  name: "status_reason";
@@ -3647,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3647
3667
  tableName: "payment_request";
3648
3668
  dataType: "string";
3649
3669
  columnType: "SQLiteText";
3650
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3670
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3651
3671
  driverParam: string;
3652
3672
  notNull: true;
3653
3673
  hasDefault: false;
@@ -3660,7 +3680,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3660
3680
  generated: undefined;
3661
3681
  }, {}, {
3662
3682
  length: number | undefined;
3663
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3683
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3664
3684
  }>;
3665
3685
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3666
3686
  name: "status_reason";
@@ -3926,6 +3946,23 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3926
3946
  }, {}, {
3927
3947
  length: number | undefined;
3928
3948
  }>;
3949
+ sendAsSinglePayment: drizzle_orm_sqlite_core.SQLiteColumn<{
3950
+ name: "send_as_single_payment";
3951
+ tableName: "payment_request";
3952
+ dataType: "boolean";
3953
+ columnType: "SQLiteBoolean";
3954
+ data: boolean;
3955
+ driverParam: number;
3956
+ notNull: false;
3957
+ hasDefault: false;
3958
+ isPrimaryKey: false;
3959
+ isAutoincrement: false;
3960
+ hasRuntimeDefault: false;
3961
+ enumValues: undefined;
3962
+ baseColumn: never;
3963
+ identity: undefined;
3964
+ generated: undefined;
3965
+ }, {}, {}>;
3929
3966
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3930
3967
  name: "id";
3931
3968
  tableName: "payment_request";
@@ -5342,5 +5379,5 @@ declare function isBatchFailed(batch: {
5342
5379
  status?: string | null;
5343
5380
  }): batch is CompletedBatch;
5344
5381
 
5345
- export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
5346
- export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
5382
+ export { PAYMENT_STATUSES as $, BATCH_STATUSES as G, IBankConnector as I, CHARGE_BEARERS as O, CONNECTOR_KEYS as Q, COUNTRY_CODES as R, CREDENTIALS_TYPES as S, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as w };
5383
+ export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountPatchType as D, AccountStatus as E, AccountUpdateType as F, BankAccountWithLastSync as H, BankCode as J, BatchInsertType as K, LastSyncMetadata as L, BatchLifecycle as M, BatchPayment as N, PaymentSelectType as P, ChargeBearer as T, CompletedBatch as U, CountryCode as V, CreatedBatch as W, CredentialsType as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, PaymentType as c, CurrencyCode as d, ConnectedAccount as e, CredentialsResolver as f, AccountCredentialsInsertType as g, AccountInsertType as h, BatchedPayment as i, InitiatedBatch as j, IncomingPayment as k, InitiatedPayment as l, ParsedBankPayment as m, PaymentStatus as n, BatchStatus as o, BatchMetadata as p, Currency as q, AccountAssignedPayment as r, PreparedPayment as s, CompletedPayment as u, PaymentRequestInsertType as v, AccountCredentialsPatchType as x, AccountCredentialsSelectType as y, AccountCredentialsUpdateType as z };
@@ -42,7 +42,7 @@ type CurrencyCode = (typeof CURRENCY_CODES)[number];
42
42
  /**
43
43
  * Batch status constants
44
44
  */
45
- declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
45
+ declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
46
46
  /**
47
47
  * Type definition for batch status
48
48
  */
@@ -102,6 +102,7 @@ declare abstract class IBankConnector {
102
102
  * @returns true if native batch API is supported, false if fallback to single payments is needed
103
103
  */
104
104
  abstract supportsBatch(paymentType: PaymentType): boolean;
105
+ supportsPaymentType(paymentType: PaymentType): boolean;
105
106
  /**
106
107
  * Generates authorization URI for connecting a new bank account.
107
108
  * @param ott - One-time token used to identify the authorization flow
@@ -2629,20 +2630,20 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2629
2630
  tableName: "batch";
2630
2631
  dataType: "string";
2631
2632
  columnType: "SQLiteText";
2632
- data: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
+ data: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2633
2634
  driverParam: string;
2634
2635
  notNull: false;
2635
2636
  hasDefault: false;
2636
2637
  isPrimaryKey: false;
2637
2638
  isAutoincrement: false;
2638
2639
  hasRuntimeDefault: false;
2639
- enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
2640
+ enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED", "COMPLETED"];
2640
2641
  baseColumn: never;
2641
2642
  identity: undefined;
2642
2643
  generated: undefined;
2643
2644
  }, {}, {
2644
2645
  length: number | undefined;
2645
- $type: "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
+ $type: "COMPLETED" | "SIGNED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
2646
2647
  }>;
2647
2648
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
2648
2649
  name: "status_reason";
@@ -2894,6 +2895,25 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2894
2895
  }, {}, {
2895
2896
  length: number | undefined;
2896
2897
  }>;
2898
+ paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
2899
+ name: "payment_request_id";
2900
+ tableName: "payment";
2901
+ dataType: "string";
2902
+ columnType: "SQLiteText";
2903
+ data: string;
2904
+ driverParam: string;
2905
+ notNull: false;
2906
+ hasDefault: false;
2907
+ isPrimaryKey: false;
2908
+ isAutoincrement: false;
2909
+ hasRuntimeDefault: false;
2910
+ enumValues: [string, ...string[]];
2911
+ baseColumn: never;
2912
+ identity: undefined;
2913
+ generated: undefined;
2914
+ }, {}, {
2915
+ length: number | undefined;
2916
+ }>;
2897
2917
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
2898
2918
  name: "ref_id";
2899
2919
  tableName: "payment";
@@ -3053,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3053
3073
  tableName: "payment";
3054
3074
  dataType: "string";
3055
3075
  columnType: "SQLiteText";
3056
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3076
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3057
3077
  driverParam: string;
3058
3078
  notNull: true;
3059
3079
  hasDefault: false;
@@ -3066,7 +3086,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3066
3086
  generated: undefined;
3067
3087
  }, {}, {
3068
3088
  length: number | undefined;
3069
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3089
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3070
3090
  }>;
3071
3091
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3072
3092
  name: "status_reason";
@@ -3647,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3647
3667
  tableName: "payment_request";
3648
3668
  dataType: "string";
3649
3669
  columnType: "SQLiteText";
3650
- data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3670
+ data: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3651
3671
  driverParam: string;
3652
3672
  notNull: true;
3653
3673
  hasDefault: false;
@@ -3660,7 +3680,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3660
3680
  generated: undefined;
3661
3681
  }, {}, {
3662
3682
  length: number | undefined;
3663
- $type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
3683
+ $type: "COMPLETED" | "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "FAILED";
3664
3684
  }>;
3665
3685
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
3666
3686
  name: "status_reason";
@@ -3926,6 +3946,23 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3926
3946
  }, {}, {
3927
3947
  length: number | undefined;
3928
3948
  }>;
3949
+ sendAsSinglePayment: drizzle_orm_sqlite_core.SQLiteColumn<{
3950
+ name: "send_as_single_payment";
3951
+ tableName: "payment_request";
3952
+ dataType: "boolean";
3953
+ columnType: "SQLiteBoolean";
3954
+ data: boolean;
3955
+ driverParam: number;
3956
+ notNull: false;
3957
+ hasDefault: false;
3958
+ isPrimaryKey: false;
3959
+ isAutoincrement: false;
3960
+ hasRuntimeDefault: false;
3961
+ enumValues: undefined;
3962
+ baseColumn: never;
3963
+ identity: undefined;
3964
+ generated: undefined;
3965
+ }, {}, {}>;
3929
3966
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3930
3967
  name: "id";
3931
3968
  tableName: "payment_request";
@@ -5342,5 +5379,5 @@ declare function isBatchFailed(batch: {
5342
5379
  status?: string | null;
5343
5380
  }): batch is CompletedBatch;
5344
5381
 
5345
- export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
5346
- export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
5382
+ export { PAYMENT_STATUSES as $, BATCH_STATUSES as G, IBankConnector as I, CHARGE_BEARERS as O, CONNECTOR_KEYS as Q, COUNTRY_CODES as R, CREDENTIALS_TYPES as S, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as w };
5383
+ export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountPatchType as D, AccountStatus as E, AccountUpdateType as F, BankAccountWithLastSync as H, BankCode as J, BatchInsertType as K, LastSyncMetadata as L, BatchLifecycle as M, BatchPayment as N, PaymentSelectType as P, ChargeBearer as T, CompletedBatch as U, CountryCode as V, CreatedBatch as W, CredentialsType as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, PaymentType as c, CurrencyCode as d, ConnectedAccount as e, CredentialsResolver as f, AccountCredentialsInsertType as g, AccountInsertType as h, BatchedPayment as i, InitiatedBatch as j, IncomingPayment as k, InitiatedPayment as l, ParsedBankPayment as m, PaymentStatus as n, BatchStatus as o, BatchMetadata as p, Currency as q, AccountAssignedPayment as r, PreparedPayment as s, CompletedPayment as u, PaymentRequestInsertType as v, AccountCredentialsPatchType as x, AccountCredentialsSelectType as y, AccountCredentialsUpdateType as z };
@@ -1,4 +1,4 @@
1
- import { X as CurrencyCode, H as BankCode, U as CountryCode } from './bank.BliD3oCT.cjs';
1
+ import { d as CurrencyCode, J as BankCode, V as CountryCode } from './bank.Cns5ss41.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -210,6 +210,18 @@ type FinbricksAccountTransactionsResponse = {
210
210
  transactions: FinbricksTransaction[];
211
211
  };
212
212
 
213
+ /**
214
+ * @deprecated Use IncomingPayment from './payment-lifecycle' instead
215
+ * This type is kept for backward compatibility during migration
216
+ */
217
+
218
+ /**
219
+ * Message pushed to PAYMENTS_READY_TO_BATCH_QUEUE after payment_request is created in DB
220
+ */
221
+ type PaymentQueueMessage = {
222
+ paymentId: string;
223
+ };
224
+
213
225
  declare const sendPaymentInputSchema: z.ZodObject<{
214
226
  correlationId: z.ZodString;
215
227
  refId: z.ZodOptional<z.ZodString>;
@@ -225,7 +237,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
225
237
  OUR: "OUR";
226
238
  BEN: "BEN";
227
239
  }>>;
228
- executionDate: z.ZodOptional<z.ZodString>;
229
240
  instructionPriority: z.ZodOptional<z.ZodEnum<{
230
241
  NORM: "NORM";
231
242
  HIGH: "HIGH";
@@ -980,12 +991,13 @@ declare const sendPaymentInputSchema: z.ZodObject<{
980
991
  bsb: z.ZodOptional<z.ZodString>;
981
992
  brBankNumber: z.ZodOptional<z.ZodString>;
982
993
  }, z.core.$strip>;
983
- purpose: z.ZodOptional<z.ZodString>;
984
994
  sendAsSinglePayment: z.ZodOptional<z.ZodBoolean>;
985
995
  }, z.core.$strip>;
986
996
  interface SendPaymentInput extends z.infer<typeof sendPaymentInputSchema> {
987
997
  }
988
- type SendPaymentOutput = void;
998
+ type SendPaymentOutput = {
999
+ paymentId: string;
1000
+ };
989
1001
 
990
1002
  declare const sendPaymentSyncInputSchema: z.ZodObject<{
991
1003
  correlationId: z.ZodString;
@@ -1002,7 +1014,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1002
1014
  OUR: "OUR";
1003
1015
  BEN: "BEN";
1004
1016
  }>>;
1005
- executionDate: z.ZodOptional<z.ZodString>;
1006
1017
  instructionPriority: z.ZodOptional<z.ZodEnum<{
1007
1018
  NORM: "NORM";
1008
1019
  HIGH: "HIGH";
@@ -1757,7 +1768,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1757
1768
  bsb: z.ZodOptional<z.ZodString>;
1758
1769
  brBankNumber: z.ZodOptional<z.ZodString>;
1759
1770
  }, z.core.$strip>;
1760
- purpose: z.ZodOptional<z.ZodString>;
1761
1771
  sendAsSinglePayment: z.ZodOptional<z.ZodBoolean>;
1762
1772
  }, z.core.$strip>;
1763
1773
  interface SendPaymentSyncInput extends z.infer<typeof sendPaymentSyncInputSchema> {
@@ -1767,4 +1777,4 @@ type SendPaymentSyncOutput = {
1767
1777
  authorizationUrl: string;
1768
1778
  };
1769
1779
 
1770
- 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 };
1780
+ export type { FinbricksSupportedBanksResponse as F, PaymentQueueMessage as P, 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 };