@classytic/revenue 1.0.6 → 1.1.3

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 (81) hide show
  1. package/README.md +582 -633
  2. package/dist/application/services/index.d.mts +4 -0
  3. package/dist/application/services/index.mjs +3 -0
  4. package/dist/base-CsTlVQJe.d.mts +136 -0
  5. package/dist/base-DCoyIUj6.mjs +152 -0
  6. package/dist/category-resolver-DV83N8ok.mjs +284 -0
  7. package/dist/commission-split-BzB8cd39.mjs +485 -0
  8. package/dist/core/events.d.mts +294 -0
  9. package/dist/core/events.mjs +100 -0
  10. package/dist/core/index.d.mts +9 -0
  11. package/dist/core/index.mjs +8 -0
  12. package/dist/enums/index.d.mts +157 -0
  13. package/dist/enums/index.mjs +56 -0
  14. package/dist/errors-CorrWz7A.d.mts +787 -0
  15. package/dist/escrow.enums-CZGrrdg7.mjs +101 -0
  16. package/dist/escrow.enums-DwdLuuve.d.mts +78 -0
  17. package/dist/idempotency-DaYcUGY1.mjs +172 -0
  18. package/dist/index-Dsp7H5Wb.d.mts +471 -0
  19. package/dist/index.d.mts +9 -0
  20. package/dist/index.mjs +38 -0
  21. package/dist/infrastructure/plugins/index.d.mts +239 -0
  22. package/dist/infrastructure/plugins/index.mjs +345 -0
  23. package/dist/money-CvrDOijQ.mjs +271 -0
  24. package/dist/money-DPG8AtJ8.d.mts +112 -0
  25. package/dist/payment.enums-HAuAS9Pp.d.mts +70 -0
  26. package/dist/payment.enums-tEFVa-Xp.mjs +69 -0
  27. package/dist/plugin-BbK0OVHy.d.mts +327 -0
  28. package/dist/plugin-Cd_V04Em.mjs +210 -0
  29. package/dist/providers/index.d.mts +3 -0
  30. package/dist/providers/index.mjs +3 -0
  31. package/dist/reconciliation/index.d.mts +193 -0
  32. package/dist/reconciliation/index.mjs +192 -0
  33. package/dist/retry-HHCOXYdn.d.mts +186 -0
  34. package/dist/revenue-9scqKSef.mjs +553 -0
  35. package/dist/schemas/index.d.mts +2665 -0
  36. package/dist/schemas/index.mjs +717 -0
  37. package/dist/schemas/validation.d.mts +375 -0
  38. package/dist/schemas/validation.mjs +325 -0
  39. package/dist/settlement.enums-DFhkqZEY.d.mts +132 -0
  40. package/dist/settlement.schema-D5uWB5tP.d.mts +344 -0
  41. package/dist/settlement.service-BxuiHpNC.d.mts +594 -0
  42. package/dist/settlement.service-CUxbUTzT.mjs +2510 -0
  43. package/dist/split.enums-BrjabxIX.mjs +86 -0
  44. package/dist/split.enums-DmskfLOM.d.mts +43 -0
  45. package/dist/tax-BoCt5cEd.d.mts +61 -0
  46. package/dist/tax-EQ15DO81.mjs +162 -0
  47. package/dist/transaction.enums-pCyMFT4Z.mjs +96 -0
  48. package/dist/utils/index.d.mts +428 -0
  49. package/dist/utils/index.mjs +346 -0
  50. package/package.json +48 -33
  51. package/dist/actions-Ctf2XUL-.d.ts +0 -519
  52. package/dist/core/index.d.ts +0 -890
  53. package/dist/core/index.js +0 -3005
  54. package/dist/core/index.js.map +0 -1
  55. package/dist/enums/index.d.ts +0 -138
  56. package/dist/enums/index.js +0 -263
  57. package/dist/enums/index.js.map +0 -1
  58. package/dist/index-BnEXsnLJ.d.ts +0 -378
  59. package/dist/index-C5SsOrV0.d.ts +0 -534
  60. package/dist/index.d.ts +0 -43
  61. package/dist/index.js +0 -4498
  62. package/dist/index.js.map +0 -1
  63. package/dist/payment.enums-B_RwB8iR.d.ts +0 -184
  64. package/dist/providers/index.d.ts +0 -132
  65. package/dist/providers/index.js +0 -122
  66. package/dist/providers/index.js.map +0 -1
  67. package/dist/retry-80lBCmSe.d.ts +0 -234
  68. package/dist/schemas/index.d.ts +0 -1051
  69. package/dist/schemas/index.js +0 -627
  70. package/dist/schemas/index.js.map +0 -1
  71. package/dist/schemas/validation.d.ts +0 -384
  72. package/dist/schemas/validation.js +0 -302
  73. package/dist/schemas/validation.js.map +0 -1
  74. package/dist/services/index.d.ts +0 -3
  75. package/dist/services/index.js +0 -1702
  76. package/dist/services/index.js.map +0 -1
  77. package/dist/split.schema-DLVF3XBI.d.ts +0 -1122
  78. package/dist/transaction.enums-7uBnuswI.d.ts +0 -87
  79. package/dist/utils/index.d.ts +0 -24
  80. package/dist/utils/index.js +0 -1140
  81. package/dist/utils/index.js.map +0 -1
