@classytic/revenue 1.1.3 → 2.0.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +638 -632
  3. package/dist/audit-B39B0Sdq.mjs +53 -0
  4. package/dist/audit-DZ0eTr9g.d.mts +89 -0
  5. package/dist/bridges/index.d.mts +2 -0
  6. package/dist/bridges/index.mjs +1 -0
  7. package/dist/context-DRqSeTPM.d.mts +35 -0
  8. package/dist/core/state-machines.d.mts +35 -0
  9. package/dist/core/state-machines.mjs +134 -0
  10. package/dist/engine-types-CcjIb4Fy.d.mts +611 -0
  11. package/dist/enums/index.d.mts +3 -157
  12. package/dist/enums/index.mjs +3 -55
  13. package/dist/errors-DHa8JVQ-.mjs +92 -0
  14. package/dist/escrow.schema-BBv9oVEW.mjs +322 -0
  15. package/dist/escrow.schema-CC8XuD46.d.mts +629 -0
  16. package/dist/event-constants-CEMitnIV.mjs +53 -0
  17. package/dist/events/index.d.mts +3 -0
  18. package/dist/events/index.mjs +4 -0
  19. package/dist/index.d.mts +77 -9
  20. package/dist/index.mjs +465 -29
  21. package/dist/monetization.enums-BtiU3t8o.mjs +39 -0
  22. package/dist/monetization.enums-D2xbxXJM.d.mts +34 -0
  23. package/dist/plugins/plugin.interface.d.mts +28 -0
  24. package/dist/plugins/plugin.interface.mjs +26 -0
  25. package/dist/providers/index.d.mts +2 -3
  26. package/dist/providers/index.mjs +2 -2
  27. package/dist/{base-DCoyIUj6.mjs → registry-DhFMsSn5.mjs} +34 -36
  28. package/dist/{base-CsTlVQJe.d.mts → registry-SvIGPAx_.d.mts} +73 -66
  29. package/dist/repositories/create-repositories.d.mts +21 -0
  30. package/dist/repositories/create-repositories.mjs +12 -0
  31. package/dist/revenue-bridges-sdlrR85c.d.mts +145 -0
  32. package/dist/revenue-event-catalog-BX3g7RUi.d.mts +823 -0
  33. package/dist/revenue-event-catalog-LqxPnsU_.mjs +388 -0
  34. package/dist/settlement.repository-Cy3mMWGH.mjs +771 -0
  35. package/dist/shared/index.d.mts +2 -0
  36. package/dist/shared/index.mjs +4 -0
  37. package/dist/split.enums-CQE3ekH1.mjs +172 -0
  38. package/dist/split.enums-Dw4zCrcZ.d.mts +154 -0
  39. package/dist/splits-BAfY-a9P.mjs +123 -0
  40. package/dist/validators/index.d.mts +2 -0
  41. package/dist/validators/index.mjs +3 -0
  42. package/package.json +32 -36
  43. package/dist/application/services/index.d.mts +0 -4
  44. package/dist/application/services/index.mjs +0 -3
  45. package/dist/category-resolver-DV83N8ok.mjs +0 -284
  46. package/dist/commission-split-BzB8cd39.mjs +0 -485
  47. package/dist/core/events.d.mts +0 -294
  48. package/dist/core/events.mjs +0 -100
  49. package/dist/core/index.d.mts +0 -9
  50. package/dist/core/index.mjs +0 -8
  51. package/dist/errors-CorrWz7A.d.mts +0 -787
  52. package/dist/escrow.enums-CZGrrdg7.mjs +0 -101
  53. package/dist/escrow.enums-DwdLuuve.d.mts +0 -78
  54. package/dist/idempotency-DaYcUGY1.mjs +0 -172
  55. package/dist/index-Dsp7H5Wb.d.mts +0 -471
  56. package/dist/infrastructure/plugins/index.d.mts +0 -239
  57. package/dist/infrastructure/plugins/index.mjs +0 -345
  58. package/dist/money-CvrDOijQ.mjs +0 -271
  59. package/dist/money-DPG8AtJ8.d.mts +0 -112
  60. package/dist/payment.enums-HAuAS9Pp.d.mts +0 -70
  61. package/dist/payment.enums-tEFVa-Xp.mjs +0 -69
  62. package/dist/plugin-BbK0OVHy.d.mts +0 -327
  63. package/dist/plugin-Cd_V04Em.mjs +0 -210
  64. package/dist/reconciliation/index.d.mts +0 -193
  65. package/dist/reconciliation/index.mjs +0 -192
  66. package/dist/retry-HHCOXYdn.d.mts +0 -186
  67. package/dist/revenue-9scqKSef.mjs +0 -553
  68. package/dist/schemas/index.d.mts +0 -2665
  69. package/dist/schemas/index.mjs +0 -717
  70. package/dist/schemas/validation.d.mts +0 -375
  71. package/dist/schemas/validation.mjs +0 -325
  72. package/dist/settlement.enums-DFhkqZEY.d.mts +0 -132
  73. package/dist/settlement.schema-D5uWB5tP.d.mts +0 -344
  74. package/dist/settlement.service-BxuiHpNC.d.mts +0 -594
  75. package/dist/settlement.service-CUxbUTzT.mjs +0 -2510
  76. package/dist/split.enums-BrjabxIX.mjs +0 -86
  77. package/dist/split.enums-DmskfLOM.d.mts +0 -43
  78. package/dist/tax-BoCt5cEd.d.mts +0 -61
  79. package/dist/tax-EQ15DO81.mjs +0 -162
  80. package/dist/transaction.enums-pCyMFT4Z.mjs +0 -96
  81. package/dist/utils/index.d.mts +0 -428
  82. package/dist/utils/index.mjs +0 -346
