tt-entities 0.0.27 → 0.0.28
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/libs/tatayab-entities-library/entities/country.entity.d.ts +2 -0
- package/dist/libs/tatayab-entities-library/entities/country.entity.js +6 -0
- package/dist/libs/tatayab-entities-library/entities/country.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/entities/payment-gateway.entity.d.ts +22 -0
- package/dist/libs/tatayab-entities-library/entities/payment-gateway.entity.js +76 -0
- package/dist/libs/tatayab-entities-library/entities/payment-gateway.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method-country.entity.d.ts +5 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method-country.entity.js +32 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method-country.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method.entity.d.ts +33 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method.entity.js +108 -0
- package/dist/libs/tatayab-entities-library/entities/payment-method.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/store-payment-method.entity.d.ts +7 -0
- package/dist/libs/tatayab-entities-library/entities/store-payment-method.entity.js +40 -0
- package/dist/libs/tatayab-entities-library/entities/store-payment-method.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/store.entity.d.ts +2 -0
- package/dist/libs/tatayab-entities-library/entities/store.entity.js +6 -0
- package/dist/libs/tatayab-entities-library/entities/store.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/index.d.ts +4 -0
- package/dist/libs/tatayab-entities-library/index.js +19 -1
- package/dist/libs/tatayab-entities-library/index.js.map +1 -1
- package/dist/src/main.js +325 -2
- package/libs/tatayab-entities-library/src/entities/country.entity.ts +8 -1
- package/libs/tatayab-entities-library/src/entities/payment-gateway.entity.ts +56 -0
- package/libs/tatayab-entities-library/src/entities/payment-method-country.entity.ts +16 -0
- package/libs/tatayab-entities-library/src/entities/payment-method.entity.ts +84 -0
- package/libs/tatayab-entities-library/src/entities/store-payment-method.entity.ts +24 -0
- package/libs/tatayab-entities-library/src/entities/store.entity.ts +5 -0
- package/libs/tatayab-entities-library/src/index.ts +24 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { PaymentMethod } from '@app/tatayab-entities-library/entities/payment-method.entity';
|
|
2
3
|
export declare class Country extends Model {
|
|
3
4
|
nameEn: string;
|
|
4
5
|
nameAr: string;
|
|
@@ -7,4 +8,5 @@ export declare class Country extends Model {
|
|
|
7
8
|
phoneExt: string;
|
|
8
9
|
currency: string;
|
|
9
10
|
exchangeRateToKwd: number;
|
|
11
|
+
paymentMethods: PaymentMethod[];
|
|
10
12
|
}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Country = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const payment_method_entity_1 = require("@app/tatayab-entities-library/entities/payment-method.entity");
|
|
15
|
+
const payment_method_country_entity_1 = require("@app/tatayab-entities-library/entities/payment-method-country.entity");
|
|
14
16
|
let Country = class Country extends sequelize_typescript_1.Model {
|
|
15
17
|
};
|
|
16
18
|
exports.Country = Country;
|
|
@@ -42,6 +44,10 @@ __decorate([
|
|
|
42
44
|
sequelize_typescript_1.Column,
|
|
43
45
|
__metadata("design:type", Number)
|
|
44
46
|
], Country.prototype, "exchangeRateToKwd", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => payment_method_entity_1.PaymentMethod, () => payment_method_country_entity_1.PaymentMethodCountry),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], Country.prototype, "paymentMethods", void 0);
|
|
45
51
|
exports.Country = Country = __decorate([
|
|
46
52
|
sequelize_typescript_1.Table
|
|
47
53
|
], Country);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA2E;AAC3E,wGAA6F;AAC7F,wHAA4G;AAGrG,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CA0BjC,CAAA;AA1BY,0BAAO;AAEV;IADP,6BAAM;;uCACgB;AAGf;IADP,6BAAM;;uCACgB;AAGf;IADP,6BAAM;;yCACkB;AAGjB;IADP,6BAAM;;wCACiB;AAGhB;IADP,6BAAM;;yCACkB;AAGjB;IADP,6BAAM;;yCACkB;AAGjB;IADP,6BAAM;;kDAC2B;AAK1B;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,GAAG,EAAE,CAAC,oDAAoB,CAAC;;+CACvB;kBAzB7B,OAAO;IADnB,4BAAK;GACO,OAAO,CA0BnB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { PaymentMethod } from './payment-method.entity';
|
|
3
|
+
export declare enum PaymentGatewayType {
|
|
4
|
+
BNPL = "bnpl",
|
|
5
|
+
CARD = "card",
|
|
6
|
+
KNET = "knet",
|
|
7
|
+
WALLET = "wallet",
|
|
8
|
+
BANK = "bank"
|
|
9
|
+
}
|
|
10
|
+
export declare class PaymentGateway extends Model {
|
|
11
|
+
slug: string;
|
|
12
|
+
nameEn: string;
|
|
13
|
+
nameAr: string;
|
|
14
|
+
type: PaymentGatewayType;
|
|
15
|
+
logo?: string;
|
|
16
|
+
website?: string;
|
|
17
|
+
credentials?: object;
|
|
18
|
+
isSandbox: boolean;
|
|
19
|
+
sortOrder: number;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
methods: PaymentMethod[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.PaymentGateway = exports.PaymentGatewayType = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const payment_method_entity_1 = require("./payment-method.entity");
|
|
15
|
+
var PaymentGatewayType;
|
|
16
|
+
(function (PaymentGatewayType) {
|
|
17
|
+
PaymentGatewayType["BNPL"] = "bnpl";
|
|
18
|
+
PaymentGatewayType["CARD"] = "card";
|
|
19
|
+
PaymentGatewayType["KNET"] = "knet";
|
|
20
|
+
PaymentGatewayType["WALLET"] = "wallet";
|
|
21
|
+
PaymentGatewayType["BANK"] = "bank";
|
|
22
|
+
})(PaymentGatewayType || (exports.PaymentGatewayType = PaymentGatewayType = {}));
|
|
23
|
+
let PaymentGateway = class PaymentGateway extends sequelize_typescript_1.Model {
|
|
24
|
+
};
|
|
25
|
+
exports.PaymentGateway = PaymentGateway;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PaymentGateway.prototype, "slug", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PaymentGateway.prototype, "nameEn", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PaymentGateway.prototype, "nameAr", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({
|
|
40
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(PaymentGatewayType)),
|
|
41
|
+
allowNull: false,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PaymentGateway.prototype, "type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PaymentGateway.prototype, "logo", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PaymentGateway.prototype, "website", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSON, allowNull: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], PaymentGateway.prototype, "credentials", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], PaymentGateway.prototype, "isSandbox", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], PaymentGateway.prototype, "sortOrder", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: true }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], PaymentGateway.prototype, "isActive", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, sequelize_typescript_1.HasMany)(() => payment_method_entity_1.PaymentMethod),
|
|
71
|
+
__metadata("design:type", Array)
|
|
72
|
+
], PaymentGateway.prototype, "methods", void 0);
|
|
73
|
+
exports.PaymentGateway = PaymentGateway = __decorate([
|
|
74
|
+
sequelize_typescript_1.Table
|
|
75
|
+
], PaymentGateway);
|
|
76
|
+
//# sourceMappingURL=payment-gateway.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-gateway.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/payment-gateway.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,mEAAwD;AAExD,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,mCAAoB,CAAA;IACpB,mCAAoB,CAAA;IACpB,mCAAoB,CAAA;IACpB,uCAAsB,CAAA;IACtB,mCAAoB,CAAA;AACtB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AAGM,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAyCxC,CAAA;AAzCY,wCAAc;AAEjB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CACtB;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;8CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;8CACN;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACzD,SAAS,EAAE,KAAK;KACjB,CAAC;;4CAC+B;AAGzB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CACN;AAGd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CACH;AAKjB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mDACpB;AAIrB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;iDACvB;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;iDACF;AAGlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;gDACvB;AAKlB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;;+CACI;yBAxCtB,cAAc;IAD1B,4BAAK;GACO,cAAc,CAyC1B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.PaymentMethodCountry = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const payment_method_entity_1 = require("./payment-method.entity");
|
|
15
|
+
const country_entity_1 = require("./country.entity");
|
|
16
|
+
let PaymentMethodCountry = class PaymentMethodCountry extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.PaymentMethodCountry = PaymentMethodCountry;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => payment_method_entity_1.PaymentMethod),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], PaymentMethodCountry.prototype, "paymentMethodId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], PaymentMethodCountry.prototype, "countryId", void 0);
|
|
29
|
+
exports.PaymentMethodCountry = PaymentMethodCountry = __decorate([
|
|
30
|
+
sequelize_typescript_1.Table
|
|
31
|
+
], PaymentMethodCountry);
|
|
32
|
+
//# sourceMappingURL=payment-method-country.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-country.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/payment-method-country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,mEAAwD;AACxD,qDAA2C;AAGpC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,4BAAK;CAQ9C,CAAA;AARY,oDAAoB;AAGvB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;IAC/B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6DACG;AAIxB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;uDACH;+BAPf,oBAAoB;IADhC,4BAAK;GACO,oBAAoB,CAQhC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { PaymentGateway } from './payment-gateway.entity';
|
|
3
|
+
import { Country } from './country.entity';
|
|
4
|
+
import { Store } from './store.entity';
|
|
5
|
+
export declare enum PaymentMethodType {
|
|
6
|
+
PAY_LATER = "pay_later",
|
|
7
|
+
INSTALLMENT = "installment",
|
|
8
|
+
CREDIT_CARD = "credit_card",
|
|
9
|
+
DEBIT_CARD = "debit_card",
|
|
10
|
+
KNET = "knet",
|
|
11
|
+
APPLE_PAY = "apple_pay",
|
|
12
|
+
GOOGLE_PAY = "google_pay",
|
|
13
|
+
BANK_TRANSFER = "bank_transfer"
|
|
14
|
+
}
|
|
15
|
+
export declare class PaymentMethod extends Model {
|
|
16
|
+
paymentGatewayId: number;
|
|
17
|
+
slug: string;
|
|
18
|
+
nameEn: string;
|
|
19
|
+
nameAr: string;
|
|
20
|
+
descriptionEn?: string;
|
|
21
|
+
descriptionAr?: string;
|
|
22
|
+
type: PaymentMethodType;
|
|
23
|
+
logo?: string;
|
|
24
|
+
feePercentage?: number;
|
|
25
|
+
feeFixed?: number;
|
|
26
|
+
minOrderAmount?: number;
|
|
27
|
+
maxOrderAmount?: number;
|
|
28
|
+
sortOrder: number;
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
gateway: PaymentGateway;
|
|
31
|
+
countries: Country[];
|
|
32
|
+
stores: Store[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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.PaymentMethod = exports.PaymentMethodType = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const payment_gateway_entity_1 = require("./payment-gateway.entity");
|
|
15
|
+
const country_entity_1 = require("./country.entity");
|
|
16
|
+
const store_entity_1 = require("./store.entity");
|
|
17
|
+
const payment_method_country_entity_1 = require("./payment-method-country.entity");
|
|
18
|
+
const store_payment_method_entity_1 = require("./store-payment-method.entity");
|
|
19
|
+
var PaymentMethodType;
|
|
20
|
+
(function (PaymentMethodType) {
|
|
21
|
+
PaymentMethodType["PAY_LATER"] = "pay_later";
|
|
22
|
+
PaymentMethodType["INSTALLMENT"] = "installment";
|
|
23
|
+
PaymentMethodType["CREDIT_CARD"] = "credit_card";
|
|
24
|
+
PaymentMethodType["DEBIT_CARD"] = "debit_card";
|
|
25
|
+
PaymentMethodType["KNET"] = "knet";
|
|
26
|
+
PaymentMethodType["APPLE_PAY"] = "apple_pay";
|
|
27
|
+
PaymentMethodType["GOOGLE_PAY"] = "google_pay";
|
|
28
|
+
PaymentMethodType["BANK_TRANSFER"] = "bank_transfer";
|
|
29
|
+
})(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
|
|
30
|
+
let PaymentMethod = class PaymentMethod extends sequelize_typescript_1.Model {
|
|
31
|
+
};
|
|
32
|
+
exports.PaymentMethod = PaymentMethod;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.ForeignKey)(() => payment_gateway_entity_1.PaymentGateway),
|
|
35
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], PaymentMethod.prototype, "paymentGatewayId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], PaymentMethod.prototype, "slug", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], PaymentMethod.prototype, "nameEn", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], PaymentMethod.prototype, "nameAr", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PaymentMethod.prototype, "descriptionEn", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PaymentMethod.prototype, "descriptionAr", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, sequelize_typescript_1.Column)({
|
|
60
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(PaymentMethodType)),
|
|
61
|
+
allowNull: false,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], PaymentMethod.prototype, "type", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], PaymentMethod.prototype, "logo", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(5, 2), allowNull: true, defaultValue: 0 }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], PaymentMethod.prototype, "feePercentage", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true, defaultValue: 0 }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], PaymentMethod.prototype, "feeFixed", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], PaymentMethod.prototype, "minOrderAmount", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], PaymentMethod.prototype, "maxOrderAmount", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], PaymentMethod.prototype, "sortOrder", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: true }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], PaymentMethod.prototype, "isActive", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, sequelize_typescript_1.BelongsTo)(() => payment_gateway_entity_1.PaymentGateway),
|
|
95
|
+
__metadata("design:type", payment_gateway_entity_1.PaymentGateway)
|
|
96
|
+
], PaymentMethod.prototype, "gateway", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => country_entity_1.Country, () => payment_method_country_entity_1.PaymentMethodCountry),
|
|
99
|
+
__metadata("design:type", Array)
|
|
100
|
+
], PaymentMethod.prototype, "countries", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => store_entity_1.Store, () => store_payment_method_entity_1.StorePaymentMethod),
|
|
103
|
+
__metadata("design:type", Array)
|
|
104
|
+
], PaymentMethod.prototype, "stores", void 0);
|
|
105
|
+
exports.PaymentMethod = PaymentMethod = __decorate([
|
|
106
|
+
sequelize_typescript_1.Table
|
|
107
|
+
], PaymentMethod);
|
|
108
|
+
//# sourceMappingURL=payment-method.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/payment-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAG8B;AAC9B,qEAA0D;AAC1D,qDAA2C;AAC3C,iDAAuC;AACvC,mFAAuE;AACvE,+EAAmE;AAEnE,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,4CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,gDAA+B,CAAA;IAC/B,8CAA8B,CAAA;IAC9B,kCAAwB,CAAA;IACxB,4CAA6B,CAAA;IAC7B,8CAA8B,CAAA;IAC9B,oDAAiC,CAAA;AACnC,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CA6DvC,CAAA;AA7DY,sCAAa;AAGhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE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,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qDAC3B;AAIxB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qDAC3B;AAGxB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;gDACF;AAGlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;+CACvB;AAKlB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACf,uCAAc;8CAAC;AAGxB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,GAAG,EAAE,CAAC,oDAAoB,CAAC;;gDAC5B;AAGrB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,GAAG,EAAE,CAAC,gDAAkB,CAAC;;6CAC7B;wBA5Db,aAAa;IADzB,4BAAK;GACO,aAAa,CA6DzB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.StorePaymentMethod = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const store_entity_1 = require("./store.entity");
|
|
15
|
+
const payment_method_entity_1 = require("./payment-method.entity");
|
|
16
|
+
let StorePaymentMethod = class StorePaymentMethod extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.StorePaymentMethod = StorePaymentMethod;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => store_entity_1.Store),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], StorePaymentMethod.prototype, "storeId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => payment_method_entity_1.PaymentMethod),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], StorePaymentMethod.prototype, "paymentMethodId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], StorePaymentMethod.prototype, "sortOrder", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: true }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], StorePaymentMethod.prototype, "isEnabled", void 0);
|
|
37
|
+
exports.StorePaymentMethod = StorePaymentMethod = __decorate([
|
|
38
|
+
sequelize_typescript_1.Table
|
|
39
|
+
], StorePaymentMethod);
|
|
40
|
+
//# sourceMappingURL=store-payment-method.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-payment-method.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/store-payment-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,iDAAuC;AACvC,mEAAwD;AAGjD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAK;CAgB5C,CAAA;AAhBY,gDAAkB;AAGrB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mDACL;AAIhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;IAC/B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2DACG;AAIxB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;qDACF;AAIlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;qDACtB;6BAfhB,kBAAkB;IAD9B,4BAAK;GACO,kBAAkB,CAgB9B"}
|
|
@@ -3,6 +3,7 @@ import { Country } from './country.entity';
|
|
|
3
3
|
import { Product } from './product.entity';
|
|
4
4
|
import { Inventory } from './inventory.entity';
|
|
5
5
|
import { Status } from '../utils/enums/status';
|
|
6
|
+
import { PaymentMethod } from '@app/tatayab-entities-library/entities/payment-method.entity';
|
|
6
7
|
export declare class Store extends Model {
|
|
7
8
|
nameEn: string;
|
|
8
9
|
nameAr: string;
|
|
@@ -18,4 +19,5 @@ export declare class Store extends Model {
|
|
|
18
19
|
country: Country;
|
|
19
20
|
products: Product[];
|
|
20
21
|
inventories: Inventory[];
|
|
22
|
+
paymentMethods: PaymentMethod[];
|
|
21
23
|
}
|
|
@@ -17,6 +17,8 @@ const product_entity_1 = require("./product.entity");
|
|
|
17
17
|
const store_inventory_entity_1 = require("./store-inventory.entity");
|
|
18
18
|
const inventory_entity_1 = require("./inventory.entity");
|
|
19
19
|
const status_1 = require("../utils/enums/status");
|
|
20
|
+
const payment_method_entity_1 = require("@app/tatayab-entities-library/entities/payment-method.entity");
|
|
21
|
+
const store_payment_method_entity_1 = require("@app/tatayab-entities-library/entities/store-payment-method.entity");
|
|
20
22
|
let Store = class Store extends sequelize_typescript_1.Model {
|
|
21
23
|
};
|
|
22
24
|
exports.Store = Store;
|
|
@@ -80,6 +82,10 @@ __decorate([
|
|
|
80
82
|
(0, sequelize_typescript_1.BelongsToMany)(() => inventory_entity_1.Inventory, () => store_inventory_entity_1.StoreInventory),
|
|
81
83
|
__metadata("design:type", Array)
|
|
82
84
|
], Store.prototype, "inventories", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => payment_method_entity_1.PaymentMethod, () => store_payment_method_entity_1.StorePaymentMethod),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], Store.prototype, "paymentMethods", void 0);
|
|
83
89
|
exports.Store = Store = __decorate([
|
|
84
90
|
sequelize_typescript_1.Table
|
|
85
91
|
], Store);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,qDAA2C;AAC3C,iEAAsD;AACtD,qDAA2C;AAC3C,qEAA0D;AAC1D,yDAA+C;AAC/C,kDAA+C;
|
|
1
|
+
{"version":3,"file":"store.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,qDAA2C;AAC3C,iEAAsD;AACtD,qDAA2C;AAC3C,qEAA0D;AAC1D,yDAA+C;AAC/C,kDAA+C;AAC/C,wGAA6F;AAC7F,oHAAwG;AAGjG,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,4BAAK;CAoD/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AAC,wBAAO,EAAE,GAAG,EAAE,CAAC,mCAAY,CAAC;;uCACrB;AAGpB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;0CACpB;AAGzB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,GAAG,EAAE,CAAC,gDAAkB,CAAC;;6CACrB;gBAnD7B,KAAK;IADjB,4BAAK;GACO,KAAK,CAoDjB"}
|
|
@@ -31,6 +31,10 @@ export { PurchaseOrder } from './entities/purchase-order.entity';
|
|
|
31
31
|
export { PurchaseOrderItem, PurchaseOrderItemStatus, } from './entities/purchase-order-item.entity';
|
|
32
32
|
export { Permission } from './entities/permission.entity';
|
|
33
33
|
export { RolePermission } from './entities/role-permission.entity';
|
|
34
|
+
export { PaymentGateway, PaymentGatewayType, } from './entities/payment-gateway.entity';
|
|
35
|
+
export { PaymentMethod, PaymentMethodType, } from './entities/payment-method.entity';
|
|
36
|
+
export { PaymentMethodCountry } from './entities/payment-method-country.entity';
|
|
37
|
+
export { StorePaymentMethod } from './entities/store-payment-method.entity';
|
|
34
38
|
export { OsName } from './utils/enums/osName';
|
|
35
39
|
export { ProductApp } from './utils/enums/productApp';
|
|
36
40
|
export { VersionType } from './utils/enums/versiontype';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.ShippingRule = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.ProductTag = exports.Tag = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserFavorite = exports.UserAddress = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Country = exports.ApiKey = void 0;
|
|
3
|
+
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.StorePaymentMethod = exports.PaymentMethodCountry = exports.PaymentMethodType = exports.PaymentMethod = exports.PaymentGatewayType = exports.PaymentGateway = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.ShippingRule = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.ProductTag = exports.Tag = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserFavorite = exports.UserAddress = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Country = exports.ApiKey = void 0;
|
|
4
4
|
exports.getDbModels = getDbModels;
|
|
5
5
|
const country_entity_1 = require("./entities/country.entity");
|
|
6
6
|
const area_entity_1 = require("./entities/area.entity");
|
|
@@ -34,6 +34,10 @@ const purchase_order_entity_1 = require("./entities/purchase-order.entity");
|
|
|
34
34
|
const purchase_order_item_entity_1 = require("./entities/purchase-order-item.entity");
|
|
35
35
|
const permission_entity_1 = require("./entities/permission.entity");
|
|
36
36
|
const role_permission_entity_1 = require("./entities/role-permission.entity");
|
|
37
|
+
const payment_gateway_entity_1 = require("./entities/payment-gateway.entity");
|
|
38
|
+
const payment_method_entity_1 = require("./entities/payment-method.entity");
|
|
39
|
+
const payment_method_country_entity_1 = require("./entities/payment-method-country.entity");
|
|
40
|
+
const store_payment_method_entity_1 = require("./entities/store-payment-method.entity");
|
|
37
41
|
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
38
42
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
39
43
|
var country_entity_2 = require("./entities/country.entity");
|
|
@@ -100,6 +104,16 @@ var permission_entity_2 = require("./entities/permission.entity");
|
|
|
100
104
|
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return permission_entity_2.Permission; } });
|
|
101
105
|
var role_permission_entity_2 = require("./entities/role-permission.entity");
|
|
102
106
|
Object.defineProperty(exports, "RolePermission", { enumerable: true, get: function () { return role_permission_entity_2.RolePermission; } });
|
|
107
|
+
var payment_gateway_entity_2 = require("./entities/payment-gateway.entity");
|
|
108
|
+
Object.defineProperty(exports, "PaymentGateway", { enumerable: true, get: function () { return payment_gateway_entity_2.PaymentGateway; } });
|
|
109
|
+
Object.defineProperty(exports, "PaymentGatewayType", { enumerable: true, get: function () { return payment_gateway_entity_2.PaymentGatewayType; } });
|
|
110
|
+
var payment_method_entity_2 = require("./entities/payment-method.entity");
|
|
111
|
+
Object.defineProperty(exports, "PaymentMethod", { enumerable: true, get: function () { return payment_method_entity_2.PaymentMethod; } });
|
|
112
|
+
Object.defineProperty(exports, "PaymentMethodType", { enumerable: true, get: function () { return payment_method_entity_2.PaymentMethodType; } });
|
|
113
|
+
var payment_method_country_entity_2 = require("./entities/payment-method-country.entity");
|
|
114
|
+
Object.defineProperty(exports, "PaymentMethodCountry", { enumerable: true, get: function () { return payment_method_country_entity_2.PaymentMethodCountry; } });
|
|
115
|
+
var store_payment_method_entity_2 = require("./entities/store-payment-method.entity");
|
|
116
|
+
Object.defineProperty(exports, "StorePaymentMethod", { enumerable: true, get: function () { return store_payment_method_entity_2.StorePaymentMethod; } });
|
|
103
117
|
var osName_1 = require("./utils/enums/osName");
|
|
104
118
|
Object.defineProperty(exports, "OsName", { enumerable: true, get: function () { return osName_1.OsName; } });
|
|
105
119
|
var productApp_1 = require("./utils/enums/productApp");
|
|
@@ -150,6 +164,10 @@ function getDbModels() {
|
|
|
150
164
|
purchase_order_item_entity_1.PurchaseOrderItem,
|
|
151
165
|
permission_entity_1.Permission,
|
|
152
166
|
role_permission_entity_1.RolePermission,
|
|
167
|
+
payment_gateway_entity_1.PaymentGateway,
|
|
168
|
+
payment_method_entity_1.PaymentMethod,
|
|
169
|
+
payment_method_country_entity_1.PaymentMethodCountry,
|
|
170
|
+
store_payment_method_entity_1.StorePaymentMethod,
|
|
153
171
|
];
|
|
154
172
|
}
|
|
155
173
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;AAkIA,kCAoDC;AAnLD,8DAAoD;AACpD,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAClD,wEAA6D;AAC7D,0EAA+D;AAG/D,gEAAsD;AACtD,0DAAgD;AAChD,wEAA6D;AAC7D,4EAAiE;AACjE,8DAAoD;AACpD,0EAA+D;AAC/D,8EAAmE;AACnE,4FAAgF;AAChF,sDAA4C;AAC5C,sEAA2D;AAG3D,0DAAgD;AAChD,0EAA+D;AAG/D,kEAAwD;AACxD,8EAAmE;AACnE,8EAAmE;AACnE,4EAAiE;AACjE,0EAA+D;AAG/D,4DAAkD;AAClD,4EAAiE;AACjE,4EAAiE;AACjE,sFAA0E;AAG1E,oEAA0D;AAC1D,8EAAmE;AAGnE,8EAAmE;AACnE,4EAAiE;AACjE,4FAAgF;AAChF,wFAA4E;AAO5E,0DAAkD;AAAzC,uGAAA,MAAM,OAAA;AACf,4DAAoD;AAA3C,yGAAA,OAAO,OAAA;AAChB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,8DAAqD;AAA5C,0GAAA,OAAO,OAAA;AAChB,8DAAqD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