cecon-interfaces 1.2.21 → 1.2.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/plan/entities/plan.entity.mjs +6 -5
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
- package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +1 -3
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +9 -10
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.d.ts +3 -2
- package/dist/plan/entities/plan.entity.js +5 -4
- package/dist/plan/interfaces/i-plan.d.ts +1 -0
- package/dist/subscription-base/entities/subscription-base.entity.js +2 -2
- package/dist/subscription-company/entities/subscription.entity.d.ts +0 -2
- package/dist/subscription-company/entities/subscription.entity.js +0 -2
- package/dist/subscription-customer/entities/subscription.entity.js +2 -2
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +4 -4
- package/package.json +1 -1
@@ -1,19 +1,20 @@
|
|
1
1
|
import { EIntervalType } from '../../general/enums';
|
2
2
|
import { EPlanIdentifier } from '../enums/plans-identifier.enum';
|
3
3
|
export class PlanEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (12)
|
5
5
|
createdAt = new Date();
|
6
6
|
features = [];
|
7
7
|
id = '';
|
8
|
-
tags = [];
|
9
|
-
index = 0;
|
10
8
|
identifier = EPlanIdentifier.NATIGO;
|
9
|
+
index = 0;
|
11
10
|
interval = 12;
|
12
11
|
intervalType = EIntervalType.MONTHS;
|
13
12
|
name = '';
|
14
13
|
price = 0;
|
14
|
+
tags = [];
|
15
|
+
trialDays = 0;
|
15
16
|
updatedAt = new Date();
|
16
|
-
// #endregion Properties (
|
17
|
+
// #endregion Properties (12)
|
17
18
|
// #region Constructors (1)
|
18
19
|
constructor(data) {
|
19
20
|
if (data) {
|
@@ -25,4 +26,4 @@ export class PlanEntity {
|
|
25
26
|
}
|
26
27
|
}
|
27
28
|
}
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhbi5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGxhbi9lbnRpdGllcy9wbGFuLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBSWpFLE1BQU0sT0FBTyxVQUFVO0lBQ3JCLDBCQUEwQjtJQUVuQixTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixRQUFRLEdBQXdCLEVBQUUsQ0FBQztJQUNuQyxFQUFFLEdBQVcsRUFBRSxDQUFDO0lBQ2hCLFVBQVUsR0FBb0IsZUFBZSxDQUFDLE1BQU0sQ0FBQztJQUNyRCxLQUFLLEdBQVcsQ0FBQyxDQUFDO0lBQ2xCLFFBQVEsR0FBVyxFQUFFLENBQUM7SUFDdEIsWUFBWSxHQUFrQixhQUFhLENBQUMsTUFBTSxDQUFDO0lBQ25ELElBQUksR0FBVyxFQUFFLENBQUM7SUFDbEIsS0FBSyxHQUFXLENBQUMsQ0FBQztJQUNsQixJQUFJLEdBQWEsRUFBRSxDQUFDO0lBQ3BCLFNBQVMsR0FBVyxDQUFDLENBQUM7SUFDdEIsU0FBUyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFFcEMsNkJBQTZCO0lBRTdCLDJCQUEyQjtJQUUzQixZQUFZLElBQTBCO1FBQ3BDLElBQUksSUFBSSxFQUFFO1lBQ1IsS0FBSyxJ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ZTogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyBwcmljZTogbnVtYmVyID0gMDtcbiAgcHVibGljIHRhZ3M6IHN0cmluZ1tdID0gW107XG4gIHB1YmxpYyB0cmlhbERheXM6IG51bWJlciA9IDA7XG4gIHB1YmxpYyB1cGRhdGVkQXQ6IERhdGUgPSBuZXcgRGF0ZSgpO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTIpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8UGxhbkVudGl0eT4pIHtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wbGFuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3BsYW4vaW50ZXJmYWNlcy9pLXBsYW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVJbnRlcnZhbFR5cGUgfSBmcm9tICcuLi8uLi9nZW5lcmFsL2VudW1zJztcbmltcG9ydCB7IEVQbGFuSWRlbnRpZmllciB9IGZyb20gJy4uL2VudW1zJztcbmltcG9ydCB7IElQbGFuRmVhdHVyZSB9IGZyb20gJy4vaS1mZWF0dXJlJztcblxuZXhwb3J0IGludGVyZmFjZSBJUGxhbiB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTApXG5cbiAgY3JlYXRlZEF0OiBEYXRlO1xuICBmZWF0dXJlczogSVBsYW5GZWF0dXJlW107XG4gIGlkOiBzdHJpbmc7XG4gIGlkZW50aWZpZXI6IEVQbGFuSWRlbnRpZmllcjtcbiAgaW5kZXg6IG51bWJlcjtcbiAgaW50ZXJ2YWw6IG51bWJlcjtcbiAgaW50ZXJ2YWxUeXBlOiBFSW50ZXJ2YWxUeXBlO1xuICB0YWdzOiBzdHJpbmdbXTtcbiAgbmFtZTogc3RyaW5nO1xuICB0cmlhbERheXM6IG51bWJlcjtcbiAgcHJpY2U6IG51bWJlcjtcbiAgdXBkYXRlZEF0OiBEYXRlO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTApXG59XG4iXX0=
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EIntervalType, EPaymentType, PaymentEntity } from '../../general';
|
2
2
|
import { ESubscriptionStatus } from '../enums';
|
3
3
|
export class SubscriptionBaseEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (23)
|
5
5
|
amount = 0;
|
6
6
|
cancellationReason = '';
|
7
7
|
createdAt = new Date();
|
@@ -25,7 +25,7 @@ export class SubscriptionBaseEntity {
|
|
25
25
|
suspendedTimes = 0;
|
26
26
|
tags = [];
|
27
27
|
updatedAt = new Date();
|
28
|
-
// #endregion Properties (
|
28
|
+
// #endregion Properties (23)
|
29
29
|
// #region Constructors (1)
|
30
30
|
constructor(data) {
|
31
31
|
if (data) {
|
@@ -37,4 +37,4 @@ export class SubscriptionBaseEntity {
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
}
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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XltZW50VHlwZTogRVBheW1lbnRUeXBlID0gRVBheW1lbnRUeXBlLk5PTkU7XG4gIHB1YmxpYyBwaG9uZU51bWJlck5vdGlmaWNhdGlvbjogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyByZWNlbnRJbnZvaWNlczogSW52b2ljZUVudGl0eVtdID0gW107XG4gIHB1YmxpYyByZW5ld1BheW1lbnREYXRlOiBEYXRlID0gbmV3IERhdGUoKTtcbiAgcHVibGljIHJlbm92YXRlZEF0OiBEYXRlID0gbmV3IERhdGUoKTtcbiAgcHVibGljIHN0YXJ0c0F0OiBEYXRlID0gbmV3IERhdGUoKTtcbiAgcHVibGljIHN0YXR1czogRVN1YnNjcmlwdGlvblN0YXR1cyA9IEVTdWJzY3JpcHRpb25TdGF0dXMuUEVORElORztcbiAgcHVibGljIHN1c3BlbmRlZFRpbWVzOiBudW1iZXIgPSAwO1xuICBwdWJsaWMgdGFnczogc3RyaW5nW10gPSBbXTtcbiAgcHVibGljIHVwZGF0ZWRBdDogRGF0ZSA9IG5ldyBEYXRlKCk7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgyMylcblxuICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxTdWJzY3JpcHRpb25CYXNlRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -4,8 +4,6 @@ export class SubscriptionCompanyEntity extends SubscriptionBaseEntity {
|
|
4
4
|
// #region Properties (9)
|
5
5
|
appId = '';
|
6
6
|
appName = '';
|
7
|
-
companyId = '';
|
8
|
-
containerId = '';
|
9
7
|
features = [];
|
10
8
|
partnerId = '';
|
11
9
|
planId = '';
|
@@ -24,4 +22,4 @@ export class SubscriptionCompanyEntity extends SubscriptionBaseEntity {
|
|
24
22
|
}
|
25
23
|
}
|
26
24
|
}
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24tY29tcGFueS9lbnRpdGllcy9zdWJzY3JpcHRpb24uZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDJEQUEyRCxDQUFDO0FBRW5HLE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBRWpGLE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxzQkFBc0I7SUFDbkUseUJBQXlCO0lBRWxCLEtBQUssR0FBVyxFQUFFLENBQUM7SUFDbkIsT0FBTyxHQUFXLEVBQUUsQ0FBQztJQUNyQixRQUFRLEdBQW9CLEVBQUUsQ0FBQztJQUMvQixTQUFTLEdBQWtCLEVBQUUsQ0FBQztJQUM5QixNQUFNLEdBQVcsRUFBRSxDQUFDO0lBQ3BCLFFBQVEsR0FBVyxFQUFFLENBQUM7SUFDdEIsT0FBTyxHQUFxQyxJQUFJLGdDQUFnQyxFQUFFLENBQUM7SUFFMUYsNEJBQTRCO0lBRTVCLDJCQUEyQjtJQUUzQixZQUFZLElBQXlDO1FBQ25ELEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQzt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cgfCBudWxsID0gJyc7XG4gIHB1YmxpYyBwbGFuSWQ6IHN0cmluZyA9ICcnO1xuICBwdWJsaWMgcGxhbk5hbWU6IHN0cmluZyA9ICcnO1xuICBwdWJsaWMgcHJvZmlsZTogU3Vic2NyaXB0aW9uQ29tcGFueVByb2ZpbGVFbnRpdHkgPSBuZXcgU3Vic2NyaXB0aW9uQ29tcGFueVByb2ZpbGVFbnRpdHkoKTtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDkpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8U3Vic2NyaXB0aW9uQ29tcGFueUVudGl0eT4pIHtcbiAgICBzdXBlcihkYXRhKTtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -2,7 +2,7 @@ import { ECustomerInterval } from '../../customer';
|
|
2
2
|
import { SubscriptionBaseEntity } from '../../subscription-base';
|
3
3
|
import { SubscriptionCustomerProfileEntity } from './subscription-customer.entity';
|
4
4
|
export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
5
|
-
// #region Properties (
|
5
|
+
// #region Properties (9)
|
6
6
|
amountUsed = 0;
|
7
7
|
creditLimit = 0;
|
8
8
|
currentBalance = 0;
|
@@ -11,7 +11,7 @@ export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
|
11
11
|
openedInvoices = [];
|
12
12
|
preferedDueDate = 7;
|
13
13
|
profile = new SubscriptionCustomerProfileEntity();
|
14
|
-
// #endregion Properties (
|
14
|
+
// #endregion Properties (9)
|
15
15
|
// #region Constructors (1)
|
16
16
|
constructor(data) {
|
17
17
|
super(data);
|
@@ -24,4 +24,4 @@ export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
}
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24tY3VzdG9tZXIvZW50aXRpZXMvc3Vic2NyaXB0aW9uLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVuRCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVqRSxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUVuRixNQUFNLE9BQU8sMEJBQTJCLFNBQVEsc0JBQXNCO0lBQ3BFLHlCQUF5QjtJQUVsQixVQUFVLEdBQVcsQ0FBQyxDQUFDO0lBQ3ZCLFdBQVcsR0FBVyxDQUFDLENBQUM7SUFDeEIsY0FBYyxHQUFXLENBQUMsQ0FBQztJQUMzQixVQUFVLEdBQWtCLElBQUksQ0FBQztJQUNqQyxnQkFBZ0IsR0FBc0IsaUJBQWlCLENBQUMsT0FBTyxDQUFDO0lBQ2hFLGNBQWMsR0FBZSxFQUFFLENBQUM7SUFDaEMsZUFBZSxHQUFXLENBQUMsQ0FBQztJQUM1QixPQUFPLEdBQXNDLElBQUksaUNBQWlDLEVBQUUsQ0FBQztJQUU1Ri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BjcmVkaXRMaW1pdDogbnVtYmVyID0gMDtcbiAgcHVibGljIGN1cnJlbnRCYWxhbmNlOiBudW1iZXIgPSAwO1xuICBwdWJsaWMgY3VzdG9tZXJJZDogc3RyaW5nIHwgbnVsbCA9IG51bGw7XG4gIHB1YmxpYyBjdXN0b21lckludGVydmFsOiBFQ3VzdG9tZXJJbnRlcnZhbCA9IEVDdXN0b21lckludGVydmFsLk1PTlRITFk7XG4gIHB1YmxpYyBvcGVuZWRJbnZvaWNlczogSUludm9pY2VbXSA9IFtdO1xuICBwdWJsaWMgcHJlZmVyZWREdWVEYXRlOiBudW1iZXIgPSA3O1xuICBwdWJsaWMgcHJvZmlsZTogU3Vic2NyaXB0aW9uQ3VzdG9tZXJQcm9maWxlRW50aXR5ID0gbmV3IFN1YnNjcmlwdGlvbkN1c3RvbWVyUHJvZmlsZUVudGl0eSgpO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoOSlcblxuICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxTdWJzY3JpcHRpb25DdXN0b21lckVudGl0eT4pIHtcbiAgICBzdXBlcihkYXRhKTtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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
2111
|
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
2112
2112
|
|
2113
2113
|
class SubscriptionBaseEntity {
|
2114
|
-
// #region Properties (
|
2114
|
+
// #region Properties (23)
|
2115
2115
|
amount = 0;
|
2116
2116
|
cancellationReason = '';
|
2117
2117
|
createdAt = new Date();
|
@@ -2135,7 +2135,7 @@ class SubscriptionBaseEntity {
|
|
2135
2135
|
suspendedTimes = 0;
|
2136
2136
|
tags = [];
|
2137
2137
|
updatedAt = new Date();
|
2138
|
-
// #endregion Properties (
|
2138
|
+
// #endregion Properties (23)
|
2139
2139
|
// #region Constructors (1)
|
2140
2140
|
constructor(data) {
|
2141
2141
|
if (data) {
|
@@ -3297,19 +3297,20 @@ class PlanFeatureEntity {
|
|
3297
3297
|
}
|
3298
3298
|
|
3299
3299
|
class PlanEntity {
|
3300
|
-
// #region Properties (
|
3300
|
+
// #region Properties (12)
|
3301
3301
|
createdAt = new Date();
|
3302
3302
|
features = [];
|
3303
3303
|
id = '';
|
3304
|
-
tags = [];
|
3305
|
-
index = 0;
|
3306
3304
|
identifier = EPlanIdentifier.NATIGO;
|
3305
|
+
index = 0;
|
3307
3306
|
interval = 12;
|
3308
3307
|
intervalType = EIntervalType.MONTHS;
|
3309
3308
|
name = '';
|
3310
3309
|
price = 0;
|
3310
|
+
tags = [];
|
3311
|
+
trialDays = 0;
|
3311
3312
|
updatedAt = new Date();
|
3312
|
-
// #endregion Properties (
|
3313
|
+
// #endregion Properties (12)
|
3313
3314
|
// #region Constructors (1)
|
3314
3315
|
constructor(data) {
|
3315
3316
|
if (data) {
|
@@ -3709,8 +3710,6 @@ class SubscriptionCompanyEntity extends SubscriptionBaseEntity {
|
|
3709
3710
|
// #region Properties (9)
|
3710
3711
|
appId = '';
|
3711
3712
|
appName = '';
|
3712
|
-
companyId = '';
|
3713
|
-
containerId = '';
|
3714
3713
|
features = [];
|
3715
3714
|
partnerId = '';
|
3716
3715
|
planId = '';
|
@@ -3754,7 +3753,7 @@ class SubscriptionCustomerProfileEntity {
|
|
3754
3753
|
}
|
3755
3754
|
|
3756
3755
|
class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
3757
|
-
// #region Properties (
|
3756
|
+
// #region Properties (9)
|
3758
3757
|
amountUsed = 0;
|
3759
3758
|
creditLimit = 0;
|
3760
3759
|
currentBalance = 0;
|
@@ -3763,7 +3762,7 @@ class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
|
3763
3762
|
openedInvoices = [];
|
3764
3763
|
preferedDueDate = 7;
|
3765
3764
|
profile = new SubscriptionCustomerProfileEntity();
|
3766
|
-
// #endregion Properties (
|
3765
|
+
// #endregion Properties (9)
|
3767
3766
|
// #region Constructors (1)
|
3768
3767
|
constructor(data) {
|
3769
3768
|
super(data);
|