@@ -1,2665 +0,0 @@
1
- import { f as SplitTypeValue, i as PayoutMethodValue, u as SplitStatusValue } from "../split.enums-DmskfLOM.mjs";
2
- import { n as settlementSchema, t as SettlementDocument } from "../settlement.schema-D5uWB5tP.mjs";
3
- import { C as SubscriptionStatusValue, c as HoldStatusValue, o as HoldReasonValue, v as PlanKeyValue } from "../escrow.enums-DwdLuuve.mjs";
4
- import { u as PaymentStatusValue } from "../payment.enums-HAuAS9Pp.mjs";
5
- import * as mongoose$1 from "mongoose";
6
- import { Schema } from "mongoose";
7
- import * as bson from "bson";
8
-
9
- //#region src/schemas/transaction/common.schema.d.ts
10
- /**
11
- * Base metadata schema for transactions
12
- */
13
- declare const baseMetadataSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
14
- _id: false;
15
- strict: false;
16
- }, {}, mongoose$1.Document<unknown, {}, {}, {
17
- id: string;
18
- }, mongoose$1.ResolveSchemaOptions<{
19
- _id: false;
20
- strict: false;
21
- }>> & Omit<Required<{
22
- _id: unknown;
23
- }> & {
24
- __v: number;
25
- }, "id"> & {
26
- id: string;
27
- }, {
28
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
29
- } | {
30
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {}, {
31
- id: string;
32
- }, mongoose$1.ResolveSchemaOptions<{
33
- _id: false;
34
- strict: false;
35
- }>> & Omit<Required<{
36
- _id: unknown;
37
- }> & {
38
- __v: number;
39
- }, "id"> & {
40
- id: string;
41
- }> | undefined;
42
- }, {} & Required<{
43
- _id: unknown;
44
- }> & {
45
- __v: number;
46
- }>;
47
- //#endregion
48
- //#region src/schemas/transaction/gateway.schema.d.ts
49
- /**
50
- * Gateway Schema - Embedded in Transaction
51
- * Tracks payment gateway details
52
- */
53
- declare const gatewaySchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
54
- _id: false;
55
- }, {
56
- type: string;
57
- metadata: any;
58
- provider?: string | null | undefined;
59
- sessionId?: string | null | undefined;
60
- paymentIntentId?: string | null | undefined;
61
- verificationData?: any;
62
- }, mongoose$1.Document<unknown, {}, {
63
- type: string;
64
- metadata: any;
65
- provider?: string | null | undefined;
66
- sessionId?: string | null | undefined;
67
- paymentIntentId?: string | null | undefined;
68
- verificationData?: any;
69
- }, {
70
- id: string;
71
- }, mongoose$1.ResolveSchemaOptions<{
72
- _id: false;
73
- }>> & Omit<{
74
- type: string;
75
- metadata: any;
76
- provider?: string | null | undefined;
77
- sessionId?: string | null | undefined;
78
- paymentIntentId?: string | null | undefined;
79
- verificationData?: any;
80
- } & {
81
- _id: mongoose$1.Types.ObjectId;
82
- } & {
83
- __v: number;
84
- }, "id"> & {
85
- id: string;
86
- }, {
87
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
88
- } | {
89
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
90
- type: string;
91
- metadata: any;
92
- provider?: string | null | undefined;
93
- sessionId?: string | null | undefined;
94
- paymentIntentId?: string | null | undefined;
95
- verificationData?: any;
96
- }, {
97
- id: string;
98
- }, mongoose$1.ResolveSchemaOptions<{
99
- _id: false;
100
- }>> & Omit<{
101
- type: string;
102
- metadata: any;
103
- provider?: string | null | undefined;
104
- sessionId?: string | null | undefined;
105
- paymentIntentId?: string | null | undefined;
106
- verificationData?: any;
107
- } & {
108
- _id: mongoose$1.Types.ObjectId;
109
- } & {
110
- __v: number;
111
- }, "id"> & {
112
- id: string;
113
- }> | undefined;
114
- }, {
115
- type: string;
116
- metadata: any;
117
- provider?: string | null | undefined;
118
- sessionId?: string | null | undefined;
119
- paymentIntentId?: string | null | undefined;
120
- verificationData?: any;
121
- } & {
122
- _id: mongoose$1.Types.ObjectId;
123
- } & {
124
- __v: number;
125
- }>;
126
- //#endregion
127
- //#region src/schemas/transaction/payment.schema.d.ts
128
- /**
129
- * Individual Payment Entry Schema
130
- * For split/multi-payment scenarios (e.g., cash + bank + mobile wallet)
131
- *
132
- * Use in currentPaymentSchema.payments array
133
- */
134
- declare const paymentEntrySchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
135
- _id: false;
136
- }, {
137
- amount: number;
138
- method: string;
139
- reference?: string | null | undefined;
140
- details?: any;
141
- }, mongoose$1.Document<unknown, {}, {
142
- amount: number;
143
- method: string;
144
- reference?: string | null | undefined;
145
- details?: any;
146
- }, {
147
- id: string;
148
- }, mongoose$1.ResolveSchemaOptions<{
149
- _id: false;
150
- }>> & Omit<{
151
- amount: number;
152
- method: string;
153
- reference?: string | null | undefined;
154
- details?: any;
155
- } & {
156
- _id: mongoose$1.Types.ObjectId;
157
- } & {
158
- __v: number;
159
- }, "id"> & {
160
- id: string;
161
- }, {
162
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
163
- } | {
164
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
165
- amount: number;
166
- method: string;
167
- reference?: string | null | undefined;
168
- details?: any;
169
- }, {
170
- id: string;
171
- }, mongoose$1.ResolveSchemaOptions<{
172
- _id: false;
173
- }>> & Omit<{
174
- amount: number;
175
- method: string;
176
- reference?: string | null | undefined;
177
- details?: any;
178
- } & {
179
- _id: mongoose$1.Types.ObjectId;
180
- } & {
181
- __v: number;
182
- }, "id"> & {
183
- id: string;
184
- }> | undefined;
185
- }, {
186
- amount: number;
187
- method: string;
188
- reference?: string | null | undefined;
189
- details?: any;
190
- } & {
191
- _id: mongoose$1.Types.ObjectId;
192
- } & {
193
- __v: number;
194
- }>;
195
- /**
196
- * Current Payment Schema
197
- * Use this in your model: currentPayment: { type: currentPaymentSchema }
198
- *
199
- * Tracks the latest payment transaction for an entity
200
- * Supports both single payments and multi-payment (split) scenarios
201
- */
202
- declare const currentPaymentSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
203
- _id: false;
204
- }, {
205
- status: PaymentStatusValue;
206
- amount?: number | null | undefined;
207
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
208
- method?: string | null | undefined;
209
- reference?: string | null | undefined;
210
- payments?: mongoose$1.Types.DocumentArray<{
211
- amount: number;
212
- method: string;
213
- reference?: string | null | undefined;
214
- details?: any;
215
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
216
- amount: number;
217
- method: string;
218
- reference?: string | null | undefined;
219
- details?: any;
220
- }> & {
221
- amount: number;
222
- method: string;
223
- reference?: string | null | undefined;
224
- details?: any;
225
- }> | null | undefined;
226
- verifiedAt?: NativeDate | null | undefined;
227
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
228
- }, mongoose$1.Document<unknown, {}, {
229
- status: PaymentStatusValue;
230
- amount?: number | null | undefined;
231
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
232
- method?: string | null | undefined;
233
- reference?: string | null | undefined;
234
- payments?: mongoose$1.Types.DocumentArray<{
235
- amount: number;
236
- method: string;
237
- reference?: string | null | undefined;
238
- details?: any;
239
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
240
- amount: number;
241
- method: string;
242
- reference?: string | null | undefined;
243
- details?: any;
244
- }> & {
245
- amount: number;
246
- method: string;
247
- reference?: string | null | undefined;
248
- details?: any;
249
- }> | null | undefined;
250
- verifiedAt?: NativeDate | null | undefined;
251
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
252
- }, {
253
- id: string;
254
- }, mongoose$1.ResolveSchemaOptions<{
255
- _id: false;
256
- }>> & Omit<{
257
- status: PaymentStatusValue;
258
- amount?: number | null | undefined;
259
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
260
- method?: string | null | undefined;
261
- reference?: string | null | undefined;
262
- payments?: mongoose$1.Types.DocumentArray<{
263
- amount: number;
264
- method: string;
265
- reference?: string | null | undefined;
266
- details?: any;
267
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
268
- amount: number;
269
- method: string;
270
- reference?: string | null | undefined;
271
- details?: any;
272
- }> & {
273
- amount: number;
274
- method: string;
275
- reference?: string | null | undefined;
276
- details?: any;
277
- }> | null | undefined;
278
- verifiedAt?: NativeDate | null | undefined;
279
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
280
- } & {
281
- _id: mongoose$1.Types.ObjectId;
282
- } & {
283
- __v: number;
284
- }, "id"> & {
285
- id: string;
286
- }, {
287
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
288
- } | {
289
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
290
- status: PaymentStatusValue;
291
- amount?: number | null | undefined;
292
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
293
- method?: string | null | undefined;
294
- reference?: string | null | undefined;
295
- payments?: mongoose$1.Types.DocumentArray<{
296
- amount: number;
297
- method: string;
298
- reference?: string | null | undefined;
299
- details?: any;
300
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
301
- amount: number;
302
- method: string;
303
- reference?: string | null | undefined;
304
- details?: any;
305
- }> & {
306
- amount: number;
307
- method: string;
308
- reference?: string | null | undefined;
309
- details?: any;
310
- }> | null | undefined;
311
- verifiedAt?: NativeDate | null | undefined;
312
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
313
- }, {
314
- id: string;
315
- }, mongoose$1.ResolveSchemaOptions<{
316
- _id: false;
317
- }>> & Omit<{
318
- status: PaymentStatusValue;
319
- amount?: number | null | undefined;
320
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
321
- method?: string | null | undefined;
322
- reference?: string | null | undefined;
323
- payments?: mongoose$1.Types.DocumentArray<{
324
- amount: number;
325
- method: string;
326
- reference?: string | null | undefined;
327
- details?: any;
328
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
329
- amount: number;
330
- method: string;
331
- reference?: string | null | undefined;
332
- details?: any;
333
- }> & {
334
- amount: number;
335
- method: string;
336
- reference?: string | null | undefined;
337
- details?: any;
338
- }> | null | undefined;
339
- verifiedAt?: NativeDate | null | undefined;
340
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
341
- } & {
342
- _id: mongoose$1.Types.ObjectId;
343
- } & {
344
- __v: number;
345
- }, "id"> & {
346
- id: string;
347
- }> | undefined;
348
- }, {
349
- status: PaymentStatusValue;
350
- amount?: number | null | undefined;
351
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
352
- method?: string | null | undefined;
353
- reference?: string | null | undefined;
354
- payments?: mongoose$1.Types.DocumentArray<{
355
- amount: number;
356
- method: string;
357
- reference?: string | null | undefined;
358
- details?: any;
359
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
360
- amount: number;
361
- method: string;
362
- reference?: string | null | undefined;
363
- details?: any;
364
- }> & {
365
- amount: number;
366
- method: string;
367
- reference?: string | null | undefined;
368
- details?: any;
369
- }> | null | undefined;
370
- verifiedAt?: NativeDate | null | undefined;
371
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
372
- } & {
373
- _id: mongoose$1.Types.ObjectId;
374
- } & {
375
- __v: number;
376
- }>;
377
- /**
378
- * Payment Summary Schema
379
- * Use this in your model: paymentSummary: { type: paymentSummarySchema }
380
- *
381
- * Tracks payment history and totals
382
- */
383
- declare const paymentSummarySchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
384
- _id: false;
385
- }, {
386
- totalPayments: number;
387
- totalAmountPaid: number;
388
- lastPaymentDate?: NativeDate | null | undefined;
389
- lastPaymentAmount?: number | null | undefined;
390
- }, mongoose$1.Document<unknown, {}, {
391
- totalPayments: number;
392
- totalAmountPaid: number;
393
- lastPaymentDate?: NativeDate | null | undefined;
394
- lastPaymentAmount?: number | null | undefined;
395
- }, {
396
- id: string;
397
- }, mongoose$1.ResolveSchemaOptions<{
398
- _id: false;
399
- }>> & Omit<{
400
- totalPayments: number;
401
- totalAmountPaid: number;
402
- lastPaymentDate?: NativeDate | null | undefined;
403
- lastPaymentAmount?: number | null | undefined;
404
- } & {
405
- _id: mongoose$1.Types.ObjectId;
406
- } & {
407
- __v: number;
408
- }, "id"> & {
409
- id: string;
410
- }, {
411
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
412
- } | {
413
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
414
- totalPayments: number;
415
- totalAmountPaid: number;
416
- lastPaymentDate?: NativeDate | null | undefined;
417
- lastPaymentAmount?: number | null | undefined;
418
- }, {
419
- id: string;
420
- }, mongoose$1.ResolveSchemaOptions<{
421
- _id: false;
422
- }>> & Omit<{
423
- totalPayments: number;
424
- totalAmountPaid: number;
425
- lastPaymentDate?: NativeDate | null | undefined;
426
- lastPaymentAmount?: number | null | undefined;
427
- } & {
428
- _id: mongoose$1.Types.ObjectId;
429
- } & {
430
- __v: number;
431
- }, "id"> & {
432
- id: string;
433
- }> | undefined;
434
- }, {
435
- totalPayments: number;
436
- totalAmountPaid: number;
437
- lastPaymentDate?: NativeDate | null | undefined;
438
- lastPaymentAmount?: number | null | undefined;
439
- } & {
440
- _id: mongoose$1.Types.ObjectId;
441
- } & {
442
- __v: number;
443
- }>;
444
- /**
445
- * Payment Details Schema (for manual payments)
446
- * Embedded in Transaction model
447
- */
448
- declare const paymentDetailsSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
449
- _id: false;
450
- }, {
451
- provider?: string | null | undefined;
452
- walletNumber?: string | null | undefined;
453
- walletType?: string | null | undefined;
454
- trxId?: string | null | undefined;
455
- bankName?: string | null | undefined;
456
- accountNumber?: string | null | undefined;
457
- accountName?: string | null | undefined;
458
- proofUrl?: string | null | undefined;
459
- }, mongoose$1.Document<unknown, {}, {
460
- provider?: string | null | undefined;
461
- walletNumber?: string | null | undefined;
462
- walletType?: string | null | undefined;
463
- trxId?: string | null | undefined;
464
- bankName?: string | null | undefined;
465
- accountNumber?: string | null | undefined;
466
- accountName?: string | null | undefined;
467
- proofUrl?: string | null | undefined;
468
- }, {
469
- id: string;
470
- }, mongoose$1.ResolveSchemaOptions<{
471
- _id: false;
472
- }>> & Omit<{
473
- provider?: string | null | undefined;
474
- walletNumber?: string | null | undefined;
475
- walletType?: string | null | undefined;
476
- trxId?: string | null | undefined;
477
- bankName?: string | null | undefined;
478
- accountNumber?: string | null | undefined;
479
- accountName?: string | null | undefined;
480
- proofUrl?: string | null | undefined;
481
- } & {
482
- _id: mongoose$1.Types.ObjectId;
483
- } & {
484
- __v: number;
485
- }, "id"> & {
486
- id: string;
487
- }, {
488
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
489
- } | {
490
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
491
- provider?: string | null | undefined;
492
- walletNumber?: string | null | undefined;
493
- walletType?: string | null | undefined;
494
- trxId?: string | null | undefined;
495
- bankName?: string | null | undefined;
496
- accountNumber?: string | null | undefined;
497
- accountName?: string | null | undefined;
498
- proofUrl?: string | null | undefined;
499
- }, {
500
- id: string;
501
- }, mongoose$1.ResolveSchemaOptions<{
502
- _id: false;
503
- }>> & Omit<{
504
- provider?: string | null | undefined;
505
- walletNumber?: string | null | undefined;
506
- walletType?: string | null | undefined;
507
- trxId?: string | null | undefined;
508
- bankName?: string | null | undefined;
509
- accountNumber?: string | null | undefined;
510
- accountName?: string | null | undefined;
511
- proofUrl?: string | null | undefined;
512
- } & {
513
- _id: mongoose$1.Types.ObjectId;
514
- } & {
515
- __v: number;
516
- }, "id"> & {
517
- id: string;
518
- }> | undefined;
519
- }, {
520
- provider?: string | null | undefined;
521
- walletNumber?: string | null | undefined;
522
- walletType?: string | null | undefined;
523
- trxId?: string | null | undefined;
524
- bankName?: string | null | undefined;
525
- accountNumber?: string | null | undefined;
526
- accountName?: string | null | undefined;
527
- proofUrl?: string | null | undefined;
528
- } & {
529
- _id: mongoose$1.Types.ObjectId;
530
- } & {
531
- __v: number;
532
- }>;
533
- /**
534
- * Tenant Snapshot Schema
535
- * Captures organization payment details at transaction time (audit trail)
536
- */
537
- declare const tenantSnapshotSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
538
- _id: false;
539
- }, {
540
- paymentInstructions?: string | null | undefined;
541
- bkashNumber?: string | null | undefined;
542
- nagadNumber?: string | null | undefined;
543
- bankAccount?: string | null | undefined;
544
- }, mongoose$1.Document<unknown, {}, {
545
- paymentInstructions?: string | null | undefined;
546
- bkashNumber?: string | null | undefined;
547
- nagadNumber?: string | null | undefined;
548
- bankAccount?: string | null | undefined;
549
- }, {
550
- id: string;
551
- }, mongoose$1.ResolveSchemaOptions<{
552
- _id: false;
553
- }>> & Omit<{
554
- paymentInstructions?: string | null | undefined;
555
- bkashNumber?: string | null | undefined;
556
- nagadNumber?: string | null | undefined;
557
- bankAccount?: string | null | undefined;
558
- } & {
559
- _id: mongoose$1.Types.ObjectId;
560
- } & {
561
- __v: number;
562
- }, "id"> & {
563
- id: string;
564
- }, {
565
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
566
- } | {
567
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
568
- paymentInstructions?: string | null | undefined;
569
- bkashNumber?: string | null | undefined;
570
- nagadNumber?: string | null | undefined;
571
- bankAccount?: string | null | undefined;
572
- }, {
573
- id: string;
574
- }, mongoose$1.ResolveSchemaOptions<{
575
- _id: false;
576
- }>> & Omit<{
577
- paymentInstructions?: string | null | undefined;
578
- bkashNumber?: string | null | undefined;
579
- nagadNumber?: string | null | undefined;
580
- bankAccount?: string | null | undefined;
581
- } & {
582
- _id: mongoose$1.Types.ObjectId;
583
- } & {
584
- __v: number;
585
- }, "id"> & {
586
- id: string;
587
- }> | undefined;
588
- }, {
589
- paymentInstructions?: string | null | undefined;
590
- bkashNumber?: string | null | undefined;
591
- nagadNumber?: string | null | undefined;
592
- bankAccount?: string | null | undefined;
593
- } & {
594
- _id: mongoose$1.Types.ObjectId;
595
- } & {
596
- __v: number;
597
- }>;
598
- //#endregion
599
- //#region src/schemas/transaction/commission.schema.d.ts
600
- /**
601
- * Commission Schema - Embedded in Transaction
602
- * Tracks platform commission with gateway fee deduction
603
- *
604
- * Usage: commission: commissionSchema
605
- */
606
- declare const commissionSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
607
- _id: false;
608
- }, {
609
- splits: string[];
610
- status: "pending" | "paid" | "waived" | "reversed";
611
- gatewayFeeRate?: number | null | undefined;
612
- rate?: number | null | undefined;
613
- affiliate?: {
614
- recipientId?: string | null | undefined;
615
- recipientType?: "user" | "organization" | "partner" | null | undefined;
616
- rate?: number | null | undefined;
617
- grossAmount?: number | null | undefined;
618
- netAmount?: number | null | undefined;
619
- } | null | undefined;
620
- grossAmount?: number | null | undefined;
621
- gatewayFeeAmount?: number | null | undefined;
622
- netAmount?: number | null | undefined;
623
- }, mongoose$1.Document<unknown, {}, {
624
- splits: string[];
625
- status: "pending" | "paid" | "waived" | "reversed";
626
- gatewayFeeRate?: number | null | undefined;
627
- rate?: number | null | undefined;
628
- affiliate?: {
629
- recipientId?: string | null | undefined;
630
- recipientType?: "user" | "organization" | "partner" | null | undefined;
631
- rate?: number | null | undefined;
632
- grossAmount?: number | null | undefined;
633
- netAmount?: number | null | undefined;
634
- } | null | undefined;
635
- grossAmount?: number | null | undefined;
636
- gatewayFeeAmount?: number | null | undefined;
637
- netAmount?: number | null | undefined;
638
- }, {
639
- id: string;
640
- }, mongoose$1.ResolveSchemaOptions<{
641
- _id: false;
642
- }>> & Omit<{
643
- splits: string[];
644
- status: "pending" | "paid" | "waived" | "reversed";
645
- gatewayFeeRate?: number | null | undefined;
646
- rate?: number | null | undefined;
647
- affiliate?: {
648
- recipientId?: string | null | undefined;
649
- recipientType?: "user" | "organization" | "partner" | null | undefined;
650
- rate?: number | null | undefined;
651
- grossAmount?: number | null | undefined;
652
- netAmount?: number | null | undefined;
653
- } | null | undefined;
654
- grossAmount?: number | null | undefined;
655
- gatewayFeeAmount?: number | null | undefined;
656
- netAmount?: number | null | undefined;
657
- } & {
658
- _id: mongoose$1.Types.ObjectId;
659
- } & {
660
- __v: number;
661
- }, "id"> & {
662
- id: string;
663
- }, {
664
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
665
- } | {
666
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
667
- splits: string[];
668
- status: "pending" | "paid" | "waived" | "reversed";
669
- gatewayFeeRate?: number | null | undefined;
670
- rate?: number | null | undefined;
671
- affiliate?: {
672
- recipientId?: string | null | undefined;
673
- recipientType?: "user" | "organization" | "partner" | null | undefined;
674
- rate?: number | null | undefined;
675
- grossAmount?: number | null | undefined;
676
- netAmount?: number | null | undefined;
677
- } | null | undefined;
678
- grossAmount?: number | null | undefined;
679
- gatewayFeeAmount?: number | null | undefined;
680
- netAmount?: number | null | undefined;
681
- }, {
682
- id: string;
683
- }, mongoose$1.ResolveSchemaOptions<{
684
- _id: false;
685
- }>> & Omit<{
686
- splits: string[];
687
- status: "pending" | "paid" | "waived" | "reversed";
688
- gatewayFeeRate?: number | null | undefined;
689
- rate?: number | null | undefined;
690
- affiliate?: {
691
- recipientId?: string | null | undefined;
692
- recipientType?: "user" | "organization" | "partner" | null | undefined;
693
- rate?: number | null | undefined;
694
- grossAmount?: number | null | undefined;
695
- netAmount?: number | null | undefined;
696
- } | null | undefined;
697
- grossAmount?: number | null | undefined;
698
- gatewayFeeAmount?: number | null | undefined;
699
- netAmount?: number | null | undefined;
700
- } & {
701
- _id: mongoose$1.Types.ObjectId;
702
- } & {
703
- __v: number;
704
- }, "id"> & {
705
- id: string;
706
- }> | undefined;
707
- }, {
708
- splits: string[];
709
- status: "pending" | "paid" | "waived" | "reversed";
710
- gatewayFeeRate?: number | null | undefined;
711
- rate?: number | null | undefined;
712
- affiliate?: {
713
- recipientId?: string | null | undefined;
714
- recipientType?: "user" | "organization" | "partner" | null | undefined;
715
- rate?: number | null | undefined;
716
- grossAmount?: number | null | undefined;
717
- netAmount?: number | null | undefined;
718
- } | null | undefined;
719
- grossAmount?: number | null | undefined;
720
- gatewayFeeAmount?: number | null | undefined;
721
- netAmount?: number | null | undefined;
722
- } & {
723
- _id: mongoose$1.Types.ObjectId;
724
- } & {
725
- __v: number;
726
- }>;
727
- //#endregion
728
- //#region src/schemas/transaction/tax.schema.d.ts
729
- /**
730
- * Tax Breakdown Schema
731
- * Embed this in Transaction model to track tax
732
- *
733
- * @example
734
- * ```typescript
735
- * import mongoose from 'mongoose';
736
- * import { taxBreakdownSchema } from '@classytic/revenue/schemas';
737
- *
738
- * const transactionSchema = new mongoose.Schema({
739
- * amount: Number,
740
- * tax: taxBreakdownSchema, // Add tax tracking
741
- * // ... other fields
742
- * });
743
- * ```
744
- */
745
- declare const taxBreakdownSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
746
- _id: false;
747
- }, {
748
- rate: number;
749
- isApplicable: boolean;
750
- baseAmount: number;
751
- taxAmount: number;
752
- totalAmount: number;
753
- type?: "paid" | "collected" | "exempt" | null | undefined;
754
- pricesIncludeTax?: boolean | null | undefined;
755
- }, mongoose$1.Document<unknown, {}, {
756
- rate: number;
757
- isApplicable: boolean;
758
- baseAmount: number;
759
- taxAmount: number;
760
- totalAmount: number;
761
- type?: "paid" | "collected" | "exempt" | null | undefined;
762
- pricesIncludeTax?: boolean | null | undefined;
763
- }, {
764
- id: string;
765
- }, mongoose$1.ResolveSchemaOptions<{
766
- _id: false;
767
- }>> & Omit<{
768
- rate: number;
769
- isApplicable: boolean;
770
- baseAmount: number;
771
- taxAmount: number;
772
- totalAmount: number;
773
- type?: "paid" | "collected" | "exempt" | null | undefined;
774
- pricesIncludeTax?: boolean | null | undefined;
775
- } & {
776
- _id: mongoose$1.Types.ObjectId;
777
- } & {
778
- __v: number;
779
- }, "id"> & {
780
- id: string;
781
- }, {
782
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
783
- } | {
784
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
785
- rate: number;
786
- isApplicable: boolean;
787
- baseAmount: number;
788
- taxAmount: number;
789
- totalAmount: number;
790
- type?: "paid" | "collected" | "exempt" | null | undefined;
791
- pricesIncludeTax?: boolean | null | undefined;
792
- }, {
793
- id: string;
794
- }, mongoose$1.ResolveSchemaOptions<{
795
- _id: false;
796
- }>> & Omit<{
797
- rate: number;
798
- isApplicable: boolean;
799
- baseAmount: number;
800
- taxAmount: number;
801
- totalAmount: number;
802
- type?: "paid" | "collected" | "exempt" | null | undefined;
803
- pricesIncludeTax?: boolean | null | undefined;
804
- } & {
805
- _id: mongoose$1.Types.ObjectId;
806
- } & {
807
- __v: number;
808
- }, "id"> & {
809
- id: string;
810
- }> | undefined;
811
- }, {
812
- rate: number;
813
- isApplicable: boolean;
814
- baseAmount: number;
815
- taxAmount: number;
816
- totalAmount: number;
817
- type?: "paid" | "collected" | "exempt" | null | undefined;
818
- pricesIncludeTax?: boolean | null | undefined;
819
- } & {
820
- _id: mongoose$1.Types.ObjectId;
821
- } & {
822
- __v: number;
823
- }>;
824
- /**
825
- * TypeScript type inference
826
- */
827
- type TaxBreakdown = {
828
- isApplicable: boolean;
829
- rate: number;
830
- baseAmount: number;
831
- taxAmount: number;
832
- totalAmount: number;
833
- pricesIncludeTax?: boolean;
834
- type?: 'collected' | 'paid' | 'exempt';
835
- };
836
- //#endregion
837
- //#region src/schemas/subscription/plan.schema.d.ts
838
- /**
839
- * Plan Schema - for defining subscription plans
840
- */
841
- declare const planSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
842
- _id: false;
843
- }, {
844
- amount: number;
845
- currency: string;
846
- metadata: any;
847
- interval: "day" | "week" | "month" | "year";
848
- intervalCount: number;
849
- name: string;
850
- key: PlanKeyValue;
851
- features: string[];
852
- isActive: boolean;
853
- description?: string | null | undefined;
854
- }, mongoose$1.Document<unknown, {}, {
855
- amount: number;
856
- currency: string;
857
- metadata: any;
858
- interval: "day" | "week" | "month" | "year";
859
- intervalCount: number;
860
- name: string;
861
- key: PlanKeyValue;
862
- features: string[];
863
- isActive: boolean;
864
- description?: string | null | undefined;
865
- }, {
866
- id: string;
867
- }, mongoose$1.ResolveSchemaOptions<{
868
- _id: false;
869
- }>> & Omit<{
870
- amount: number;
871
- currency: string;
872
- metadata: any;
873
- interval: "day" | "week" | "month" | "year";
874
- intervalCount: number;
875
- name: string;
876
- key: PlanKeyValue;
877
- features: string[];
878
- isActive: boolean;
879
- description?: string | null | undefined;
880
- } & {
881
- _id: mongoose$1.Types.ObjectId;
882
- } & {
883
- __v: number;
884
- }, "id"> & {
885
- id: string;
886
- }, {
887
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
888
- } | {
889
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
890
- amount: number;
891
- currency: string;
892
- metadata: any;
893
- interval: "day" | "week" | "month" | "year";
894
- intervalCount: number;
895
- name: string;
896
- key: PlanKeyValue;
897
- features: string[];
898
- isActive: boolean;
899
- description?: string | null | undefined;
900
- }, {
901
- id: string;
902
- }, mongoose$1.ResolveSchemaOptions<{
903
- _id: false;
904
- }>> & Omit<{
905
- amount: number;
906
- currency: string;
907
- metadata: any;
908
- interval: "day" | "week" | "month" | "year";
909
- intervalCount: number;
910
- name: string;
911
- key: PlanKeyValue;
912
- features: string[];
913
- isActive: boolean;
914
- description?: string | null | undefined;
915
- } & {
916
- _id: mongoose$1.Types.ObjectId;
917
- } & {
918
- __v: number;
919
- }, "id"> & {
920
- id: string;
921
- }> | undefined;
922
- }, {
923
- amount: number;
924
- currency: string;
925
- metadata: any;
926
- interval: "day" | "week" | "month" | "year";
927
- intervalCount: number;
928
- name: string;
929
- key: PlanKeyValue;
930
- features: string[];
931
- isActive: boolean;
932
- description?: string | null | undefined;
933
- } & {
934
- _id: mongoose$1.Types.ObjectId;
935
- } & {
936
- __v: number;
937
- }>;
938
- //#endregion
939
- //#region src/schemas/subscription/info.schema.d.ts
940
- /**
941
- * Subscription Info Schema
942
- * Use this in your entity models that have subscriptions
943
- *
944
- * @example
945
- * const OrganizationSchema = new Schema({
946
- * name: String,
947
- * subscription: { type: subscriptionInfoSchema },
948
- * });
949
- */
950
- declare const subscriptionInfoSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
951
- _id: false;
952
- }, {
953
- planKey: PlanKeyValue;
954
- status: SubscriptionStatusValue;
955
- isActive: boolean;
956
- renewalCount: number;
957
- lastPaymentDate?: NativeDate | null | undefined;
958
- lastPaymentAmount?: number | null | undefined;
959
- startDate?: NativeDate | null | undefined;
960
- endDate?: NativeDate | null | undefined;
961
- canceledAt?: NativeDate | null | undefined;
962
- cancelAt?: NativeDate | null | undefined;
963
- pausedAt?: NativeDate | null | undefined;
964
- }, mongoose$1.Document<unknown, {}, {
965
- planKey: PlanKeyValue;
966
- status: SubscriptionStatusValue;
967
- isActive: boolean;
968
- renewalCount: number;
969
- lastPaymentDate?: NativeDate | null | undefined;
970
- lastPaymentAmount?: number | null | undefined;
971
- startDate?: NativeDate | null | undefined;
972
- endDate?: NativeDate | null | undefined;
973
- canceledAt?: NativeDate | null | undefined;
974
- cancelAt?: NativeDate | null | undefined;
975
- pausedAt?: NativeDate | null | undefined;
976
- }, {
977
- id: string;
978
- }, mongoose$1.ResolveSchemaOptions<{
979
- _id: false;
980
- }>> & Omit<{
981
- planKey: PlanKeyValue;
982
- status: SubscriptionStatusValue;
983
- isActive: boolean;
984
- renewalCount: number;
985
- lastPaymentDate?: NativeDate | null | undefined;
986
- lastPaymentAmount?: number | null | undefined;
987
- startDate?: NativeDate | null | undefined;
988
- endDate?: NativeDate | null | undefined;
989
- canceledAt?: NativeDate | null | undefined;
990
- cancelAt?: NativeDate | null | undefined;
991
- pausedAt?: NativeDate | null | undefined;
992
- } & {
993
- _id: mongoose$1.Types.ObjectId;
994
- } & {
995
- __v: number;
996
- }, "id"> & {
997
- id: string;
998
- }, {
999
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1000
- } | {
1001
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1002
- planKey: PlanKeyValue;
1003
- status: SubscriptionStatusValue;
1004
- isActive: boolean;
1005
- renewalCount: number;
1006
- lastPaymentDate?: NativeDate | null | undefined;
1007
- lastPaymentAmount?: number | null | undefined;
1008
- startDate?: NativeDate | null | undefined;
1009
- endDate?: NativeDate | null | undefined;
1010
- canceledAt?: NativeDate | null | undefined;
1011
- cancelAt?: NativeDate | null | undefined;
1012
- pausedAt?: NativeDate | null | undefined;
1013
- }, {
1014
- id: string;
1015
- }, mongoose$1.ResolveSchemaOptions<{
1016
- _id: false;
1017
- }>> & Omit<{
1018
- planKey: PlanKeyValue;
1019
- status: SubscriptionStatusValue;
1020
- isActive: boolean;
1021
- renewalCount: number;
1022
- lastPaymentDate?: NativeDate | null | undefined;
1023
- lastPaymentAmount?: number | null | undefined;
1024
- startDate?: NativeDate | null | undefined;
1025
- endDate?: NativeDate | null | undefined;
1026
- canceledAt?: NativeDate | null | undefined;
1027
- cancelAt?: NativeDate | null | undefined;
1028
- pausedAt?: NativeDate | null | undefined;
1029
- } & {
1030
- _id: mongoose$1.Types.ObjectId;
1031
- } & {
1032
- __v: number;
1033
- }, "id"> & {
1034
- id: string;
1035
- }> | undefined;
1036
- }, {
1037
- planKey: PlanKeyValue;
1038
- status: SubscriptionStatusValue;
1039
- isActive: boolean;
1040
- renewalCount: number;
1041
- lastPaymentDate?: NativeDate | null | undefined;
1042
- lastPaymentAmount?: number | null | undefined;
1043
- startDate?: NativeDate | null | undefined;
1044
- endDate?: NativeDate | null | undefined;
1045
- canceledAt?: NativeDate | null | undefined;
1046
- cancelAt?: NativeDate | null | undefined;
1047
- pausedAt?: NativeDate | null | undefined;
1048
- } & {
1049
- _id: mongoose$1.Types.ObjectId;
1050
- } & {
1051
- __v: number;
1052
- }>;
1053
- //#endregion
1054
- //#region src/schemas/escrow/hold.schema.d.ts
1055
- /**
1056
- * Hold/Escrow Schema
1057
- * @classytic/revenue
1058
- *
1059
- * Schema for platform-as-intermediary escrow flow
1060
- * Spread into transaction schema when needed
1061
- */
1062
- declare const holdSchema: {
1063
- readonly status: {
1064
- readonly type: StringConstructor;
1065
- readonly enum: HoldStatusValue[];
1066
- readonly default: "pending";
1067
- };
1068
- readonly heldAmount: {
1069
- readonly type: NumberConstructor;
1070
- readonly required: false;
1071
- };
1072
- readonly releasedAmount: {
1073
- readonly type: NumberConstructor;
1074
- readonly default: 0;
1075
- };
1076
- readonly reason: {
1077
- readonly type: StringConstructor;
1078
- readonly enum: HoldReasonValue[];
1079
- readonly required: false;
1080
- };
1081
- readonly holdUntil: {
1082
- readonly type: DateConstructor;
1083
- readonly required: false;
1084
- };
1085
- readonly heldAt: DateConstructor;
1086
- readonly releasedAt: DateConstructor;
1087
- readonly cancelledAt: DateConstructor;
1088
- readonly releases: readonly [{
1089
- readonly amount: NumberConstructor;
1090
- readonly recipientId: StringConstructor;
1091
- readonly recipientType: StringConstructor;
1092
- readonly releasedAt: DateConstructor;
1093
- readonly releasedBy: StringConstructor;
1094
- readonly reason: StringConstructor;
1095
- readonly metadata: ObjectConstructor;
1096
- }];
1097
- readonly metadata: {
1098
- readonly type: ObjectConstructor;
1099
- readonly default: {};
1100
- };
1101
- };
1102
- //#endregion
1103
- //#region src/schemas/split/split.schema.d.ts
1104
- /**
1105
- * Split Schema - Embedded in Transaction
1106
- */
1107
- declare const splitSchema: Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1108
- _id: false;
1109
- }, {
1110
- type: SplitTypeValue;
1111
- metadata: any;
1112
- recipientId: string;
1113
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1114
- gatewayFeeRate: number;
1115
- rate: number;
1116
- status: SplitStatusValue;
1117
- grossAmount: number;
1118
- gatewayFeeAmount: number;
1119
- netAmount: number;
1120
- dueDate?: NativeDate | null | undefined;
1121
- paidDate?: NativeDate | null | undefined;
1122
- payoutMethod?: PayoutMethodValue | null | undefined;
1123
- payoutTransactionId?: string | null | undefined;
1124
- }, mongoose$1.Document<unknown, {}, {
1125
- type: SplitTypeValue;
1126
- metadata: any;
1127
- recipientId: string;
1128
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1129
- gatewayFeeRate: number;
1130
- rate: number;
1131
- status: SplitStatusValue;
1132
- grossAmount: number;
1133
- gatewayFeeAmount: number;
1134
- netAmount: number;
1135
- dueDate?: NativeDate | null | undefined;
1136
- paidDate?: NativeDate | null | undefined;
1137
- payoutMethod?: PayoutMethodValue | null | undefined;
1138
- payoutTransactionId?: string | null | undefined;
1139
- }, {
1140
- id: string;
1141
- }, mongoose$1.ResolveSchemaOptions<{
1142
- _id: false;
1143
- }>> & Omit<{
1144
- type: SplitTypeValue;
1145
- metadata: any;
1146
- recipientId: string;
1147
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1148
- gatewayFeeRate: number;
1149
- rate: number;
1150
- status: SplitStatusValue;
1151
- grossAmount: number;
1152
- gatewayFeeAmount: number;
1153
- netAmount: number;
1154
- dueDate?: NativeDate | null | undefined;
1155
- paidDate?: NativeDate | null | undefined;
1156
- payoutMethod?: PayoutMethodValue | null | undefined;
1157
- payoutTransactionId?: string | null | undefined;
1158
- } & {
1159
- _id: mongoose$1.Types.ObjectId;
1160
- } & {
1161
- __v: number;
1162
- }, "id"> & {
1163
- id: string;
1164
- }, {
1165
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1166
- } | {
1167
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1168
- type: SplitTypeValue;
1169
- metadata: any;
1170
- recipientId: string;
1171
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1172
- gatewayFeeRate: number;
1173
- rate: number;
1174
- status: SplitStatusValue;
1175
- grossAmount: number;
1176
- gatewayFeeAmount: number;
1177
- netAmount: number;
1178
- dueDate?: NativeDate | null | undefined;
1179
- paidDate?: NativeDate | null | undefined;
1180
- payoutMethod?: PayoutMethodValue | null | undefined;
1181
- payoutTransactionId?: string | null | undefined;
1182
- }, {
1183
- id: string;
1184
- }, mongoose$1.ResolveSchemaOptions<{
1185
- _id: false;
1186
- }>> & Omit<{
1187
- type: SplitTypeValue;
1188
- metadata: any;
1189
- recipientId: string;
1190
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1191
- gatewayFeeRate: number;
1192
- rate: number;
1193
- status: SplitStatusValue;
1194
- grossAmount: number;
1195
- gatewayFeeAmount: number;
1196
- netAmount: number;
1197
- dueDate?: NativeDate | null | undefined;
1198
- paidDate?: NativeDate | null | undefined;
1199
- payoutMethod?: PayoutMethodValue | null | undefined;
1200
- payoutTransactionId?: string | null | undefined;
1201
- } & {
1202
- _id: mongoose$1.Types.ObjectId;
1203
- } & {
1204
- __v: number;
1205
- }, "id"> & {
1206
- id: string;
1207
- }> | undefined;
1208
- }, {
1209
- type: SplitTypeValue;
1210
- metadata: any;
1211
- recipientId: string;
1212
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1213
- gatewayFeeRate: number;
1214
- rate: number;
1215
- status: SplitStatusValue;
1216
- grossAmount: number;
1217
- gatewayFeeAmount: number;
1218
- netAmount: number;
1219
- dueDate?: NativeDate | null | undefined;
1220
- paidDate?: NativeDate | null | undefined;
1221
- payoutMethod?: PayoutMethodValue | null | undefined;
1222
- payoutTransactionId?: string | null | undefined;
1223
- } & {
1224
- _id: mongoose$1.Types.ObjectId;
1225
- } & {
1226
- __v: number;
1227
- }>;
1228
- //#endregion
1229
- //#region src/schemas/index.d.ts
1230
- declare const _default: {
1231
- settlementSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1232
- timestamps: true;
1233
- }, {
1234
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1235
- amount: number;
1236
- currency: string;
1237
- metadata: any;
1238
- organizationId: mongoose$1.Types.ObjectId;
1239
- recipientId: mongoose$1.Types.ObjectId;
1240
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1241
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1242
- payoutMethod: PayoutMethodValue;
1243
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1244
- sourceSplitIds: string[];
1245
- retryCount: number;
1246
- notes?: string | null | undefined;
1247
- bankTransferDetails?: {
1248
- bankName?: string | null | undefined;
1249
- accountNumber?: string | null | undefined;
1250
- accountName?: string | null | undefined;
1251
- routingNumber?: string | null | undefined;
1252
- swiftCode?: string | null | undefined;
1253
- iban?: string | null | undefined;
1254
- transferReference?: string | null | undefined;
1255
- transferredAt?: NativeDate | null | undefined;
1256
- } | null | undefined;
1257
- mobileWalletDetails?: {
1258
- provider?: string | null | undefined;
1259
- transactionId?: string | null | undefined;
1260
- accountNumber?: string | null | undefined;
1261
- transferredAt?: NativeDate | null | undefined;
1262
- phoneNumber?: string | null | undefined;
1263
- } | null | undefined;
1264
- cryptoDetails?: {
1265
- transferredAt?: NativeDate | null | undefined;
1266
- network?: string | null | undefined;
1267
- walletAddress?: string | null | undefined;
1268
- transactionHash?: string | null | undefined;
1269
- } | null | undefined;
1270
- platformBalanceDetails?: {
1271
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1272
- appliedAt?: NativeDate | null | undefined;
1273
- } | null | undefined;
1274
- scheduledAt?: NativeDate | null | undefined;
1275
- processedAt?: NativeDate | null | undefined;
1276
- completedAt?: NativeDate | null | undefined;
1277
- failedAt?: NativeDate | null | undefined;
1278
- cancelledAt?: NativeDate | null | undefined;
1279
- failureReason?: string | null | undefined;
1280
- failureCode?: string | null | undefined;
1281
- } & mongoose$1.DefaultTimestampProps, mongoose$1.Document<unknown, {}, {
1282
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1283
- amount: number;
1284
- currency: string;
1285
- metadata: any;
1286
- organizationId: mongoose$1.Types.ObjectId;
1287
- recipientId: mongoose$1.Types.ObjectId;
1288
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1289
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1290
- payoutMethod: PayoutMethodValue;
1291
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1292
- sourceSplitIds: string[];
1293
- retryCount: number;
1294
- notes?: string | null | undefined;
1295
- bankTransferDetails?: {
1296
- bankName?: string | null | undefined;
1297
- accountNumber?: string | null | undefined;
1298
- accountName?: string | null | undefined;
1299
- routingNumber?: string | null | undefined;
1300
- swiftCode?: string | null | undefined;
1301
- iban?: string | null | undefined;
1302
- transferReference?: string | null | undefined;
1303
- transferredAt?: NativeDate | null | undefined;
1304
- } | null | undefined;
1305
- mobileWalletDetails?: {
1306
- provider?: string | null | undefined;
1307
- transactionId?: string | null | undefined;
1308
- accountNumber?: string | null | undefined;
1309
- transferredAt?: NativeDate | null | undefined;
1310
- phoneNumber?: string | null | undefined;
1311
- } | null | undefined;
1312
- cryptoDetails?: {
1313
- transferredAt?: NativeDate | null | undefined;
1314
- network?: string | null | undefined;
1315
- walletAddress?: string | null | undefined;
1316
- transactionHash?: string | null | undefined;
1317
- } | null | undefined;
1318
- platformBalanceDetails?: {
1319
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1320
- appliedAt?: NativeDate | null | undefined;
1321
- } | null | undefined;
1322
- scheduledAt?: NativeDate | null | undefined;
1323
- processedAt?: NativeDate | null | undefined;
1324
- completedAt?: NativeDate | null | undefined;
1325
- failedAt?: NativeDate | null | undefined;
1326
- cancelledAt?: NativeDate | null | undefined;
1327
- failureReason?: string | null | undefined;
1328
- failureCode?: string | null | undefined;
1329
- } & mongoose$1.DefaultTimestampProps, {
1330
- id: string;
1331
- }, mongoose$1.ResolveSchemaOptions<{
1332
- timestamps: true;
1333
- }>> & Omit<{
1334
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1335
- amount: number;
1336
- currency: string;
1337
- metadata: any;
1338
- organizationId: mongoose$1.Types.ObjectId;
1339
- recipientId: mongoose$1.Types.ObjectId;
1340
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1341
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1342
- payoutMethod: PayoutMethodValue;
1343
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1344
- sourceSplitIds: string[];
1345
- retryCount: number;
1346
- notes?: string | null | undefined;
1347
- bankTransferDetails?: {
1348
- bankName?: string | null | undefined;
1349
- accountNumber?: string | null | undefined;
1350
- accountName?: string | null | undefined;
1351
- routingNumber?: string | null | undefined;
1352
- swiftCode?: string | null | undefined;
1353
- iban?: string | null | undefined;
1354
- transferReference?: string | null | undefined;
1355
- transferredAt?: NativeDate | null | undefined;
1356
- } | null | undefined;
1357
- mobileWalletDetails?: {
1358
- provider?: string | null | undefined;
1359
- transactionId?: string | null | undefined;
1360
- accountNumber?: string | null | undefined;
1361
- transferredAt?: NativeDate | null | undefined;
1362
- phoneNumber?: string | null | undefined;
1363
- } | null | undefined;
1364
- cryptoDetails?: {
1365
- transferredAt?: NativeDate | null | undefined;
1366
- network?: string | null | undefined;
1367
- walletAddress?: string | null | undefined;
1368
- transactionHash?: string | null | undefined;
1369
- } | null | undefined;
1370
- platformBalanceDetails?: {
1371
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1372
- appliedAt?: NativeDate | null | undefined;
1373
- } | null | undefined;
1374
- scheduledAt?: NativeDate | null | undefined;
1375
- processedAt?: NativeDate | null | undefined;
1376
- completedAt?: NativeDate | null | undefined;
1377
- failedAt?: NativeDate | null | undefined;
1378
- cancelledAt?: NativeDate | null | undefined;
1379
- failureReason?: string | null | undefined;
1380
- failureCode?: string | null | undefined;
1381
- } & mongoose$1.DefaultTimestampProps & {
1382
- _id: mongoose$1.Types.ObjectId;
1383
- } & {
1384
- __v: number;
1385
- }, "id"> & {
1386
- id: string;
1387
- }, {
1388
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1389
- } | {
1390
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1391
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1392
- amount: number;
1393
- currency: string;
1394
- metadata: any;
1395
- organizationId: mongoose$1.Types.ObjectId;
1396
- recipientId: mongoose$1.Types.ObjectId;
1397
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1398
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1399
- payoutMethod: PayoutMethodValue;
1400
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1401
- sourceSplitIds: string[];
1402
- retryCount: number;
1403
- notes?: string | null | undefined;
1404
- bankTransferDetails?: {
1405
- bankName?: string | null | undefined;
1406
- accountNumber?: string | null | undefined;
1407
- accountName?: string | null | undefined;
1408
- routingNumber?: string | null | undefined;
1409
- swiftCode?: string | null | undefined;
1410
- iban?: string | null | undefined;
1411
- transferReference?: string | null | undefined;
1412
- transferredAt?: NativeDate | null | undefined;
1413
- } | null | undefined;
1414
- mobileWalletDetails?: {
1415
- provider?: string | null | undefined;
1416
- transactionId?: string | null | undefined;
1417
- accountNumber?: string | null | undefined;
1418
- transferredAt?: NativeDate | null | undefined;
1419
- phoneNumber?: string | null | undefined;
1420
- } | null | undefined;
1421
- cryptoDetails?: {
1422
- transferredAt?: NativeDate | null | undefined;
1423
- network?: string | null | undefined;
1424
- walletAddress?: string | null | undefined;
1425
- transactionHash?: string | null | undefined;
1426
- } | null | undefined;
1427
- platformBalanceDetails?: {
1428
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1429
- appliedAt?: NativeDate | null | undefined;
1430
- } | null | undefined;
1431
- scheduledAt?: NativeDate | null | undefined;
1432
- processedAt?: NativeDate | null | undefined;
1433
- completedAt?: NativeDate | null | undefined;
1434
- failedAt?: NativeDate | null | undefined;
1435
- cancelledAt?: NativeDate | null | undefined;
1436
- failureReason?: string | null | undefined;
1437
- failureCode?: string | null | undefined;
1438
- } & mongoose$1.DefaultTimestampProps, {
1439
- id: string;
1440
- }, mongoose$1.ResolveSchemaOptions<{
1441
- timestamps: true;
1442
- }>> & Omit<{
1443
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1444
- amount: number;
1445
- currency: string;
1446
- metadata: any;
1447
- organizationId: mongoose$1.Types.ObjectId;
1448
- recipientId: mongoose$1.Types.ObjectId;
1449
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1450
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1451
- payoutMethod: PayoutMethodValue;
1452
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1453
- sourceSplitIds: string[];
1454
- retryCount: number;
1455
- notes?: string | null | undefined;
1456
- bankTransferDetails?: {
1457
- bankName?: string | null | undefined;
1458
- accountNumber?: string | null | undefined;
1459
- accountName?: string | null | undefined;
1460
- routingNumber?: string | null | undefined;
1461
- swiftCode?: string | null | undefined;
1462
- iban?: string | null | undefined;
1463
- transferReference?: string | null | undefined;
1464
- transferredAt?: NativeDate | null | undefined;
1465
- } | null | undefined;
1466
- mobileWalletDetails?: {
1467
- provider?: string | null | undefined;
1468
- transactionId?: string | null | undefined;
1469
- accountNumber?: string | null | undefined;
1470
- transferredAt?: NativeDate | null | undefined;
1471
- phoneNumber?: string | null | undefined;
1472
- } | null | undefined;
1473
- cryptoDetails?: {
1474
- transferredAt?: NativeDate | null | undefined;
1475
- network?: string | null | undefined;
1476
- walletAddress?: string | null | undefined;
1477
- transactionHash?: string | null | undefined;
1478
- } | null | undefined;
1479
- platformBalanceDetails?: {
1480
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1481
- appliedAt?: NativeDate | null | undefined;
1482
- } | null | undefined;
1483
- scheduledAt?: NativeDate | null | undefined;
1484
- processedAt?: NativeDate | null | undefined;
1485
- completedAt?: NativeDate | null | undefined;
1486
- failedAt?: NativeDate | null | undefined;
1487
- cancelledAt?: NativeDate | null | undefined;
1488
- failureReason?: string | null | undefined;
1489
- failureCode?: string | null | undefined;
1490
- } & mongoose$1.DefaultTimestampProps & {
1491
- _id: mongoose$1.Types.ObjectId;
1492
- } & {
1493
- __v: number;
1494
- }, "id"> & {
1495
- id: string;
1496
- }> | undefined;
1497
- }, {
1498
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1499
- amount: number;
1500
- currency: string;
1501
- metadata: any;
1502
- organizationId: mongoose$1.Types.ObjectId;
1503
- recipientId: mongoose$1.Types.ObjectId;
1504
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1505
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1506
- payoutMethod: PayoutMethodValue;
1507
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1508
- sourceSplitIds: string[];
1509
- retryCount: number;
1510
- notes?: string | null | undefined;
1511
- bankTransferDetails?: {
1512
- bankName?: string | null | undefined;
1513
- accountNumber?: string | null | undefined;
1514
- accountName?: string | null | undefined;
1515
- routingNumber?: string | null | undefined;
1516
- swiftCode?: string | null | undefined;
1517
- iban?: string | null | undefined;
1518
- transferReference?: string | null | undefined;
1519
- transferredAt?: NativeDate | null | undefined;
1520
- } | null | undefined;
1521
- mobileWalletDetails?: {
1522
- provider?: string | null | undefined;
1523
- transactionId?: string | null | undefined;
1524
- accountNumber?: string | null | undefined;
1525
- transferredAt?: NativeDate | null | undefined;
1526
- phoneNumber?: string | null | undefined;
1527
- } | null | undefined;
1528
- cryptoDetails?: {
1529
- transferredAt?: NativeDate | null | undefined;
1530
- network?: string | null | undefined;
1531
- walletAddress?: string | null | undefined;
1532
- transactionHash?: string | null | undefined;
1533
- } | null | undefined;
1534
- platformBalanceDetails?: {
1535
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1536
- appliedAt?: NativeDate | null | undefined;
1537
- } | null | undefined;
1538
- scheduledAt?: NativeDate | null | undefined;
1539
- processedAt?: NativeDate | null | undefined;
1540
- completedAt?: NativeDate | null | undefined;
1541
- failedAt?: NativeDate | null | undefined;
1542
- cancelledAt?: NativeDate | null | undefined;
1543
- failureReason?: string | null | undefined;
1544
- failureCode?: string | null | undefined;
1545
- createdAt: NativeDate;
1546
- updatedAt: NativeDate;
1547
- } & {
1548
- _id: mongoose$1.Types.ObjectId;
1549
- } & {
1550
- __v: number;
1551
- }>;
1552
- splitSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1553
- _id: false;
1554
- }, {
1555
- type: SplitTypeValue;
1556
- metadata: any;
1557
- recipientId: string;
1558
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1559
- gatewayFeeRate: number;
1560
- rate: number;
1561
- status: SplitStatusValue;
1562
- grossAmount: number;
1563
- gatewayFeeAmount: number;
1564
- netAmount: number;
1565
- dueDate?: NativeDate | null | undefined;
1566
- paidDate?: NativeDate | null | undefined;
1567
- payoutMethod?: PayoutMethodValue | null | undefined;
1568
- payoutTransactionId?: string | null | undefined;
1569
- }, mongoose$1.Document<unknown, {}, {
1570
- type: SplitTypeValue;
1571
- metadata: any;
1572
- recipientId: string;
1573
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1574
- gatewayFeeRate: number;
1575
- rate: number;
1576
- status: SplitStatusValue;
1577
- grossAmount: number;
1578
- gatewayFeeAmount: number;
1579
- netAmount: number;
1580
- dueDate?: NativeDate | null | undefined;
1581
- paidDate?: NativeDate | null | undefined;
1582
- payoutMethod?: PayoutMethodValue | null | undefined;
1583
- payoutTransactionId?: string | null | undefined;
1584
- }, {
1585
- id: string;
1586
- }, mongoose$1.ResolveSchemaOptions<{
1587
- _id: false;
1588
- }>> & Omit<{
1589
- type: SplitTypeValue;
1590
- metadata: any;
1591
- recipientId: string;
1592
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1593
- gatewayFeeRate: number;
1594
- rate: number;
1595
- status: SplitStatusValue;
1596
- grossAmount: number;
1597
- gatewayFeeAmount: number;
1598
- netAmount: number;
1599
- dueDate?: NativeDate | null | undefined;
1600
- paidDate?: NativeDate | null | undefined;
1601
- payoutMethod?: PayoutMethodValue | null | undefined;
1602
- payoutTransactionId?: string | null | undefined;
1603
- } & {
1604
- _id: mongoose$1.Types.ObjectId;
1605
- } & {
1606
- __v: number;
1607
- }, "id"> & {
1608
- id: string;
1609
- }, {
1610
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1611
- } | {
1612
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1613
- type: SplitTypeValue;
1614
- metadata: any;
1615
- recipientId: string;
1616
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1617
- gatewayFeeRate: number;
1618
- rate: number;
1619
- status: SplitStatusValue;
1620
- grossAmount: number;
1621
- gatewayFeeAmount: number;
1622
- netAmount: number;
1623
- dueDate?: NativeDate | null | undefined;
1624
- paidDate?: NativeDate | null | undefined;
1625
- payoutMethod?: PayoutMethodValue | null | undefined;
1626
- payoutTransactionId?: string | null | undefined;
1627
- }, {
1628
- id: string;
1629
- }, mongoose$1.ResolveSchemaOptions<{
1630
- _id: false;
1631
- }>> & Omit<{
1632
- type: SplitTypeValue;
1633
- metadata: any;
1634
- recipientId: string;
1635
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1636
- gatewayFeeRate: number;
1637
- rate: number;
1638
- status: SplitStatusValue;
1639
- grossAmount: number;
1640
- gatewayFeeAmount: number;
1641
- netAmount: number;
1642
- dueDate?: NativeDate | null | undefined;
1643
- paidDate?: NativeDate | null | undefined;
1644
- payoutMethod?: PayoutMethodValue | null | undefined;
1645
- payoutTransactionId?: string | null | undefined;
1646
- } & {
1647
- _id: mongoose$1.Types.ObjectId;
1648
- } & {
1649
- __v: number;
1650
- }, "id"> & {
1651
- id: string;
1652
- }> | undefined;
1653
- }, {
1654
- type: SplitTypeValue;
1655
- metadata: any;
1656
- recipientId: string;
1657
- recipientType: "user" | "affiliate" | "organization" | "partner" | "platform";
1658
- gatewayFeeRate: number;
1659
- rate: number;
1660
- status: SplitStatusValue;
1661
- grossAmount: number;
1662
- gatewayFeeAmount: number;
1663
- netAmount: number;
1664
- dueDate?: NativeDate | null | undefined;
1665
- paidDate?: NativeDate | null | undefined;
1666
- payoutMethod?: PayoutMethodValue | null | undefined;
1667
- payoutTransactionId?: string | null | undefined;
1668
- } & {
1669
- _id: mongoose$1.Types.ObjectId;
1670
- } & {
1671
- __v: number;
1672
- }>;
1673
- holdSchema: {
1674
- readonly status: {
1675
- readonly type: StringConstructor;
1676
- readonly enum: HoldStatusValue[];
1677
- readonly default: "pending";
1678
- };
1679
- readonly heldAmount: {
1680
- readonly type: NumberConstructor;
1681
- readonly required: false;
1682
- };
1683
- readonly releasedAmount: {
1684
- readonly type: NumberConstructor;
1685
- readonly default: 0;
1686
- };
1687
- readonly reason: {
1688
- readonly type: StringConstructor;
1689
- readonly enum: HoldReasonValue[];
1690
- readonly required: false;
1691
- };
1692
- readonly holdUntil: {
1693
- readonly type: DateConstructor;
1694
- readonly required: false;
1695
- };
1696
- readonly heldAt: DateConstructor;
1697
- readonly releasedAt: DateConstructor;
1698
- readonly cancelledAt: DateConstructor;
1699
- readonly releases: readonly [{
1700
- readonly amount: NumberConstructor;
1701
- readonly recipientId: StringConstructor;
1702
- readonly recipientType: StringConstructor;
1703
- readonly releasedAt: DateConstructor;
1704
- readonly releasedBy: StringConstructor;
1705
- readonly reason: StringConstructor;
1706
- readonly metadata: ObjectConstructor;
1707
- }];
1708
- readonly metadata: {
1709
- readonly type: ObjectConstructor;
1710
- readonly default: {};
1711
- };
1712
- };
1713
- planSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1714
- _id: false;
1715
- }, {
1716
- amount: number;
1717
- currency: string;
1718
- metadata: any;
1719
- interval: "day" | "week" | "month" | "year";
1720
- intervalCount: number;
1721
- name: string;
1722
- key: PlanKeyValue;
1723
- features: string[];
1724
- isActive: boolean;
1725
- description?: string | null | undefined;
1726
- }, mongoose$1.Document<unknown, {}, {
1727
- amount: number;
1728
- currency: string;
1729
- metadata: any;
1730
- interval: "day" | "week" | "month" | "year";
1731
- intervalCount: number;
1732
- name: string;
1733
- key: PlanKeyValue;
1734
- features: string[];
1735
- isActive: boolean;
1736
- description?: string | null | undefined;
1737
- }, {
1738
- id: string;
1739
- }, mongoose$1.ResolveSchemaOptions<{
1740
- _id: false;
1741
- }>> & Omit<{
1742
- amount: number;
1743
- currency: string;
1744
- metadata: any;
1745
- interval: "day" | "week" | "month" | "year";
1746
- intervalCount: number;
1747
- name: string;
1748
- key: PlanKeyValue;
1749
- features: string[];
1750
- isActive: boolean;
1751
- description?: string | null | undefined;
1752
- } & {
1753
- _id: mongoose$1.Types.ObjectId;
1754
- } & {
1755
- __v: number;
1756
- }, "id"> & {
1757
- id: string;
1758
- }, {
1759
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1760
- } | {
1761
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1762
- amount: number;
1763
- currency: string;
1764
- metadata: any;
1765
- interval: "day" | "week" | "month" | "year";
1766
- intervalCount: number;
1767
- name: string;
1768
- key: PlanKeyValue;
1769
- features: string[];
1770
- isActive: boolean;
1771
- description?: string | null | undefined;
1772
- }, {
1773
- id: string;
1774
- }, mongoose$1.ResolveSchemaOptions<{
1775
- _id: false;
1776
- }>> & Omit<{
1777
- amount: number;
1778
- currency: string;
1779
- metadata: any;
1780
- interval: "day" | "week" | "month" | "year";
1781
- intervalCount: number;
1782
- name: string;
1783
- key: PlanKeyValue;
1784
- features: string[];
1785
- isActive: boolean;
1786
- description?: string | null | undefined;
1787
- } & {
1788
- _id: mongoose$1.Types.ObjectId;
1789
- } & {
1790
- __v: number;
1791
- }, "id"> & {
1792
- id: string;
1793
- }> | undefined;
1794
- }, {
1795
- amount: number;
1796
- currency: string;
1797
- metadata: any;
1798
- interval: "day" | "week" | "month" | "year";
1799
- intervalCount: number;
1800
- name: string;
1801
- key: PlanKeyValue;
1802
- features: string[];
1803
- isActive: boolean;
1804
- description?: string | null | undefined;
1805
- } & {
1806
- _id: mongoose$1.Types.ObjectId;
1807
- } & {
1808
- __v: number;
1809
- }>;
1810
- subscriptionInfoSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1811
- _id: false;
1812
- }, {
1813
- planKey: PlanKeyValue;
1814
- status: SubscriptionStatusValue;
1815
- isActive: boolean;
1816
- renewalCount: number;
1817
- lastPaymentDate?: NativeDate | null | undefined;
1818
- lastPaymentAmount?: number | null | undefined;
1819
- startDate?: NativeDate | null | undefined;
1820
- endDate?: NativeDate | null | undefined;
1821
- canceledAt?: NativeDate | null | undefined;
1822
- cancelAt?: NativeDate | null | undefined;
1823
- pausedAt?: NativeDate | null | undefined;
1824
- }, mongoose$1.Document<unknown, {}, {
1825
- planKey: PlanKeyValue;
1826
- status: SubscriptionStatusValue;
1827
- isActive: boolean;
1828
- renewalCount: number;
1829
- lastPaymentDate?: NativeDate | null | undefined;
1830
- lastPaymentAmount?: number | null | undefined;
1831
- startDate?: NativeDate | null | undefined;
1832
- endDate?: NativeDate | null | undefined;
1833
- canceledAt?: NativeDate | null | undefined;
1834
- cancelAt?: NativeDate | null | undefined;
1835
- pausedAt?: NativeDate | null | undefined;
1836
- }, {
1837
- id: string;
1838
- }, mongoose$1.ResolveSchemaOptions<{
1839
- _id: false;
1840
- }>> & Omit<{
1841
- planKey: PlanKeyValue;
1842
- status: SubscriptionStatusValue;
1843
- isActive: boolean;
1844
- renewalCount: number;
1845
- lastPaymentDate?: NativeDate | null | undefined;
1846
- lastPaymentAmount?: number | null | undefined;
1847
- startDate?: NativeDate | null | undefined;
1848
- endDate?: NativeDate | null | undefined;
1849
- canceledAt?: NativeDate | null | undefined;
1850
- cancelAt?: NativeDate | null | undefined;
1851
- pausedAt?: NativeDate | null | undefined;
1852
- } & {
1853
- _id: mongoose$1.Types.ObjectId;
1854
- } & {
1855
- __v: number;
1856
- }, "id"> & {
1857
- id: string;
1858
- }, {
1859
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1860
- } | {
1861
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1862
- planKey: PlanKeyValue;
1863
- status: SubscriptionStatusValue;
1864
- isActive: boolean;
1865
- renewalCount: number;
1866
- lastPaymentDate?: NativeDate | null | undefined;
1867
- lastPaymentAmount?: number | null | undefined;
1868
- startDate?: NativeDate | null | undefined;
1869
- endDate?: NativeDate | null | undefined;
1870
- canceledAt?: NativeDate | null | undefined;
1871
- cancelAt?: NativeDate | null | undefined;
1872
- pausedAt?: NativeDate | null | undefined;
1873
- }, {
1874
- id: string;
1875
- }, mongoose$1.ResolveSchemaOptions<{
1876
- _id: false;
1877
- }>> & Omit<{
1878
- planKey: PlanKeyValue;
1879
- status: SubscriptionStatusValue;
1880
- isActive: boolean;
1881
- renewalCount: number;
1882
- lastPaymentDate?: NativeDate | null | undefined;
1883
- lastPaymentAmount?: number | null | undefined;
1884
- startDate?: NativeDate | null | undefined;
1885
- endDate?: NativeDate | null | undefined;
1886
- canceledAt?: NativeDate | null | undefined;
1887
- cancelAt?: NativeDate | null | undefined;
1888
- pausedAt?: NativeDate | null | undefined;
1889
- } & {
1890
- _id: mongoose$1.Types.ObjectId;
1891
- } & {
1892
- __v: number;
1893
- }, "id"> & {
1894
- id: string;
1895
- }> | undefined;
1896
- }, {
1897
- planKey: PlanKeyValue;
1898
- status: SubscriptionStatusValue;
1899
- isActive: boolean;
1900
- renewalCount: number;
1901
- lastPaymentDate?: NativeDate | null | undefined;
1902
- lastPaymentAmount?: number | null | undefined;
1903
- startDate?: NativeDate | null | undefined;
1904
- endDate?: NativeDate | null | undefined;
1905
- canceledAt?: NativeDate | null | undefined;
1906
- cancelAt?: NativeDate | null | undefined;
1907
- pausedAt?: NativeDate | null | undefined;
1908
- } & {
1909
- _id: mongoose$1.Types.ObjectId;
1910
- } & {
1911
- __v: number;
1912
- }>;
1913
- paymentEntrySchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1914
- _id: false;
1915
- }, {
1916
- amount: number;
1917
- method: string;
1918
- reference?: string | null | undefined;
1919
- details?: any;
1920
- }, mongoose$1.Document<unknown, {}, {
1921
- amount: number;
1922
- method: string;
1923
- reference?: string | null | undefined;
1924
- details?: any;
1925
- }, {
1926
- id: string;
1927
- }, mongoose$1.ResolveSchemaOptions<{
1928
- _id: false;
1929
- }>> & Omit<{
1930
- amount: number;
1931
- method: string;
1932
- reference?: string | null | undefined;
1933
- details?: any;
1934
- } & {
1935
- _id: mongoose$1.Types.ObjectId;
1936
- } & {
1937
- __v: number;
1938
- }, "id"> & {
1939
- id: string;
1940
- }, {
1941
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
1942
- } | {
1943
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
1944
- amount: number;
1945
- method: string;
1946
- reference?: string | null | undefined;
1947
- details?: any;
1948
- }, {
1949
- id: string;
1950
- }, mongoose$1.ResolveSchemaOptions<{
1951
- _id: false;
1952
- }>> & Omit<{
1953
- amount: number;
1954
- method: string;
1955
- reference?: string | null | undefined;
1956
- details?: any;
1957
- } & {
1958
- _id: mongoose$1.Types.ObjectId;
1959
- } & {
1960
- __v: number;
1961
- }, "id"> & {
1962
- id: string;
1963
- }> | undefined;
1964
- }, {
1965
- amount: number;
1966
- method: string;
1967
- reference?: string | null | undefined;
1968
- details?: any;
1969
- } & {
1970
- _id: mongoose$1.Types.ObjectId;
1971
- } & {
1972
- __v: number;
1973
- }>;
1974
- currentPaymentSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
1975
- _id: false;
1976
- }, {
1977
- status: PaymentStatusValue;
1978
- amount?: number | null | undefined;
1979
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
1980
- method?: string | null | undefined;
1981
- reference?: string | null | undefined;
1982
- payments?: mongoose$1.Types.DocumentArray<{
1983
- amount: number;
1984
- method: string;
1985
- reference?: string | null | undefined;
1986
- details?: any;
1987
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
1988
- amount: number;
1989
- method: string;
1990
- reference?: string | null | undefined;
1991
- details?: any;
1992
- }> & {
1993
- amount: number;
1994
- method: string;
1995
- reference?: string | null | undefined;
1996
- details?: any;
1997
- }> | null | undefined;
1998
- verifiedAt?: NativeDate | null | undefined;
1999
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2000
- }, mongoose$1.Document<unknown, {}, {
2001
- status: PaymentStatusValue;
2002
- amount?: number | null | undefined;
2003
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2004
- method?: string | null | undefined;
2005
- reference?: string | null | undefined;
2006
- payments?: mongoose$1.Types.DocumentArray<{
2007
- amount: number;
2008
- method: string;
2009
- reference?: string | null | undefined;
2010
- details?: any;
2011
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2012
- amount: number;
2013
- method: string;
2014
- reference?: string | null | undefined;
2015
- details?: any;
2016
- }> & {
2017
- amount: number;
2018
- method: string;
2019
- reference?: string | null | undefined;
2020
- details?: any;
2021
- }> | null | undefined;
2022
- verifiedAt?: NativeDate | null | undefined;
2023
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2024
- }, {
2025
- id: string;
2026
- }, mongoose$1.ResolveSchemaOptions<{
2027
- _id: false;
2028
- }>> & Omit<{
2029
- status: PaymentStatusValue;
2030
- amount?: number | null | undefined;
2031
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2032
- method?: string | null | undefined;
2033
- reference?: string | null | undefined;
2034
- payments?: mongoose$1.Types.DocumentArray<{
2035
- amount: number;
2036
- method: string;
2037
- reference?: string | null | undefined;
2038
- details?: any;
2039
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2040
- amount: number;
2041
- method: string;
2042
- reference?: string | null | undefined;
2043
- details?: any;
2044
- }> & {
2045
- amount: number;
2046
- method: string;
2047
- reference?: string | null | undefined;
2048
- details?: any;
2049
- }> | null | undefined;
2050
- verifiedAt?: NativeDate | null | undefined;
2051
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2052
- } & {
2053
- _id: mongoose$1.Types.ObjectId;
2054
- } & {
2055
- __v: number;
2056
- }, "id"> & {
2057
- id: string;
2058
- }, {
2059
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2060
- } | {
2061
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2062
- status: PaymentStatusValue;
2063
- amount?: number | null | undefined;
2064
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2065
- method?: string | null | undefined;
2066
- reference?: string | null | undefined;
2067
- payments?: mongoose$1.Types.DocumentArray<{
2068
- amount: number;
2069
- method: string;
2070
- reference?: string | null | undefined;
2071
- details?: any;
2072
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2073
- amount: number;
2074
- method: string;
2075
- reference?: string | null | undefined;
2076
- details?: any;
2077
- }> & {
2078
- amount: number;
2079
- method: string;
2080
- reference?: string | null | undefined;
2081
- details?: any;
2082
- }> | null | undefined;
2083
- verifiedAt?: NativeDate | null | undefined;
2084
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2085
- }, {
2086
- id: string;
2087
- }, mongoose$1.ResolveSchemaOptions<{
2088
- _id: false;
2089
- }>> & Omit<{
2090
- status: PaymentStatusValue;
2091
- amount?: number | null | undefined;
2092
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2093
- method?: string | null | undefined;
2094
- reference?: string | null | undefined;
2095
- payments?: mongoose$1.Types.DocumentArray<{
2096
- amount: number;
2097
- method: string;
2098
- reference?: string | null | undefined;
2099
- details?: any;
2100
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2101
- amount: number;
2102
- method: string;
2103
- reference?: string | null | undefined;
2104
- details?: any;
2105
- }> & {
2106
- amount: number;
2107
- method: string;
2108
- reference?: string | null | undefined;
2109
- details?: any;
2110
- }> | null | undefined;
2111
- verifiedAt?: NativeDate | null | undefined;
2112
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2113
- } & {
2114
- _id: mongoose$1.Types.ObjectId;
2115
- } & {
2116
- __v: number;
2117
- }, "id"> & {
2118
- id: string;
2119
- }> | undefined;
2120
- }, {
2121
- status: PaymentStatusValue;
2122
- amount?: number | null | undefined;
2123
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2124
- method?: string | null | undefined;
2125
- reference?: string | null | undefined;
2126
- payments?: mongoose$1.Types.DocumentArray<{
2127
- amount: number;
2128
- method: string;
2129
- reference?: string | null | undefined;
2130
- details?: any;
2131
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2132
- amount: number;
2133
- method: string;
2134
- reference?: string | null | undefined;
2135
- details?: any;
2136
- }> & {
2137
- amount: number;
2138
- method: string;
2139
- reference?: string | null | undefined;
2140
- details?: any;
2141
- }> | null | undefined;
2142
- verifiedAt?: NativeDate | null | undefined;
2143
- verifiedBy?: mongoose$1.Types.ObjectId | null | undefined;
2144
- } & {
2145
- _id: mongoose$1.Types.ObjectId;
2146
- } & {
2147
- __v: number;
2148
- }>;
2149
- paymentSummarySchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2150
- _id: false;
2151
- }, {
2152
- totalPayments: number;
2153
- totalAmountPaid: number;
2154
- lastPaymentDate?: NativeDate | null | undefined;
2155
- lastPaymentAmount?: number | null | undefined;
2156
- }, mongoose$1.Document<unknown, {}, {
2157
- totalPayments: number;
2158
- totalAmountPaid: number;
2159
- lastPaymentDate?: NativeDate | null | undefined;
2160
- lastPaymentAmount?: number | null | undefined;
2161
- }, {
2162
- id: string;
2163
- }, mongoose$1.ResolveSchemaOptions<{
2164
- _id: false;
2165
- }>> & Omit<{
2166
- totalPayments: number;
2167
- totalAmountPaid: number;
2168
- lastPaymentDate?: NativeDate | null | undefined;
2169
- lastPaymentAmount?: number | null | undefined;
2170
- } & {
2171
- _id: mongoose$1.Types.ObjectId;
2172
- } & {
2173
- __v: number;
2174
- }, "id"> & {
2175
- id: string;
2176
- }, {
2177
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2178
- } | {
2179
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2180
- totalPayments: number;
2181
- totalAmountPaid: number;
2182
- lastPaymentDate?: NativeDate | null | undefined;
2183
- lastPaymentAmount?: number | null | undefined;
2184
- }, {
2185
- id: string;
2186
- }, mongoose$1.ResolveSchemaOptions<{
2187
- _id: false;
2188
- }>> & Omit<{
2189
- totalPayments: number;
2190
- totalAmountPaid: number;
2191
- lastPaymentDate?: NativeDate | null | undefined;
2192
- lastPaymentAmount?: number | null | undefined;
2193
- } & {
2194
- _id: mongoose$1.Types.ObjectId;
2195
- } & {
2196
- __v: number;
2197
- }, "id"> & {
2198
- id: string;
2199
- }> | undefined;
2200
- }, {
2201
- totalPayments: number;
2202
- totalAmountPaid: number;
2203
- lastPaymentDate?: NativeDate | null | undefined;
2204
- lastPaymentAmount?: number | null | undefined;
2205
- } & {
2206
- _id: mongoose$1.Types.ObjectId;
2207
- } & {
2208
- __v: number;
2209
- }>;
2210
- paymentDetailsSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2211
- _id: false;
2212
- }, {
2213
- provider?: string | null | undefined;
2214
- walletNumber?: string | null | undefined;
2215
- walletType?: string | null | undefined;
2216
- trxId?: string | null | undefined;
2217
- bankName?: string | null | undefined;
2218
- accountNumber?: string | null | undefined;
2219
- accountName?: string | null | undefined;
2220
- proofUrl?: string | null | undefined;
2221
- }, mongoose$1.Document<unknown, {}, {
2222
- provider?: string | null | undefined;
2223
- walletNumber?: string | null | undefined;
2224
- walletType?: string | null | undefined;
2225
- trxId?: string | null | undefined;
2226
- bankName?: string | null | undefined;
2227
- accountNumber?: string | null | undefined;
2228
- accountName?: string | null | undefined;
2229
- proofUrl?: string | null | undefined;
2230
- }, {
2231
- id: string;
2232
- }, mongoose$1.ResolveSchemaOptions<{
2233
- _id: false;
2234
- }>> & Omit<{
2235
- provider?: string | null | undefined;
2236
- walletNumber?: string | null | undefined;
2237
- walletType?: string | null | undefined;
2238
- trxId?: string | null | undefined;
2239
- bankName?: string | null | undefined;
2240
- accountNumber?: string | null | undefined;
2241
- accountName?: string | null | undefined;
2242
- proofUrl?: string | null | undefined;
2243
- } & {
2244
- _id: mongoose$1.Types.ObjectId;
2245
- } & {
2246
- __v: number;
2247
- }, "id"> & {
2248
- id: string;
2249
- }, {
2250
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2251
- } | {
2252
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2253
- provider?: string | null | undefined;
2254
- walletNumber?: string | null | undefined;
2255
- walletType?: string | null | undefined;
2256
- trxId?: string | null | undefined;
2257
- bankName?: string | null | undefined;
2258
- accountNumber?: string | null | undefined;
2259
- accountName?: string | null | undefined;
2260
- proofUrl?: string | null | undefined;
2261
- }, {
2262
- id: string;
2263
- }, mongoose$1.ResolveSchemaOptions<{
2264
- _id: false;
2265
- }>> & Omit<{
2266
- provider?: string | null | undefined;
2267
- walletNumber?: string | null | undefined;
2268
- walletType?: string | null | undefined;
2269
- trxId?: string | null | undefined;
2270
- bankName?: string | null | undefined;
2271
- accountNumber?: string | null | undefined;
2272
- accountName?: string | null | undefined;
2273
- proofUrl?: string | null | undefined;
2274
- } & {
2275
- _id: mongoose$1.Types.ObjectId;
2276
- } & {
2277
- __v: number;
2278
- }, "id"> & {
2279
- id: string;
2280
- }> | undefined;
2281
- }, {
2282
- provider?: string | null | undefined;
2283
- walletNumber?: string | null | undefined;
2284
- walletType?: string | null | undefined;
2285
- trxId?: string | null | undefined;
2286
- bankName?: string | null | undefined;
2287
- accountNumber?: string | null | undefined;
2288
- accountName?: string | null | undefined;
2289
- proofUrl?: string | null | undefined;
2290
- } & {
2291
- _id: mongoose$1.Types.ObjectId;
2292
- } & {
2293
- __v: number;
2294
- }>;
2295
- tenantSnapshotSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2296
- _id: false;
2297
- }, {
2298
- paymentInstructions?: string | null | undefined;
2299
- bkashNumber?: string | null | undefined;
2300
- nagadNumber?: string | null | undefined;
2301
- bankAccount?: string | null | undefined;
2302
- }, mongoose$1.Document<unknown, {}, {
2303
- paymentInstructions?: string | null | undefined;
2304
- bkashNumber?: string | null | undefined;
2305
- nagadNumber?: string | null | undefined;
2306
- bankAccount?: string | null | undefined;
2307
- }, {
2308
- id: string;
2309
- }, mongoose$1.ResolveSchemaOptions<{
2310
- _id: false;
2311
- }>> & Omit<{
2312
- paymentInstructions?: string | null | undefined;
2313
- bkashNumber?: string | null | undefined;
2314
- nagadNumber?: string | null | undefined;
2315
- bankAccount?: string | null | undefined;
2316
- } & {
2317
- _id: mongoose$1.Types.ObjectId;
2318
- } & {
2319
- __v: number;
2320
- }, "id"> & {
2321
- id: string;
2322
- }, {
2323
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2324
- } | {
2325
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2326
- paymentInstructions?: string | null | undefined;
2327
- bkashNumber?: string | null | undefined;
2328
- nagadNumber?: string | null | undefined;
2329
- bankAccount?: string | null | undefined;
2330
- }, {
2331
- id: string;
2332
- }, mongoose$1.ResolveSchemaOptions<{
2333
- _id: false;
2334
- }>> & Omit<{
2335
- paymentInstructions?: string | null | undefined;
2336
- bkashNumber?: string | null | undefined;
2337
- nagadNumber?: string | null | undefined;
2338
- bankAccount?: string | null | undefined;
2339
- } & {
2340
- _id: mongoose$1.Types.ObjectId;
2341
- } & {
2342
- __v: number;
2343
- }, "id"> & {
2344
- id: string;
2345
- }> | undefined;
2346
- }, {
2347
- paymentInstructions?: string | null | undefined;
2348
- bkashNumber?: string | null | undefined;
2349
- nagadNumber?: string | null | undefined;
2350
- bankAccount?: string | null | undefined;
2351
- } & {
2352
- _id: mongoose$1.Types.ObjectId;
2353
- } & {
2354
- __v: number;
2355
- }>;
2356
- baseMetadataSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2357
- _id: false;
2358
- strict: false;
2359
- }, {}, mongoose$1.Document<unknown, {}, {}, {
2360
- id: string;
2361
- }, mongoose$1.ResolveSchemaOptions<{
2362
- _id: false;
2363
- strict: false;
2364
- }>> & Omit<Required<{
2365
- _id: unknown;
2366
- }> & {
2367
- __v: number;
2368
- }, "id"> & {
2369
- id: string;
2370
- }, {
2371
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2372
- } | {
2373
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {}, {
2374
- id: string;
2375
- }, mongoose$1.ResolveSchemaOptions<{
2376
- _id: false;
2377
- strict: false;
2378
- }>> & Omit<Required<{
2379
- _id: unknown;
2380
- }> & {
2381
- __v: number;
2382
- }, "id"> & {
2383
- id: string;
2384
- }> | undefined;
2385
- }, {} & Required<{
2386
- _id: unknown;
2387
- }> & {
2388
- __v: number;
2389
- }>;
2390
- gatewaySchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2391
- _id: false;
2392
- }, {
2393
- type: string;
2394
- metadata: any;
2395
- provider?: string | null | undefined;
2396
- sessionId?: string | null | undefined;
2397
- paymentIntentId?: string | null | undefined;
2398
- verificationData?: any;
2399
- }, mongoose$1.Document<unknown, {}, {
2400
- type: string;
2401
- metadata: any;
2402
- provider?: string | null | undefined;
2403
- sessionId?: string | null | undefined;
2404
- paymentIntentId?: string | null | undefined;
2405
- verificationData?: any;
2406
- }, {
2407
- id: string;
2408
- }, mongoose$1.ResolveSchemaOptions<{
2409
- _id: false;
2410
- }>> & Omit<{
2411
- type: string;
2412
- metadata: any;
2413
- provider?: string | null | undefined;
2414
- sessionId?: string | null | undefined;
2415
- paymentIntentId?: string | null | undefined;
2416
- verificationData?: any;
2417
- } & {
2418
- _id: mongoose$1.Types.ObjectId;
2419
- } & {
2420
- __v: number;
2421
- }, "id"> & {
2422
- id: string;
2423
- }, {
2424
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2425
- } | {
2426
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2427
- type: string;
2428
- metadata: any;
2429
- provider?: string | null | undefined;
2430
- sessionId?: string | null | undefined;
2431
- paymentIntentId?: string | null | undefined;
2432
- verificationData?: any;
2433
- }, {
2434
- id: string;
2435
- }, mongoose$1.ResolveSchemaOptions<{
2436
- _id: false;
2437
- }>> & Omit<{
2438
- type: string;
2439
- metadata: any;
2440
- provider?: string | null | undefined;
2441
- sessionId?: string | null | undefined;
2442
- paymentIntentId?: string | null | undefined;
2443
- verificationData?: any;
2444
- } & {
2445
- _id: mongoose$1.Types.ObjectId;
2446
- } & {
2447
- __v: number;
2448
- }, "id"> & {
2449
- id: string;
2450
- }> | undefined;
2451
- }, {
2452
- type: string;
2453
- metadata: any;
2454
- provider?: string | null | undefined;
2455
- sessionId?: string | null | undefined;
2456
- paymentIntentId?: string | null | undefined;
2457
- verificationData?: any;
2458
- } & {
2459
- _id: mongoose$1.Types.ObjectId;
2460
- } & {
2461
- __v: number;
2462
- }>;
2463
- commissionSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2464
- _id: false;
2465
- }, {
2466
- splits: string[];
2467
- status: "pending" | "paid" | "waived" | "reversed";
2468
- gatewayFeeRate?: number | null | undefined;
2469
- rate?: number | null | undefined;
2470
- affiliate?: {
2471
- recipientId?: string | null | undefined;
2472
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2473
- rate?: number | null | undefined;
2474
- grossAmount?: number | null | undefined;
2475
- netAmount?: number | null | undefined;
2476
- } | null | undefined;
2477
- grossAmount?: number | null | undefined;
2478
- gatewayFeeAmount?: number | null | undefined;
2479
- netAmount?: number | null | undefined;
2480
- }, mongoose$1.Document<unknown, {}, {
2481
- splits: string[];
2482
- status: "pending" | "paid" | "waived" | "reversed";
2483
- gatewayFeeRate?: number | null | undefined;
2484
- rate?: number | null | undefined;
2485
- affiliate?: {
2486
- recipientId?: string | null | undefined;
2487
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2488
- rate?: number | null | undefined;
2489
- grossAmount?: number | null | undefined;
2490
- netAmount?: number | null | undefined;
2491
- } | null | undefined;
2492
- grossAmount?: number | null | undefined;
2493
- gatewayFeeAmount?: number | null | undefined;
2494
- netAmount?: number | null | undefined;
2495
- }, {
2496
- id: string;
2497
- }, mongoose$1.ResolveSchemaOptions<{
2498
- _id: false;
2499
- }>> & Omit<{
2500
- splits: string[];
2501
- status: "pending" | "paid" | "waived" | "reversed";
2502
- gatewayFeeRate?: number | null | undefined;
2503
- rate?: number | null | undefined;
2504
- affiliate?: {
2505
- recipientId?: string | null | undefined;
2506
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2507
- rate?: number | null | undefined;
2508
- grossAmount?: number | null | undefined;
2509
- netAmount?: number | null | undefined;
2510
- } | null | undefined;
2511
- grossAmount?: number | null | undefined;
2512
- gatewayFeeAmount?: number | null | undefined;
2513
- netAmount?: number | null | undefined;
2514
- } & {
2515
- _id: mongoose$1.Types.ObjectId;
2516
- } & {
2517
- __v: number;
2518
- }, "id"> & {
2519
- id: string;
2520
- }, {
2521
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2522
- } | {
2523
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2524
- splits: string[];
2525
- status: "pending" | "paid" | "waived" | "reversed";
2526
- gatewayFeeRate?: number | null | undefined;
2527
- rate?: number | null | undefined;
2528
- affiliate?: {
2529
- recipientId?: string | null | undefined;
2530
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2531
- rate?: number | null | undefined;
2532
- grossAmount?: number | null | undefined;
2533
- netAmount?: number | null | undefined;
2534
- } | null | undefined;
2535
- grossAmount?: number | null | undefined;
2536
- gatewayFeeAmount?: number | null | undefined;
2537
- netAmount?: number | null | undefined;
2538
- }, {
2539
- id: string;
2540
- }, mongoose$1.ResolveSchemaOptions<{
2541
- _id: false;
2542
- }>> & Omit<{
2543
- splits: string[];
2544
- status: "pending" | "paid" | "waived" | "reversed";
2545
- gatewayFeeRate?: number | null | undefined;
2546
- rate?: number | null | undefined;
2547
- affiliate?: {
2548
- recipientId?: string | null | undefined;
2549
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2550
- rate?: number | null | undefined;
2551
- grossAmount?: number | null | undefined;
2552
- netAmount?: number | null | undefined;
2553
- } | null | undefined;
2554
- grossAmount?: number | null | undefined;
2555
- gatewayFeeAmount?: number | null | undefined;
2556
- netAmount?: number | null | undefined;
2557
- } & {
2558
- _id: mongoose$1.Types.ObjectId;
2559
- } & {
2560
- __v: number;
2561
- }, "id"> & {
2562
- id: string;
2563
- }> | undefined;
2564
- }, {
2565
- splits: string[];
2566
- status: "pending" | "paid" | "waived" | "reversed";
2567
- gatewayFeeRate?: number | null | undefined;
2568
- rate?: number | null | undefined;
2569
- affiliate?: {
2570
- recipientId?: string | null | undefined;
2571
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2572
- rate?: number | null | undefined;
2573
- grossAmount?: number | null | undefined;
2574
- netAmount?: number | null | undefined;
2575
- } | null | undefined;
2576
- grossAmount?: number | null | undefined;
2577
- gatewayFeeAmount?: number | null | undefined;
2578
- netAmount?: number | null | undefined;
2579
- } & {
2580
- _id: mongoose$1.Types.ObjectId;
2581
- } & {
2582
- __v: number;
2583
- }>;
2584
- taxBreakdownSchema: mongoose$1.Schema<any, mongoose$1.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
2585
- _id: false;
2586
- }, {
2587
- rate: number;
2588
- isApplicable: boolean;
2589
- baseAmount: number;
2590
- taxAmount: number;
2591
- totalAmount: number;
2592
- type?: "paid" | "collected" | "exempt" | null | undefined;
2593
- pricesIncludeTax?: boolean | null | undefined;
2594
- }, mongoose$1.Document<unknown, {}, {
2595
- rate: number;
2596
- isApplicable: boolean;
2597
- baseAmount: number;
2598
- taxAmount: number;
2599
- totalAmount: number;
2600
- type?: "paid" | "collected" | "exempt" | null | undefined;
2601
- pricesIncludeTax?: boolean | null | undefined;
2602
- }, {
2603
- id: string;
2604
- }, mongoose$1.ResolveSchemaOptions<{
2605
- _id: false;
2606
- }>> & Omit<{
2607
- rate: number;
2608
- isApplicable: boolean;
2609
- baseAmount: number;
2610
- taxAmount: number;
2611
- totalAmount: number;
2612
- type?: "paid" | "collected" | "exempt" | null | undefined;
2613
- pricesIncludeTax?: boolean | null | undefined;
2614
- } & {
2615
- _id: mongoose$1.Types.ObjectId;
2616
- } & {
2617
- __v: number;
2618
- }, "id"> & {
2619
- id: string;
2620
- }, {
2621
- [path: string]: mongoose$1.SchemaDefinitionProperty<undefined, any, any>;
2622
- } | {
2623
- [x: string]: mongoose$1.SchemaDefinitionProperty<any, any, mongoose$1.Document<unknown, {}, {
2624
- rate: number;
2625
- isApplicable: boolean;
2626
- baseAmount: number;
2627
- taxAmount: number;
2628
- totalAmount: number;
2629
- type?: "paid" | "collected" | "exempt" | null | undefined;
2630
- pricesIncludeTax?: boolean | null | undefined;
2631
- }, {
2632
- id: string;
2633
- }, mongoose$1.ResolveSchemaOptions<{
2634
- _id: false;
2635
- }>> & Omit<{
2636
- rate: number;
2637
- isApplicable: boolean;
2638
- baseAmount: number;
2639
- taxAmount: number;
2640
- totalAmount: number;
2641
- type?: "paid" | "collected" | "exempt" | null | undefined;
2642
- pricesIncludeTax?: boolean | null | undefined;
2643
- } & {
2644
- _id: mongoose$1.Types.ObjectId;
2645
- } & {
2646
- __v: number;
2647
- }, "id"> & {
2648
- id: string;
2649
- }> | undefined;
2650
- }, {
2651
- rate: number;
2652
- isApplicable: boolean;
2653
- baseAmount: number;
2654
- taxAmount: number;
2655
- totalAmount: number;
2656
- type?: "paid" | "collected" | "exempt" | null | undefined;
2657
- pricesIncludeTax?: boolean | null | undefined;
2658
- } & {
2659
- _id: mongoose$1.Types.ObjectId;
2660
- } & {
2661
- __v: number;
2662
- }>;
2663
- };
2664
- //#endregion
2665
- export { type SettlementDocument, TaxBreakdown, baseMetadataSchema, commissionSchema, currentPaymentSchema, _default as default, gatewaySchema, holdSchema, paymentDetailsSchema, paymentEntrySchema, paymentSummarySchema, planSchema, settlementSchema, splitSchema, subscriptionInfoSchema, taxBreakdownSchema, tenantSnapshotSchema };