@lyxa.ai/core 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.d.ts +1 -2
- package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.js +2 -1
- package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.d.ts +17 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js +69 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts +2 -6
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js +4 -24
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js +3 -8
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/profit.model.d.ts +14 -0
- package/dist/libraries/mongo/models/embedded/profit.model.js +63 -0
- package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/vat.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/vat.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/vat.model.js.map +1 -0
- package/dist/libraries/mongo/models/finance-settlement.model.d.ts +18 -0
- package/dist/libraries/mongo/models/finance-settlement.model.js +68 -0
- package/dist/libraries/mongo/models/finance-settlement.model.js.map +1 -0
- package/dist/libraries/mongo/models/index.d.ts +28 -16
- package/dist/libraries/mongo/models/index.js +30 -18
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/order-finance.model.d.ts +12 -0
- package/dist/libraries/mongo/models/order-finance.model.js +45 -0
- package/dist/libraries/mongo/models/order-finance.model.js.map +1 -0
- package/dist/libraries/mongo/models/order-payment.model.d.ts +0 -4
- package/dist/libraries/mongo/models/order-payment.model.js +2 -14
- package/dist/libraries/mongo/models/order-payment.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/courier-order-finance.model.d.ts +7 -0
- package/dist/libraries/mongo/models/providers/courier-order-finance.model.js +26 -0
- package/dist/libraries/mongo/models/providers/courier-order-finance.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.d.ts +18 -0
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.js +73 -0
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.js.map +1 -0
- package/dist/utilities/enum.d.ts +12 -1
- package/dist/utilities/enum.js +14 -2
- package/dist/utilities/enum.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DeliveryCharge = void 0;
|
|
12
|
+
exports.DeliveryCharge = exports.Charge = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
class Charge {
|
|
@@ -18,6 +18,7 @@ class Charge {
|
|
|
18
18
|
charge;
|
|
19
19
|
riderCut;
|
|
20
20
|
}
|
|
21
|
+
exports.Charge = Charge;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
|
|
23
24
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"delivery-charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,MAAM;IAEX,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAZD,wBAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kCAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACtB;AAG1B,MAAa,cAAc;IAE1B,IAAI,CAAS;IAGb,OAAO,CAAU;CACjB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,OAAO,EAAE,CAAC;;4CACvD;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CAC3B","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderType } from '../../../../utilities/enum';\n\nexport class Charge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class DeliveryCharge {\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\n\ttype: string;\n\n\t@prop({ type: () => [Charge], default: [] })\n\tcharges: Charge[]\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { Coupon } from '../coupon.model';
|
|
3
|
+
export declare class MarketingCut {
|
|
4
|
+
companyCut?: number;
|
|
5
|
+
secondaryCompanyCut?: number;
|
|
6
|
+
shopCut?: number;
|
|
7
|
+
secondaryShopCut?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class LoyaltyPoint extends MarketingCut {
|
|
10
|
+
redeemCashback?: number;
|
|
11
|
+
secondaryRedeemCashback?: number;
|
|
12
|
+
points?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class CouponDetails extends MarketingCut {
|
|
15
|
+
coupon?: Ref<Coupon>;
|
|
16
|
+
snap?: object;
|
|
17
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CouponDetails = exports.LoyaltyPoint = exports.MarketingCut = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const coupon_model_1 = require("../coupon.model");
|
|
15
|
+
class MarketingCut {
|
|
16
|
+
companyCut;
|
|
17
|
+
secondaryCompanyCut;
|
|
18
|
+
shopCut;
|
|
19
|
+
secondaryShopCut;
|
|
20
|
+
}
|
|
21
|
+
exports.MarketingCut = MarketingCut;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], MarketingCut.prototype, "companyCut", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], MarketingCut.prototype, "secondaryCompanyCut", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], MarketingCut.prototype, "shopCut", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], MarketingCut.prototype, "secondaryShopCut", void 0);
|
|
38
|
+
class LoyaltyPoint extends MarketingCut {
|
|
39
|
+
redeemCashback;
|
|
40
|
+
secondaryRedeemCashback;
|
|
41
|
+
points;
|
|
42
|
+
}
|
|
43
|
+
exports.LoyaltyPoint = LoyaltyPoint;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], LoyaltyPoint.prototype, "redeemCashback", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], LoyaltyPoint.prototype, "secondaryRedeemCashback", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], LoyaltyPoint.prototype, "points", void 0);
|
|
56
|
+
class CouponDetails extends MarketingCut {
|
|
57
|
+
coupon;
|
|
58
|
+
snap;
|
|
59
|
+
}
|
|
60
|
+
exports.CouponDetails = CouponDetails;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon, default: 0 }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], CouponDetails.prototype, "coupon", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typegoose_1.prop)({ type: Object, default: {} }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], CouponDetails.prototype, "snap", void 0);
|
|
69
|
+
//# sourceMappingURL=marketing-cut.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,YAAY;IAEjB,UAAU,CAAU;IAGpB,mBAAmB,CAAU;IAG7B,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAZD,oCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,YAAa,SAAQ,YAAY;IAEtC,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACK;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACZ;AAGxB,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;IAGrB,IAAI,CAAU;CACrB;AAND,sCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACf","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\n\nexport class MarketingCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class LoyaltyPoint extends MarketingCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic redeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRedeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic points?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon, default: 0 })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: Object, default: {} })\n\tpublic snap?: object;\n}\n"]}
|
|
@@ -5,14 +5,10 @@ export declare class OrderPricing {
|
|
|
5
5
|
secondaryDeliveryFee?: number;
|
|
6
6
|
riderTips?: number;
|
|
7
7
|
secondaryRiderTips?: number;
|
|
8
|
-
serviceCharge?: number;
|
|
9
|
-
secondaryServiceCharge?: number;
|
|
10
8
|
total?: number;
|
|
11
9
|
secondaryTotal?: number;
|
|
12
10
|
wallet?: number;
|
|
13
11
|
secondaryWallet?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
cash?: number;
|
|
17
|
-
secondaryCash?: number;
|
|
12
|
+
paidAmount?: number;
|
|
13
|
+
secondaryPaidAmount?: number;
|
|
18
14
|
}
|
|
@@ -18,16 +18,12 @@ class OrderPricing {
|
|
|
18
18
|
secondaryDeliveryFee;
|
|
19
19
|
riderTips;
|
|
20
20
|
secondaryRiderTips;
|
|
21
|
-
serviceCharge;
|
|
22
|
-
secondaryServiceCharge;
|
|
23
21
|
total;
|
|
24
22
|
secondaryTotal;
|
|
25
23
|
wallet;
|
|
26
24
|
secondaryWallet;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
cash;
|
|
30
|
-
secondaryCash;
|
|
25
|
+
paidAmount;
|
|
26
|
+
secondaryPaidAmount;
|
|
31
27
|
}
|
|
32
28
|
exports.OrderPricing = OrderPricing;
|
|
33
29
|
__decorate([
|
|
@@ -54,14 +50,6 @@ __decorate([
|
|
|
54
50
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
55
51
|
__metadata("design:type", Number)
|
|
56
52
|
], OrderPricing.prototype, "secondaryRiderTips", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], OrderPricing.prototype, "serviceCharge", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], OrderPricing.prototype, "secondaryServiceCharge", void 0);
|
|
65
53
|
__decorate([
|
|
66
54
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
67
55
|
__metadata("design:type", Number)
|
|
@@ -81,17 +69,9 @@ __decorate([
|
|
|
81
69
|
__decorate([
|
|
82
70
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
83
71
|
__metadata("design:type", Number)
|
|
84
|
-
], OrderPricing.prototype, "
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], OrderPricing.prototype, "secondaryCard", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
91
|
-
__metadata("design:type", Number)
|
|
92
|
-
], OrderPricing.prototype, "cash", void 0);
|
|
72
|
+
], OrderPricing.prototype, "paidAmount", void 0);
|
|
93
73
|
__decorate([
|
|
94
74
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
95
75
|
__metadata("design:type", Number)
|
|
96
|
-
], OrderPricing.prototype, "
|
|
76
|
+
], OrderPricing.prototype, "secondaryPaidAmount", void 0);
|
|
97
77
|
//# sourceMappingURL=order-pricing.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,
|
|
1
|
+
{"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CAC7B;AApCD,oCAoCC;AAlCA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACjB;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACR;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CAChB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wDACP;AAG5B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACpB;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACX;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACnB;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACV;AAGzB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACf;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tsubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tdeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\triderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\ttotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\twallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpaidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryPaidAmount?: number;\n}\n"]}
|
|
@@ -20,20 +20,15 @@ class PaymentInformation {
|
|
|
20
20
|
}
|
|
21
21
|
exports.PaymentInformation = PaymentInformation;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typegoose_1.prop)({
|
|
24
|
-
required: true,
|
|
25
|
-
enum: enum_1.CardType,
|
|
26
|
-
type: String,
|
|
27
|
-
default: enum_1.CardType.AREEBA,
|
|
28
|
-
}),
|
|
23
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.CardType, default: enum_1.CardType.STRIPE }),
|
|
29
24
|
__metadata("design:type", String)
|
|
30
25
|
], PaymentInformation.prototype, "cardType", void 0);
|
|
31
26
|
__decorate([
|
|
32
|
-
(0, typegoose_1.prop)(),
|
|
27
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
33
28
|
__metadata("design:type", String)
|
|
34
29
|
], PaymentInformation.prototype, "referenceId", void 0);
|
|
35
30
|
__decorate([
|
|
36
|
-
(0, typegoose_1.prop)(),
|
|
31
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
37
32
|
__metadata("design:type", String)
|
|
38
33
|
], PaymentInformation.prototype, "transactionId", void 0);
|
|
39
34
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-infromation.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-infromation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsD;AAEtD,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"payment-infromation.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-infromation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsD;AAEtD,MAAa,kBAAkB;IAEvB,QAAQ,CAAY;IAGpB,WAAW,CAAU;IAGrB,aAAa,CAAU;IAGvB,QAAQ,CAAuB;CACtC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,eAAQ,CAAC,MAAM,EAAE,CAAC;;oDACtD;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;oDACS","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { CardType } from '../../../../utilities/enum';\n\nexport class PaymentInformation {\n\t@prop({ required: true, type: String, enum: CardType, default: CardType.STRIPE })\n\tpublic cardType!: CardType;\n\n\t@prop({ type: String })\n\tpublic referenceId?: string;\n\n\t@prop({ type: String })\n\tpublic transactionId?: string;\n\n\t@prop({ type: () => Object })\n\tpublic metadata?: Record<string, any>;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class CourierOrderProfit {
|
|
2
|
+
profitFromDelivery?: number;
|
|
3
|
+
secondaryProfitFromDelivery?: number;
|
|
4
|
+
totalProfit?: number;
|
|
5
|
+
secondaryTotalProfit?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class RegularOrderProfit extends CourierOrderProfit {
|
|
8
|
+
profitFromItem?: number;
|
|
9
|
+
secondaryProfitFromItem?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class RiderProfit extends CourierOrderProfit {
|
|
12
|
+
profitFromTips?: number;
|
|
13
|
+
secondaryProfitFromTips?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RiderProfit = exports.RegularOrderProfit = exports.CourierOrderProfit = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class CourierOrderProfit {
|
|
15
|
+
profitFromDelivery;
|
|
16
|
+
secondaryProfitFromDelivery;
|
|
17
|
+
totalProfit;
|
|
18
|
+
secondaryTotalProfit;
|
|
19
|
+
}
|
|
20
|
+
exports.CourierOrderProfit = CourierOrderProfit;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CourierOrderProfit.prototype, "profitFromDelivery", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CourierOrderProfit.prototype, "secondaryProfitFromDelivery", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CourierOrderProfit.prototype, "totalProfit", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CourierOrderProfit.prototype, "secondaryTotalProfit", void 0);
|
|
37
|
+
class RegularOrderProfit extends CourierOrderProfit {
|
|
38
|
+
profitFromItem;
|
|
39
|
+
secondaryProfitFromItem;
|
|
40
|
+
}
|
|
41
|
+
exports.RegularOrderProfit = RegularOrderProfit;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], RegularOrderProfit.prototype, "profitFromItem", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], RegularOrderProfit.prototype, "secondaryProfitFromItem", void 0);
|
|
50
|
+
class RiderProfit extends CourierOrderProfit {
|
|
51
|
+
profitFromTips;
|
|
52
|
+
secondaryProfitFromTips;
|
|
53
|
+
}
|
|
54
|
+
exports.RiderProfit = RiderProfit;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], RiderProfit.prototype, "profitFromTips", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], RiderProfit.prototype, "secondaryProfitFromTips", void 0);
|
|
63
|
+
//# sourceMappingURL=profit.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profit.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/profit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,kBAAkB;IAEvB,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CACrC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACS;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACE;AAGtC,MAAa,kBAAmB,SAAQ,kBAAkB;IAElD,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACK;AAGzC,MAAa,WAAY,SAAQ,kBAAkB;IAE3C,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,kCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACK","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalProfit?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotalProfit?: number;\n}\n\nexport class RegularOrderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromItem?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromItem?: number;\n}\n\nexport class RiderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromTips?: number;\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Vat = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class Vat {
|
|
15
|
+
companyVat;
|
|
16
|
+
secondaryCompanyVat;
|
|
17
|
+
}
|
|
18
|
+
exports.Vat = Vat;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], Vat.prototype, "companyVat", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], Vat.prototype, "secondaryCompanyVat", void 0);
|
|
27
|
+
//# sourceMappingURL=vat.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vat.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/vat.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,GAAG;IAER,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,kBAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uCACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Vat {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyVat?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyVat?: number;\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
+
import { Order } from './order.model';
|
|
4
|
+
import { Shop } from './shop.model';
|
|
5
|
+
import { Rider } from './rider.model';
|
|
6
|
+
import { SettlementType } from '../../../utilities/enum';
|
|
7
|
+
import { User } from './user.model';
|
|
8
|
+
import { Admin } from './admin.model';
|
|
9
|
+
export declare class FinanceSettlement extends TimeStamps {
|
|
10
|
+
order?: Ref<Order>;
|
|
11
|
+
shop?: Ref<Shop>;
|
|
12
|
+
rider?: Ref<Rider>;
|
|
13
|
+
user?: Ref<User>;
|
|
14
|
+
settlementType: SettlementType;
|
|
15
|
+
amount: number;
|
|
16
|
+
secondaryAmount: number;
|
|
17
|
+
settleBy: Ref<Admin>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FinanceSettlement = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const order_model_1 = require("./order.model");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
const shop_model_1 = require("./shop.model");
|
|
18
|
+
const rider_model_1 = require("./rider.model");
|
|
19
|
+
const enum_1 = require("../../../utilities/enum");
|
|
20
|
+
const user_model_1 = require("./user.model");
|
|
21
|
+
const admin_model_1 = require("./admin.model");
|
|
22
|
+
let FinanceSettlement = class FinanceSettlement extends defaultClasses_1.TimeStamps {
|
|
23
|
+
order;
|
|
24
|
+
shop;
|
|
25
|
+
rider;
|
|
26
|
+
user;
|
|
27
|
+
settlementType;
|
|
28
|
+
amount;
|
|
29
|
+
secondaryAmount;
|
|
30
|
+
settleBy;
|
|
31
|
+
};
|
|
32
|
+
exports.FinanceSettlement = FinanceSettlement;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ ref: () => order_model_1.Order, index: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], FinanceSettlement.prototype, "order", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop, index: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], FinanceSettlement.prototype, "shop", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typegoose_1.prop)({ ref: () => rider_model_1.Rider, index: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], FinanceSettlement.prototype, "rider", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typegoose_1.prop)({ ref: () => user_model_1.User, index: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], FinanceSettlement.prototype, "user", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.SettlementType }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], FinanceSettlement.prototype, "settlementType", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typegoose_1.prop)({ type: zod_1.number, default: 0 }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], FinanceSettlement.prototype, "amount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typegoose_1.prop)({ type: zod_1.number, default: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], FinanceSettlement.prototype, "secondaryAmount", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], FinanceSettlement.prototype, "settleBy", void 0);
|
|
65
|
+
exports.FinanceSettlement = FinanceSettlement = __decorate([
|
|
66
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'financeSettlements' } })
|
|
67
|
+
], FinanceSettlement);
|
|
68
|
+
//# sourceMappingURL=finance-settlement.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-settlement.model.js","sourceRoot":"/","sources":["libraries/mongo/models/finance-settlement.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AACtC,6BAA6B;AAC7B,6CAAoC;AACpC,+CAAsC;AACtC,kDAAyD;AACzD,6CAAoC;AACpC,+CAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2BAAU;IAEzC,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,cAAc,CAAiB;IAG/B,MAAM,CAAS;IAGf,eAAe,CAAS;IAGxB,QAAQ,CAAa;CAC5B,CAAA;AAxBY,8CAAiB;AAEtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;yDACP;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,YAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,YAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;mDACC;4BAvBhB,iBAAiB;IAD7B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,CAAC;GACzD,iBAAiB,CAwB7B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Order } from './order.model';\nimport { number } from 'zod';\nimport { Shop } from './shop.model';\nimport { Rider } from './rider.model';\nimport { SettlementType } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Admin } from './admin.model';\n\n@modelOptions({ schemaOptions: { collection: 'financeSettlements' } })\nexport class FinanceSettlement extends TimeStamps {\n\t@prop({ ref: () => Order, index: true })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => Shop, index: true })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ ref: () => Rider, index: true })\n\tpublic rider?: Ref<Rider>;\n\n\t@prop({ ref: () => User, index: true })\n\tpublic user?: Ref<User>;\n\n\t@prop({ type: String, enum: SettlementType })\n\tpublic settlementType: SettlementType;\n\n\t@prop({ type: number, default: 0 })\n\tpublic amount: number;\n\n\t@prop({ type: number, default: 0 })\n\tpublic secondaryAmount: number;\n\n\t@prop({ ref: () => Admin })\n\tpublic settleBy: Ref<Admin>;\n}\n"]}
|
|
@@ -74,6 +74,10 @@ import { Order } from './order.model';
|
|
|
74
74
|
import { RegularOrder } from './providers/regular-order.model';
|
|
75
75
|
import { CourierOrder } from './providers/courier-order.model';
|
|
76
76
|
import { OrderDelivery } from './order-delivery.model';
|
|
77
|
+
import { OrderFinance } from './order-finance.model';
|
|
78
|
+
import { RegularOrderFinance } from './providers/regular-order-finance.model';
|
|
79
|
+
import { CourierOrderFinance } from './providers/courier-order-finance.model';
|
|
80
|
+
import { FinanceSettlement } from './finance-settlement.model';
|
|
77
81
|
export declare const ActivityLogModel: ReturnModelType<typeof ActivityLog>;
|
|
78
82
|
export * from './activity-log.model';
|
|
79
83
|
export declare const AdminAccessControlModel: ReturnModelType<typeof AdminAccessControl>;
|
|
@@ -94,6 +98,10 @@ export declare const CardModel: ReturnModelType<typeof Card>;
|
|
|
94
98
|
export declare const AreebaCardModel: ReturnModelType<typeof AreebaCard>;
|
|
95
99
|
export * from './card.model';
|
|
96
100
|
export * from './providers/areeba-card.model';
|
|
101
|
+
export declare const CartModel: ReturnModelType<typeof Cart>;
|
|
102
|
+
export * from './cart.model';
|
|
103
|
+
export declare const CartParticipantModel: ReturnModelType<typeof CartParticipant>;
|
|
104
|
+
export * from './cart-participant.model';
|
|
97
105
|
export declare const CategoryModel: ReturnModelType<typeof Category>;
|
|
98
106
|
export * from './category.model';
|
|
99
107
|
export declare const CoreAuthIdentityModel: ReturnModelType<typeof CoreAuthIdentity>;
|
|
@@ -136,6 +144,12 @@ export declare const FeaturedSettingModel: ReturnModelType<typeof FeaturedSettin
|
|
|
136
144
|
export * from './featured-setting.model';
|
|
137
145
|
export declare const FilterContainerModel: ReturnModelType<typeof FilterContainer>;
|
|
138
146
|
export * from './filter-container.model';
|
|
147
|
+
export declare const FinanceSettlementModel: ReturnModelType<typeof FinanceSettlement>;
|
|
148
|
+
export * from './finance-settlement.model';
|
|
149
|
+
export declare const GalleryModel: ReturnModelType<typeof Gallery>;
|
|
150
|
+
export * from './gallery.model';
|
|
151
|
+
export declare const LineItemModel: ReturnModelType<typeof LineItem>;
|
|
152
|
+
export * from './line-item.model';
|
|
139
153
|
export declare const ListContainerModel: ReturnModelType<typeof ListContainer>;
|
|
140
154
|
export * from './list-container.model';
|
|
141
155
|
export declare const LoyaltyPointCategoryModel: ReturnModelType<typeof LoyaltyPointCategory>;
|
|
@@ -162,6 +176,20 @@ export declare const NotificationModel: ReturnModelType<typeof Notification>;
|
|
|
162
176
|
export * from './notification.model';
|
|
163
177
|
export declare const NutritionModel: ReturnModelType<typeof Nutrition>;
|
|
164
178
|
export * from './nutrition.model';
|
|
179
|
+
export declare const OrderModel: ReturnModelType<typeof Order>;
|
|
180
|
+
export declare const RegularOrderModel: ReturnModelType<typeof RegularOrder>;
|
|
181
|
+
export declare const CourierOrderModel: ReturnModelType<typeof CourierOrder>;
|
|
182
|
+
export * from './order.model';
|
|
183
|
+
export * from './providers/regular-order.model';
|
|
184
|
+
export * from './providers/courier-order.model';
|
|
185
|
+
export declare const OrderDeliveryModel: ReturnModelType<typeof OrderDelivery>;
|
|
186
|
+
export * from './order-delivery.model';
|
|
187
|
+
export declare const OrderFinanceModel: ReturnModelType<typeof OrderFinance>;
|
|
188
|
+
export declare const RegularOrderFinanceModel: ReturnModelType<typeof RegularOrderFinance>;
|
|
189
|
+
export declare const CourierOrderFinanceModel: ReturnModelType<typeof CourierOrderFinance>;
|
|
190
|
+
export * from './order-finance.model';
|
|
191
|
+
export * from './providers/regular-order-finance.model';
|
|
192
|
+
export * from './providers/courier-order-finance.model';
|
|
165
193
|
export declare const ParentModel: ReturnModelType<typeof Parent>;
|
|
166
194
|
export * from './parent.model';
|
|
167
195
|
export declare const ProductMarketingModel: ReturnModelType<typeof ProductMarketing>;
|
|
@@ -208,19 +236,3 @@ export declare const UserModel: ReturnModelType<typeof User>;
|
|
|
208
236
|
export * from './user.model';
|
|
209
237
|
export declare const ZoneModel: ReturnModelType<typeof Zone>;
|
|
210
238
|
export * from './zone.model';
|
|
211
|
-
export declare const CartModel: ReturnModelType<typeof Cart>;
|
|
212
|
-
export * from './cart.model';
|
|
213
|
-
export declare const LineItemModel: ReturnModelType<typeof LineItem>;
|
|
214
|
-
export * from './line-item.model';
|
|
215
|
-
export declare const CartParticipantModel: ReturnModelType<typeof CartParticipant>;
|
|
216
|
-
export * from './cart-participant.model';
|
|
217
|
-
export declare const OrderModel: ReturnModelType<typeof Order>;
|
|
218
|
-
export declare const RegularOrderModel: ReturnModelType<typeof RegularOrder>;
|
|
219
|
-
export declare const CourierOrderModel: ReturnModelType<typeof CourierOrder>;
|
|
220
|
-
export * from './order.model';
|
|
221
|
-
export * from './providers/regular-order.model';
|
|
222
|
-
export * from './providers/courier-order.model';
|
|
223
|
-
export declare const GalleryModel: ReturnModelType<typeof Gallery>;
|
|
224
|
-
export * from './gallery.model';
|
|
225
|
-
export declare const OrderDeliveryModel: ReturnModelType<typeof OrderDelivery>;
|
|
226
|
-
export * from './order-delivery.model';
|