@classytic/revenue 2.2.0 → 2.3.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,27 @@
3
3
  Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
4
  adhering to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [2.3.0] - 2026-06-02
7
+
8
+ ### Added — `reconciled_external` terminal bank-feed status
9
+
10
+ New `BANK_FEED_STATUS.RECONCILED_EXTERNAL` (`'reconciled_external'`) for rows
11
+ that are already reconciled at the source vendor (e.g. synced Xero Payments or
12
+ bank-transfer legs whose GL the vendor already owns). It is a **terminal island**
13
+ in the bank-feed state machine: no inbound edge (cannot be flipped in from
14
+ `imported`/`matched`) and no outbound edge — so `match()`/`journalize()`/
15
+ `unmatch()` all throw `InvalidStateTransition`. Such rows can never post a
16
+ journal entry, so surfacing them for visibility can't double-count the ledger.
17
+
18
+ ### Added — `initialStatus` option on `TransactionRepository.import()`
19
+
20
+ `import(rows, { …, initialStatus }, ctx)` overrides the born status of newly
21
+ inserted bank-feed rows (default `imported`). Pass `reconciled_external` so
22
+ vendor-reconciled rows are **born** terminal + non-matchable (closes the
23
+ race where a row could be matched in the window between insert and a later
24
+ status flip). Applies to `$setOnInsert` only — re-imports never overwrite an
25
+ existing row's status.
26
+
6
27
  ## [2.2.0] - 2026-05-26
7
28
 
8
29
  ### Added — auth/capture + dispute event coverage
@@ -22,6 +22,7 @@ declare const TRANSACTION_STATUS: {
22
22
  readonly MATCHED: "matched";
23
23
  readonly JOURNALIZED: "journalized";
24
24
  readonly REJECTED: "rejected";
25
+ readonly RECONCILED_EXTERNAL: "reconciled_external";
25
26
  };
26
27
  type TransactionStatus = typeof TRANSACTION_STATUS;
27
28
  type TransactionStatusValue = TransactionStatus[keyof TransactionStatus];
@@ -69,6 +70,7 @@ declare const BANK_FEED_STATUS: {
69
70
  readonly MATCHED: "matched";
70
71
  readonly JOURNALIZED: "journalized";
71
72
  readonly REJECTED: "rejected";
73
+ readonly RECONCILED_EXTERNAL: "reconciled_external";
72
74
  };
73
75
  type BankFeedStatusValue = (typeof BANK_FEED_STATUS)[keyof typeof BANK_FEED_STATUS];
74
76
  declare const BANK_FEED_STATUS_VALUES: BankFeedStatusValue[];
@@ -19,7 +19,8 @@ const TRANSACTION_STATUS = {
19
19
  IMPORTED: "imported",
20
20
  MATCHED: "matched",
21
21
  JOURNALIZED: "journalized",
22
- REJECTED: "rejected"
22
+ REJECTED: "rejected",
23
+ RECONCILED_EXTERNAL: "reconciled_external"
23
24
  };
24
25
  const TRANSACTION_STATUS_VALUES = Object.values(TRANSACTION_STATUS);
25
26
  const LIBRARY_CATEGORIES = {
@@ -71,7 +72,8 @@ const BANK_FEED_STATUS = {
71
72
  IMPORTED: "imported",
72
73
  MATCHED: "matched",
73
74
  JOURNALIZED: "journalized",
74
- REJECTED: "rejected"
75
+ REJECTED: "rejected",
76
+ RECONCILED_EXTERNAL: "reconciled_external"
75
77
  };
76
78
  const BANK_FEED_STATUS_VALUES = Object.values(BANK_FEED_STATUS);
77
79
  const bankFeedStatusSet = new Set(BANK_FEED_STATUS_VALUES);
@@ -129,7 +131,8 @@ const STATUSES_BY_KIND = {
129
131
  TRANSACTION_STATUS.IMPORTED,
130
132
  TRANSACTION_STATUS.MATCHED,
131
133
  TRANSACTION_STATUS.JOURNALIZED,
132
- TRANSACTION_STATUS.REJECTED
134
+ TRANSACTION_STATUS.REJECTED,
135
+ TRANSACTION_STATUS.RECONCILED_EXTERNAL
133
136
  ]),