@@ -1,1051 +0,0 @@
1
- import * as bson from 'bson';
2
- import { W as SplitTypeValue, X as SplitStatusValue, Y as PayoutMethodValue, T as HoldStatusValue, V as HoldReasonValue, Q as PlanKeyValue, O as SubscriptionStatusValue, M as PaymentStatusValue } from '../payment.enums-B_RwB8iR.js';
3
- import * as mongoose from 'mongoose';
4
- export { b as baseMetadataSchema, e as commissionSchema, c as currentPaymentSchema, g as gatewaySchema, h as holdSchema, d as paymentDetailsSchema, p as paymentEntrySchema, a as paymentSummarySchema, f as planSchema, r as referenceSchema, i as splitSchema, s as subscriptionInfoSchema, t as tenantSnapshotSchema } from '../split.schema-DLVF3XBI.js';
5
-
6
- declare const _default: {
7
- splitSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
8
- _id: false;
9
- }, {
10
- type: SplitTypeValue;
11
- metadata: any;
12
- recipientId: string;
13
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
14
- gatewayFeeRate: number;
15
- rate: number;
16
- status: SplitStatusValue;
17
- grossAmount: number;
18
- netAmount: number;
19
- gatewayFeeAmount: number;
20
- dueDate?: NativeDate | null | undefined;
21
- paidDate?: NativeDate | null | undefined;
22
- payoutMethod?: PayoutMethodValue | null | undefined;
23
- payoutTransactionId?: string | null | undefined;
24
- }, mongoose.Document<unknown, {}, {
25
- type: SplitTypeValue;
26
- metadata: any;
27
- recipientId: string;
28
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
29
- gatewayFeeRate: number;
30
- rate: number;
31
- status: SplitStatusValue;
32
- grossAmount: number;
33
- netAmount: number;
34
- gatewayFeeAmount: number;
35
- dueDate?: NativeDate | null | undefined;
36
- paidDate?: NativeDate | null | undefined;
37
- payoutMethod?: PayoutMethodValue | null | undefined;
38
- payoutTransactionId?: string | null | undefined;
39
- }, {
40
- id: string;
41
- }, mongoose.ResolveSchemaOptions<{
42
- _id: false;
43
- }>> & Omit<{
44
- type: SplitTypeValue;
45
- metadata: any;
46
- recipientId: string;
47
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
48
- gatewayFeeRate: number;
49
- rate: number;
50
- status: SplitStatusValue;
51
- grossAmount: number;
52
- netAmount: number;
53
- gatewayFeeAmount: number;
54
- dueDate?: NativeDate | null | undefined;
55
- paidDate?: NativeDate | null | undefined;
56
- payoutMethod?: PayoutMethodValue | null | undefined;
57
- payoutTransactionId?: string | null | undefined;
58
- } & {
59
- _id: mongoose.Types.ObjectId;
60
- } & {
61
- __v: number;
62
- }, "id"> & {
63
- id: string;
64
- }, {
65
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
66
- } | {
67
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
68
- type: SplitTypeValue;
69
- metadata: any;
70
- recipientId: string;
71
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
72
- gatewayFeeRate: number;
73
- rate: number;
74
- status: SplitStatusValue;
75
- grossAmount: number;
76
- netAmount: number;
77
- gatewayFeeAmount: number;
78
- dueDate?: NativeDate | null | undefined;
79
- paidDate?: NativeDate | null | undefined;
80
- payoutMethod?: PayoutMethodValue | null | undefined;
81
- payoutTransactionId?: string | null | undefined;
82
- }, {
83
- id: string;
84
- }, mongoose.ResolveSchemaOptions<{
85
- _id: false;
86
- }>> & Omit<{
87
- type: SplitTypeValue;
88
- metadata: any;
89
- recipientId: string;
90
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
91
- gatewayFeeRate: number;
92
- rate: number;
93
- status: SplitStatusValue;
94
- grossAmount: number;
95
- netAmount: number;
96
- gatewayFeeAmount: number;
97
- dueDate?: NativeDate | null | undefined;
98
- paidDate?: NativeDate | null | undefined;
99
- payoutMethod?: PayoutMethodValue | null | undefined;
100
- payoutTransactionId?: string | null | undefined;
101
- } & {
102
- _id: mongoose.Types.ObjectId;
103
- } & {
104
- __v: number;
105
- }, "id"> & {
106
- id: string;
107
- }> | undefined;
108
- }, {
109
- type: SplitTypeValue;
110
- metadata: any;
111
- recipientId: string;
112
- recipientType: "user" | "affiliate" | "platform" | "organization" | "partner";
113
- gatewayFeeRate: number;
114
- rate: number;
115
- status: SplitStatusValue;
116
- grossAmount: number;
117
- netAmount: number;
118
- gatewayFeeAmount: number;
119
- dueDate?: NativeDate | null | undefined;
120
- paidDate?: NativeDate | null | undefined;
121
- payoutMethod?: PayoutMethodValue | null | undefined;
122
- payoutTransactionId?: string | null | undefined;
123
- } & {
124
- _id: mongoose.Types.ObjectId;
125
- } & {
126
- __v: number;
127
- }>;
128
- holdSchema: {
129
- readonly status: {
130
- readonly type: StringConstructor;
131
- readonly enum: HoldStatusValue[];
132
- readonly default: "pending";
133
- };
134
- readonly heldAmount: {
135
- readonly type: NumberConstructor;
136
- readonly required: false;
137
- };
138
- readonly releasedAmount: {
139
- readonly type: NumberConstructor;
140
- readonly default: 0;
141
- };
142
- readonly reason: {
143
- readonly type: StringConstructor;
144
- readonly enum: HoldReasonValue[];
145
- readonly required: false;
146
- };
147
- readonly holdUntil: {
148
- readonly type: DateConstructor;
149
- readonly required: false;
150
- };
151
- readonly heldAt: DateConstructor;
152
- readonly releasedAt: DateConstructor;
153
- readonly cancelledAt: DateConstructor;
154
- readonly releases: readonly [{
155
- readonly amount: NumberConstructor;
156
- readonly recipientId: StringConstructor;
157
- readonly recipientType: StringConstructor;
158
- readonly releasedAt: DateConstructor;
159
- readonly releasedBy: StringConstructor;
160
- readonly reason: StringConstructor;
161
- readonly metadata: ObjectConstructor;
162
- }];
163
- readonly metadata: {
164
- readonly type: ObjectConstructor;
165
- readonly default: {};
166
- };
167
- };
168
- planSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
169
- _id: false;
170
- }, {
171
- amount: number;
172
- currency: string;
173
- metadata: any;
174
- interval: "day" | "week" | "month" | "year";
175
- intervalCount: number;
176
- name: string;
177
- key: PlanKeyValue;
178
- isActive: boolean;
179
- features: string[];
180
- description?: string | null | undefined;
181
- }, mongoose.Document<unknown, {}, {
182
- amount: number;
183
- currency: string;
184
- metadata: any;
185
- interval: "day" | "week" | "month" | "year";
186
- intervalCount: number;
187
- name: string;
188
- key: PlanKeyValue;
189
- isActive: boolean;
190
- features: string[];
191
- description?: string | null | undefined;
192
- }, {
193
- id: string;
194
- }, mongoose.ResolveSchemaOptions<{
195
- _id: false;
196
- }>> & Omit<{
197
- amount: number;
198
- currency: string;
199
- metadata: any;
200
- interval: "day" | "week" | "month" | "year";
201
- intervalCount: number;
202
- name: string;
203
- key: PlanKeyValue;
204
- isActive: boolean;
205
- features: string[];
206
- description?: string | null | undefined;
207
- } & {
208
- _id: mongoose.Types.ObjectId;
209
- } & {
210
- __v: number;
211
- }, "id"> & {
212
- id: string;
213
- }, {
214
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
215
- } | {
216
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
217
- amount: number;
218
- currency: string;
219
- metadata: any;
220
- interval: "day" | "week" | "month" | "year";
221
- intervalCount: number;
222
- name: string;
223
- key: PlanKeyValue;
224
- isActive: boolean;
225
- features: string[];
226
- description?: string | null | undefined;
227
- }, {
228
- id: string;
229
- }, mongoose.ResolveSchemaOptions<{
230
- _id: false;
231
- }>> & Omit<{
232
- amount: number;
233
- currency: string;
234
- metadata: any;
235
- interval: "day" | "week" | "month" | "year";
236
- intervalCount: number;
237
- name: string;
238
- key: PlanKeyValue;
239
- isActive: boolean;
240
- features: string[];
241
- description?: string | null | undefined;
242
- } & {
243
- _id: mongoose.Types.ObjectId;
244
- } & {
245
- __v: number;
246
- }, "id"> & {
247
- id: string;
248
- }> | undefined;
249
- }, {
250
- amount: number;
251
- currency: string;
252
- metadata: any;
253
- interval: "day" | "week" | "month" | "year";
254
- intervalCount: number;
255
- name: string;
256
- key: PlanKeyValue;
257
- isActive: boolean;
258
- features: string[];
259
- description?: string | null | undefined;
260
- } & {
261
- _id: mongoose.Types.ObjectId;
262
- } & {
263
- __v: number;
264
- }>;
265
- subscriptionInfoSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
266
- _id: false;
267
- }, {
268
- planKey: PlanKeyValue;
269
- status: SubscriptionStatusValue;
270
- isActive: boolean;
271
- renewalCount: number;
272
- pausedAt?: NativeDate | null | undefined;
273
- endDate?: NativeDate | null | undefined;
274
- lastPaymentDate?: NativeDate | null | undefined;
275
- lastPaymentAmount?: number | null | undefined;
276
- startDate?: NativeDate | null | undefined;
277
- canceledAt?: NativeDate | null | undefined;
278
- cancelAt?: NativeDate | null | undefined;
279
- }, mongoose.Document<unknown, {}, {
280
- planKey: PlanKeyValue;
281
- status: SubscriptionStatusValue;
282
- isActive: boolean;
283
- renewalCount: number;
284
- pausedAt?: NativeDate | null | undefined;
285
- endDate?: NativeDate | null | undefined;
286
- lastPaymentDate?: NativeDate | null | undefined;
287
- lastPaymentAmount?: number | null | undefined;
288
- startDate?: NativeDate | null | undefined;
289
- canceledAt?: NativeDate | null | undefined;
290
- cancelAt?: NativeDate | null | undefined;
291
- }, {
292
- id: string;
293
- }, mongoose.ResolveSchemaOptions<{
294
- _id: false;
295
- }>> & Omit<{
296
- planKey: PlanKeyValue;
297
- status: SubscriptionStatusValue;
298
- isActive: boolean;
299
- renewalCount: number;
300
- pausedAt?: NativeDate | null | undefined;
301
- endDate?: NativeDate | null | undefined;
302
- lastPaymentDate?: NativeDate | null | undefined;
303
- lastPaymentAmount?: number | null | undefined;
304
- startDate?: NativeDate | null | undefined;
305
- canceledAt?: NativeDate | null | undefined;
306
- cancelAt?: NativeDate | null | undefined;
307
- } & {
308
- _id: mongoose.Types.ObjectId;
309
- } & {
310
- __v: number;
311
- }, "id"> & {
312
- id: string;
313
- }, {
314
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
315
- } | {
316
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
317
- planKey: PlanKeyValue;
318
- status: SubscriptionStatusValue;
319
- isActive: boolean;
320
- renewalCount: number;
321
- pausedAt?: NativeDate | null | undefined;
322
- endDate?: NativeDate | null | undefined;
323
- lastPaymentDate?: NativeDate | null | undefined;
324
- lastPaymentAmount?: number | null | undefined;
325
- startDate?: NativeDate | null | undefined;
326
- canceledAt?: NativeDate | null | undefined;
327
- cancelAt?: NativeDate | null | undefined;
328
- }, {
329
- id: string;
330
- }, mongoose.ResolveSchemaOptions<{
331
- _id: false;
332
- }>> & Omit<{
333
- planKey: PlanKeyValue;
334
- status: SubscriptionStatusValue;
335
- isActive: boolean;
336
- renewalCount: number;
337
- pausedAt?: NativeDate | null | undefined;
338
- endDate?: NativeDate | null | undefined;
339
- lastPaymentDate?: NativeDate | null | undefined;
340
- lastPaymentAmount?: number | null | undefined;
341
- startDate?: NativeDate | null | undefined;
342
- canceledAt?: NativeDate | null | undefined;
343
- cancelAt?: NativeDate | null | undefined;
344
- } & {
345
- _id: mongoose.Types.ObjectId;
346
- } & {
347
- __v: number;
348
- }, "id"> & {
349
- id: string;
350
- }> | undefined;
351
- }, {
352
- planKey: PlanKeyValue;
353
- status: SubscriptionStatusValue;
354
- isActive: boolean;
355
- renewalCount: number;
356
- pausedAt?: NativeDate | null | undefined;
357
- endDate?: NativeDate | null | undefined;
358
- lastPaymentDate?: NativeDate | null | undefined;
359
- lastPaymentAmount?: number | null | undefined;
360
- startDate?: NativeDate | null | undefined;
361
- canceledAt?: NativeDate | null | undefined;
362
- cancelAt?: NativeDate | null | undefined;
363
- } & {
364
- _id: mongoose.Types.ObjectId;
365
- } & {
366
- __v: number;
367
- }>;
368
- paymentEntrySchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
369
- _id: false;
370
- }, {
371
- amount: number;
372
- method: string;
373
- reference?: string | null | undefined;
374
- details?: any;
375
- }, mongoose.Document<unknown, {}, {
376
- amount: number;
377
- method: string;
378
- reference?: string | null | undefined;
379
- details?: any;
380
- }, {
381
- id: string;
382
- }, mongoose.ResolveSchemaOptions<{
383
- _id: false;
384
- }>> & Omit<{
385
- amount: number;
386
- method: string;
387
- reference?: string | null | undefined;
388
- details?: any;
389
- } & {
390
- _id: mongoose.Types.ObjectId;
391
- } & {
392
- __v: number;
393
- }, "id"> & {
394
- id: string;
395
- }, {
396
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
397
- } | {
398
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
399
- amount: number;
400
- method: string;
401
- reference?: string | null | undefined;
402
- details?: any;
403
- }, {
404
- id: string;
405
- }, mongoose.ResolveSchemaOptions<{
406
- _id: false;
407
- }>> & Omit<{
408
- amount: number;
409
- method: string;
410
- reference?: string | null | undefined;
411
- details?: any;
412
- } & {
413
- _id: mongoose.Types.ObjectId;
414
- } & {
415
- __v: number;
416
- }, "id"> & {
417
- id: string;
418
- }> | undefined;
419
- }, {
420
- amount: number;
421
- method: string;
422
- reference?: string | null | undefined;
423
- details?: any;
424
- } & {
425
- _id: mongoose.Types.ObjectId;
426
- } & {
427
- __v: number;
428
- }>;
429
- currentPaymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
430
- _id: false;
431
- }, {
432
- status: PaymentStatusValue;
433
- amount?: number | null | undefined;
434
- transactionId?: mongoose.Types.ObjectId | null | undefined;
435
- method?: string | null | undefined;
436
- reference?: string | null | undefined;
437
- payments?: mongoose.Types.DocumentArray<{
438
- amount: number;
439
- method: string;
440
- reference?: string | null | undefined;
441
- details?: any;
442
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
443
- amount: number;
444
- method: string;
445
- reference?: string | null | undefined;
446
- details?: any;
447
- }> & {
448
- amount: number;
449
- method: string;
450
- reference?: string | null | undefined;
451
- details?: any;
452
- }> | null | undefined;
453
- verifiedAt?: NativeDate | null | undefined;
454
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
455
- }, mongoose.Document<unknown, {}, {
456
- status: PaymentStatusValue;
457
- amount?: number | null | undefined;
458
- transactionId?: mongoose.Types.ObjectId | null | undefined;
459
- method?: string | null | undefined;
460
- reference?: string | null | undefined;
461
- payments?: mongoose.Types.DocumentArray<{
462
- amount: number;
463
- method: string;
464
- reference?: string | null | undefined;
465
- details?: any;
466
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
467
- amount: number;
468
- method: string;
469
- reference?: string | null | undefined;
470
- details?: any;
471
- }> & {
472
- amount: number;
473
- method: string;
474
- reference?: string | null | undefined;
475
- details?: any;
476
- }> | null | undefined;
477
- verifiedAt?: NativeDate | null | undefined;
478
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
479
- }, {
480
- id: string;
481
- }, mongoose.ResolveSchemaOptions<{
482
- _id: false;
483
- }>> & Omit<{
484
- status: PaymentStatusValue;
485
- amount?: number | null | undefined;
486
- transactionId?: mongoose.Types.ObjectId | null | undefined;
487
- method?: string | null | undefined;
488
- reference?: string | null | undefined;
489
- payments?: mongoose.Types.DocumentArray<{
490
- amount: number;
491
- method: string;
492
- reference?: string | null | undefined;
493
- details?: any;
494
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
495
- amount: number;
496
- method: string;
497
- reference?: string | null | undefined;
498
- details?: any;
499
- }> & {
500
- amount: number;
501
- method: string;
502
- reference?: string | null | undefined;
503
- details?: any;
504
- }> | null | undefined;
505
- verifiedAt?: NativeDate | null | undefined;
506
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
507
- } & {
508
- _id: mongoose.Types.ObjectId;
509
- } & {
510
- __v: number;
511
- }, "id"> & {
512
- id: string;
513
- }, {
514
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
515
- } | {
516
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
517
- status: PaymentStatusValue;
518
- amount?: number | null | undefined;
519
- transactionId?: mongoose.Types.ObjectId | null | undefined;
520
- method?: string | null | undefined;
521
- reference?: string | null | undefined;
522
- payments?: mongoose.Types.DocumentArray<{
523
- amount: number;
524
- method: string;
525
- reference?: string | null | undefined;
526
- details?: any;
527
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
528
- amount: number;
529
- method: string;
530
- reference?: string | null | undefined;
531
- details?: any;
532
- }> & {
533
- amount: number;
534
- method: string;
535
- reference?: string | null | undefined;
536
- details?: any;
537
- }> | null | undefined;
538
- verifiedAt?: NativeDate | null | undefined;
539
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
540
- }, {
541
- id: string;
542
- }, mongoose.ResolveSchemaOptions<{
543
- _id: false;
544
- }>> & Omit<{
545
- status: PaymentStatusValue;
546
- amount?: number | null | undefined;
547
- transactionId?: mongoose.Types.ObjectId | null | undefined;
548
- method?: string | null | undefined;
549
- reference?: string | null | undefined;
550
- payments?: mongoose.Types.DocumentArray<{
551
- amount: number;
552
- method: string;
553
- reference?: string | null | undefined;
554
- details?: any;
555
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
556
- amount: number;
557
- method: string;
558
- reference?: string | null | undefined;
559
- details?: any;
560
- }> & {
561
- amount: number;
562
- method: string;
563
- reference?: string | null | undefined;
564
- details?: any;
565
- }> | null | undefined;
566
- verifiedAt?: NativeDate | null | undefined;
567
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
568
- } & {
569
- _id: mongoose.Types.ObjectId;
570
- } & {
571
- __v: number;
572
- }, "id"> & {
573
- id: string;
574
- }> | undefined;
575
- }, {
576
- status: PaymentStatusValue;
577
- amount?: number | null | undefined;
578
- transactionId?: mongoose.Types.ObjectId | null | undefined;
579
- method?: string | null | undefined;
580
- reference?: string | null | undefined;
581
- payments?: mongoose.Types.DocumentArray<{
582
- amount: number;
583
- method: string;
584
- reference?: string | null | undefined;
585
- details?: any;
586
- }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
587
- amount: number;
588
- method: string;
589
- reference?: string | null | undefined;
590
- details?: any;
591
- }> & {
592
- amount: number;
593
- method: string;
594
- reference?: string | null | undefined;
595
- details?: any;
596
- }> | null | undefined;
597
- verifiedAt?: NativeDate | null | undefined;
598
- verifiedBy?: mongoose.Types.ObjectId | null | undefined;
599
- } & {
600
- _id: mongoose.Types.ObjectId;
601
- } & {
602
- __v: number;
603
- }>;
604
- paymentSummarySchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
605
- _id: false;
606
- }, {
607
- totalPayments: number;
608
- totalAmountPaid: number;
609
- lastPaymentDate?: NativeDate | null | undefined;
610
- lastPaymentAmount?: number | null | undefined;
611
- }, mongoose.Document<unknown, {}, {
612
- totalPayments: number;
613
- totalAmountPaid: number;
614
- lastPaymentDate?: NativeDate | null | undefined;
615
- lastPaymentAmount?: number | null | undefined;
616
- }, {
617
- id: string;
618
- }, mongoose.ResolveSchemaOptions<{
619
- _id: false;
620
- }>> & Omit<{
621
- totalPayments: number;
622
- totalAmountPaid: number;
623
- lastPaymentDate?: NativeDate | null | undefined;
624
- lastPaymentAmount?: number | null | undefined;
625
- } & {
626
- _id: mongoose.Types.ObjectId;
627
- } & {
628
- __v: number;
629
- }, "id"> & {
630
- id: string;
631
- }, {
632
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
633
- } | {
634
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
635
- totalPayments: number;
636
- totalAmountPaid: number;
637
- lastPaymentDate?: NativeDate | null | undefined;
638
- lastPaymentAmount?: number | null | undefined;
639
- }, {
640
- id: string;
641
- }, mongoose.ResolveSchemaOptions<{
642
- _id: false;
643
- }>> & Omit<{
644
- totalPayments: number;
645
- totalAmountPaid: number;
646
- lastPaymentDate?: NativeDate | null | undefined;
647
- lastPaymentAmount?: number | null | undefined;
648
- } & {
649
- _id: mongoose.Types.ObjectId;
650
- } & {
651
- __v: number;
652
- }, "id"> & {
653
- id: string;
654
- }> | undefined;
655
- }, {
656
- totalPayments: number;
657
- totalAmountPaid: number;
658
- lastPaymentDate?: NativeDate | null | undefined;
659
- lastPaymentAmount?: number | null | undefined;
660
- } & {
661
- _id: mongoose.Types.ObjectId;
662
- } & {
663
- __v: number;
664
- }>;
665
- paymentDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
666
- _id: false;
667
- }, {
668
- provider?: string | null | undefined;
669
- walletNumber?: string | null | undefined;
670
- walletType?: string | null | undefined;
671
- trxId?: string | null | undefined;
672
- bankName?: string | null | undefined;
673
- accountNumber?: string | null | undefined;
674
- accountName?: string | null | undefined;
675
- proofUrl?: string | null | undefined;
676
- }, mongoose.Document<unknown, {}, {
677
- provider?: string | null | undefined;
678
- walletNumber?: string | null | undefined;
679
- walletType?: string | null | undefined;
680
- trxId?: string | null | undefined;
681
- bankName?: string | null | undefined;
682
- accountNumber?: string | null | undefined;
683
- accountName?: string | null | undefined;
684
- proofUrl?: string | null | undefined;
685
- }, {
686
- id: string;
687
- }, mongoose.ResolveSchemaOptions<{
688
- _id: false;
689
- }>> & Omit<{
690
- provider?: string | null | undefined;
691
- walletNumber?: string | null | undefined;
692
- walletType?: string | null | undefined;
693
- trxId?: string | null | undefined;
694
- bankName?: string | null | undefined;
695
- accountNumber?: string | null | undefined;
696
- accountName?: string | null | undefined;
697
- proofUrl?: string | null | undefined;
698
- } & {
699
- _id: mongoose.Types.ObjectId;
700
- } & {
701
- __v: number;
702
- }, "id"> & {
703
- id: string;
704
- }, {
705
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
706
- } | {
707
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
708
- provider?: string | null | undefined;
709
- walletNumber?: string | null | undefined;
710
- walletType?: string | null | undefined;
711
- trxId?: string | null | undefined;
712
- bankName?: string | null | undefined;
713
- accountNumber?: string | null | undefined;
714
- accountName?: string | null | undefined;
715
- proofUrl?: string | null | undefined;
716
- }, {
717
- id: string;
718
- }, mongoose.ResolveSchemaOptions<{
719
- _id: false;
720
- }>> & Omit<{
721
- provider?: string | null | undefined;
722
- walletNumber?: string | null | undefined;
723
- walletType?: string | null | undefined;
724
- trxId?: string | null | undefined;
725
- bankName?: string | null | undefined;
726
- accountNumber?: string | null | undefined;
727
- accountName?: string | null | undefined;
728
- proofUrl?: string | null | undefined;
729
- } & {
730
- _id: mongoose.Types.ObjectId;
731
- } & {
732
- __v: number;
733
- }, "id"> & {
734
- id: string;
735
- }> | undefined;
736
- }, {
737
- provider?: string | null | undefined;
738
- walletNumber?: string | null | undefined;
739
- walletType?: string | null | undefined;
740
- trxId?: string | null | undefined;
741
- bankName?: string | null | undefined;
742
- accountNumber?: string | null | undefined;
743
- accountName?: string | null | undefined;
744
- proofUrl?: string | null | undefined;
745
- } & {
746
- _id: mongoose.Types.ObjectId;
747
- } & {
748
- __v: number;
749
- }>;
750
- tenantSnapshotSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
751
- _id: false;
752
- }, {
753
- paymentInstructions?: string | null | undefined;
754
- bkashNumber?: string | null | undefined;
755
- nagadNumber?: string | null | undefined;
756
- bankAccount?: string | null | undefined;
757
- }, mongoose.Document<unknown, {}, {
758
- paymentInstructions?: string | null | undefined;
759
- bkashNumber?: string | null | undefined;
760
- nagadNumber?: string | null | undefined;
761
- bankAccount?: string | null | undefined;
762
- }, {
763
- id: string;
764
- }, mongoose.ResolveSchemaOptions<{
765
- _id: false;
766
- }>> & Omit<{
767
- paymentInstructions?: string | null | undefined;
768
- bkashNumber?: string | null | undefined;
769
- nagadNumber?: string | null | undefined;
770
- bankAccount?: string | null | undefined;
771
- } & {
772
- _id: mongoose.Types.ObjectId;
773
- } & {
774
- __v: number;
775
- }, "id"> & {
776
- id: string;
777
- }, {
778
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
779
- } | {
780
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
781
- paymentInstructions?: string | null | undefined;
782
- bkashNumber?: string | null | undefined;
783
- nagadNumber?: string | null | undefined;
784
- bankAccount?: string | null | undefined;
785
- }, {
786
- id: string;
787
- }, mongoose.ResolveSchemaOptions<{
788
- _id: false;
789
- }>> & Omit<{
790
- paymentInstructions?: string | null | undefined;
791
- bkashNumber?: string | null | undefined;
792
- nagadNumber?: string | null | undefined;
793
- bankAccount?: string | null | undefined;
794
- } & {
795
- _id: mongoose.Types.ObjectId;
796
- } & {
797
- __v: number;
798
- }, "id"> & {
799
- id: string;
800
- }> | undefined;
801
- }, {
802
- paymentInstructions?: string | null | undefined;
803
- bkashNumber?: string | null | undefined;
804
- nagadNumber?: string | null | undefined;
805
- bankAccount?: string | null | undefined;
806
- } & {
807
- _id: mongoose.Types.ObjectId;
808
- } & {
809
- __v: number;
810
- }>;
811
- baseMetadataSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
812
- _id: false;
813
- strict: false;
814
- }, {}, mongoose.Document<unknown, {}, {}, {
815
- id: string;
816
- }, mongoose.ResolveSchemaOptions<{
817
- _id: false;
818
- strict: false;
819
- }>> & Omit<Required<{
820
- _id: unknown;
821
- }> & {
822
- __v: number;
823
- }, "id"> & {
824
- id: string;
825
- }, {
826
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
827
- } | {
828
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {}, {
829
- id: string;
830
- }, mongoose.ResolveSchemaOptions<{
831
- _id: false;
832
- strict: false;
833
- }>> & Omit<Required<{
834
- _id: unknown;
835
- }> & {
836
- __v: number;
837
- }, "id"> & {
838
- id: string;
839
- }> | undefined;
840
- }, {} & Required<{
841
- _id: unknown;
842
- }> & {
843
- __v: number;
844
- }>;
845
- referenceSchema: {
846
- referenceId: {
847
- type: typeof mongoose.Schema.Types.ObjectId;
848
- refPath: string;
849
- };
850
- referenceModel: {
851
- type: StringConstructor;
852
- enum: string[];
853
- };
854
- };
855
- gatewaySchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
856
- _id: false;
857
- }, {
858
- type: string;
859
- metadata: any;
860
- provider?: string | null | undefined;
861
- sessionId?: string | null | undefined;
862
- paymentIntentId?: string | null | undefined;
863
- verificationData?: any;
864
- }, mongoose.Document<unknown, {}, {
865
- type: string;
866
- metadata: any;
867
- provider?: string | null | undefined;
868
- sessionId?: string | null | undefined;
869
- paymentIntentId?: string | null | undefined;
870
- verificationData?: any;
871
- }, {
872
- id: string;
873
- }, mongoose.ResolveSchemaOptions<{
874
- _id: false;
875
- }>> & Omit<{
876
- type: string;
877
- metadata: any;
878
- provider?: string | null | undefined;
879
- sessionId?: string | null | undefined;
880
- paymentIntentId?: string | null | undefined;
881
- verificationData?: any;
882
- } & {
883
- _id: mongoose.Types.ObjectId;
884
- } & {
885
- __v: number;
886
- }, "id"> & {
887
- id: string;
888
- }, {
889
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
890
- } | {
891
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
892
- type: string;
893
- metadata: any;
894
- provider?: string | null | undefined;
895
- sessionId?: string | null | undefined;
896
- paymentIntentId?: string | null | undefined;
897
- verificationData?: any;
898
- }, {
899
- id: string;
900
- }, mongoose.ResolveSchemaOptions<{
901
- _id: false;
902
- }>> & Omit<{
903
- type: string;
904
- metadata: any;
905
- provider?: string | null | undefined;
906
- sessionId?: string | null | undefined;
907
- paymentIntentId?: string | null | undefined;
908
- verificationData?: any;
909
- } & {
910
- _id: mongoose.Types.ObjectId;
911
- } & {
912
- __v: number;
913
- }, "id"> & {
914
- id: string;
915
- }> | undefined;
916
- }, {
917
- type: string;
918
- metadata: any;
919
- provider?: string | null | undefined;
920
- sessionId?: string | null | undefined;
921
- paymentIntentId?: string | null | undefined;
922
- verificationData?: any;
923
- } & {
924
- _id: mongoose.Types.ObjectId;
925
- } & {
926
- __v: number;
927
- }>;
928
- commissionSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
929
- _id: false;
930
- }, {
931
- splits: string[];
932
- status: "pending" | "paid" | "waived" | "reversed";
933
- gatewayFeeRate?: number | null | undefined;
934
- rate?: number | null | undefined;
935
- affiliate?: {
936
- recipientId?: string | null | undefined;
937
- recipientType?: "user" | "organization" | "partner" | null | undefined;
938
- rate?: number | null | undefined;
939
- grossAmount?: number | null | undefined;
940
- netAmount?: number | null | undefined;
941
- } | null | undefined;
942
- grossAmount?: number | null | undefined;
943
- netAmount?: number | null | undefined;
944
- gatewayFeeAmount?: number | null | undefined;
945
- }, mongoose.Document<unknown, {}, {
946
- splits: string[];
947
- status: "pending" | "paid" | "waived" | "reversed";
948
- gatewayFeeRate?: number | null | undefined;
949
- rate?: number | null | undefined;
950
- affiliate?: {
951
- recipientId?: string | null | undefined;
952
- recipientType?: "user" | "organization" | "partner" | null | undefined;
953
- rate?: number | null | undefined;
954
- grossAmount?: number | null | undefined;
955
- netAmount?: number | null | undefined;
956
- } | null | undefined;
957
- grossAmount?: number | null | undefined;
958
- netAmount?: number | null | undefined;
959
- gatewayFeeAmount?: number | null | undefined;
960
- }, {
961
- id: string;
962
- }, mongoose.ResolveSchemaOptions<{
963
- _id: false;
964
- }>> & Omit<{
965
- splits: string[];
966
- status: "pending" | "paid" | "waived" | "reversed";
967
- gatewayFeeRate?: number | null | undefined;
968
- rate?: number | null | undefined;
969
- affiliate?: {
970
- recipientId?: string | null | undefined;
971
- recipientType?: "user" | "organization" | "partner" | null | undefined;
972
- rate?: number | null | undefined;
973
- grossAmount?: number | null | undefined;
974
- netAmount?: number | null | undefined;
975
- } | null | undefined;
976
- grossAmount?: number | null | undefined;
977
- netAmount?: number | null | undefined;
978
- gatewayFeeAmount?: number | null | undefined;
979
- } & {
980
- _id: mongoose.Types.ObjectId;
981
- } & {
982
- __v: number;
983
- }, "id"> & {
984
- id: string;
985
- }, {
986
- [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
987
- } | {
988
- [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
989
- splits: string[];
990
- status: "pending" | "paid" | "waived" | "reversed";
991
- gatewayFeeRate?: number | null | undefined;
992
- rate?: number | null | undefined;
993
- affiliate?: {
994
- recipientId?: string | null | undefined;
995
- recipientType?: "user" | "organization" | "partner" | null | undefined;
996
- rate?: number | null | undefined;
997
- grossAmount?: number | null | undefined;
998
- netAmount?: number | null | undefined;
999
- } | null | undefined;
1000
- grossAmount?: number | null | undefined;
1001
- netAmount?: number | null | undefined;
1002
- gatewayFeeAmount?: number | null | undefined;
1003
- }, {
1004
- id: string;
1005
- }, mongoose.ResolveSchemaOptions<{
1006
- _id: false;
1007
- }>> & Omit<{
1008
- splits: string[];
1009
- status: "pending" | "paid" | "waived" | "reversed";
1010
- gatewayFeeRate?: number | null | undefined;
1011
- rate?: number | null | undefined;
1012
- affiliate?: {
1013
- recipientId?: string | null | undefined;
1014
- recipientType?: "user" | "organization" | "partner" | null | undefined;
1015
- rate?: number | null | undefined;
1016
- grossAmount?: number | null | undefined;
1017
- netAmount?: number | null | undefined;
1018
- } | null | undefined;
1019
- grossAmount?: number | null | undefined;
1020
- netAmount?: number | null | undefined;
1021
- gatewayFeeAmount?: number | null | undefined;
1022
- } & {
1023
- _id: mongoose.Types.ObjectId;
1024
- } & {
1025
- __v: number;
1026
- }, "id"> & {
1027
- id: string;
1028
- }> | undefined;
1029
- }, {
1030
- splits: string[];
1031
- status: "pending" | "paid" | "waived" | "reversed";
1032
- gatewayFeeRate?: number | null | undefined;
1033
- rate?: number | null | undefined;
1034
- affiliate?: {
1035
- recipientId?: string | null | undefined;
1036
- recipientType?: "user" | "organization" | "partner" | null | undefined;
1037
- rate?: number | null | undefined;
1038
- grossAmount?: number | null | undefined;
1039
- netAmount?: number | null | undefined;
1040
- } | null | undefined;
1041
- grossAmount?: number | null | undefined;
1042
- netAmount?: number | null | undefined;
1043
- gatewayFeeAmount?: number | null | undefined;
1044
- } & {
1045
- _id: mongoose.Types.ObjectId;
1046
- } & {
1047
- __v: number;
1048
- }>;
1049
- };
1050
-
1051
- export { _default as default };