@classytic/revenue 1.1.4 → 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 +33 -37
  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-rRdOqnWx.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-BhdS7nXh.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-DnNSFpGd.d.mts +0 -344
  74. package/dist/settlement.service-DjzAjezU.d.mts +0 -594
  75. package/dist/settlement.service-DmdKv0Zu.mjs +0 -2511
  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-DnNSFpGd.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
- sessionId?: string | null | undefined;
59
- paymentIntentId?: string | null | undefined;
60
- provider?: string | null | undefined;
61
- verificationData?: any;
62
- }, mongoose$1.Document<unknown, {}, {
63
- type: string;
64
- metadata: any;
65
- sessionId?: string | null | undefined;
66
- paymentIntentId?: string | null | undefined;
67
- provider?: 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
- sessionId?: string | null | undefined;
77
- paymentIntentId?: string | null | undefined;
78
- provider?: 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
- sessionId?: string | null | undefined;
93
- paymentIntentId?: string | null | undefined;
94
- provider?: 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
- sessionId?: string | null | undefined;
104
- paymentIntentId?: string | null | undefined;
105
- provider?: 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
- sessionId?: string | null | undefined;
118
- paymentIntentId?: string | null | undefined;
119
- provider?: 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
- method: string;
138
- amount: number;
139
- reference?: string | null | undefined;
140
- details?: any;
141
- }, mongoose$1.Document<unknown, {}, {
142
- method: string;
143
- amount: number;
144
- reference?: string | null | undefined;
145
- details?: any;
146
- }, {
147
- id: string;
148
- }, mongoose$1.ResolveSchemaOptions<{
149
- _id: false;
150
- }>> & Omit<{
151
- method: string;
152
- amount: number;
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
- method: string;
166
- amount: number;
167
- reference?: string | null | undefined;
168
- details?: any;
169
- }, {
170
- id: string;
171
- }, mongoose$1.ResolveSchemaOptions<{
172
- _id: false;
173
- }>> & Omit<{
174
- method: string;
175
- amount: number;
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
- method: string;
187
- amount: number;
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
- method?: string | null | undefined;
207
- amount?: number | null | undefined;
208
- reference?: string | null | undefined;
209
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
210
- payments?: mongoose$1.Types.DocumentArray<{
211
- method: string;
212
- amount: number;
213
- reference?: string | null | undefined;
214
- details?: any;
215
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
216
- method: string;
217
- amount: number;
218
- reference?: string | null | undefined;
219
- details?: any;
220
- }> & {
221
- method: string;
222
- amount: number;
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
- method?: string | null | undefined;
231
- amount?: number | null | undefined;
232
- reference?: string | null | undefined;
233
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
234
- payments?: mongoose$1.Types.DocumentArray<{
235
- method: string;
236
- amount: number;
237
- reference?: string | null | undefined;
238
- details?: any;
239
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
240
- method: string;
241
- amount: number;
242
- reference?: string | null | undefined;
243
- details?: any;
244
- }> & {
245
- method: string;
246
- amount: number;
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
- method?: string | null | undefined;
259
- amount?: number | null | undefined;
260
- reference?: string | null | undefined;
261
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
262
- payments?: mongoose$1.Types.DocumentArray<{
263
- method: string;
264
- amount: number;
265
- reference?: string | null | undefined;
266
- details?: any;
267
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
268
- method: string;
269
- amount: number;
270
- reference?: string | null | undefined;
271
- details?: any;
272
- }> & {
273
- method: string;
274
- amount: number;
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
- method?: string | null | undefined;
292
- amount?: number | null | undefined;
293
- reference?: string | null | undefined;
294
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
295
- payments?: mongoose$1.Types.DocumentArray<{
296
- method: string;
297
- amount: number;
298
- reference?: string | null | undefined;
299
- details?: any;
300
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
301
- method: string;
302
- amount: number;
303
- reference?: string | null | undefined;
304
- details?: any;
305
- }> & {
306
- method: string;
307
- amount: number;
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
- method?: string | null | undefined;
320
- amount?: number | null | undefined;
321
- reference?: string | null | undefined;
322
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
323
- payments?: mongoose$1.Types.DocumentArray<{
324
- method: string;
325
- amount: number;
326
- reference?: string | null | undefined;
327
- details?: any;
328
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
329
- method: string;
330
- amount: number;
331
- reference?: string | null | undefined;
332
- details?: any;
333
- }> & {
334
- method: string;
335
- amount: number;
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
- method?: string | null | undefined;
351
- amount?: number | null | undefined;
352
- reference?: string | null | undefined;
353
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
354
- payments?: mongoose$1.Types.DocumentArray<{
355
- method: string;
356
- amount: number;
357
- reference?: string | null | undefined;
358
- details?: any;
359
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
360
- method: string;
361
- amount: number;
362
- reference?: string | null | undefined;
363
- details?: any;
364
- }> & {
365
- method: string;
366
- amount: number;
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
- status: "pending" | "paid" | "waived" | "reversed";
610
- splits: string[];
611
- rate?: number | null | undefined;
612
- grossAmount?: number | null | undefined;
613
- gatewayFeeRate?: number | null | undefined;
614
- gatewayFeeAmount?: number | null | undefined;
615
- netAmount?: number | null | undefined;
616
- affiliate?: {
617
- rate?: number | null | undefined;
618
- grossAmount?: number | null | undefined;
619
- netAmount?: number | null | undefined;
620
- recipientId?: string | null | undefined;
621
- recipientType?: "user" | "organization" | "partner" | null | undefined;
622
- } | null | undefined;
623
- }, mongoose$1.Document<unknown, {}, {
624
- status: "pending" | "paid" | "waived" | "reversed";
625
- splits: string[];
626
- rate?: number | null | undefined;
627
- grossAmount?: number | null | undefined;
628
- gatewayFeeRate?: number | null | undefined;
629
- gatewayFeeAmount?: number | null | undefined;
630
- netAmount?: number | null | undefined;
631
- affiliate?: {
632
- rate?: number | null | undefined;
633
- grossAmount?: number | null | undefined;
634
- netAmount?: number | null | undefined;
635
- recipientId?: string | null | undefined;
636
- recipientType?: "user" | "organization" | "partner" | null | undefined;
637
- } | null | undefined;
638
- }, {
639
- id: string;
640
- }, mongoose$1.ResolveSchemaOptions<{
641
- _id: false;
642
- }>> & Omit<{
643
- status: "pending" | "paid" | "waived" | "reversed";
644
- splits: string[];
645
- rate?: number | null | undefined;
646
- grossAmount?: number | null | undefined;
647
- gatewayFeeRate?: number | null | undefined;
648
- gatewayFeeAmount?: number | null | undefined;
649
- netAmount?: number | null | undefined;
650
- affiliate?: {
651
- rate?: number | null | undefined;
652
- grossAmount?: number | null | undefined;
653
- netAmount?: number | null | undefined;
654
- recipientId?: string | null | undefined;
655
- recipientType?: "user" | "organization" | "partner" | null | undefined;
656
- } | 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
- status: "pending" | "paid" | "waived" | "reversed";
668
- splits: string[];
669
- rate?: number | null | undefined;
670
- grossAmount?: number | null | undefined;
671
- gatewayFeeRate?: number | null | undefined;
672
- gatewayFeeAmount?: number | null | undefined;
673
- netAmount?: number | null | undefined;
674
- affiliate?: {
675
- rate?: number | null | undefined;
676
- grossAmount?: number | null | undefined;
677
- netAmount?: number | null | undefined;
678
- recipientId?: string | null | undefined;
679
- recipientType?: "user" | "organization" | "partner" | null | undefined;
680
- } | null | undefined;
681
- }, {
682
- id: string;
683
- }, mongoose$1.ResolveSchemaOptions<{
684
- _id: false;
685
- }>> & Omit<{
686
- status: "pending" | "paid" | "waived" | "reversed";
687
- splits: string[];
688
- rate?: number | null | undefined;
689
- grossAmount?: number | null | undefined;
690
- gatewayFeeRate?: number | null | undefined;
691
- gatewayFeeAmount?: number | null | undefined;
692
- netAmount?: number | null | undefined;
693
- affiliate?: {
694
- rate?: number | null | undefined;
695
- grossAmount?: number | null | undefined;
696
- netAmount?: number | null | undefined;
697
- recipientId?: string | null | undefined;
698
- recipientType?: "user" | "organization" | "partner" | null | undefined;
699
- } | null | undefined;
700
- } & {
701
- _id: mongoose$1.Types.ObjectId;
702
- } & {
703
- __v: number;
704
- }, "id"> & {
705
- id: string;
706
- }> | undefined;
707
- }, {
708
- status: "pending" | "paid" | "waived" | "reversed";
709
- splits: string[];
710
- rate?: number | null | undefined;
711
- grossAmount?: number | null | undefined;
712
- gatewayFeeRate?: number | null | undefined;
713
- gatewayFeeAmount?: number | null | undefined;
714
- netAmount?: number | null | undefined;
715
- affiliate?: {
716
- rate?: number | null | undefined;
717
- grossAmount?: number | null | undefined;
718
- netAmount?: number | null | undefined;
719
- recipientId?: string | null | undefined;
720
- recipientType?: "user" | "organization" | "partner" | null | undefined;
721
- } | 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
- name: string;
845
- metadata: any;
846
- amount: number;
847
- key: PlanKeyValue;
848
- currency: string;
849
- interval: "day" | "week" | "month" | "year";
850
- intervalCount: number;
851
- features: string[];
852
- isActive: boolean;
853
- description?: string | null | undefined;
854
- }, mongoose$1.Document<unknown, {}, {
855
- name: string;
856
- metadata: any;
857
- amount: number;
858
- key: PlanKeyValue;
859
- currency: string;
860
- interval: "day" | "week" | "month" | "year";
861
- intervalCount: number;
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
- name: string;
871
- metadata: any;
872
- amount: number;
873
- key: PlanKeyValue;
874
- currency: string;
875
- interval: "day" | "week" | "month" | "year";
876
- intervalCount: number;
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
- name: string;
891
- metadata: any;
892
- amount: number;
893
- key: PlanKeyValue;
894
- currency: string;
895
- interval: "day" | "week" | "month" | "year";
896
- intervalCount: number;
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
- name: string;
906
- metadata: any;
907
- amount: number;
908
- key: PlanKeyValue;
909
- currency: string;
910
- interval: "day" | "week" | "month" | "year";
911
- intervalCount: number;
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
- name: string;
924
- metadata: any;
925
- amount: number;
926
- key: PlanKeyValue;
927
- currency: string;
928
- interval: "day" | "week" | "month" | "year";
929
- intervalCount: number;
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
- status: SubscriptionStatusValue;
954
- isActive: boolean;
955
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
966
- isActive: boolean;
967
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
982
- isActive: boolean;
983
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1003
- isActive: boolean;
1004
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1019
- isActive: boolean;
1020
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1038
- isActive: boolean;
1039
- planKey: PlanKeyValue;
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
- rate: number;
1113
- grossAmount: number;
1114
- gatewayFeeRate: number;
1115
- gatewayFeeAmount: number;
1116
- netAmount: number;
1117
- status: SplitStatusValue;
1118
- recipientId: string;
1119
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1128
- grossAmount: number;
1129
- gatewayFeeRate: number;
1130
- gatewayFeeAmount: number;
1131
- netAmount: number;
1132
- status: SplitStatusValue;
1133
- recipientId: string;
1134
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1147
- grossAmount: number;
1148
- gatewayFeeRate: number;
1149
- gatewayFeeAmount: number;
1150
- netAmount: number;
1151
- status: SplitStatusValue;
1152
- recipientId: string;
1153
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1171
- grossAmount: number;
1172
- gatewayFeeRate: number;
1173
- gatewayFeeAmount: number;
1174
- netAmount: number;
1175
- status: SplitStatusValue;
1176
- recipientId: string;
1177
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1190
- grossAmount: number;
1191
- gatewayFeeRate: number;
1192
- gatewayFeeAmount: number;
1193
- netAmount: number;
1194
- status: SplitStatusValue;
1195
- recipientId: string;
1196
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1212
- grossAmount: number;
1213
- gatewayFeeRate: number;
1214
- gatewayFeeAmount: number;
1215
- netAmount: number;
1216
- status: SplitStatusValue;
1217
- recipientId: string;
1218
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- metadata: any;
1236
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1237
- recipientId: mongoose$1.Types.ObjectId;
1238
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1239
- amount: number;
1240
- currency: string;
1241
- payoutMethod: PayoutMethodValue;
1242
- organizationId: mongoose$1.Types.ObjectId;
1243
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1244
- sourceSplitIds: string[];
1245
- retryCount: number;
1246
- bankTransferDetails?: {
1247
- bankName?: string | null | undefined;
1248
- accountNumber?: string | null | undefined;
1249
- accountName?: string | null | undefined;
1250
- routingNumber?: string | null | undefined;
1251
- swiftCode?: string | null | undefined;
1252
- iban?: string | null | undefined;
1253
- transferReference?: string | null | undefined;
1254
- transferredAt?: NativeDate | null | undefined;
1255
- } | null | undefined;
1256
- mobileWalletDetails?: {
1257
- provider?: string | null | undefined;
1258
- transactionId?: string | null | undefined;
1259
- accountNumber?: string | null | undefined;
1260
- transferredAt?: NativeDate | null | undefined;
1261
- phoneNumber?: string | null | undefined;
1262
- } | null | undefined;
1263
- cryptoDetails?: {
1264
- transferredAt?: NativeDate | null | undefined;
1265
- network?: string | null | undefined;
1266
- walletAddress?: string | null | undefined;
1267
- transactionHash?: string | null | undefined;
1268
- } | null | undefined;
1269
- platformBalanceDetails?: {
1270
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1271
- appliedAt?: NativeDate | null | undefined;
1272
- } | null | undefined;
1273
- scheduledAt?: NativeDate | null | undefined;
1274
- processedAt?: NativeDate | null | undefined;
1275
- completedAt?: NativeDate | null | undefined;
1276
- failedAt?: NativeDate | null | undefined;
1277
- cancelledAt?: NativeDate | null | undefined;
1278
- failureReason?: string | null | undefined;
1279
- failureCode?: string | null | undefined;
1280
- notes?: string | null | undefined;
1281
- } & mongoose$1.DefaultTimestampProps, mongoose$1.Document<unknown, {}, {
1282
- type: "split_payout" | "platform_withdrawal" | "manual_payout" | "escrow_release";
1283
- metadata: any;
1284
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1285
- recipientId: mongoose$1.Types.ObjectId;
1286
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1287
- amount: number;
1288
- currency: string;
1289
- payoutMethod: PayoutMethodValue;
1290
- organizationId: mongoose$1.Types.ObjectId;
1291
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1292
- sourceSplitIds: string[];
1293
- retryCount: number;
1294
- bankTransferDetails?: {
1295
- bankName?: string | null | undefined;
1296
- accountNumber?: string | null | undefined;
1297
- accountName?: string | null | undefined;
1298
- routingNumber?: string | null | undefined;
1299
- swiftCode?: string | null | undefined;
1300
- iban?: string | null | undefined;
1301
- transferReference?: string | null | undefined;
1302
- transferredAt?: NativeDate | null | undefined;
1303
- } | null | undefined;
1304
- mobileWalletDetails?: {
1305
- provider?: string | null | undefined;
1306
- transactionId?: string | null | undefined;
1307
- accountNumber?: string | null | undefined;
1308
- transferredAt?: NativeDate | null | undefined;
1309
- phoneNumber?: string | null | undefined;
1310
- } | null | undefined;
1311
- cryptoDetails?: {
1312
- transferredAt?: NativeDate | null | undefined;
1313
- network?: string | null | undefined;
1314
- walletAddress?: string | null | undefined;
1315
- transactionHash?: string | null | undefined;
1316
- } | null | undefined;
1317
- platformBalanceDetails?: {
1318
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1319
- appliedAt?: NativeDate | null | undefined;
1320
- } | null | undefined;
1321
- scheduledAt?: NativeDate | null | undefined;
1322
- processedAt?: NativeDate | null | undefined;
1323
- completedAt?: NativeDate | null | undefined;
1324
- failedAt?: NativeDate | null | undefined;
1325
- cancelledAt?: NativeDate | null | undefined;
1326
- failureReason?: string | null | undefined;
1327
- failureCode?: string | null | undefined;
1328
- notes?: 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
- metadata: any;
1336
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1337
- recipientId: mongoose$1.Types.ObjectId;
1338
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1339
- amount: number;
1340
- currency: string;
1341
- payoutMethod: PayoutMethodValue;
1342
- organizationId: mongoose$1.Types.ObjectId;
1343
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1344
- sourceSplitIds: string[];
1345
- retryCount: number;
1346
- bankTransferDetails?: {
1347
- bankName?: string | null | undefined;
1348
- accountNumber?: string | null | undefined;
1349
- accountName?: string | null | undefined;
1350
- routingNumber?: string | null | undefined;
1351
- swiftCode?: string | null | undefined;
1352
- iban?: string | null | undefined;
1353
- transferReference?: string | null | undefined;
1354
- transferredAt?: NativeDate | null | undefined;
1355
- } | null | undefined;
1356
- mobileWalletDetails?: {
1357
- provider?: string | null | undefined;
1358
- transactionId?: string | null | undefined;
1359
- accountNumber?: string | null | undefined;
1360
- transferredAt?: NativeDate | null | undefined;
1361
- phoneNumber?: string | null | undefined;
1362
- } | null | undefined;
1363
- cryptoDetails?: {
1364
- transferredAt?: NativeDate | null | undefined;
1365
- network?: string | null | undefined;
1366
- walletAddress?: string | null | undefined;
1367
- transactionHash?: string | null | undefined;
1368
- } | null | undefined;
1369
- platformBalanceDetails?: {
1370
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1371
- appliedAt?: NativeDate | null | undefined;
1372
- } | null | undefined;
1373
- scheduledAt?: NativeDate | null | undefined;
1374
- processedAt?: NativeDate | null | undefined;
1375
- completedAt?: NativeDate | null | undefined;
1376
- failedAt?: NativeDate | null | undefined;
1377
- cancelledAt?: NativeDate | null | undefined;
1378
- failureReason?: string | null | undefined;
1379
- failureCode?: string | null | undefined;
1380
- notes?: 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
- metadata: any;
1393
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1394
- recipientId: mongoose$1.Types.ObjectId;
1395
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1396
- amount: number;
1397
- currency: string;
1398
- payoutMethod: PayoutMethodValue;
1399
- organizationId: mongoose$1.Types.ObjectId;
1400
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1401
- sourceSplitIds: string[];
1402
- retryCount: number;
1403
- bankTransferDetails?: {
1404
- bankName?: string | null | undefined;
1405
- accountNumber?: string | null | undefined;
1406
- accountName?: string | null | undefined;
1407
- routingNumber?: string | null | undefined;
1408
- swiftCode?: string | null | undefined;
1409
- iban?: string | null | undefined;
1410
- transferReference?: string | null | undefined;
1411
- transferredAt?: NativeDate | null | undefined;
1412
- } | null | undefined;
1413
- mobileWalletDetails?: {
1414
- provider?: string | null | undefined;
1415
- transactionId?: string | null | undefined;
1416
- accountNumber?: string | null | undefined;
1417
- transferredAt?: NativeDate | null | undefined;
1418
- phoneNumber?: string | null | undefined;
1419
- } | null | undefined;
1420
- cryptoDetails?: {
1421
- transferredAt?: NativeDate | null | undefined;
1422
- network?: string | null | undefined;
1423
- walletAddress?: string | null | undefined;
1424
- transactionHash?: string | null | undefined;
1425
- } | null | undefined;
1426
- platformBalanceDetails?: {
1427
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1428
- appliedAt?: NativeDate | null | undefined;
1429
- } | null | undefined;
1430
- scheduledAt?: NativeDate | null | undefined;
1431
- processedAt?: NativeDate | null | undefined;
1432
- completedAt?: NativeDate | null | undefined;
1433
- failedAt?: NativeDate | null | undefined;
1434
- cancelledAt?: NativeDate | null | undefined;
1435
- failureReason?: string | null | undefined;
1436
- failureCode?: string | null | undefined;
1437
- notes?: 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
- metadata: any;
1445
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1446
- recipientId: mongoose$1.Types.ObjectId;
1447
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1448
- amount: number;
1449
- currency: string;
1450
- payoutMethod: PayoutMethodValue;
1451
- organizationId: mongoose$1.Types.ObjectId;
1452
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1453
- sourceSplitIds: string[];
1454
- retryCount: number;
1455
- bankTransferDetails?: {
1456
- bankName?: string | null | undefined;
1457
- accountNumber?: string | null | undefined;
1458
- accountName?: string | null | undefined;
1459
- routingNumber?: string | null | undefined;
1460
- swiftCode?: string | null | undefined;
1461
- iban?: string | null | undefined;
1462
- transferReference?: string | null | undefined;
1463
- transferredAt?: NativeDate | null | undefined;
1464
- } | null | undefined;
1465
- mobileWalletDetails?: {
1466
- provider?: string | null | undefined;
1467
- transactionId?: string | null | undefined;
1468
- accountNumber?: string | null | undefined;
1469
- transferredAt?: NativeDate | null | undefined;
1470
- phoneNumber?: string | null | undefined;
1471
- } | null | undefined;
1472
- cryptoDetails?: {
1473
- transferredAt?: NativeDate | null | undefined;
1474
- network?: string | null | undefined;
1475
- walletAddress?: string | null | undefined;
1476
- transactionHash?: string | null | undefined;
1477
- } | null | undefined;
1478
- platformBalanceDetails?: {
1479
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1480
- appliedAt?: NativeDate | null | undefined;
1481
- } | null | undefined;
1482
- scheduledAt?: NativeDate | null | undefined;
1483
- processedAt?: NativeDate | null | undefined;
1484
- completedAt?: NativeDate | null | undefined;
1485
- failedAt?: NativeDate | null | undefined;
1486
- cancelledAt?: NativeDate | null | undefined;
1487
- failureReason?: string | null | undefined;
1488
- failureCode?: string | null | undefined;
1489
- notes?: 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
- metadata: any;
1500
- status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1501
- recipientId: mongoose$1.Types.ObjectId;
1502
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
1503
- amount: number;
1504
- currency: string;
1505
- payoutMethod: PayoutMethodValue;
1506
- organizationId: mongoose$1.Types.ObjectId;
1507
- sourceTransactionIds: mongoose$1.Types.ObjectId[];
1508
- sourceSplitIds: string[];
1509
- retryCount: number;
1510
- bankTransferDetails?: {
1511
- bankName?: string | null | undefined;
1512
- accountNumber?: string | null | undefined;
1513
- accountName?: string | null | undefined;
1514
- routingNumber?: string | null | undefined;
1515
- swiftCode?: string | null | undefined;
1516
- iban?: string | null | undefined;
1517
- transferReference?: string | null | undefined;
1518
- transferredAt?: NativeDate | null | undefined;
1519
- } | null | undefined;
1520
- mobileWalletDetails?: {
1521
- provider?: string | null | undefined;
1522
- transactionId?: string | null | undefined;
1523
- accountNumber?: string | null | undefined;
1524
- transferredAt?: NativeDate | null | undefined;
1525
- phoneNumber?: string | null | undefined;
1526
- } | null | undefined;
1527
- cryptoDetails?: {
1528
- transferredAt?: NativeDate | null | undefined;
1529
- network?: string | null | undefined;
1530
- walletAddress?: string | null | undefined;
1531
- transactionHash?: string | null | undefined;
1532
- } | null | undefined;
1533
- platformBalanceDetails?: {
1534
- balanceId?: mongoose$1.Types.ObjectId | null | undefined;
1535
- appliedAt?: NativeDate | null | undefined;
1536
- } | null | undefined;
1537
- scheduledAt?: NativeDate | null | undefined;
1538
- processedAt?: NativeDate | null | undefined;
1539
- completedAt?: NativeDate | null | undefined;
1540
- failedAt?: NativeDate | null | undefined;
1541
- cancelledAt?: NativeDate | null | undefined;
1542
- failureReason?: string | null | undefined;
1543
- failureCode?: string | null | undefined;
1544
- notes?: 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
- rate: number;
1558
- grossAmount: number;
1559
- gatewayFeeRate: number;
1560
- gatewayFeeAmount: number;
1561
- netAmount: number;
1562
- status: SplitStatusValue;
1563
- recipientId: string;
1564
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1573
- grossAmount: number;
1574
- gatewayFeeRate: number;
1575
- gatewayFeeAmount: number;
1576
- netAmount: number;
1577
- status: SplitStatusValue;
1578
- recipientId: string;
1579
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1592
- grossAmount: number;
1593
- gatewayFeeRate: number;
1594
- gatewayFeeAmount: number;
1595
- netAmount: number;
1596
- status: SplitStatusValue;
1597
- recipientId: string;
1598
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1616
- grossAmount: number;
1617
- gatewayFeeRate: number;
1618
- gatewayFeeAmount: number;
1619
- netAmount: number;
1620
- status: SplitStatusValue;
1621
- recipientId: string;
1622
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1635
- grossAmount: number;
1636
- gatewayFeeRate: number;
1637
- gatewayFeeAmount: number;
1638
- netAmount: number;
1639
- status: SplitStatusValue;
1640
- recipientId: string;
1641
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- rate: number;
1657
- grossAmount: number;
1658
- gatewayFeeRate: number;
1659
- gatewayFeeAmount: number;
1660
- netAmount: number;
1661
- status: SplitStatusValue;
1662
- recipientId: string;
1663
- recipientType: "affiliate" | "user" | "organization" | "partner" | "platform";
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
- name: string;
1717
- metadata: any;
1718
- amount: number;
1719
- key: PlanKeyValue;
1720
- currency: string;
1721
- interval: "day" | "week" | "month" | "year";
1722
- intervalCount: number;
1723
- features: string[];
1724
- isActive: boolean;
1725
- description?: string | null | undefined;
1726
- }, mongoose$1.Document<unknown, {}, {
1727
- name: string;
1728
- metadata: any;
1729
- amount: number;
1730
- key: PlanKeyValue;
1731
- currency: string;
1732
- interval: "day" | "week" | "month" | "year";
1733
- intervalCount: number;
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
- name: string;
1743
- metadata: any;
1744
- amount: number;
1745
- key: PlanKeyValue;
1746
- currency: string;
1747
- interval: "day" | "week" | "month" | "year";
1748
- intervalCount: number;
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
- name: string;
1763
- metadata: any;
1764
- amount: number;
1765
- key: PlanKeyValue;
1766
- currency: string;
1767
- interval: "day" | "week" | "month" | "year";
1768
- intervalCount: number;
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
- name: string;
1778
- metadata: any;
1779
- amount: number;
1780
- key: PlanKeyValue;
1781
- currency: string;
1782
- interval: "day" | "week" | "month" | "year";
1783
- intervalCount: number;
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
- name: string;
1796
- metadata: any;
1797
- amount: number;
1798
- key: PlanKeyValue;
1799
- currency: string;
1800
- interval: "day" | "week" | "month" | "year";
1801
- intervalCount: number;
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
- status: SubscriptionStatusValue;
1814
- isActive: boolean;
1815
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1826
- isActive: boolean;
1827
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1842
- isActive: boolean;
1843
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1863
- isActive: boolean;
1864
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1879
- isActive: boolean;
1880
- planKey: PlanKeyValue;
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
- status: SubscriptionStatusValue;
1898
- isActive: boolean;
1899
- planKey: PlanKeyValue;
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
- method: string;
1917
- amount: number;
1918
- reference?: string | null | undefined;
1919
- details?: any;
1920
- }, mongoose$1.Document<unknown, {}, {
1921
- method: string;
1922
- amount: number;
1923
- reference?: string | null | undefined;
1924
- details?: any;
1925
- }, {
1926
- id: string;
1927
- }, mongoose$1.ResolveSchemaOptions<{
1928
- _id: false;
1929
- }>> & Omit<{
1930
- method: string;
1931
- amount: number;
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
- method: string;
1945
- amount: number;
1946
- reference?: string | null | undefined;
1947
- details?: any;
1948
- }, {
1949
- id: string;
1950
- }, mongoose$1.ResolveSchemaOptions<{
1951
- _id: false;
1952
- }>> & Omit<{
1953
- method: string;
1954
- amount: number;
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
- method: string;
1966
- amount: number;
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
- method?: string | null | undefined;
1979
- amount?: number | null | undefined;
1980
- reference?: string | null | undefined;
1981
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
1982
- payments?: mongoose$1.Types.DocumentArray<{
1983
- method: string;
1984
- amount: number;
1985
- reference?: string | null | undefined;
1986
- details?: any;
1987
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
1988
- method: string;
1989
- amount: number;
1990
- reference?: string | null | undefined;
1991
- details?: any;
1992
- }> & {
1993
- method: string;
1994
- amount: number;
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
- method?: string | null | undefined;
2003
- amount?: number | null | undefined;
2004
- reference?: string | null | undefined;
2005
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2006
- payments?: mongoose$1.Types.DocumentArray<{
2007
- method: string;
2008
- amount: number;
2009
- reference?: string | null | undefined;
2010
- details?: any;
2011
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2012
- method: string;
2013
- amount: number;
2014
- reference?: string | null | undefined;
2015
- details?: any;
2016
- }> & {
2017
- method: string;
2018
- amount: number;
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
- method?: string | null | undefined;
2031
- amount?: number | null | undefined;
2032
- reference?: string | null | undefined;
2033
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2034
- payments?: mongoose$1.Types.DocumentArray<{
2035
- method: string;
2036
- amount: number;
2037
- reference?: string | null | undefined;
2038
- details?: any;
2039
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2040
- method: string;
2041
- amount: number;
2042
- reference?: string | null | undefined;
2043
- details?: any;
2044
- }> & {
2045
- method: string;
2046
- amount: number;
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
- method?: string | null | undefined;
2064
- amount?: number | null | undefined;
2065
- reference?: string | null | undefined;
2066
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2067
- payments?: mongoose$1.Types.DocumentArray<{
2068
- method: string;
2069
- amount: number;
2070
- reference?: string | null | undefined;
2071
- details?: any;
2072
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2073
- method: string;
2074
- amount: number;
2075
- reference?: string | null | undefined;
2076
- details?: any;
2077
- }> & {
2078
- method: string;
2079
- amount: number;
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
- method?: string | null | undefined;
2092
- amount?: number | null | undefined;
2093
- reference?: string | null | undefined;
2094
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2095
- payments?: mongoose$1.Types.DocumentArray<{
2096
- method: string;
2097
- amount: number;
2098
- reference?: string | null | undefined;
2099
- details?: any;
2100
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2101
- method: string;
2102
- amount: number;
2103
- reference?: string | null | undefined;
2104
- details?: any;
2105
- }> & {
2106
- method: string;
2107
- amount: number;
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
- method?: string | null | undefined;
2123
- amount?: number | null | undefined;
2124
- reference?: string | null | undefined;
2125
- transactionId?: mongoose$1.Types.ObjectId | null | undefined;
2126
- payments?: mongoose$1.Types.DocumentArray<{
2127
- method: string;
2128
- amount: number;
2129
- reference?: string | null | undefined;
2130
- details?: any;
2131
- }, mongoose$1.Types.Subdocument<bson.ObjectId, unknown, {
2132
- method: string;
2133
- amount: number;
2134
- reference?: string | null | undefined;
2135
- details?: any;
2136
- }> & {
2137
- method: string;
2138
- amount: number;
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
- sessionId?: string | null | undefined;
2396
- paymentIntentId?: string | null | undefined;
2397
- provider?: string | null | undefined;
2398
- verificationData?: any;
2399
- }, mongoose$1.Document<unknown, {}, {
2400
- type: string;
2401
- metadata: any;
2402
- sessionId?: string | null | undefined;
2403
- paymentIntentId?: string | null | undefined;
2404
- provider?: 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
- sessionId?: string | null | undefined;
2414
- paymentIntentId?: string | null | undefined;
2415
- provider?: 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
- sessionId?: string | null | undefined;
2430
- paymentIntentId?: string | null | undefined;
2431
- provider?: 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
- sessionId?: string | null | undefined;
2441
- paymentIntentId?: string | null | undefined;
2442
- provider?: 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
- sessionId?: string | null | undefined;
2455
- paymentIntentId?: string | null | undefined;
2456
- provider?: 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
- status: "pending" | "paid" | "waived" | "reversed";
2467
- splits: string[];
2468
- rate?: number | null | undefined;
2469
- grossAmount?: number | null | undefined;
2470
- gatewayFeeRate?: number | null | undefined;
2471
- gatewayFeeAmount?: number | null | undefined;
2472
- netAmount?: number | null | undefined;
2473
- affiliate?: {
2474
- rate?: number | null | undefined;
2475
- grossAmount?: number | null | undefined;
2476
- netAmount?: number | null | undefined;
2477
- recipientId?: string | null | undefined;
2478
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2479
- } | null | undefined;
2480
- }, mongoose$1.Document<unknown, {}, {
2481
- status: "pending" | "paid" | "waived" | "reversed";
2482
- splits: string[];
2483
- rate?: number | null | undefined;
2484
- grossAmount?: number | null | undefined;
2485
- gatewayFeeRate?: number | null | undefined;
2486
- gatewayFeeAmount?: number | null | undefined;
2487
- netAmount?: number | null | undefined;
2488
- affiliate?: {
2489
- rate?: number | null | undefined;
2490
- grossAmount?: number | null | undefined;
2491
- netAmount?: number | null | undefined;
2492
- recipientId?: string | null | undefined;
2493
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2494
- } | null | undefined;
2495
- }, {
2496
- id: string;
2497
- }, mongoose$1.ResolveSchemaOptions<{
2498
- _id: false;
2499
- }>> & Omit<{
2500
- status: "pending" | "paid" | "waived" | "reversed";
2501
- splits: string[];
2502
- rate?: number | null | undefined;
2503
- grossAmount?: number | null | undefined;
2504
- gatewayFeeRate?: number | null | undefined;
2505
- gatewayFeeAmount?: number | null | undefined;
2506
- netAmount?: number | null | undefined;
2507
- affiliate?: {
2508
- rate?: number | null | undefined;
2509
- grossAmount?: number | null | undefined;
2510
- netAmount?: number | null | undefined;
2511
- recipientId?: string | null | undefined;
2512
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2513
- } | 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
- status: "pending" | "paid" | "waived" | "reversed";
2525
- splits: string[];
2526
- rate?: number | null | undefined;
2527
- grossAmount?: number | null | undefined;
2528
- gatewayFeeRate?: number | null | undefined;
2529
- gatewayFeeAmount?: number | null | undefined;
2530
- netAmount?: number | null | undefined;
2531
- affiliate?: {
2532
- rate?: number | null | undefined;
2533
- grossAmount?: number | null | undefined;
2534
- netAmount?: number | null | undefined;
2535
- recipientId?: string | null | undefined;
2536
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2537
- } | null | undefined;
2538
- }, {
2539
- id: string;
2540
- }, mongoose$1.ResolveSchemaOptions<{
2541
- _id: false;
2542
- }>> & Omit<{
2543
- status: "pending" | "paid" | "waived" | "reversed";
2544
- splits: string[];
2545
- rate?: number | null | undefined;
2546
- grossAmount?: number | null | undefined;
2547
- gatewayFeeRate?: number | null | undefined;
2548
- gatewayFeeAmount?: number | null | undefined;
2549
- netAmount?: number | null | undefined;
2550
- affiliate?: {
2551
- rate?: number | null | undefined;
2552
- grossAmount?: number | null | undefined;
2553
- netAmount?: number | null | undefined;
2554
- recipientId?: string | null | undefined;
2555
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2556
- } | null | undefined;
2557
- } & {
2558
- _id: mongoose$1.Types.ObjectId;
2559
- } & {
2560
- __v: number;
2561
- }, "id"> & {
2562
- id: string;
2563
- }> | undefined;
2564
- }, {
2565
- status: "pending" | "paid" | "waived" | "reversed";
2566
- splits: string[];
2567
- rate?: number | null | undefined;
2568
- grossAmount?: number | null | undefined;
2569
- gatewayFeeRate?: number | null | undefined;
2570
- gatewayFeeAmount?: number | null | undefined;
2571
- netAmount?: number | null | undefined;
2572
- affiliate?: {
2573
- rate?: number | null | undefined;
2574
- grossAmount?: number | null | undefined;
2575
- netAmount?: number | null | undefined;
2576
- recipientId?: string | null | undefined;
2577
- recipientType?: "user" | "organization" | "partner" | null | undefined;
2578
- } | 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 };