134
137
  [TRANSACTION_KIND.MANUAL]: new Set([
135
138
  TRANSACTION_STATUS.PENDING,
@@ -1,5 +1,5 @@
1
1
  import { U as HoldStatusValue, b as SplitStatusValue, c as SubscriptionStatusValue, j as SettlementStatusValue } from "../subscription.enums-k24kLpF7.mjs";
2
- import { O as TransactionStatusValue, u as TransactionKindValue } from "../bank-feed.enums-BadqNJTC.mjs";
2
+ import { O as TransactionStatusValue, u as TransactionKindValue } from "../bank-feed.enums-BwJbImM6.mjs";
3
3
 
4
4
  //#region src/core/state-machines.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND } from "../bank-feed.enums-kYTLTTbe.mjs";
1
+ import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND } from "../bank-feed.enums-CU38W8dv.mjs";
2
2
  import { g as SETTLEMENT_STATUS, l as SPLIT_STATUS, r as SUBSCRIPTION_STATUS, w as HOLD_STATUS } from "../subscription.enums-95othr0i.mjs";
3
3
  import { a as InvalidStateTransitionError } from "../errors-Bt5NRVMq.mjs";
4
4
  import { defineStateMachine } from "@classytic/primitives/state-machine";
@@ -154,7 +154,8 @@ const BANK_FEED_STATE_MACHINE = new StateMachine(new Map([
154
154
  [TRANSACTION_STATUS.IMPORTED, new Set([TRANSACTION_STATUS.MATCHED, TRANSACTION_STATUS.REJECTED])],
155
155
  [TRANSACTION_STATUS.MATCHED, new Set([TRANSACTION_STATUS.IMPORTED, TRANSACTION_STATUS.JOURNALIZED])],
156
156
  [TRANSACTION_STATUS.JOURNALIZED, /* @__PURE__ */ new Set([])],
157
- [TRANSACTION_STATUS.REJECTED, /* @__PURE__ */ new Set([])]
157
+ [TRANSACTION_STATUS.REJECTED, /* @__PURE__ */ new Set([])],
158
+ [TRANSACTION_STATUS.RECONCILED_EXTERNAL, /* @__PURE__ */ new Set([])]
158
159
  ]), "transaction.bank_feed");
159
160
  const MANUAL_STATE_MACHINE = new StateMachine(new Map([
160
161
  [TRANSACTION_STATUS.PENDING, new Set([TRANSACTION_STATUS.MATCHED, TRANSACTION_STATUS.REJECTED])],
@@ -1,7 +1,7 @@
1
1
  import { t as RevenueContext } from "./context-pjP1QeE3.mjs";
2
2
  import { t as RevenueBridges } from "./revenue-bridges-BtkWFsJu.mjs";
3
- import { u as TransactionKindValue } from "./bank-feed.enums-BadqNJTC.mjs";
4
- import { a as BankFeedProviderRegistry, d as PaymentProvider, o as FetchTransactionsParams, r as BankFeedProvider, t as ProviderRegistry } from "./registry-h8sasoLh.mjs";
3
+ import { O as TransactionStatusValue, u as TransactionKindValue } from "./bank-feed.enums-BwJbImM6.mjs";
4
+ import { a as BankFeedProviderRegistry, d as PaymentProvider, o as FetchTransactionsParams, r as BankFeedProvider, t as ProviderRegistry } from "./registry-BpEeN8eW.mjs";
5
5
  import { RepositoryPluginBundle, RevenueRepositories } from "./repositories/create-repositories.mjs";
6
6
  import { PluginType, Repository } from "@classytic/mongokit";
7
7
  import { TenantConfig } from "@classytic/repo-core/tenant";
@@ -583,6 +583,15 @@ declare class TransactionRepository extends RevenueRepositoryBase<TransactionDoc
583
583
  source: string;
584
584
  methodKind: PaymentMethodKind;
585
585
  method?: string;
586
+ /**
587
+ * Override the born status of newly-inserted rows. Defaults to
588
+ * `initialStatusFor(bank_feed)` = `imported` (matchable). Pass
589
+ * `reconciled_external` for vendor-reconciled rows (Xero Payments /
590
+ * transfer legs) so they are BORN terminal + non-matchable and can
591
+ * never post a journal entry. Applies to `$setOnInsert` only — re-imports
592
+ * never overwrite an existing row's status.
593
+ */
594
+ initialStatus?: TransactionStatusValue;
586
595
  }, ctx?: RevenueContext): Promise<BankImportReport>;
587
596
  /**
588
597
  * Drain a bank-feed provider into the collection.
@@ -1,4 +1,4 @@
1
1
  import { A as SettlementStatus, B as HoldReason, C as isPayoutMethod, D as SETTLEMENT_STATUS_VALUES, E as SETTLEMENT_STATUS, F as isSettlementType, G as RELEASE_REASON_VALUES, H as HoldStatus, I as HOLD_REASON, J as isHoldReason, K as ReleaseReason, L as HOLD_REASON_VALUES, M as SettlementType, N as SettlementTypeValue, O as SETTLEMENT_TYPE, P as isSettlementStatus, R as HOLD_STATUS, S as SplitTypeValue, T as isSplitType, U as HoldStatusValue, V as HoldReasonValue, W as RELEASE_REASON, X as isReleaseReason, Y as isHoldStatus, _ as SPLIT_TYPE, a as SUBSCRIPTION_STATUS, b as SplitStatusValue, c as SubscriptionStatusValue, d as PAYOUT_METHOD, f as PAYOUT_METHOD_VALUES, g as SPLIT_STATUS_VALUES, h as SPLIT_STATUS, i as PlanKeys, j as SettlementStatusValue, k as SETTLEMENT_TYPE_VALUES, l as isPlanKey, m as PayoutMethodValue, n as PLAN_KEY_VALUES, o as SUBSCRIPTION_STATUS_VALUES, p as PayoutMethod, q as ReleaseReasonValue, r as PlanKeyValue, s as SubscriptionStatus, t as PLAN_KEYS, u as isSubscriptionStatus, v as SPLIT_TYPE_VALUES, w as isSplitStatus, x as SplitType, y as SplitStatus, z as HOLD_STATUS_VALUES } from "../subscription.enums-k24kLpF7.mjs";
2
- import { A as isTransactionFlow, C as TRANSACTION_STATUS, D as TransactionStatus, E as TransactionFlowValue, O as TransactionStatusValue, S as TRANSACTION_FLOW_VALUES, T as TransactionFlow, _ as LIBRARY_CATEGORIES, a as BankFeedSourceValue, b as LibraryCategoryValue, c as TRANSACTION_KIND_VALUES, d as initialStatusFor, f as isBankFeedSource, g as statusesForKind, h as isTransactionKind, i as BANK_FEED_STATUS_VALUES, j as isTransactionStatus, k as isLibraryCategory, l as TransactionKind, m as isStatusValidForKind, n as BANK_FEED_SOURCE_VALUES, o as BankFeedStatusValue, p as isBankFeedStatus, r as BANK_FEED_STATUS, s as TRANSACTION_KIND, t as BANK_FEED_SOURCE, u as TransactionKindValue, v as LIBRARY_CATEGORY_VALUES, w as TRANSACTION_STATUS_VALUES, x as TRANSACTION_FLOW, y as LibraryCategories } from "../bank-feed.enums-BadqNJTC.mjs";
2
+ import { A as isTransactionFlow, C as TRANSACTION_STATUS, D as TransactionStatus, E as TransactionFlowValue, O as TransactionStatusValue, S as TRANSACTION_FLOW_VALUES, T as TransactionFlow, _ as LIBRARY_CATEGORIES, a as BankFeedSourceValue, b as LibraryCategoryValue, c as TRANSACTION_KIND_VALUES, d as initialStatusFor, f as isBankFeedSource, g as statusesForKind, h as isTransactionKind, i as BANK_FEED_STATUS_VALUES, j as isTransactionStatus, k as isLibraryCategory, l as TransactionKind, m as isStatusValidForKind, n as BANK_FEED_SOURCE_VALUES, o as BankFeedStatusValue, p as isBankFeedStatus, r as BANK_FEED_STATUS, s as TRANSACTION_KIND, t as BANK_FEED_SOURCE, u as TransactionKindValue, v as LIBRARY_CATEGORY_VALUES, w as TRANSACTION_STATUS_VALUES, x as TRANSACTION_FLOW, y as LibraryCategories } from "../bank-feed.enums-BwJbImM6.mjs";
3
3
  import { a as isMonetizationType, c as PAYMENT_STATUS, d as PaymentGatewayTypeValue, f as PaymentStatus, h as isPaymentStatus, i as MonetizationTypes, l as PAYMENT_STATUS_VALUES, m as isPaymentGatewayType, n as MONETIZATION_TYPE_VALUES, o as PAYMENT_GATEWAY_TYPE, p as PaymentStatusValue, r as MonetizationTypeValue, s as PAYMENT_GATEWAY_TYPE_VALUES, t as MONETIZATION_TYPES, u as PaymentGatewayType } from "../monetization.enums-DzAI4sT7.mjs";
4
4
  export { BANK_FEED_SOURCE, BANK_FEED_SOURCE_VALUES, BANK_FEED_STATUS, BANK_FEED_STATUS_VALUES, BankFeedSourceValue, BankFeedStatusValue, HOLD_REASON, HOLD_REASON_VALUES, HOLD_STATUS, HOLD_STATUS_VALUES, HoldReason, HoldReasonValue, HoldStatus, HoldStatusValue, LIBRARY_CATEGORIES, LIBRARY_CATEGORY_VALUES, LibraryCategories, LibraryCategoryValue, MONETIZATION_TYPES, MONETIZATION_TYPE_VALUES, MonetizationTypeValue, MonetizationTypes, PAYMENT_GATEWAY_TYPE, PAYMENT_GATEWAY_TYPE_VALUES, PAYMENT_STATUS, PAYMENT_STATUS_VALUES, PAYOUT_METHOD, PAYOUT_METHOD_VALUES, PLAN_KEYS, PLAN_KEY_VALUES, PaymentGatewayType, PaymentGatewayTypeValue, PaymentStatus, PaymentStatusValue, PayoutMethod, PayoutMethodValue, PlanKeyValue, PlanKeys, RELEASE_REASON, RELEASE_REASON_VALUES, ReleaseReason, ReleaseReasonValue, SETTLEMENT_STATUS, SETTLEMENT_STATUS_VALUES, SETTLEMENT_TYPE, SETTLEMENT_TYPE_VALUES, SPLIT_STATUS, SPLIT_STATUS_VALUES, SPLIT_TYPE, SPLIT_TYPE_VALUES, SUBSCRIPTION_STATUS, SUBSCRIPTION_STATUS_VALUES, SettlementStatus, SettlementStatusValue, SettlementType, SettlementTypeValue, SplitStatus, SplitStatusValue, SplitType, SplitTypeValue, SubscriptionStatus, SubscriptionStatusValue, TRANSACTION_FLOW, TRANSACTION_FLOW_VALUES, TRANSACTION_KIND, TRANSACTION_KIND_VALUES, TRANSACTION_STATUS, TRANSACTION_STATUS_VALUES, TransactionFlow, TransactionFlowValue, TransactionKind, TransactionKindValue, TransactionStatus, TransactionStatusValue, initialStatusFor, isBankFeedSource, isBankFeedStatus, isHoldReason, isHoldStatus, isLibraryCategory, isMonetizationType, isPaymentGatewayType, isPaymentStatus, isPayoutMethod, isPlanKey, isReleaseReason, isSettlementStatus, isSettlementType, isSplitStatus, isSplitType, isStatusValidForKind, isSubscriptionStatus, isTransactionFlow, isTransactionKind, isTransactionStatus, statusesForKind };
@@ -1,4 +1,4 @@
1
- import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, b as isTransactionFlow, c as isBankFeedSource, d as isTransactionKind, f as statusesForKind, g as TRANSACTION_FLOW_VALUES, h as TRANSACTION_FLOW, i as BANK_FEED_STATUS_VALUES, l as isBankFeedStatus, m as LIBRARY_CATEGORY_VALUES, n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES, p as LIBRARY_CATEGORIES, r as BANK_FEED_STATUS, s as initialStatusFor, t as BANK_FEED_SOURCE, u as isStatusValidForKind, v as TRANSACTION_STATUS_VALUES, x as isTransactionStatus, y as isLibraryCategory } from "../bank-feed.enums-kYTLTTbe.mjs";
1
+ import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, b as isTransactionFlow, c as isBankFeedSource, d as isTransactionKind, f as statusesForKind, g as TRANSACTION_FLOW_VALUES, h as TRANSACTION_FLOW, i as BANK_FEED_STATUS_VALUES, l as isBankFeedStatus, m as LIBRARY_CATEGORY_VALUES, n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES, p as LIBRARY_CATEGORIES, r as BANK_FEED_STATUS, s as initialStatusFor, t as BANK_FEED_SOURCE, u as isStatusValidForKind, v as TRANSACTION_STATUS_VALUES, x as isTransactionStatus, y as isLibraryCategory } from "../bank-feed.enums-CU38W8dv.mjs";
2
2
  import { A as isReleaseReason, C as HOLD_REASON_VALUES, D as RELEASE_REASON_VALUES, E as RELEASE_REASON, O as isHoldReason, S as HOLD_REASON, T as HOLD_STATUS_VALUES, _ as SETTLEMENT_STATUS_VALUES, a as isPlanKey, b as isSettlementStatus, c as PAYOUT_METHOD_VALUES, d as SPLIT_TYPE, f as SPLIT_TYPE_VALUES, g as SETTLEMENT_STATUS, h as isSplitType, i as SUBSCRIPTION_STATUS_VALUES, k as isHoldStatus, l as SPLIT_STATUS, m as isSplitStatus, n as PLAN_KEY_VALUES, o as isSubscriptionStatus, p as isPayoutMethod, r as SUBSCRIPTION_STATUS, s as PAYOUT_METHOD, t as PLAN_KEYS, u as SPLIT_STATUS_VALUES, v as SETTLEMENT_TYPE, w as HOLD_STATUS, x as isSettlementType, y as SETTLEMENT_TYPE_VALUES } from "../subscription.enums-95othr0i.mjs";
3
3
  import { a as PAYMENT_GATEWAY_TYPE_VALUES, c as isPaymentGatewayType, i as PAYMENT_GATEWAY_TYPE, l as isPaymentStatus, n as MONETIZATION_TYPE_VALUES, o as PAYMENT_STATUS, r as isMonetizationType, s as PAYMENT_STATUS_VALUES, t as MONETIZATION_TYPES } from "../monetization.enums-B9HBOecd.mjs";
4
4
 
@@ -27,10 +27,8 @@ declare const transactionBaseSchema: z.ZodObject<{
27
27
  }, z.core.$strip>>;
28
28
  method: z.ZodString;
29
29
  methodKind: z.ZodEnum<{
30
- manual: "manual";
31
- bank_transfer: "bank_transfer";
32
- cryptocurrency: "cryptocurrency";
33
30
  card: "card";
31
+ bank_transfer: "bank_transfer";
34
32
  instant_bank_transfer: "instant_bank_transfer";
35
33
  direct_debit: "direct_debit";
36
34
  wallet: "wallet";
@@ -39,6 +37,8 @@ declare const transactionBaseSchema: z.ZodObject<{
39
37
  gift_card: "gift_card";
40
38
  cash: "cash";
41
39
  cheque: "cheque";
40
+ cryptocurrency: "cryptocurrency";
41
+ manual: "manual";
42
42
  other: "other";
43
43
  }>;
44
44
  status: z.ZodDefault<z.ZodString>;
@@ -134,10 +134,8 @@ declare const transactionCreateSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>;
135
135
  method: z.ZodString;
136
136
  methodKind: z.ZodEnum<{
137
- manual: "manual";
138
- bank_transfer: "bank_transfer";
139
- cryptocurrency: "cryptocurrency";
140
137
  card: "card";
138
+ bank_transfer: "bank_transfer";
141
139
  instant_bank_transfer: "instant_bank_transfer";
142
140
  direct_debit: "direct_debit";
143
141
  wallet: "wallet";
@@ -146,6 +144,8 @@ declare const transactionCreateSchema: z.ZodObject<{
146
144
  gift_card: "gift_card";
147
145
  cash: "cash";
148
146
  cheque: "cheque";
147
+ cryptocurrency: "cryptocurrency";
148
+ manual: "manual";
149
149
  other: "other";
150
150
  }>;
151
151
  status: z.ZodDefault<z.ZodString>;
@@ -229,10 +229,8 @@ declare const transactionUpdateSchema: z.ZodObject<{
229
229
  }, z.core.$strip>>>;
230
230
  method: z.ZodOptional<z.ZodString>;
231
231
  methodKind: z.ZodOptional<z.ZodEnum<{
232
- manual: "manual";
233
- bank_transfer: "bank_transfer";
234
- cryptocurrency: "cryptocurrency";
235
232
  card: "card";
233
+ bank_transfer: "bank_transfer";
236
234
  instant_bank_transfer: "instant_bank_transfer";
237
235
  direct_debit: "direct_debit";
238
236
  wallet: "wallet";
@@ -241,6 +239,8 @@ declare const transactionUpdateSchema: z.ZodObject<{
241
239
  gift_card: "gift_card";
242
240
  cash: "cash";
243
241
  cheque: "cheque";
242
+ cryptocurrency: "cryptocurrency";
243
+ manual: "manual";
244
244
  other: "other";
245
245
  }>>;
246
246
  status: z.ZodOptional<z.ZodDefault<z.ZodString>>;
@@ -366,8 +366,8 @@ declare const subscriptionCreateSchema: z.ZodObject<{
366
366
  currency: z.ZodOptional<z.ZodString>;
367
367
  paymentIntentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
368
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
369
- planKey: z.ZodString;
370
369
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ planKey: z.ZodString;
371
371
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
372
372
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
373
373
  pauseReason: z.ZodOptional<z.ZodString>;
@@ -432,12 +432,12 @@ declare const settlementBaseSchema: z.ZodObject<{
432
432
  }>;
433
433
  status: z.ZodDefault<z.ZodString>;
434
434
  payoutMethod: z.ZodEnum<{
435
- manual: "manual";
435
+ check: "check";
436
436
  bank_transfer: "bank_transfer";
437
+ manual: "manual";
437
438
  mobile_wallet: "mobile_wallet";
438
439
  platform_balance: "platform_balance";
439
440
  crypto: "crypto";
440
- check: "check";
441
441
  }>;
442
442
  amount: z.ZodNumber;
443
443
  currency: z.ZodString;
@@ -496,14 +496,13 @@ declare const settlementCreateSchema: z.ZodObject<{
496
496
  affiliate: "affiliate";
497
497
  partner: "partner";
498
498
  }>;
499
- notes: z.ZodOptional<z.ZodString>;
500
499
  payoutMethod: z.ZodEnum<{
501
- manual: "manual";
500
+ check: "check";
502
501
  bank_transfer: "bank_transfer";
502
+ manual: "manual";
503
503
  mobile_wallet: "mobile_wallet";
504
504
  platform_balance: "platform_balance";
505
505
  crypto: "crypto";
506
- check: "check";
507
506
  }>;
508
507
  sourceTransactionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
509
508
  sourceSplitIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -531,6 +530,7 @@ declare const settlementCreateSchema: z.ZodObject<{
531
530
  transferredAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
532
531
  }, z.core.$strip>>;
533
532
  scheduledAt: z.ZodDefault<z.ZodCoercedDate<unknown>>;
533
+ notes: z.ZodOptional<z.ZodString>;
534
534
  }, z.core.$strip>;
535
535
  declare const settlementUpdateSchema: z.ZodObject<{
536
536
  publicId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -551,12 +551,12 @@ declare const settlementUpdateSchema: z.ZodObject<{
551
551
  }>>;
552
552
  status: z.ZodOptional<z.ZodDefault<z.ZodString>>;
553
553
  payoutMethod: z.ZodOptional<z.ZodEnum<{
554
- manual: "manual";
554
+ check: "check";
555
555
  bank_transfer: "bank_transfer";
556
+ manual: "manual";
556
557
  mobile_wallet: "mobile_wallet";
557
558
  platform_balance: "platform_balance";
558
559
  crypto: "crypto";
559
- check: "check";
560
560
  }>>;
561
561
  amount: z.ZodOptional<z.ZodNumber>;
562
562
  currency: z.ZodOptional<z.ZodString>;
@@ -618,10 +618,8 @@ declare const paymentIntentSchema: z.ZodObject<{
618
618
  currency: z.ZodString;
619
619
  gateway: z.ZodString;
620
620
  methodKind: z.ZodEnum<{
621
- manual: "manual";
622
- bank_transfer: "bank_transfer";
623
- cryptocurrency: "cryptocurrency";
624
621
  card: "card";
622
+ bank_transfer: "bank_transfer";
625
623
  instant_bank_transfer: "instant_bank_transfer";
626
624
  direct_debit: "direct_debit";
627
625
  wallet: "wallet";
@@ -630,6 +628,8 @@ declare const paymentIntentSchema: z.ZodObject<{
630
628
  gift_card: "gift_card";
631
629
  cash: "cash";
632
630
  cheque: "cheque";
631
+ cryptocurrency: "cryptocurrency";
632
+ manual: "manual";
633
633
  other: "other";
634
634
  }>;
635
635
  customerId: z.ZodOptional<z.ZodString>;
@@ -1,3 +1,3 @@
1
- import { $ as TransactionJournalizedPayload, A as SettlementCreated, B as SubscriptionCancelled, C as PurchaseCreated, D as RevenueEventSchema, E as RevenueEventPayloadOf, F as SettlementProcessingPayload, G as SubscriptionPausedPayload, H as SubscriptionCreated, I as SettlementScheduled, J as SubscriptionResumed, K as SubscriptionRenewed, L as SettlementScheduledPayload, M as SettlementFailed, N as SettlementFailedPayload, O as SettlementCompleted, P as SettlementProcessing, Q as TransactionJournalized, R as SubscriptionActivated, S as PaymentVerifiedPayload, T as RevenueEventDefinition, U as SubscriptionCreatedPayload, V as SubscriptionCancelledPayload, W as SubscriptionPaused, X as TransactionImported, Y as SubscriptionResumedPayload, Z as TransactionImportedPayload, _ as PaymentRefunded, _t as InProcessRevenueBusOptions, a as EscrowReleased, at as TransactionRemovedByFeedPayload, b as PaymentRequiresActionPayload, c as EscrowSplitPayload, ct as TransactionUpdated, d as MonetizationCreated, dt as WebhookProcessedPayload, et as TransactionMatched, f as MonetizationCreatedPayload, ft as revenueEventDefinitions, g as PaymentProcessingPayload, gt as InProcessRevenueBus, h as PaymentProcessing, ht as createEvent, i as EscrowHeldPayload, it as TransactionRemovedByFeed, j as SettlementCreatedPayload, k as SettlementCompletedPayload, l as FreeCreated, lt as TransactionUpdatedPayload, m as PaymentFailedPayload, mt as RevenueEventName, n as EscrowCancelledPayload, nt as TransactionRejected, o as EscrowReleasedPayload, ot as TransactionUnmatched, p as PaymentFailed, pt as REVENUE_EVENTS, q as SubscriptionRenewedPayload, r as EscrowHeld, rt as TransactionRejectedPayload, s as EscrowSplit, st as TransactionUnmatchedPayload, t as EscrowCancelled, tt as TransactionMatchedPayload, u as FreeCreatedPayload, ut as WebhookProcessed, v as PaymentRefundedPayload, w as PurchaseCreatedPayload, x as PaymentVerified, y as PaymentRequiresAction, z as SubscriptionActivatedPayload } from "../revenue-event-catalog-BU_KYN2-.mjs";
1
+ import { $ as TransactionJournalizedPayload, A as SettlementCreated, B as SubscriptionCancelled, C as PurchaseCreated, D as RevenueEventSchema, E as RevenueEventPayloadOf, F as SettlementProcessingPayload, G as SubscriptionPausedPayload, H as SubscriptionCreated, I as SettlementScheduled, J as SubscriptionResumed, K as SubscriptionRenewed, L as SettlementScheduledPayload, M as SettlementFailed, N as SettlementFailedPayload, O as SettlementCompleted, P as SettlementProcessing, Q as TransactionJournalized, R as SubscriptionActivated, S as PaymentVerifiedPayload, T as RevenueEventDefinition, U as SubscriptionCreatedPayload, V as SubscriptionCancelledPayload, W as SubscriptionPaused, X as TransactionImported, Y as SubscriptionResumedPayload, Z as TransactionImportedPayload, _ as PaymentRefunded, _t as InProcessRevenueBusOptions, a as EscrowReleased, at as TransactionRemovedByFeedPayload, b as PaymentRequiresActionPayload, c as EscrowSplitPayload, ct as TransactionUpdated, d as MonetizationCreated, dt as WebhookProcessedPayload, et as TransactionMatched, f as MonetizationCreatedPayload, ft as revenueEventDefinitions, g as PaymentProcessingPayload, gt as InProcessRevenueBus, h as PaymentProcessing, ht as createEvent, i as EscrowHeldPayload, it as TransactionRemovedByFeed, j as SettlementCreatedPayload, k as SettlementCompletedPayload, l as FreeCreated, lt as TransactionUpdatedPayload, m as PaymentFailedPayload, mt as RevenueEventName, n as EscrowCancelledPayload, nt as TransactionRejected, o as EscrowReleasedPayload, ot as TransactionUnmatched, p as PaymentFailed, pt as REVENUE_EVENTS, q as SubscriptionRenewedPayload, r as EscrowHeld, rt as TransactionRejectedPayload, s as EscrowSplit, st as TransactionUnmatchedPayload, t as EscrowCancelled, tt as TransactionMatchedPayload, u as FreeCreatedPayload, ut as WebhookProcessed, v as PaymentRefundedPayload, w as PurchaseCreatedPayload, x as PaymentVerified, y as PaymentRequiresAction, z as SubscriptionActivatedPayload } from "../revenue-event-catalog-j8Fh7Yag.mjs";
2
2
  import { DomainEvent, EventHandler, EventTransport } from "@classytic/primitives/events";
3
3
  export { type DomainEvent, EscrowCancelled, type EscrowCancelledPayload, EscrowHeld, type EscrowHeldPayload, EscrowReleased, type EscrowReleasedPayload, EscrowSplit, type EscrowSplitPayload, type EventHandler, type EventTransport, FreeCreated, type FreeCreatedPayload, InProcessRevenueBus, type InProcessRevenueBusOptions, MonetizationCreated, type MonetizationCreatedPayload, PaymentFailed, type PaymentFailedPayload, PaymentProcessing, type PaymentProcessingPayload, PaymentRefunded, type PaymentRefundedPayload, PaymentRequiresAction, type PaymentRequiresActionPayload, PaymentVerified, type PaymentVerifiedPayload, PurchaseCreated, type PurchaseCreatedPayload, REVENUE_EVENTS, type RevenueEventDefinition, type RevenueEventName, type RevenueEventPayloadOf, type RevenueEventSchema, SettlementCompleted, type SettlementCompletedPayload, SettlementCreated, type SettlementCreatedPayload, SettlementFailed, type SettlementFailedPayload, SettlementProcessing, type SettlementProcessingPayload, SettlementScheduled, type SettlementScheduledPayload, SubscriptionActivated, type SubscriptionActivatedPayload, SubscriptionCancelled, type SubscriptionCancelledPayload, SubscriptionCreated, type SubscriptionCreatedPayload, SubscriptionPaused, type SubscriptionPausedPayload, SubscriptionRenewed, type SubscriptionRenewedPayload, SubscriptionResumed, type SubscriptionResumedPayload, TransactionImported, type TransactionImportedPayload, TransactionJournalized, type TransactionJournalizedPayload, TransactionMatched, type TransactionMatchedPayload, TransactionRejected, type TransactionRejectedPayload, TransactionRemovedByFeed, type TransactionRemovedByFeedPayload, TransactionUnmatched, type TransactionUnmatchedPayload, TransactionUpdated, type TransactionUpdatedPayload, WebhookProcessed, type WebhookProcessedPayload, createEvent, revenueEventDefinitions };
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { t as RevenueContext } from "./context-pjP1QeE3.mjs";
2
2
  import { a as CurrencyBridge, c as LedgerBridge, i as CustomerBridge, o as NotificationBridge, r as AnalyticsBridge, s as TaxBridge, t as RevenueBridges } from "./revenue-bridges-BtkWFsJu.mjs";
3
3
  import { A as SettlementStatus, B as HoldReason, C as isPayoutMethod, D as SETTLEMENT_STATUS_VALUES, E as SETTLEMENT_STATUS, F as isSettlementType, G as RELEASE_REASON_VALUES, H as HoldStatus, I as HOLD_REASON, J as isHoldReason, K as ReleaseReason, L as HOLD_REASON_VALUES, M as SettlementType, N as SettlementTypeValue, O as SETTLEMENT_TYPE, P as isSettlementStatus, R as HOLD_STATUS, S as SplitTypeValue, T as isSplitType, U as HoldStatusValue, V as HoldReasonValue, W as RELEASE_REASON, X as isReleaseReason, Y as isHoldStatus, _ as SPLIT_TYPE, a as SUBSCRIPTION_STATUS, b as SplitStatusValue, c as SubscriptionStatusValue, d as PAYOUT_METHOD, f as PAYOUT_METHOD_VALUES, g as SPLIT_STATUS_VALUES, h as SPLIT_STATUS, i as PlanKeys, j as SettlementStatusValue, k as SETTLEMENT_TYPE_VALUES, l as isPlanKey, m as PayoutMethodValue, n as PLAN_KEY_VALUES, o as SUBSCRIPTION_STATUS_VALUES, p as PayoutMethod, q as ReleaseReasonValue, r as PlanKeyValue, s as SubscriptionStatus, t as PLAN_KEYS, u as isSubscriptionStatus, v as SPLIT_TYPE_VALUES, w as isSplitStatus, x as SplitType, y as SplitStatus, z as HOLD_STATUS_VALUES } from "./subscription.enums-k24kLpF7.mjs";
4
- import { A as isTransactionFlow, C as TRANSACTION_STATUS, D as TransactionStatus, E as TransactionFlowValue, O as TransactionStatusValue, S as TRANSACTION_FLOW_VALUES, T as TransactionFlow, _ as LIBRARY_CATEGORIES, a as BankFeedSourceValue, b as LibraryCategoryValue, c as TRANSACTION_KIND_VALUES, d as initialStatusFor, f as isBankFeedSource, g as statusesForKind, h as isTransactionKind, i as BANK_FEED_STATUS_VALUES, j as isTransactionStatus, k as isLibraryCategory, l as TransactionKind, m as isStatusValidForKind, n as BANK_FEED_SOURCE_VALUES, o as BankFeedStatusValue, p as isBankFeedStatus, r as BANK_FEED_STATUS, s as TRANSACTION_KIND, t as BANK_FEED_SOURCE, u as TransactionKindValue, v as LIBRARY_CATEGORY_VALUES, w as TRANSACTION_STATUS_VALUES, x as TRANSACTION_FLOW, y as LibraryCategories } from "./bank-feed.enums-BadqNJTC.mjs";
4
+ import { A as isTransactionFlow, C as TRANSACTION_STATUS, D as TransactionStatus, E as TransactionFlowValue, O as TransactionStatusValue, S as TRANSACTION_FLOW_VALUES, T as TransactionFlow, _ as LIBRARY_CATEGORIES, a as BankFeedSourceValue, b as LibraryCategoryValue, c as TRANSACTION_KIND_VALUES, d as initialStatusFor, f as isBankFeedSource, g as statusesForKind, h as isTransactionKind, i as BANK_FEED_STATUS_VALUES, j as isTransactionStatus, k as isLibraryCategory, l as TransactionKind, m as isStatusValidForKind, n as BANK_FEED_SOURCE_VALUES, o as BankFeedStatusValue, p as isBankFeedStatus, r as BANK_FEED_STATUS, s as TRANSACTION_KIND, t as BANK_FEED_SOURCE, u as TransactionKindValue, v as LIBRARY_CATEGORY_VALUES, w as TRANSACTION_STATUS_VALUES, x as TRANSACTION_FLOW, y as LibraryCategories } from "./bank-feed.enums-BwJbImM6.mjs";
5
5
  import { BANK_FEED_STATE_MACHINE, HOLD_STATE_MACHINE, MANUAL_STATE_MACHINE, PAYMENT_FLOW_STATE_MACHINE, SETTLEMENT_STATE_MACHINE, SPLIT_STATE_MACHINE, SUBSCRIPTION_STATE_MACHINE, StateChangeEvent, StateMachine, TRANSACTION_STATE_MACHINE, smFor } from "./core/state-machines.mjs";
6
6
  import { a as isMonetizationType, c as PAYMENT_STATUS, d as PaymentGatewayTypeValue, f as PaymentStatus, h as isPaymentStatus, i as MonetizationTypes, l as PAYMENT_STATUS_VALUES, m as isPaymentGatewayType, n as MONETIZATION_TYPE_VALUES, o as PAYMENT_GATEWAY_TYPE, p as PaymentStatusValue, r as MonetizationTypeValue, s as PAYMENT_GATEWAY_TYPE_VALUES, t as MONETIZATION_TYPES, u as PaymentGatewayType } from "./monetization.enums-DzAI4sT7.mjs";
7
- import { D as RevenueEventSchema, E as RevenueEventPayloadOf, T as RevenueEventDefinition, _t as InProcessRevenueBusOptions, ft as revenueEventDefinitions, gt as InProcessRevenueBus, ht as createEvent, mt as RevenueEventName, pt as REVENUE_EVENTS } from "./revenue-event-catalog-BU_KYN2-.mjs";
8
- import { a as BankFeedProviderRegistry, c as ParseUploadParams, d as PaymentProvider, i as BankFeedProviderCapabilities, l as ParseUploadResult, n as createProviderRegistry, o as FetchTransactionsParams, r as BankFeedProvider, s as FetchTransactionsResult, t as ProviderRegistry, u as createBankFeedProviderRegistry } from "./registry-h8sasoLh.mjs";
9
- import { a as RevenueConfig, c as SubscriptionRepository, d as RevenueSchemaOptions, f as SettlementDocument, i as RetryConfig, l as TransactionRepository, m as TransactionDocument, n as BankFeedModuleConfig, o as RevenueEngine, p as SubscriptionDocument, r as CommissionConfig, s as SettlementRepository, t as BankFeedIndexConfig, u as RevenueModels } from "./engine-types-ChFPg3kw.mjs";
7
+ import { D as RevenueEventSchema, E as RevenueEventPayloadOf, T as RevenueEventDefinition, _t as InProcessRevenueBusOptions, ft as revenueEventDefinitions, gt as InProcessRevenueBus, ht as createEvent, mt as RevenueEventName, pt as REVENUE_EVENTS } from "./revenue-event-catalog-j8Fh7Yag.mjs";
8
+ import { a as BankFeedProviderRegistry, c as ParseUploadParams, d as PaymentProvider, i as BankFeedProviderCapabilities, l as ParseUploadResult, n as createProviderRegistry, o as FetchTransactionsParams, r as BankFeedProvider, s as FetchTransactionsResult, t as ProviderRegistry, u as createBankFeedProviderRegistry } from "./registry-BpEeN8eW.mjs";
9
+ import { a as RevenueConfig, c as SubscriptionRepository, d as RevenueSchemaOptions, f as SettlementDocument, i as RetryConfig, l as TransactionRepository, m as TransactionDocument, n as BankFeedModuleConfig, o as RevenueEngine, p as SubscriptionDocument, r as CommissionConfig, s as SettlementRepository, t as BankFeedIndexConfig, u as RevenueModels } from "./engine-types-34VmC7t6.mjs";
10
10
  import { RepositoryPluginBundle, RevenueRepositories } from "./repositories/create-repositories.mjs";
11
- import { A as transactionBaseSchema, C as subscriptionBaseSchema, D as TransactionCreateInput, E as subscriptionUpdateSchema, M as transactionListFilterSchema, N as transactionUpdateSchema, O as TransactionListFilter, S as SubscriptionUpdateInput, T as subscriptionListFilterSchema, _ as settlementCreateSchema, a as escrowReleaseSchema, b as SubscriptionCreateInput, c as PaymentVerifyInput, d as paymentVerifySchema, f as refundSchema, g as settlementBaseSchema, h as SettlementUpdateInput, i as escrowHoldSchema, j as transactionCreateSchema, k as TransactionUpdateInput, l as RefundInput, m as SettlementListFilter, n as EscrowReleaseInput, o as splitRuleSchema, p as SettlementCreateInput, r as SplitRuleInput, s as PaymentIntentInput, t as EscrowHoldInput, u as paymentIntentSchema, v as settlementListFilterSchema, w as subscriptionCreateSchema, x as SubscriptionListFilter, y as settlementUpdateSchema } from "./escrow.schema-BdDHuQ8C.mjs";
11
+ import { A as transactionBaseSchema, C as subscriptionBaseSchema, D as TransactionCreateInput, E as subscriptionUpdateSchema, M as transactionListFilterSchema, N as transactionUpdateSchema, O as TransactionListFilter, S as SubscriptionUpdateInput, T as subscriptionListFilterSchema, _ as settlementCreateSchema, a as escrowReleaseSchema, b as SubscriptionCreateInput, c as PaymentVerifyInput, d as paymentVerifySchema, f as refundSchema, g as settlementBaseSchema, h as SettlementUpdateInput, i as escrowHoldSchema, j as transactionCreateSchema, k as TransactionUpdateInput, l as RefundInput, m as SettlementListFilter, n as EscrowReleaseInput, o as splitRuleSchema, p as SettlementCreateInput, r as SplitRuleInput, s as PaymentIntentInput, t as EscrowHoldInput, u as paymentIntentSchema, v as settlementListFilterSchema, w as subscriptionCreateSchema, x as SubscriptionListFilter, y as settlementUpdateSchema } from "./escrow.schema-C_UeLtsC.mjs";
12
12
  import { A as SplitInfo, B as validateTaxCalculation, C as multiplyMoney, D as toCurrencyCode, E as sumMoney, F as TaxConfig, H as calculateCommission, I as TaxType, L as calculateTax, M as calculateOrganizationPayout, N as calculateSplits, O as toMajor, P as TaxCalculation, R as getTaxType, S as money, T as subtractMoney, U as reverseCommission, V as CommissionInfo, _ as isMoney, a as CurrencyCode, b as isZeroMoney, c as Money, d as addMoney, f as compareMoney, g as isCurrencyCode, h as fromSmallestUnit, i as CURRENCIES, j as SplitRule, k as toSmallestUnit, l as MoneyValue, m as fromMajor, n as getAuditTrail, o as CurrencyMismatchError, p as equalsMoney, r as getLastStateChange, s as MINOR_UNIT_FACTOR, t as appendAuditEvent, u as absMoney, v as isNegativeMoney, w as negateMoney, x as minorUnitFactor, y as isPositiveMoney, z as reverseTax } from "./audit-DRKuLBFO.mjs";
13
13
  import { HookHandler, PluginContext, PluginManager, RevenuePluginDefinition } from "./plugins/plugin.interface.mjs";
14
14
  import { DomainEvent, DomainEvent as DomainEvent$1, EventHandler, EventTransport } from "@classytic/primitives/events";
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, b as isTransactionFlow, c as isBankFeedSource, d as isTransactionKind, f as statusesForKind, g as TRANSACTION_FLOW_VALUES, h as TRANSACTION_FLOW, i as BANK_FEED_STATUS_VALUES, l as isBankFeedStatus, m as LIBRARY_CATEGORY_VALUES, n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES, p as LIBRARY_CATEGORIES, r as BANK_FEED_STATUS, s as initialStatusFor, t as BANK_FEED_SOURCE, u as isStatusValidForKind, v as TRANSACTION_STATUS_VALUES, x as isTransactionStatus, y as isLibraryCategory } from "./bank-feed.enums-kYTLTTbe.mjs";
2
- import { n as SubscriptionRepository, r as TransactionRepository, t as SettlementRepository } from "./settlement.repository-CfvgX3et.mjs";
1
+ import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, b as isTransactionFlow, c as isBankFeedSource, d as isTransactionKind, f as statusesForKind, g as TRANSACTION_FLOW_VALUES, h as TRANSACTION_FLOW, i as BANK_FEED_STATUS_VALUES, l as isBankFeedStatus, m as LIBRARY_CATEGORY_VALUES, n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES, p as LIBRARY_CATEGORIES, r as BANK_FEED_STATUS, s as initialStatusFor, t as BANK_FEED_SOURCE, u as isStatusValidForKind, v as TRANSACTION_STATUS_VALUES, x as isTransactionStatus, y as isLibraryCategory } from "./bank-feed.enums-CU38W8dv.mjs";
2
+ import { n as SubscriptionRepository, r as TransactionRepository, t as SettlementRepository } from "./settlement.repository-CdM3myTI.mjs";
3
3
  import { n as createEvent, t as REVENUE_EVENTS } from "./event-constants-DM_-A57b.mjs";
4
4
  import { A as isReleaseReason, C as HOLD_REASON_VALUES, D as RELEASE_REASON_VALUES, E as RELEASE_REASON, O as isHoldReason, S as HOLD_REASON, T as HOLD_STATUS_VALUES, _ as SETTLEMENT_STATUS_VALUES, a as isPlanKey, b as isSettlementStatus, c as PAYOUT_METHOD_VALUES, d as SPLIT_TYPE, f as SPLIT_TYPE_VALUES, g as SETTLEMENT_STATUS, h as isSplitType, i as SUBSCRIPTION_STATUS_VALUES, k as isHoldStatus, l as SPLIT_STATUS, m as isSplitStatus, n as PLAN_KEY_VALUES, o as isSubscriptionStatus, p as isPayoutMethod, r as SUBSCRIPTION_STATUS, s as PAYOUT_METHOD, t as PLAN_KEYS, u as SPLIT_STATUS_VALUES, v as SETTLEMENT_TYPE, w as HOLD_STATUS, x as isSettlementType, y as SETTLEMENT_TYPE_VALUES } from "./subscription.enums-95othr0i.mjs";
5
5
  import { _ as WrongTransactionKindError, a as InvalidStateTransitionError, c as PaymentVerificationError, d as RefundNotSupportedError, f as RevenueError, g as ValidationError, h as TransactionNotFoundError, i as ConfigurationError, l as ProviderCapabilityError, m as SubscriptionNotFoundError, n as BankFeedImportError, o as MethodKindLockedError, p as SettlementNotFoundError, r as BankFeedProviderNotFoundError, s as PaymentIntentCreationError, t as AlreadyVerifiedError, u as ProviderNotFoundError } from "./errors-Bt5NRVMq.mjs";
@@ -1,2 +1,2 @@
1
- import { a as BankFeedProviderRegistry, c as ParseUploadParams, d as PaymentProvider, i as BankFeedProviderCapabilities, l as ParseUploadResult, n as createProviderRegistry, o as FetchTransactionsParams, r as BankFeedProvider, s as FetchTransactionsResult, t as ProviderRegistry, u as createBankFeedProviderRegistry } from "../registry-h8sasoLh.mjs";
1
+ import { a as BankFeedProviderRegistry, c as ParseUploadParams, d as PaymentProvider, i as BankFeedProviderCapabilities, l as ParseUploadResult, n as createProviderRegistry, o as FetchTransactionsParams, r as BankFeedProvider, s as FetchTransactionsResult, t as ProviderRegistry, u as createBankFeedProviderRegistry } from "../registry-BpEeN8eW.mjs";
2
2
  export { BankFeedProvider, type BankFeedProviderCapabilities, BankFeedProviderRegistry, type FetchTransactionsParams, type FetchTransactionsResult, type ParseUploadParams, type ParseUploadResult, PaymentProvider, ProviderRegistry, createBankFeedProviderRegistry, createProviderRegistry };
@@ -1,4 +1,4 @@
1
- import { a as BankFeedSourceValue } from "./bank-feed.enums-BadqNJTC.mjs";
1
+ import { a as BankFeedSourceValue } from "./bank-feed.enums-BwJbImM6.mjs";
2
2
  import { CreateIntentParams, PaymentIntent, PaymentResult, ProviderCapabilities, RefundResult, WebhookEvent } from "@classytic/primitives/payment-gateway";
3
3
  import { BankStatement, BankTransaction } from "@classytic/primitives/bank-transaction";
4
4
 
@@ -1,4 +1,4 @@
1
- import { c as SubscriptionRepository, l as TransactionRepository, s as SettlementRepository, u as RevenueModels } from "../engine-types-ChFPg3kw.mjs";
1
+ import { c as SubscriptionRepository, l as TransactionRepository, s as SettlementRepository, u as RevenueModels } from "../engine-types-34VmC7t6.mjs";
2
2
  import { PluginType } from "@classytic/mongokit";
3
3
 
4
4
  //#region src/repositories/create-repositories.d.ts
@@ -1,4 +1,4 @@
1
- import { n as SubscriptionRepository, r as TransactionRepository, t as SettlementRepository } from "../settlement.repository-CfvgX3et.mjs";
1
+ import { n as SubscriptionRepository, r as TransactionRepository, t as SettlementRepository } from "../settlement.repository-CdM3myTI.mjs";
2
2
 
3
3
  //#region src/repositories/create-repositories.ts
4
4
  function createRevenueRepositories(models, builtInPlugins, hostPlugins = {}) {
@@ -97,10 +97,8 @@ declare const paymentVerifiedSchema: z.ZodObject<{
97
97
  currency: z.ZodString;
98
98
  }, z.core.$strip>>;
99
99
  methodKind: z.ZodEnum<{
100
- manual: "manual";
101
- bank_transfer: "bank_transfer";
102
- cryptocurrency: "cryptocurrency";
103
100
  card: "card";
101
+ bank_transfer: "bank_transfer";
104
102
  instant_bank_transfer: "instant_bank_transfer";
105
103
  direct_debit: "direct_debit";
106
104
  wallet: "wallet";
@@ -109,6 +107,8 @@ declare const paymentVerifiedSchema: z.ZodObject<{
109
107
  gift_card: "gift_card";
110
108
  cash: "cash";
111
109
  cheque: "cheque";
110
+ cryptocurrency: "cryptocurrency";
111
+ manual: "manual";
112
112
  other: "other";
113
113
  }>;
114
114
  }, z.core.$loose>;
@@ -126,10 +126,8 @@ declare const paymentFailedSchema: z.ZodObject<{
126
126
  currency: z.ZodString;
127
127
  }, z.core.$strip>>;
128
128
  methodKind: z.ZodEnum<{
129
- manual: "manual";
130
- bank_transfer: "bank_transfer";
131
- cryptocurrency: "cryptocurrency";
132
129
  card: "card";
130
+ bank_transfer: "bank_transfer";
133
131
  instant_bank_transfer: "instant_bank_transfer";
134
132
  direct_debit: "direct_debit";
135
133
  wallet: "wallet";
@@ -138,6 +136,8 @@ declare const paymentFailedSchema: z.ZodObject<{
138
136
  gift_card: "gift_card";
139
137
  cash: "cash";
140
138
  cheque: "cheque";
139
+ cryptocurrency: "cryptocurrency";
140
+ manual: "manual";
141
141
  other: "other";
142
142
  }>;
143
143
  }, z.core.$loose>;
@@ -155,10 +155,8 @@ declare const paymentProcessingSchema: z.ZodObject<{
155
155
  currency: z.ZodString;
156
156
  }, z.core.$strip>>;
157
157
  methodKind: z.ZodEnum<{
158
- manual: "manual";
159
- bank_transfer: "bank_transfer";
160
- cryptocurrency: "cryptocurrency";
161
158
  card: "card";
159
+ bank_transfer: "bank_transfer";
162
160
  instant_bank_transfer: "instant_bank_transfer";
163
161
  direct_debit: "direct_debit";
164
162
  wallet: "wallet";
@@ -167,6 +165,8 @@ declare const paymentProcessingSchema: z.ZodObject<{
167
165
  gift_card: "gift_card";
168
166
  cash: "cash";
169
167
  cheque: "cheque";
168
+ cryptocurrency: "cryptocurrency";
169
+ manual: "manual";
170
170
  other: "other";
171
171
  }>;
172
172
  }, z.core.$loose>;
@@ -184,10 +184,8 @@ declare const paymentRequiresActionSchema: z.ZodObject<{
184
184
  currency: z.ZodString;
185
185
  }, z.core.$strip>>;
186
186
  methodKind: z.ZodEnum<{
187
- manual: "manual";
188
- bank_transfer: "bank_transfer";
189
- cryptocurrency: "cryptocurrency";
190
187
  card: "card";
188
+ bank_transfer: "bank_transfer";
191
189
  instant_bank_transfer: "instant_bank_transfer";
192
190
  direct_debit: "direct_debit";
193
191
  wallet: "wallet";
@@ -196,6 +194,8 @@ declare const paymentRequiresActionSchema: z.ZodObject<{
196
194
  gift_card: "gift_card";
197
195
  cash: "cash";
198
196
  cheque: "cheque";
197
+ cryptocurrency: "cryptocurrency";
198
+ manual: "manual";
199
199
  other: "other";
200
200
  }>;
201
201
  }, z.core.$loose>;
@@ -213,10 +213,8 @@ declare const paymentRefundedSchema: z.ZodObject<{
213
213
  currency: z.ZodString;
214
214
  }, z.core.$strip>>;
215
215
  methodKind: z.ZodEnum<{
216
- manual: "manual";
217
- bank_transfer: "bank_transfer";
218
- cryptocurrency: "cryptocurrency";
219
216
  card: "card";
217
+ bank_transfer: "bank_transfer";
220
218
  instant_bank_transfer: "instant_bank_transfer";
221
219
  direct_debit: "direct_debit";
222
220
  wallet: "wallet";
@@ -225,6 +223,8 @@ declare const paymentRefundedSchema: z.ZodObject<{
225
223
  gift_card: "gift_card";
226
224
  cash: "cash";
227
225
  cheque: "cheque";
226
+ cryptocurrency: "cryptocurrency";
227
+ manual: "manual";
228
228
  other: "other";
229
229
  }>;
230
230
  }, z.core.$loose>;
@@ -238,10 +238,8 @@ declare const paymentRefundedSchema: z.ZodObject<{
238
238
  currency: z.ZodString;
239
239
  }, z.core.$strip>>;
240
240
  methodKind: z.ZodEnum<{
241
- manual: "manual";
242
- bank_transfer: "bank_transfer";
243
- cryptocurrency: "cryptocurrency";
244
241
  card: "card";
242
+ bank_transfer: "bank_transfer";
245
243
  instant_bank_transfer: "instant_bank_transfer";
246
244
  direct_debit: "direct_debit";
247
245
  wallet: "wallet";
@@ -250,6 +248,8 @@ declare const paymentRefundedSchema: z.ZodObject<{
250
248
  gift_card: "gift_card";
251
249
  cash: "cash";
252
250
  cheque: "cheque";
251
+ cryptocurrency: "cryptocurrency";
252
+ manual: "manual";
253
253
  other: "other";
254
254
  }>;
255
255
  }, z.core.$loose>;
@@ -276,10 +276,8 @@ declare const monetizationCreatedSchema: z.ZodObject<{
276
276
  currency: z.ZodString;
277
277
  }, z.core.$strip>>;
278
278
  methodKind: z.ZodEnum<{
279
- manual: "manual";
280
- bank_transfer: "bank_transfer";
281
- cryptocurrency: "cryptocurrency";
282
279
  card: "card";
280
+ bank_transfer: "bank_transfer";
283
281
  instant_bank_transfer: "instant_bank_transfer";
284
282
  direct_debit: "direct_debit";
285
283
  wallet: "wallet";
@@ -288,6 +286,8 @@ declare const monetizationCreatedSchema: z.ZodObject<{
288
286
  gift_card: "gift_card";
289
287
  cash: "cash";
290
288
  cheque: "cheque";
289
+ cryptocurrency: "cryptocurrency";
290
+ manual: "manual";
291
291
  other: "other";
292
292
  }>;
293
293
  }, z.core.$loose>;
@@ -304,10 +304,8 @@ declare const purchaseCreatedSchema: z.ZodObject<{
304
304
  currency: z.ZodString;
305
305
  }, z.core.$strip>>;
306
306
  methodKind: z.ZodEnum<{
307
- manual: "manual";
308
- bank_transfer: "bank_transfer";
309
- cryptocurrency: "cryptocurrency";
310
307
  card: "card";
308
+ bank_transfer: "bank_transfer";
311
309
  instant_bank_transfer: "instant_bank_transfer";
312
310
  direct_debit: "direct_debit";
313
311
  wallet: "wallet";
@@ -316,6 +314,8 @@ declare const purchaseCreatedSchema: z.ZodObject<{
316
314
  gift_card: "gift_card";
317
315
  cash: "cash";
318
316
  cheque: "cheque";
317
+ cryptocurrency: "cryptocurrency";
318
+ manual: "manual";
319
319
  other: "other";
320
320
  }>;
321
321
  }, z.core.$loose>;
@@ -332,10 +332,8 @@ declare const freeCreatedSchema: z.ZodObject<{
332
332
  currency: z.ZodString;
333
333
  }, z.core.$strip>>;
334
334
  methodKind: z.ZodEnum<{
335
- manual: "manual";
336
- bank_transfer: "bank_transfer";
337
- cryptocurrency: "cryptocurrency";
338
335
  card: "card";
336
+ bank_transfer: "bank_transfer";
339
337
  instant_bank_transfer: "instant_bank_transfer";
340
338
  direct_debit: "direct_debit";
341
339
  wallet: "wallet";
@@ -344,6 +342,8 @@ declare const freeCreatedSchema: z.ZodObject<{
344
342
  gift_card: "gift_card";
345
343
  cash: "cash";
346
344
  cheque: "cheque";
345
+ cryptocurrency: "cryptocurrency";
346
+ manual: "manual";
347
347
  other: "other";
348
348
  }>;
349
349
  }, z.core.$loose>;
@@ -359,10 +359,8 @@ declare const transactionUpdatedSchema: z.ZodObject<{
359
359
  currency: z.ZodString;
360
360
  }, z.core.$strip>>;
361
361
  methodKind: z.ZodEnum<{
362
- manual: "manual";
363
- bank_transfer: "bank_transfer";
364
- cryptocurrency: "cryptocurrency";
365
362
  card: "card";
363
+ bank_transfer: "bank_transfer";
366
364
  instant_bank_transfer: "instant_bank_transfer";
367
365
  direct_debit: "direct_debit";
368
366
  wallet: "wallet";
@@ -371,6 +369,8 @@ declare const transactionUpdatedSchema: z.ZodObject<{
371
369
  gift_card: "gift_card";
372
370
  cash: "cash";
373
371
  cheque: "cheque";
372
+ cryptocurrency: "cryptocurrency";
373
+ manual: "manual";
374
374
  other: "other";
375
375
  }>;
376
376
  }, z.core.$loose>;
@@ -449,10 +449,8 @@ declare const escrowHeldSchema: z.ZodObject<{
449
449
  currency: z.ZodString;
450
450
  }, z.core.$strip>>;
451
451
  methodKind: z.ZodEnum<{
452
- manual: "manual";
453
- bank_transfer: "bank_transfer";
454
- cryptocurrency: "cryptocurrency";
455
452
  card: "card";
453
+ bank_transfer: "bank_transfer";
456
454
  instant_bank_transfer: "instant_bank_transfer";
457
455
  direct_debit: "direct_debit";
458
456
  wallet: "wallet";
@@ -461,6 +459,8 @@ declare const escrowHeldSchema: z.ZodObject<{
461
459
  gift_card: "gift_card";
462
460
  cash: "cash";
463
461
  cheque: "cheque";
462
+ cryptocurrency: "cryptocurrency";
463
+ manual: "manual";
464
464
  other: "other";
465
465
  }>;
466
466
  }, z.core.$loose>;
@@ -481,10 +481,8 @@ declare const escrowReleasedSchema: z.ZodObject<{
481
481
  currency: z.ZodString;
482
482
  }, z.core.$strip>>;
483
483
  methodKind: z.ZodEnum<{
484
- manual: "manual";
485
- bank_transfer: "bank_transfer";
486
- cryptocurrency: "cryptocurrency";
487
484
  card: "card";
485
+ bank_transfer: "bank_transfer";
488
486
  instant_bank_transfer: "instant_bank_transfer";
489
487
  direct_debit: "direct_debit";
490
488
  wallet: "wallet";
@@ -493,6 +491,8 @@ declare const escrowReleasedSchema: z.ZodObject<{
493
491
  gift_card: "gift_card";
494
492
  cash: "cash";
495
493
  cheque: "cheque";
494
+ cryptocurrency: "cryptocurrency";
495
+ manual: "manual";
496
496
  other: "other";
497
497
  }>;
498
498
  }, z.core.$loose>;
@@ -516,10 +516,8 @@ declare const escrowCancelledSchema: z.ZodObject<{
516
516
  currency: z.ZodString;
517
517
  }, z.core.$strip>>;
518
518
  methodKind: z.ZodEnum<{
519
- manual: "manual";
520
- bank_transfer: "bank_transfer";
521
- cryptocurrency: "cryptocurrency";
522
519
  card: "card";
520
+ bank_transfer: "bank_transfer";
523
521
  instant_bank_transfer: "instant_bank_transfer";
524
522
  direct_debit: "direct_debit";
525
523
  wallet: "wallet";
@@ -528,6 +526,8 @@ declare const escrowCancelledSchema: z.ZodObject<{
528
526
  gift_card: "gift_card";
529
527
  cash: "cash";
530
528
  cheque: "cheque";
529
+ cryptocurrency: "cryptocurrency";
530
+ manual: "manual";
531
531
  other: "other";
532
532
  }>;
533
533
  }, z.core.$loose>;
@@ -548,10 +548,8 @@ declare const escrowSplitSchema: z.ZodObject<{
548
548
  currency: z.ZodString;
549
549
  }, z.core.$strip>>;
550
550
  methodKind: z.ZodEnum<{
551
- manual: "manual";
552
- bank_transfer: "bank_transfer";
553
- cryptocurrency: "cryptocurrency";
554
551
  card: "card";
552
+ bank_transfer: "bank_transfer";
555
553
  instant_bank_transfer: "instant_bank_transfer";
556
554
  direct_debit: "direct_debit";
557
555
  wallet: "wallet";
@@ -560,6 +558,8 @@ declare const escrowSplitSchema: z.ZodObject<{
560
558
  gift_card: "gift_card";
561
559
  cash: "cash";
562
560
  cheque: "cheque";
561
+ cryptocurrency: "cryptocurrency";
562
+ manual: "manual";
563
563
  other: "other";
564
564
  }>;
565
565
  }, z.core.$loose>;
@@ -656,10 +656,8 @@ declare const webhookProcessedSchema: z.ZodObject<{
656
656
  currency: z.ZodString;
657
657
  }, z.core.$strip>>;
658
658
  methodKind: z.ZodEnum<{
659
- manual: "manual";
660
- bank_transfer: "bank_transfer";
661
- cryptocurrency: "cryptocurrency";
662
659
  card: "card";
660
+ bank_transfer: "bank_transfer";
663
661
  instant_bank_transfer: "instant_bank_transfer";
664
662
  direct_debit: "direct_debit";
665
663
  wallet: "wallet";
@@ -668,6 +666,8 @@ declare const webhookProcessedSchema: z.ZodObject<{
668
666
  gift_card: "gift_card";
669
667
  cash: "cash";
670
668
  cheque: "cheque";
669
+ cryptocurrency: "cryptocurrency";
670
+ manual: "manual";
671
671
  other: "other";
672
672
  }>;
673
673
  }, z.core.$loose>>;
@@ -683,10 +683,8 @@ declare const transactionImportedSchema: z.ZodObject<{
683
683
  currency: z.ZodString;
684
684
  }, z.core.$strip>>;
685
685
  methodKind: z.ZodEnum<{
686
- manual: "manual";
687
- bank_transfer: "bank_transfer";
688
- cryptocurrency: "cryptocurrency";
689
686
  card: "card";
687
+ bank_transfer: "bank_transfer";
690
688
  instant_bank_transfer: "instant_bank_transfer";
691
689
  direct_debit: "direct_debit";
692
690
  wallet: "wallet";
@@ -695,6 +693,8 @@ declare const transactionImportedSchema: z.ZodObject<{
695
693
  gift_card: "gift_card";
696
694
  cash: "cash";
697
695
  cheque: "cheque";
696
+ cryptocurrency: "cryptocurrency";
697
+ manual: "manual";
698
698
  other: "other";
699
699
  }>;
700
700
  }, z.core.$loose>;
@@ -713,10 +713,8 @@ declare const transactionMatchedSchema: z.ZodObject<{
713
713
  currency: z.ZodString;
714
714
  }, z.core.$strip>>;
715
715
  methodKind: z.ZodEnum<{
716
- manual: "manual";
717
- bank_transfer: "bank_transfer";
718
- cryptocurrency: "cryptocurrency";
719
716
  card: "card";
717
+ bank_transfer: "bank_transfer";
720
718
  instant_bank_transfer: "instant_bank_transfer";
721
719
  direct_debit: "direct_debit";
722
720
  wallet: "wallet";
@@ -725,6 +723,8 @@ declare const transactionMatchedSchema: z.ZodObject<{
725
723
  gift_card: "gift_card";
726
724
  cash: "cash";
727
725
  cheque: "cheque";
726
+ cryptocurrency: "cryptocurrency";
727
+ manual: "manual";
728
728
  other: "other";
729
729
  }>;
730
730
  }, z.core.$loose>;
@@ -747,10 +747,8 @@ declare const transactionUnmatchedSchema: z.ZodObject<{
747
747
  currency: z.ZodString;
748
748
  }, z.core.$strip>>;
749
749
  methodKind: z.ZodEnum<{
750
- manual: "manual";
751
- bank_transfer: "bank_transfer";
752
- cryptocurrency: "cryptocurrency";
753
750
  card: "card";
751
+ bank_transfer: "bank_transfer";
754
752
  instant_bank_transfer: "instant_bank_transfer";
755
753
  direct_debit: "direct_debit";
756
754
  wallet: "wallet";
@@ -759,6 +757,8 @@ declare const transactionUnmatchedSchema: z.ZodObject<{
759
757
  gift_card: "gift_card";
760
758
  cash: "cash";
761
759
  cheque: "cheque";
760
+ cryptocurrency: "cryptocurrency";
761
+ manual: "manual";
762
762
  other: "other";
763
763
  }>;
764
764
  }, z.core.$loose>;
@@ -775,10 +775,8 @@ declare const transactionJournalizedSchema: z.ZodObject<{
775
775
  currency: z.ZodString;
776
776
  }, z.core.$strip>>;
777
777
  methodKind: z.ZodEnum<{
778
- manual: "manual";
779
- bank_transfer: "bank_transfer";
780
- cryptocurrency: "cryptocurrency";
781
778
  card: "card";
779
+ bank_transfer: "bank_transfer";
782
780
  instant_bank_transfer: "instant_bank_transfer";
783
781
  direct_debit: "direct_debit";
784
782
  wallet: "wallet";
@@ -787,6 +785,8 @@ declare const transactionJournalizedSchema: z.ZodObject<{
787
785
  gift_card: "gift_card";
788
786
  cash: "cash";
789
787
  cheque: "cheque";
788
+ cryptocurrency: "cryptocurrency";
789
+ manual: "manual";
790
790
  other: "other";
791
791
  }>;
792
792
  }, z.core.$loose>;
@@ -807,10 +807,8 @@ declare const transactionRejectedSchema: z.ZodObject<{
807
807
  currency: z.ZodString;
808
808
  }, z.core.$strip>>;
809
809
  methodKind: z.ZodEnum<{
810
- manual: "manual";
811
- bank_transfer: "bank_transfer";
812
- cryptocurrency: "cryptocurrency";
813
810
  card: "card";
811
+ bank_transfer: "bank_transfer";
814
812
  instant_bank_transfer: "instant_bank_transfer";
815
813
  direct_debit: "direct_debit";
816
814
  wallet: "wallet";
@@ -819,6 +817,8 @@ declare const transactionRejectedSchema: z.ZodObject<{
819
817
  gift_card: "gift_card";
820
818
  cash: "cash";
821
819
  cheque: "cheque";
820
+ cryptocurrency: "cryptocurrency";
821
+ manual: "manual";
822
822
  other: "other";
823
823
  }>;
824
824
  }, z.core.$loose>;
@@ -836,10 +836,8 @@ declare const transactionRemovedByFeedSchema: z.ZodObject<{
836
836
  currency: z.ZodString;
837
837
  }, z.core.$strip>>;
838
838
  methodKind: z.ZodEnum<{
839
- manual: "manual";
840
- bank_transfer: "bank_transfer";
841
- cryptocurrency: "cryptocurrency";
842
839
  card: "card";
840
+ bank_transfer: "bank_transfer";
843
841
  instant_bank_transfer: "instant_bank_transfer";
844
842
  direct_debit: "direct_debit";
845
843
  wallet: "wallet";
@@ -848,6 +846,8 @@ declare const transactionRemovedByFeedSchema: z.ZodObject<{
848
846
  gift_card: "gift_card";
849
847
  cash: "cash";
850
848
  cheque: "cheque";
849
+ cryptocurrency: "cryptocurrency";
850
+ manual: "manual";
851
851
  other: "other";
852
852
  }>;
853
853
  }, z.core.$loose>;
@@ -896,10 +896,8 @@ declare const PaymentVerified: RevenueEventDefinition<z.ZodObject<{
896
896
  currency: z.ZodString;
897
897
  }, z.core.$strip>>;
898
898
  methodKind: z.ZodEnum<{
899
- manual: "manual";
900
- bank_transfer: "bank_transfer";
901
- cryptocurrency: "cryptocurrency";
902
899
  card: "card";
900
+ bank_transfer: "bank_transfer";
903
901
  instant_bank_transfer: "instant_bank_transfer";
904
902
  direct_debit: "direct_debit";
905
903
  wallet: "wallet";
@@ -908,6 +906,8 @@ declare const PaymentVerified: RevenueEventDefinition<z.ZodObject<{
908
906
  gift_card: "gift_card";
909
907
  cash: "cash";
910
908
  cheque: "cheque";
909
+ cryptocurrency: "cryptocurrency";
910
+ manual: "manual";
911
911
  other: "other";
912
912
  }>;
913
913
  }, z.core.$loose>;
@@ -925,10 +925,8 @@ declare const PaymentFailed: RevenueEventDefinition<z.ZodObject<{
925
925
  currency: z.ZodString;
926
926
  }, z.core.$strip>>;
927
927
  methodKind: z.ZodEnum<{
928
- manual: "manual";
929
- bank_transfer: "bank_transfer";
930
- cryptocurrency: "cryptocurrency";
931
928
  card: "card";
929
+ bank_transfer: "bank_transfer";
932
930
  instant_bank_transfer: "instant_bank_transfer";
933
931
  direct_debit: "direct_debit";
934
932
  wallet: "wallet";
@@ -937,6 +935,8 @@ declare const PaymentFailed: RevenueEventDefinition<z.ZodObject<{
937
935
  gift_card: "gift_card";
938
936
  cash: "cash";
939
937
  cheque: "cheque";
938
+ cryptocurrency: "cryptocurrency";
939
+ manual: "manual";
940
940
  other: "other";
941
941
  }>;
942
942
  }, z.core.$loose>;
@@ -954,10 +954,8 @@ declare const PaymentProcessing: RevenueEventDefinition<z.ZodObject<{
954
954
  currency: z.ZodString;
955
955
  }, z.core.$strip>>;
956
956
  methodKind: z.ZodEnum<{
957
- manual: "manual";
958
- bank_transfer: "bank_transfer";
959
- cryptocurrency: "cryptocurrency";
960
957
  card: "card";
958
+ bank_transfer: "bank_transfer";
961
959
  instant_bank_transfer: "instant_bank_transfer";
962
960
  direct_debit: "direct_debit";
963
961
  wallet: "wallet";
@@ -966,6 +964,8 @@ declare const PaymentProcessing: RevenueEventDefinition<z.ZodObject<{
966
964
  gift_card: "gift_card";
967
965
  cash: "cash";
968
966
  cheque: "cheque";
967
+ cryptocurrency: "cryptocurrency";
968
+ manual: "manual";
969
969
  other: "other";
970
970
  }>;
971
971
  }, z.core.$loose>;
@@ -983,10 +983,8 @@ declare const PaymentRequiresAction: RevenueEventDefinition<z.ZodObject<{
983
983
  currency: z.ZodString;
984
984
  }, z.core.$strip>>;
985
985
  methodKind: z.ZodEnum<{
986
- manual: "manual";
987
- bank_transfer: "bank_transfer";
988
- cryptocurrency: "cryptocurrency";
989
986
  card: "card";
987
+ bank_transfer: "bank_transfer";
990
988
  instant_bank_transfer: "instant_bank_transfer";
991
989
  direct_debit: "direct_debit";
992
990
  wallet: "wallet";
@@ -995,6 +993,8 @@ declare const PaymentRequiresAction: RevenueEventDefinition<z.ZodObject<{
995
993
  gift_card: "gift_card";
996
994
  cash: "cash";
997
995
  cheque: "cheque";
996
+ cryptocurrency: "cryptocurrency";
997
+ manual: "manual";
998
998
  other: "other";
999
999
  }>;
1000
1000
  }, z.core.$loose>;
@@ -1012,10 +1012,8 @@ declare const PaymentRefunded: RevenueEventDefinition<z.ZodObject<{
1012
1012
  currency: z.ZodString;
1013
1013
  }, z.core.$strip>>;
1014
1014
  methodKind: z.ZodEnum<{
1015
- manual: "manual";
1016
- bank_transfer: "bank_transfer";
1017
- cryptocurrency: "cryptocurrency";
1018
1015
  card: "card";
1016
+ bank_transfer: "bank_transfer";
1019
1017
  instant_bank_transfer: "instant_bank_transfer";
1020
1018
  direct_debit: "direct_debit";
1021
1019
  wallet: "wallet";
@@ -1024,6 +1022,8 @@ declare const PaymentRefunded: RevenueEventDefinition<z.ZodObject<{
1024
1022
  gift_card: "gift_card";
1025
1023
  cash: "cash";
1026
1024
  cheque: "cheque";
1025
+ cryptocurrency: "cryptocurrency";
1026
+ manual: "manual";
1027
1027
  other: "other";
1028
1028
  }>;
1029
1029
  }, z.core.$loose>;
@@ -1037,10 +1037,8 @@ declare const PaymentRefunded: RevenueEventDefinition<z.ZodObject<{
1037
1037
  currency: z.ZodString;
1038
1038
  }, z.core.$strip>>;
1039
1039
  methodKind: z.ZodEnum<{
1040
- manual: "manual";
1041
- bank_transfer: "bank_transfer";
1042
- cryptocurrency: "cryptocurrency";
1043
1040
  card: "card";
1041
+ bank_transfer: "bank_transfer";
1044
1042
  instant_bank_transfer: "instant_bank_transfer";
1045
1043
  direct_debit: "direct_debit";
1046
1044
  wallet: "wallet";
@@ -1049,6 +1047,8 @@ declare const PaymentRefunded: RevenueEventDefinition<z.ZodObject<{
1049
1047
  gift_card: "gift_card";
1050
1048
  cash: "cash";
1051
1049
  cheque: "cheque";
1050
+ cryptocurrency: "cryptocurrency";
1051
+ manual: "manual";
1052
1052
  other: "other";
1053
1053
  }>;
1054
1054
  }, z.core.$loose>;
@@ -1075,10 +1075,8 @@ declare const MonetizationCreated: RevenueEventDefinition<z.ZodObject<{
1075
1075
  currency: z.ZodString;
1076
1076
  }, z.core.$strip>>;
1077
1077
  methodKind: z.ZodEnum<{
1078
- manual: "manual";
1079
- bank_transfer: "bank_transfer";
1080
- cryptocurrency: "cryptocurrency";
1081
1078
  card: "card";
1079
+ bank_transfer: "bank_transfer";
1082
1080
  instant_bank_transfer: "instant_bank_transfer";
1083
1081
  direct_debit: "direct_debit";
1084
1082
  wallet: "wallet";
@@ -1087,6 +1085,8 @@ declare const MonetizationCreated: RevenueEventDefinition<z.ZodObject<{
1087
1085
  gift_card: "gift_card";
1088
1086
  cash: "cash";
1089
1087
  cheque: "cheque";
1088
+ cryptocurrency: "cryptocurrency";
1089
+ manual: "manual";
1090
1090
  other: "other";
1091
1091
  }>;
1092
1092
  }, z.core.$loose>;
@@ -1103,10 +1103,8 @@ declare const PurchaseCreated: RevenueEventDefinition<z.ZodObject<{
1103
1103
  currency: z.ZodString;
1104
1104
  }, z.core.$strip>>;
1105
1105
  methodKind: z.ZodEnum<{
1106
- manual: "manual";
1107
- bank_transfer: "bank_transfer";
1108
- cryptocurrency: "cryptocurrency";
1109
1106
  card: "card";
1107
+ bank_transfer: "bank_transfer";
1110
1108
  instant_bank_transfer: "instant_bank_transfer";
1111
1109
  direct_debit: "direct_debit";
1112
1110
  wallet: "wallet";
@@ -1115,6 +1113,8 @@ declare const PurchaseCreated: RevenueEventDefinition<z.ZodObject<{
1115
1113
  gift_card: "gift_card";
1116
1114
  cash: "cash";
1117
1115
  cheque: "cheque";
1116
+ cryptocurrency: "cryptocurrency";
1117
+ manual: "manual";
1118
1118
  other: "other";
1119
1119
  }>;
1120
1120
  }, z.core.$loose>;
@@ -1131,10 +1131,8 @@ declare const FreeCreated: RevenueEventDefinition<z.ZodObject<{
1131
1131
  currency: z.ZodString;
1132
1132
  }, z.core.$strip>>;
1133
1133
  methodKind: z.ZodEnum<{
1134
- manual: "manual";
1135
- bank_transfer: "bank_transfer";
1136
- cryptocurrency: "cryptocurrency";
1137
1134
  card: "card";
1135
+ bank_transfer: "bank_transfer";
1138
1136
  instant_bank_transfer: "instant_bank_transfer";
1139
1137
  direct_debit: "direct_debit";
1140
1138
  wallet: "wallet";
@@ -1143,6 +1141,8 @@ declare const FreeCreated: RevenueEventDefinition<z.ZodObject<{
1143
1141
  gift_card: "gift_card";
1144
1142
  cash: "cash";
1145
1143
  cheque: "cheque";
1144
+ cryptocurrency: "cryptocurrency";
1145
+ manual: "manual";
1146
1146
  other: "other";
1147
1147
  }>;
1148
1148
  }, z.core.$loose>;
@@ -1158,10 +1158,8 @@ declare const TransactionUpdated: RevenueEventDefinition<z.ZodObject<{
1158
1158
  currency: z.ZodString;
1159
1159
  }, z.core.$strip>>;
1160
1160
  methodKind: z.ZodEnum<{
1161
- manual: "manual";
1162
- bank_transfer: "bank_transfer";
1163
- cryptocurrency: "cryptocurrency";
1164
1161
  card: "card";
1162
+ bank_transfer: "bank_transfer";
1165
1163
  instant_bank_transfer: "instant_bank_transfer";
1166
1164
  direct_debit: "direct_debit";
1167
1165
  wallet: "wallet";
@@ -1170,6 +1168,8 @@ declare const TransactionUpdated: RevenueEventDefinition<z.ZodObject<{
1170
1168
  gift_card: "gift_card";
1171
1169
  cash: "cash";
1172
1170
  cheque: "cheque";
1171
+ cryptocurrency: "cryptocurrency";
1172
+ manual: "manual";
1173
1173
  other: "other";
1174
1174
  }>;
1175
1175
  }, z.core.$loose>;
@@ -1248,10 +1248,8 @@ declare const EscrowHeld: RevenueEventDefinition<z.ZodObject<{
1248
1248
  currency: z.ZodString;
1249
1249
  }, z.core.$strip>>;
1250
1250
  methodKind: z.ZodEnum<{
1251
- manual: "manual";
1252
- bank_transfer: "bank_transfer";
1253
- cryptocurrency: "cryptocurrency";
1254
1251
  card: "card";
1252
+ bank_transfer: "bank_transfer";
1255
1253
  instant_bank_transfer: "instant_bank_transfer";
1256
1254
  direct_debit: "direct_debit";
1257
1255
  wallet: "wallet";
@@ -1260,6 +1258,8 @@ declare const EscrowHeld: RevenueEventDefinition<z.ZodObject<{
1260
1258
  gift_card: "gift_card";
1261
1259
  cash: "cash";
1262
1260
  cheque: "cheque";
1261
+ cryptocurrency: "cryptocurrency";
1262
+ manual: "manual";
1263
1263
  other: "other";
1264
1264
  }>;
1265
1265
  }, z.core.$loose>;
@@ -1280,10 +1280,8 @@ declare const EscrowReleased: RevenueEventDefinition<z.ZodObject<{
1280
1280
  currency: z.ZodString;
1281
1281
  }, z.core.$strip>>;
1282
1282
  methodKind: z.ZodEnum<{
1283
- manual: "manual";
1284
- bank_transfer: "bank_transfer";
1285
- cryptocurrency: "cryptocurrency";
1286
1283
  card: "card";
1284
+ bank_transfer: "bank_transfer";
1287
1285
  instant_bank_transfer: "instant_bank_transfer";
1288
1286
  direct_debit: "direct_debit";
1289
1287
  wallet: "wallet";
@@ -1292,6 +1290,8 @@ declare const EscrowReleased: RevenueEventDefinition<z.ZodObject<{
1292
1290
  gift_card: "gift_card";
1293
1291
  cash: "cash";
1294
1292
  cheque: "cheque";
1293
+ cryptocurrency: "cryptocurrency";
1294
+ manual: "manual";
1295
1295
  other: "other";
1296
1296
  }>;
1297
1297
  }, z.core.$loose>;
@@ -1315,10 +1315,8 @@ declare const EscrowCancelled: RevenueEventDefinition<z.ZodObject<{
1315
1315
  currency: z.ZodString;
1316
1316
  }, z.core.$strip>>;
1317
1317
  methodKind: z.ZodEnum<{
1318
- manual: "manual";
1319
- bank_transfer: "bank_transfer";
1320
- cryptocurrency: "cryptocurrency";
1321
1318
  card: "card";
1319
+ bank_transfer: "bank_transfer";
1322
1320
  instant_bank_transfer: "instant_bank_transfer";
1323
1321
  direct_debit: "direct_debit";
1324
1322
  wallet: "wallet";
@@ -1327,6 +1325,8 @@ declare const EscrowCancelled: RevenueEventDefinition<z.ZodObject<{
1327
1325
  gift_card: "gift_card";
1328
1326
  cash: "cash";
1329
1327
  cheque: "cheque";
1328
+ cryptocurrency: "cryptocurrency";
1329
+ manual: "manual";
1330
1330
  other: "other";
1331
1331
  }>;
1332
1332
  }, z.core.$loose>;
@@ -1347,10 +1347,8 @@ declare const EscrowSplit: RevenueEventDefinition<z.ZodObject<{
1347
1347
  currency: z.ZodString;
1348
1348
  }, z.core.$strip>>;
1349
1349
  methodKind: z.ZodEnum<{
1350
- manual: "manual";
1351
- bank_transfer: "bank_transfer";
1352
- cryptocurrency: "cryptocurrency";
1353
1350
  card: "card";
1351
+ bank_transfer: "bank_transfer";
1354
1352
  instant_bank_transfer: "instant_bank_transfer";
1355
1353
  direct_debit: "direct_debit";
1356
1354
  wallet: "wallet";
@@ -1359,6 +1357,8 @@ declare const EscrowSplit: RevenueEventDefinition<z.ZodObject<{
1359
1357
  gift_card: "gift_card";
1360
1358
  cash: "cash";
1361
1359
  cheque: "cheque";
1360
+ cryptocurrency: "cryptocurrency";
1361
+ manual: "manual";
1362
1362
  other: "other";
1363
1363
  }>;
1364
1364
  }, z.core.$loose>;
@@ -1455,10 +1455,8 @@ declare const WebhookProcessed: RevenueEventDefinition<z.ZodObject<{
1455
1455
  currency: z.ZodString;
1456
1456
  }, z.core.$strip>>;
1457
1457
  methodKind: z.ZodEnum<{
1458
- manual: "manual";
1459
- bank_transfer: "bank_transfer";
1460
- cryptocurrency: "cryptocurrency";
1461
1458
  card: "card";
1459
+ bank_transfer: "bank_transfer";
1462
1460
  instant_bank_transfer: "instant_bank_transfer";
1463
1461
  direct_debit: "direct_debit";
1464
1462
  wallet: "wallet";
@@ -1467,6 +1465,8 @@ declare const WebhookProcessed: RevenueEventDefinition<z.ZodObject<{
1467
1465
  gift_card: "gift_card";
1468
1466
  cash: "cash";
1469
1467
  cheque: "cheque";
1468
+ cryptocurrency: "cryptocurrency";
1469
+ manual: "manual";
1470
1470
  other: "other";
1471
1471
  }>;
1472
1472
  }, z.core.$loose>>;
@@ -1482,10 +1482,8 @@ declare const TransactionImported: RevenueEventDefinition<z.ZodObject<{
1482
1482
  currency: z.ZodString;
1483
1483
  }, z.core.$strip>>;
1484
1484
  methodKind: z.ZodEnum<{
1485
- manual: "manual";
1486
- bank_transfer: "bank_transfer";
1487
- cryptocurrency: "cryptocurrency";
1488
1485
  card: "card";
1486
+ bank_transfer: "bank_transfer";
1489
1487
  instant_bank_transfer: "instant_bank_transfer";
1490
1488
  direct_debit: "direct_debit";
1491
1489
  wallet: "wallet";
@@ -1494,6 +1492,8 @@ declare const TransactionImported: RevenueEventDefinition<z.ZodObject<{
1494
1492
  gift_card: "gift_card";
1495
1493
  cash: "cash";
1496
1494
  cheque: "cheque";
1495
+ cryptocurrency: "cryptocurrency";
1496
+ manual: "manual";
1497
1497
  other: "other";
1498
1498
  }>;
1499
1499
  }, z.core.$loose>;
@@ -1512,10 +1512,8 @@ declare const TransactionMatched: RevenueEventDefinition<z.ZodObject<{
1512
1512
  currency: z.ZodString;
1513
1513
  }, z.core.$strip>>;
1514
1514
  methodKind: z.ZodEnum<{
1515
- manual: "manual";
1516
- bank_transfer: "bank_transfer";
1517
- cryptocurrency: "cryptocurrency";
1518
1515
  card: "card";
1516
+ bank_transfer: "bank_transfer";
1519
1517
  instant_bank_transfer: "instant_bank_transfer";
1520
1518
  direct_debit: "direct_debit";
1521
1519
  wallet: "wallet";
@@ -1524,6 +1522,8 @@ declare const TransactionMatched: RevenueEventDefinition<z.ZodObject<{
1524
1522
  gift_card: "gift_card";
1525
1523
  cash: "cash";
1526
1524
  cheque: "cheque";
1525
+ cryptocurrency: "cryptocurrency";
1526
+ manual: "manual";
1527
1527
  other: "other";
1528
1528
  }>;
1529
1529
  }, z.core.$loose>;
@@ -1546,10 +1546,8 @@ declare const TransactionUnmatched: RevenueEventDefinition<z.ZodObject<{
1546
1546
  currency: z.ZodString;
1547
1547
  }, z.core.$strip>>;
1548
1548
  methodKind: z.ZodEnum<{
1549
- manual: "manual";
1550
- bank_transfer: "bank_transfer";
1551
- cryptocurrency: "cryptocurrency";
1552
1549
  card: "card";
1550
+ bank_transfer: "bank_transfer";
1553
1551
  instant_bank_transfer: "instant_bank_transfer";
1554
1552
  direct_debit: "direct_debit";
1555
1553
  wallet: "wallet";
@@ -1558,6 +1556,8 @@ declare const TransactionUnmatched: RevenueEventDefinition<z.ZodObject<{
1558
1556
  gift_card: "gift_card";
1559
1557
  cash: "cash";
1560
1558
  cheque: "cheque";
1559
+ cryptocurrency: "cryptocurrency";
1560
+ manual: "manual";
1561
1561
  other: "other";
1562
1562
  }>;
1563
1563
  }, z.core.$loose>;
@@ -1574,10 +1574,8 @@ declare const TransactionJournalized: RevenueEventDefinition<z.ZodObject<{
1574
1574
  currency: z.ZodString;
1575
1575
  }, z.core.$strip>>;
1576
1576
  methodKind: z.ZodEnum<{
1577
- manual: "manual";
1578
- bank_transfer: "bank_transfer";
1579
- cryptocurrency: "cryptocurrency";
1580
1577
  card: "card";
1578
+ bank_transfer: "bank_transfer";
1581
1579
  instant_bank_transfer: "instant_bank_transfer";
1582
1580
  direct_debit: "direct_debit";
1583
1581
  wallet: "wallet";
@@ -1586,6 +1584,8 @@ declare const TransactionJournalized: RevenueEventDefinition<z.ZodObject<{
1586
1584
  gift_card: "gift_card";
1587
1585
  cash: "cash";
1588
1586
  cheque: "cheque";
1587
+ cryptocurrency: "cryptocurrency";
1588
+ manual: "manual";
1589
1589
  other: "other";
1590
1590
  }>;
1591
1591
  }, z.core.$loose>;
@@ -1606,10 +1606,8 @@ declare const TransactionRejected: RevenueEventDefinition<z.ZodObject<{
1606
1606
  currency: z.ZodString;
1607
1607
  }, z.core.$strip>>;
1608
1608
  methodKind: z.ZodEnum<{
1609
- manual: "manual";
1610
- bank_transfer: "bank_transfer";
1611
- cryptocurrency: "cryptocurrency";
1612
1609
  card: "card";
1610
+ bank_transfer: "bank_transfer";
1613
1611
  instant_bank_transfer: "instant_bank_transfer";
1614
1612
  direct_debit: "direct_debit";
1615
1613
  wallet: "wallet";
@@ -1618,6 +1616,8 @@ declare const TransactionRejected: RevenueEventDefinition<z.ZodObject<{
1618
1616
  gift_card: "gift_card";
1619
1617
  cash: "cash";
1620
1618
  cheque: "cheque";
1619
+ cryptocurrency: "cryptocurrency";
1620
+ manual: "manual";
1621
1621
  other: "other";
1622
1622
  }>;
1623
1623
  }, z.core.$loose>;
@@ -1635,10 +1635,8 @@ declare const TransactionRemovedByFeed: RevenueEventDefinition<z.ZodObject<{
1635
1635
  currency: z.ZodString;
1636
1636
  }, z.core.$strip>>;
1637
1637
  methodKind: z.ZodEnum<{
1638
- manual: "manual";
1639
- bank_transfer: "bank_transfer";
1640
- cryptocurrency: "cryptocurrency";
1641
1638
  card: "card";
1639
+ bank_transfer: "bank_transfer";
1642
1640
  instant_bank_transfer: "instant_bank_transfer";
1643
1641
  direct_debit: "direct_debit";
1644
1642
  wallet: "wallet";
@@ -1647,6 +1645,8 @@ declare const TransactionRemovedByFeed: RevenueEventDefinition<z.ZodObject<{
1647
1645
  gift_card: "gift_card";
1648
1646
  cash: "cash";
1649
1647
  cheque: "cheque";
1648
+ cryptocurrency: "cryptocurrency";
1649
+ manual: "manual";
1650
1650
  other: "other";
1651
1651
  }>;
1652
1652
  }, z.core.$loose>;
@@ -1,4 +1,4 @@
1
- import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, s as initialStatusFor } from "./bank-feed.enums-kYTLTTbe.mjs";
1
+ import { _ as TRANSACTION_STATUS, a as TRANSACTION_KIND, s as initialStatusFor } from "./bank-feed.enums-CU38W8dv.mjs";
2
2
  import { n as createEvent, t as REVENUE_EVENTS } from "./event-constants-DM_-A57b.mjs";
3
3
  import { g as SETTLEMENT_STATUS, r as SUBSCRIPTION_STATUS, w as HOLD_STATUS } from "./subscription.enums-95othr0i.mjs";
4
4
  import { _ as WrongTransactionKindError, g as ValidationError, h as TransactionNotFoundError, m as SubscriptionNotFoundError, n as BankFeedImportError, o as MethodKindLockedError, p as SettlementNotFoundError } from "./errors-Bt5NRVMq.mjs";
@@ -664,7 +664,7 @@ var TransactionRepository = class extends RevenueRepositoryBase {
664
664
  if (row.balanceAfter !== void 0) set.balanceAfter = row.balanceAfter.amount;
665
665
  const setOnInsert = {
666
666
  kind: TRANSACTION_KIND.BANK_FEED,
667
- status: initialStatusFor(TRANSACTION_KIND.BANK_FEED),
667
+ status: opts.initialStatus ?? initialStatusFor(TRANSACTION_KIND.BANK_FEED),
668
668
  bankAccountId: opts.bankAccountId,
669
669
  externalId: row.externalId,
670
670
  source: opts.source,
@@ -1,4 +1,4 @@
1
- import { A as transactionBaseSchema, C as subscriptionBaseSchema, D as TransactionCreateInput, E as subscriptionUpdateSchema, M as transactionListFilterSchema, N as transactionUpdateSchema, O as TransactionListFilter, S as SubscriptionUpdateInput, T as subscriptionListFilterSchema, _ as settlementCreateSchema, a as escrowReleaseSchema, b as SubscriptionCreateInput, c as PaymentVerifyInput, d as paymentVerifySchema, f as refundSchema, g as settlementBaseSchema, h as SettlementUpdateInput, i as escrowHoldSchema, j as transactionCreateSchema, k as TransactionUpdateInput, l as RefundInput, m as SettlementListFilter, n as EscrowReleaseInput, o as splitRuleSchema, p as SettlementCreateInput, r as SplitRuleInput, s as PaymentIntentInput, t as EscrowHoldInput, u as paymentIntentSchema, v as settlementListFilterSchema, w as subscriptionCreateSchema, x as SubscriptionListFilter, y as settlementUpdateSchema } from "../escrow.schema-BdDHuQ8C.mjs";
1
+ import { A as transactionBaseSchema, C as subscriptionBaseSchema, D as TransactionCreateInput, E as subscriptionUpdateSchema, M as transactionListFilterSchema, N as transactionUpdateSchema, O as TransactionListFilter, S as SubscriptionUpdateInput, T as subscriptionListFilterSchema, _ as settlementCreateSchema, a as escrowReleaseSchema, b as SubscriptionCreateInput, c as PaymentVerifyInput, d as paymentVerifySchema, f as refundSchema, g as settlementBaseSchema, h as SettlementUpdateInput, i as escrowHoldSchema, j as transactionCreateSchema, k as TransactionUpdateInput, l as RefundInput, m as SettlementListFilter, n as EscrowReleaseInput, o as splitRuleSchema, p as SettlementCreateInput, r as SplitRuleInput, s as PaymentIntentInput, t as EscrowHoldInput, u as paymentIntentSchema, v as settlementListFilterSchema, w as subscriptionCreateSchema, x as SubscriptionListFilter, y as settlementUpdateSchema } from "../escrow.schema-C_UeLtsC.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/validators/bank-feed.schema.d.ts
@@ -1,4 +1,4 @@
1
- import { n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES } from "../bank-feed.enums-kYTLTTbe.mjs";
1
+ import { n as BANK_FEED_SOURCE_VALUES, o as TRANSACTION_KIND_VALUES } from "../bank-feed.enums-CU38W8dv.mjs";
2
2
  import { _ as transactionListFilterSchema, a as paymentVerifySchema, c as settlementCreateSchema, d as subscriptionBaseSchema, f as subscriptionCreateSchema, g as transactionCreateSchema, h as transactionBaseSchema, i as paymentIntentSchema, l as settlementListFilterSchema, m as subscriptionUpdateSchema, n as escrowReleaseSchema, o as refundSchema, p as subscriptionListFilterSchema, r as splitRuleSchema, s as settlementBaseSchema, t as escrowHoldSchema, u as settlementUpdateSchema, v as transactionUpdateSchema } from "../escrow.schema-BcKdzrJ7.mjs";
3
3
  import { z } from "zod";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classytic/revenue",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Payment lifecycle engine — transactions, subscriptions, escrow, settlements, commissions. MongoKit-powered, Arc-compatible, framework-agnostic.",
5
5
  "type": "module",
6
6
  "sideEffects": false,