mfance-shark-v1 1.0.75 → 1.0.77

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.
@@ -33,4 +33,6 @@ import { CommissionWithdrawalAgent } from './commission-withdrawal-agent.entity'
33
33
  import { CommissionWithdrawalDistributor } from './commission-withdrawal-distributor.entity';
34
34
  import { PaymentCode } from './payment-code.entity';
35
35
  import { SoldeInterne } from './soldes/solde-interne.entity';
36
- export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof Operation | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof ActionType | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof PinCode | typeof CaisseDailyWorker | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof Audit | typeof ThirdPartyProvider | typeof KycRequest | typeof Contact | typeof QrCode | typeof RateConfig | typeof CommissionWithdrawalAgent | typeof CommissionWithdrawalDistributor | typeof PaymentCode | typeof SoldeInterne)[];
36
+ import { Partner } from './partner.entity';
37
+ import { PartnerFees } from './partner_fees.entity';
38
+ export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof Operation | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof ActionType | typeof ThirdPartyProvider | typeof Partner | typeof PartnerFees | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof PinCode | typeof CaisseDailyWorker | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof Audit | typeof KycRequest | typeof Contact | typeof QrCode | typeof RateConfig | typeof CommissionWithdrawalAgent | typeof CommissionWithdrawalDistributor | typeof PaymentCode | typeof SoldeInterne)[];
@@ -48,6 +48,8 @@ const commission_withdrawal_agent_entity_1 = require("./commission-withdrawal-ag
48
48
  const commission_withdrawal_distributor_entity_1 = require("./commission-withdrawal-distributor.entity");
49
49
  const payment_code_entity_1 = require("./payment-code.entity");
50
50
  const solde_interne_entity_1 = require("./soldes/solde-interne.entity");
51
+ const partner_entity_1 = require("./partner.entity");
52
+ const partner_fees_entity_1 = require("./partner_fees.entity");
51
53
  exports.entities = [
52
54
  file_entity_1.File,
53
55
  user_entity_1.User,
@@ -96,5 +98,7 @@ exports.entities = [
96
98
  commission_withdrawal_agent_entity_1.CommissionWithdrawalAgent,
97
99
  commission_withdrawal_distributor_entity_1.CommissionWithdrawalDistributor,
98
100
  solde_interne_entity_1.SoldeInterne,
101
+ partner_entity_1.Partner,
102
+ partner_fees_entity_1.PartnerFees,
99
103
  ];
100
104
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,+CAAqC;AACrC,oFAAwE;AACxE,0DAAgD;AAChD,8EAAmE;AACnE,wFAA4E;AAC5E,oEAAyD;AACzD,+CAAqC;AACrC,2DAAiD;AACjD,qDAA2C;AAC3C,2DAAgD;AAChD,uDAA6C;AAC7C,sEAA4D;AAC5D,0EAAgE;AAChE,4EAAkE;AAClE,iDAAuC;AACvC,iEAAsD;AACtD,uEAA2D;AAC3D,6EAAiE;AACjE,6DAAmD;AACnD,yDAA+C;AAC/C,iEAAuD;AACvD,mEAAwD;AACxD,+CAAqC;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AACzD,mEAAyD;AACzD,2EAAiE;AACjE,6DAAkD;AAClD,qDAA2C;AAC3C,qDAA0C;AAC1C,oEAAyD;AACzD,gFAAqE;AACrE,sEAA2D;AAC3D,6DAAkD;AAClD,2DAAiD;AACjD,2DAAiD;AACjD,uDAA4C;AAC5C,6EAAiE;AACjE,6FAAiF;AACjF,yGAA6F;AAC7F,+DAAoD;AACpD,wEAA6D;AAGhD,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,kDAAmB;IACnB,+BAAU;IACV,kBAAI;IACJ,8BAAU;IACV,wBAAO;IACP,6BAAS;IACT,0BAAQ;IACR,kCAAY;IACZ,sCAAc;IACd,wCAAe;IACf,oBAAK;IACL,mCAAY;IACZ,wCAAc;IACd,8CAAiB;IACjB,gCAAW;IACX,4BAAS;IACT,oCAAa;IACb,qCAAa;IACb,kBAAI;IACJ,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;IACV,sCAAc;IACd,8CAAkB;IAClB,+BAAU;IACV,uBAAM;IACN,iCAAW;IACX,iCAAW;IAEX,wBAAO;IACP,+BAAU;IACV,2CAAgB;IAChB,8BAAU;IACV,8BAAU;IACV,yBAAO;IACP,8CAAiB;IACjB,+BAAU;IACV,8DAAyB;IACzB,0EAA+B;IAC/B,mCAAY;CAEf,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,+CAAqC;AACrC,oFAAwE;AACxE,0DAAgD;AAChD,8EAAmE;AACnE,wFAA4E;AAC5E,oEAAyD;AACzD,+CAAqC;AACrC,2DAAiD;AACjD,qDAA2C;AAC3C,2DAAgD;AAChD,uDAA6C;AAC7C,sEAA4D;AAC5D,0EAAgE;AAChE,4EAAkE;AAClE,iDAAuC;AACvC,iEAAsD;AACtD,uEAA2D;AAC3D,6EAAiE;AACjE,6DAAmD;AACnD,yDAA+C;AAC/C,iEAAuD;AACvD,mEAAwD;AACxD,+CAAqC;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AACzD,mEAAyD;AACzD,2EAAiE;AACjE,6DAAkD;AAClD,qDAA2C;AAC3C,qDAA0C;AAC1C,oEAAyD;AACzD,gFAAqE;AACrE,sEAA2D;AAC3D,6DAAkD;AAClD,2DAAiD;AACjD,2DAAiD;AACjD,uDAA4C;AAC5C,6EAAiE;AACjE,6FAAiF;AACjF,yGAA6F;AAC7F,+DAAoD;AACpD,wEAA6D;AAC7D,qDAA2C;AAC3C,+DAAoD;AAGvC,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,kDAAmB;IACnB,+BAAU;IACV,kBAAI;IACJ,8BAAU;IACV,wBAAO;IACP,6BAAS;IACT,0BAAQ;IACR,kCAAY;IACZ,sCAAc;IACd,wCAAe;IACf,oBAAK;IACL,mCAAY;IACZ,wCAAc;IACd,8CAAiB;IACjB,gCAAW;IACX,4BAAS;IACT,oCAAa;IACb,qCAAa;IACb,kBAAI;IACJ,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;IACV,sCAAc;IACd,8CAAkB;IAClB,+BAAU;IACV,uBAAM;IACN,iCAAW;IACX,iCAAW;IAEX,wBAAO;IACP,+BAAU;IACV,2CAAgB;IAChB,8BAAU;IACV,8BAAU;IACV,yBAAO;IACP,8CAAiB;IACjB,+BAAU;IACV,8DAAyB;IACzB,0EAA+B;IAC/B,mCAAY;IACZ,wBAAO;IACP,iCAAW;CAEd,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { AuditableEntity } from "../../auditable/auditable.entity";
2
+ import { ThirdPartyType } from "./thirdpartytype.entity";
3
+ import { PartnerFees } from "./partner_fees.entity";
4
+ export declare class Partner extends AuditableEntity {
5
+ name: string;
6
+ email: string;
7
+ phoneNumber: string;
8
+ phone: string;
9
+ thirdPartyType: ThirdPartyType;
10
+ partnerFees: PartnerFees[];
11
+ isActive: boolean;
12
+ isArchived: boolean;
13
+ isDeleted: boolean;
14
+ }
@@ -0,0 +1,67 @@
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.Partner = void 0;
13
+ const classes_1 = require("@automapper/classes");
14
+ const typeorm_1 = require("typeorm");
15
+ const auditable_entity_1 = require("../../auditable/auditable.entity");
16
+ const thirdpartytype_entity_1 = require("./thirdpartytype.entity");
17
+ const utils_1 = require("../utils");
18
+ const partner_fees_entity_1 = require("./partner_fees.entity");
19
+ let Partner = class Partner extends auditable_entity_1.AuditableEntity {
20
+ };
21
+ exports.Partner = Partner;
22
+ __decorate([
23
+ (0, classes_1.AutoMap)(),
24
+ (0, typeorm_1.Column)({ name: 'name', type: 'varchar', nullable: true }),
25
+ __metadata("design:type", String)
26
+ ], Partner.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, classes_1.AutoMap)(),
29
+ (0, typeorm_1.Column)({ name: 'email', type: 'varchar', nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], Partner.prototype, "email", void 0);
32
+ __decorate([
33
+ (0, classes_1.AutoMap)(),
34
+ (0, typeorm_1.Column)({ name: 'phone_number', type: 'varchar', nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], Partner.prototype, "phoneNumber", void 0);
37
+ __decorate([
38
+ (0, classes_1.AutoMap)(),
39
+ (0, typeorm_1.Column)({ name: 'phone', type: 'varchar', nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], Partner.prototype, "phone", void 0);
42
+ __decorate([
43
+ (0, classes_1.AutoMap)(),
44
+ (0, typeorm_1.ManyToOne)(() => thirdpartytype_entity_1.ThirdPartyType, (thirdPartyType) => thirdPartyType.partners),
45
+ (0, typeorm_1.JoinColumn)({ name: 'third_party_type_id' }),
46
+ __metadata("design:type", thirdpartytype_entity_1.ThirdPartyType)
47
+ ], Partner.prototype, "thirdPartyType", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.OneToMany)(() => partner_fees_entity_1.PartnerFees, (partnerFees) => partnerFees.partner),
50
+ __metadata("design:type", Array)
51
+ ], Partner.prototype, "partnerFees", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
54
+ __metadata("design:type", Boolean)
55
+ ], Partner.prototype, "isActive", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ name: 'is_archived', type: 'boolean', default: false }),
58
+ __metadata("design:type", Boolean)
59
+ ], Partner.prototype, "isArchived", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ name: 'is_deleted', type: 'boolean', default: false }),
62
+ __metadata("design:type", Boolean)
63
+ ], Partner.prototype, "isDeleted", void 0);
64
+ exports.Partner = Partner = __decorate([
65
+ (0, typeorm_1.Entity)(utils_1.TABLE_NAMES.PARTNER)
66
+ ], Partner);
67
+ //# sourceMappingURL=partner.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner.entity.js","sourceRoot":"","sources":["../../../src/common/entities/partner.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8C;AAC9C,qCAA2E;AAC3E,uEAAmE;AACnE,mEAAyD;AACzD,oCAAuC;AACvC,+DAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,kCAAe;CA8B3C,CAAA;AA9BY,0BAAO;AAGhB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM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,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CAC7C;kBA7BV,OAAO;IADnB,IAAA,gBAAM,EAAC,mBAAW,CAAC,OAAO,CAAC;GACf,OAAO,CA8BnB"}
@@ -0,0 +1,12 @@
1
+ import { AuditableEntity } from "../../auditable/auditable.entity";
2
+ import { Partner } from "./partner.entity";
3
+ export declare class PartnerFees extends AuditableEntity {
4
+ fee: number;
5
+ operationType: string;
6
+ minAmount: number;
7
+ maxAmount: number;
8
+ partner: Partner;
9
+ isActive: boolean;
10
+ isArchived: boolean;
11
+ isDeleted: boolean;
12
+ }
@@ -0,0 +1,62 @@
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.PartnerFees = void 0;
13
+ const auditable_entity_1 = require("../../auditable/auditable.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const utils_1 = require("../utils");
16
+ const classes_1 = require("@automapper/classes");
17
+ const partner_entity_1 = require("./partner.entity");
18
+ let PartnerFees = class PartnerFees extends auditable_entity_1.AuditableEntity {
19
+ };
20
+ exports.PartnerFees = PartnerFees;
21
+ __decorate([
22
+ (0, classes_1.AutoMap)(),
23
+ (0, typeorm_1.Column)({ name: 'fee', type: 'float', nullable: true }),
24
+ __metadata("design:type", Number)
25
+ ], PartnerFees.prototype, "fee", void 0);
26
+ __decorate([
27
+ (0, classes_1.AutoMap)(),
28
+ (0, typeorm_1.Column)({ name: 'fee_type', type: 'enum', enum: ['DEPOSIT', 'WITHDRAWALL', 'TRANSFER', 'OTHER'], nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], PartnerFees.prototype, "operationType", void 0);
31
+ __decorate([
32
+ (0, classes_1.AutoMap)(),
33
+ (0, typeorm_1.Column)({ name: 'min_amount', type: 'float', nullable: true }),
34
+ __metadata("design:type", Number)
35
+ ], PartnerFees.prototype, "minAmount", void 0);
36
+ __decorate([
37
+ (0, classes_1.AutoMap)(),
38
+ (0, typeorm_1.Column)({ name: 'max_amount', type: 'float', nullable: true }),
39
+ __metadata("design:type", Number)
40
+ ], PartnerFees.prototype, "maxAmount", void 0);
41
+ __decorate([
42
+ (0, classes_1.AutoMap)(),
43
+ (0, typeorm_1.ManyToOne)(() => partner_entity_1.Partner, (partner) => partner.partnerFees),
44
+ (0, typeorm_1.JoinColumn)({ name: 'partner_id' }),
45
+ __metadata("design:type", partner_entity_1.Partner)
46
+ ], PartnerFees.prototype, "partner", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
49
+ __metadata("design:type", Boolean)
50
+ ], PartnerFees.prototype, "isActive", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ name: 'is_archived', type: 'boolean', default: false }),
53
+ __metadata("design:type", Boolean)
54
+ ], PartnerFees.prototype, "isArchived", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ name: 'is_deleted', type: 'boolean', default: false }),
57
+ __metadata("design:type", Boolean)
58
+ ], PartnerFees.prototype, "isDeleted", void 0);
59
+ exports.PartnerFees = PartnerFees = __decorate([
60
+ (0, typeorm_1.Entity)(utils_1.TABLE_NAMES.PARTNER_FEES)
61
+ ], PartnerFees);
62
+ //# sourceMappingURL=partner_fees.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner_fees.ent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,IAAI,EAAE,CAAC;;6CAC5C;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CAC7C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CAC7C;sBA5BV,WAAW;IADvB,IAAA,gBAAM,EAAC,mBAAW,CAAC,YAAY,CAAC;GACpB,WAAW,CA6BvB"}
@@ -0,0 +1,12 @@
1
+ import { AuditableEntity } from "mfance-shark-v1/dist/auditable/auditable.entity";
2
+ import { User } from "../user.entity";
3
+ import { ActionType } from "../action-type.entity";
4
+ import { Transaction } from "../transaction.entity";
5
+ export declare class SubAccountCustomer extends AuditableEntity {
6
+ user: User;
7
+ amount: number;
8
+ oldBalance: number;
9
+ newBalance: number;
10
+ actionType: ActionType;
11
+ transaction: Transaction;
12
+ }
@@ -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.SubAccountCustomer = void 0;
13
+ const utils_1 = require("../../../common/utils");
14
+ const typeorm_1 = require("typeorm");
15
+ const classes_1 = require("@automapper/classes");
16
+ const auditable_entity_1 = require("mfance-shark-v1/dist/auditable/auditable.entity");
17
+ const typeorm_2 = require("typeorm");
18
+ const user_entity_1 = require("../user.entity");
19
+ const action_type_entity_1 = require("../action-type.entity");
20
+ const transaction_entity_1 = require("../transaction.entity");
21
+ let SubAccountCustomer = class SubAccountCustomer extends auditable_entity_1.AuditableEntity {
22
+ };
23
+ exports.SubAccountCustomer = SubAccountCustomer;
24
+ __decorate([
25
+ (0, classes_1.AutoMap)(),
26
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id),
27
+ (0, typeorm_1.JoinColumn)(),
28
+ __metadata("design:type", user_entity_1.User)
29
+ ], SubAccountCustomer.prototype, "user", void 0);
30
+ __decorate([
31
+ (0, classes_1.AutoMap)(),
32
+ (0, typeorm_1.Column)({ name: 'amount', type: 'float', nullable: true }),
33
+ __metadata("design:type", Number)
34
+ ], SubAccountCustomer.prototype, "amount", void 0);
35
+ __decorate([
36
+ (0, classes_1.AutoMap)(),
37
+ (0, typeorm_1.Column)({ name: 'old_balance', type: 'float', nullable: true }),
38
+ __metadata("design:type", Number)
39
+ ], SubAccountCustomer.prototype, "oldBalance", void 0);
40
+ __decorate([
41
+ (0, classes_1.AutoMap)(),
42
+ (0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], SubAccountCustomer.prototype, "newBalance", void 0);
45
+ __decorate([
46
+ (0, classes_1.AutoMap)(),
47
+ (0, typeorm_1.ManyToOne)(() => action_type_entity_1.ActionType, (actionType) => actionType.id, {
48
+ onDelete: 'CASCADE',
49
+ onUpdate: 'CASCADE',
50
+ nullable: true,
51
+ }),
52
+ (0, typeorm_1.JoinColumn)(),
53
+ __metadata("design:type", action_type_entity_1.ActionType)
54
+ ], SubAccountCustomer.prototype, "actionType", void 0);
55
+ __decorate([
56
+ (0, classes_1.AutoMap)(),
57
+ (0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
58
+ nullable: true,
59
+ onDelete: 'CASCADE',
60
+ onUpdate: 'CASCADE',
61
+ }),
62
+ (0, typeorm_1.JoinColumn)(),
63
+ __metadata("design:type", transaction_entity_1.Transaction)
64
+ ], SubAccountCustomer.prototype, "transaction", void 0);
65
+ exports.SubAccountCustomer = SubAccountCustomer = __decorate([
66
+ (0, typeorm_2.Entity)(utils_1.TABLE_NAMES.SUB_ACCOUNT_CUSTOMER)
67
+ ], SubAccountCustomer);
68
+ //# sourceMappingURL=sub-account-customer.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sub-account-customer.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/sub-account-customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAoD;AACpD,qCAAwD;AACxD,iDAA8C;AAC9C,sFAAkF;AAClF,qCAAiC;AACjC,gDAAsC;AACtC,8DAAmD;AACnD,8DAAoD;AAG7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,kCAAe;CAiCtD,CAAA;AAjCY,gDAAkB;AAI3B;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;IACxC,IAAA,oBAAU,GAAE;8BACP,kBAAI;gDAAC;AAGX;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3C;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC5C;AAGnB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC5C;AASnB;IAPC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC1D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,+BAAU;sDAAC;AAUvB;IAPC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;uDAAC;6BAhChB,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAW,CAAC,oBAAoB,CAAC;GAC5B,kBAAkB,CAiC9B"}
@@ -1,9 +1,11 @@
1
1
  import { AuditableEntity } from "../../auditable/auditable.entity";
2
2
  import { ThirdPartyProvider } from "./thirdpartyprovider.entity";
3
+ import { Partner } from "./partner.entity";
3
4
  export declare class ThirdPartyType extends AuditableEntity {
4
5
  name: string;
5
6
  description: string;
6
7
  thirdPartyProviders: ThirdPartyProvider[];
8
+ partners: Partner[];
7
9
  isActive: boolean;
8
10
  isArchived: boolean;
9
11
  isDeleted: boolean;
@@ -14,6 +14,7 @@ const auditable_entity_1 = require("../../auditable/auditable.entity");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const utils_1 = require("../utils");
16
16
  const thirdpartyprovider_entity_1 = require("./thirdpartyprovider.entity");
17
+ const partner_entity_1 = require("./partner.entity");
17
18
  let ThirdPartyType = class ThirdPartyType extends auditable_entity_1.AuditableEntity {
18
19
  };
19
20
  exports.ThirdPartyType = ThirdPartyType;
@@ -29,6 +30,10 @@ __decorate([
29
30
  (0, typeorm_1.OneToMany)(() => thirdpartyprovider_entity_1.ThirdPartyProvider, (thirdPartyProvider) => thirdPartyProvider.thirdPartyType),
30
31
  __metadata("design:type", Array)
31
32
  ], ThirdPartyType.prototype, "thirdPartyProviders", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.OneToMany)(() => partner_entity_1.Partner, (partner) => partner.thirdPartyType),
35
+ __metadata("design:type", Array)
36
+ ], ThirdPartyType.prototype, "partners", void 0);
32
37
  __decorate([
33
38
  (0, typeorm_1.Column)({ name: "is_active", default: true }),
34
39
  __metadata("design:type", Boolean)
@@ -1 +1 @@
1
- {"version":3,"file":"thirdpartytype.entity.js","sourceRoot":"","sources":["../../../src/common/entities/thirdpartytype.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAoD;AACpD,oCAAuC;AACvC,2EAAiE;AAO1D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAe;CAmBlD,CAAA;AAnBY,wCAAc;AAEvB;IADC,IAAA,gBAAM,GAAE;;4CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mDACW;AAGpB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,CAAC;;2DACrD;AAG1C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,WAAW,EAAG,OAAO,EAAG,IAAI,EAAE,CAAC;;gDAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,aAAa,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;kDAC/B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,YAAY,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;iDAC/B;yBAjBV,cAAc;IAL1B,IAAA,gBAAM,EACH;QACI,IAAI,EAAE,mBAAW,CAAC,gBAAgB;KACrC,CACJ;GACY,cAAc,CAmB1B"}
1
+ {"version":3,"file":"thirdpartytype.entity.js","sourceRoot":"","sources":["../../../src/common/entities/thirdpartytype.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAoD;AACpD,oCAAuC;AACvC,2EAAiE;AACjE,qDAA2C;AAOpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAe;CAsBlD,CAAA;AAtBY,wCAAc;AAEvB;IADC,IAAA,gBAAM,GAAE;;4CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mDACW;AAGpB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,CAAC;;2DACrD;AAG1C;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC;;gDAC1C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,WAAW,EAAG,OAAO,EAAG,IAAI,EAAE,CAAC;;gDAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,aAAa,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;kDAC/B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAG,YAAY,EAAG,OAAO,EAAG,KAAK,EAAE,CAAC;;iDAC/B;yBApBV,cAAc;IAL1B,IAAA,gBAAM,EACH;QACI,IAAI,EAAE,mBAAW,CAAC,gBAAgB;KACrC,CACJ;GACY,cAAc,CAsB1B"}
@@ -7,11 +7,16 @@ import { SoldeAgent } from './soldes/solde-agent.entity';
7
7
  import { SoldeDistributor } from './soldes/solde-distributor.entity';
8
8
  import { SoldeCustomers } from './soldes/solde-customer.entity';
9
9
  import { AuditableEntity } from '../../auditable/auditable.entity';
10
+ import { Partner } from './partner.entity';
10
11
  export declare class Transaction extends AuditableEntity {
11
12
  amount: number;
12
13
  reference: string;
14
+ fee: number;
15
+ netAmount: number;
16
+ isFeePaid: boolean;
13
17
  distributor: Distributor;
14
18
  agent: Agent;
19
+ partner: Partner;
15
20
  user: User;
16
21
  paymentMethod: PaymentMethod;
17
22
  operation: Operation;
@@ -22,6 +22,7 @@ const solde_agent_entity_1 = require("./soldes/solde-agent.entity");
22
22
  const solde_distributor_entity_1 = require("./soldes/solde-distributor.entity");
23
23
  const solde_customer_entity_1 = require("./soldes/solde-customer.entity");
24
24
  const auditable_entity_1 = require("../../auditable/auditable.entity");
25
+ const partner_entity_1 = require("./partner.entity");
25
26
  let Transaction = class Transaction extends auditable_entity_1.AuditableEntity {
26
27
  };
27
28
  exports.Transaction = Transaction;
@@ -35,6 +36,21 @@ __decorate([
35
36
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
36
37
  __metadata("design:type", String)
37
38
  ], Transaction.prototype, "reference", void 0);
39
+ __decorate([
40
+ (0, classes_1.AutoMap)(),
41
+ (0, typeorm_1.Column)({ name: 'fee', type: 'float', nullable: true }),
42
+ __metadata("design:type", Number)
43
+ ], Transaction.prototype, "fee", void 0);
44
+ __decorate([
45
+ (0, classes_1.AutoMap)(),
46
+ (0, typeorm_1.Column)({ name: 'net_amount', type: 'float', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], Transaction.prototype, "netAmount", void 0);
49
+ __decorate([
50
+ (0, classes_1.AutoMap)(),
51
+ (0, typeorm_1.Column)({ name: 'is_fee_paid', type: 'boolean', nullable: true }),
52
+ __metadata("design:type", Boolean)
53
+ ], Transaction.prototype, "isFeePaid", void 0);
38
54
  __decorate([
39
55
  (0, classes_1.AutoMap)(),
40
56
  (0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.id, {
@@ -51,6 +67,14 @@ __decorate([
51
67
  (0, typeorm_1.JoinColumn)({ name: 'AgentId' }),
52
68
  __metadata("design:type", agent_entity_1.Agent)
53
69
  ], Transaction.prototype, "agent", void 0);
70
+ __decorate([
71
+ (0, classes_1.AutoMap)(),
72
+ (0, typeorm_1.ManyToOne)(() => partner_entity_1.Partner, (partner) => partner.id, {
73
+ nullable: true
74
+ }),
75
+ (0, typeorm_1.JoinColumn)({ name: 'PartnerId' }),
76
+ __metadata("design:type", partner_entity_1.Partner)
77
+ ], Transaction.prototype, "partner", void 0);
54
78
  __decorate([
55
79
  (0, classes_1.AutoMap)(),
56
80
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id, {
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.entity.js","sourceRoot":"","sources":["../../../src/common/entities/transaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,+CAAqC;AACrC,yDAA+C;AAC/C,iDAA8C;AAC9C,kFAAsE;AACtE,mEAAwD;AACxD,mEAAyD;AACzD,uDAA6C;AAC7C,oEAAyD;AACzD,gFAAqE;AACrE,0EAAgE;AAChE,uEAAmE;AAI5D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CA8G/C,CAAA;AA9GY,kCAAW;AAGtB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3B;AAaf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC1B;AAOlB;IALC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAC;QAC5D,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,e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,EAAC,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;8BAC/D,sCAAc;kDAAC;sBAjIpB,WAAW;IADvB,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,WAAW,CAqIvB"}
@@ -42,4 +42,7 @@ export declare const TABLE_NAMES: {
42
42
  RATE_CONFIG: string;
43
43
  COMMISSION_WITHDRAWALS_AGENTS: string;
44
44
  COMMISSION_WITHDRAWALS_DISTRIBUTORS: string;
45
+ SUB_ACCOUNT_CUSTOMER: string;
46
+ PARTNER: string;
47
+ PARTNER_FEES: string;
45
48
  };
@@ -45,5 +45,8 @@ exports.TABLE_NAMES = {
45
45
  RATE_CONFIG: 'rate_config',
46
46
  COMMISSION_WITHDRAWALS_AGENTS: 'commission_withdrawals_agents',
47
47
  COMMISSION_WITHDRAWALS_DISTRIBUTORS: 'commission_withdrawals_distributors',
48
+ SUB_ACCOUNT_CUSTOMER: 'sub_account_customers',
49
+ PARTNER: 'partners',
50
+ PARTNER_FEES: 'partner_fees',
48
51
  };
49
52
  //# sourceMappingURL=table-names.constant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,mBAAmB,EAAE,qBAAqB;IAC1C,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAG,YAAY;IACzB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;IACf,oBAAoB,EAAE,uBAAuB;IAC7C,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,aAAa;IAC1B,6BAA6B,EAAE,+BAA+B;IAC9D,mCAAmC,EAAE,qCAAqC;CAC3E,CAAC"}
1
+ {"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,WA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