cecon-interfaces 1.6.20 → 1.6.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/mobyo/mobyo-api/interfaces/i-question.mjs +1 -1
- package/dist/esm2022/payio/features/entities/feature.entity.mjs +28 -0
- package/dist/esm2022/payio/features/entities/index.mjs +2 -0
- package/dist/esm2022/payio/features/enum/feature-type.enum.mjs +10 -0
- package/dist/esm2022/payio/features/enum/index.mjs +2 -0
- package/dist/esm2022/payio/features/index.mjs +4 -0
- package/dist/esm2022/payio/features/interfaces/i-feature.mjs +2 -0
- package/dist/esm2022/payio/features/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/index.mjs +2 -1
- package/dist/esm2022/payio/subscriptions/entities/index.mjs +1 -2
- package/dist/esm2022/payio/subscriptions/entities/subscription.entity.mjs +1 -2
- package/dist/esm2022/payio/subscriptions/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/payio/subscriptions/interfaces/index.mjs +1 -1
- package/dist/esm2022/plan/entities/index.mjs +1 -2
- package/dist/esm2022/plan/entities/plan.entity.mjs +1 -1
- package/dist/esm2022/plan/enums/index.mjs +1 -2
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/plan/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +38 -54
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/mobyo/mobyo-api/interfaces/i-question.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/payio/features/entities/feature.entity.d.ts +17 -0
- package/dist/payio/features/entities/feature.entity.js +32 -0
- package/dist/payio/features/entities/index.d.ts +1 -0
- package/dist/payio/features/entities/index.js +5 -0
- package/dist/payio/features/enum/feature-type.enum.d.ts +8 -0
- package/dist/payio/features/enum/feature-type.enum.js +12 -0
- package/dist/payio/features/enum/index.d.ts +1 -0
- package/dist/payio/features/enum/index.js +5 -0
- package/dist/payio/features/index.d.ts +3 -0
- package/dist/payio/features/index.js +19 -0
- package/dist/payio/features/interfaces/i-feature.d.ts +15 -0
- package/dist/payio/features/interfaces/index.d.ts +1 -0
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +1 -0
- package/dist/payio/subscriptions/entities/index.d.ts +0 -1
- package/dist/payio/subscriptions/entities/index.js +1 -3
- package/dist/payio/subscriptions/entities/subscription.entity.d.ts +2 -3
- package/dist/payio/subscriptions/entities/subscription.entity.js +0 -1
- package/dist/payio/subscriptions/interfaces/i-subscription.d.ts +2 -5
- package/dist/payio/subscriptions/interfaces/index.d.ts +0 -1
- package/dist/plan/entities/index.d.ts +0 -1
- package/dist/plan/entities/index.js +1 -3
- package/dist/plan/entities/plan.entity.d.ts +2 -2
- package/dist/plan/enums/index.d.ts +0 -1
- package/dist/plan/enums/index.js +1 -3
- package/dist/plan/interfaces/i-plan.d.ts +2 -2
- package/dist/plan/interfaces/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/esm2022/payio/subscriptions/entities/subscription-item.entity.mjs +0 -21
- package/dist/esm2022/payio/subscriptions/interfaces/i-subscription-item.mjs +0 -2
- package/dist/esm2022/plan/entities/feature.entity.mjs +0 -26
- package/dist/esm2022/plan/enums/plans-feature-type.enum.mjs +0 -6
- package/dist/esm2022/plan/interfaces/i-feature.mjs +0 -2
- package/dist/payio/subscriptions/entities/subscription-item.entity.d.ts +0 -10
- package/dist/payio/subscriptions/entities/subscription-item.entity.js +0 -25
- package/dist/payio/subscriptions/interfaces/i-subscription-item.d.ts +0 -8
- package/dist/plan/entities/feature.entity.d.ts +0 -15
- package/dist/plan/entities/feature.entity.js +0 -30
- package/dist/plan/enums/plans-feature-type.enum.d.ts +0 -4
- package/dist/plan/enums/plans-feature-type.enum.js +0 -8
- package/dist/plan/interfaces/i-feature.d.ts +0 -13
- /package/dist/{plan → payio/features}/interfaces/i-feature.js +0 -0
- /package/dist/payio/{subscriptions/interfaces/i-subscription-item.js → features/interfaces/index.js} +0 -0
package/dist/package.json
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { EPayuioFeatureType } from '../enum';
|
2
|
+
import { IPayioFeature } from '../interfaces/i-feature';
|
3
|
+
export declare class PayioFeatureEntity implements IPayioFeature {
|
4
|
+
appId: string | null;
|
5
|
+
createdAt: Date;
|
6
|
+
description: string;
|
7
|
+
id: string;
|
8
|
+
index: number;
|
9
|
+
quantity: number;
|
10
|
+
recurrent: boolean;
|
11
|
+
totalPrice: number;
|
12
|
+
type: EPayuioFeatureType;
|
13
|
+
unitPrice: number;
|
14
|
+
updatedAt: Date;
|
15
|
+
voucherKey: string | null;
|
16
|
+
constructor(data?: Partial<PayioFeatureEntity>);
|
17
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioFeatureEntity = void 0;
|
4
|
+
var enum_1 = require("../enum");
|
5
|
+
var PayioFeatureEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (12)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function PayioFeatureEntity(data) {
|
9
|
+
// #region Properties (12)
|
10
|
+
this.appId = null;
|
11
|
+
this.createdAt = new Date();
|
12
|
+
this.description = '';
|
13
|
+
this.id = '';
|
14
|
+
this.index = 0;
|
15
|
+
this.quantity = 0;
|
16
|
+
this.recurrent = false;
|
17
|
+
this.totalPrice = 0;
|
18
|
+
this.type = enum_1.EPayuioFeatureType.DESCRIPTION;
|
19
|
+
this.unitPrice = 0;
|
20
|
+
this.updatedAt = new Date();
|
21
|
+
this.voucherKey = null;
|
22
|
+
if (data) {
|
23
|
+
for (var key in data) {
|
24
|
+
if (data.hasOwnProperty(key) && key in this) {
|
25
|
+
this[key] = data[key];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
return PayioFeatureEntity;
|
31
|
+
}());
|
32
|
+
exports.PayioFeatureEntity = PayioFeatureEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { PayioFeatureEntity } from './feature.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioFeatureEntity = void 0;
|
4
|
+
var feature_entity_1 = require("./feature.entity");
|
5
|
+
Object.defineProperty(exports, "PayioFeatureEntity", { enumerable: true, get: function () { return feature_entity_1.PayioFeatureEntity; } });
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayuioFeatureType = void 0;
|
4
|
+
var EPayuioFeatureType;
|
5
|
+
(function (EPayuioFeatureType) {
|
6
|
+
EPayuioFeatureType["FEATURE"] = "FEATURE";
|
7
|
+
EPayuioFeatureType["DESCRIPTION"] = "DESCRIPTION";
|
8
|
+
EPayuioFeatureType["VOUCHER"] = "VOUCHER";
|
9
|
+
EPayuioFeatureType["DISCOUNT"] = "DISCOUNT";
|
10
|
+
EPayuioFeatureType["ITEM"] = "ITEM";
|
11
|
+
EPayuioFeatureType["SEAT"] = "SEAT";
|
12
|
+
})(EPayuioFeatureType || (exports.EPayuioFeatureType = EPayuioFeatureType = {}));
|
@@ -0,0 +1 @@
|
|
1
|
+
export { EPayuioFeatureType } from './feature-type.enum';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayuioFeatureType = void 0;
|
4
|
+
var feature_type_enum_1 = require("./feature-type.enum");
|
5
|
+
Object.defineProperty(exports, "EPayuioFeatureType", { enumerable: true, get: function () { return feature_type_enum_1.EPayuioFeatureType; } });
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./enum"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { EPayuioFeatureType } from '../enum';
|
2
|
+
export interface IPayioFeature {
|
3
|
+
appId: string | null;
|
4
|
+
createdAt: Date;
|
5
|
+
description: string;
|
6
|
+
id: string;
|
7
|
+
index: number;
|
8
|
+
quantity: number;
|
9
|
+
recurrent: boolean;
|
10
|
+
totalPrice: number;
|
11
|
+
type: EPayuioFeatureType;
|
12
|
+
unitPrice: number;
|
13
|
+
updatedAt: Date;
|
14
|
+
voucherKey: string | null;
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IPayioFeature } from './i-feature';
|
package/dist/payio/index.d.ts
CHANGED
package/dist/payio/index.js
CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./app"), exports);
|
18
18
|
__exportStar(require("./company"), exports);
|
19
19
|
__exportStar(require("./device"), exports);
|
20
|
+
__exportStar(require("./features"), exports);
|
20
21
|
__exportStar(require("./payload"), exports);
|
21
22
|
__exportStar(require("./permissions"), exports);
|
22
23
|
__exportStar(require("./subscriptions"), exports);
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export { PayioSubscriptionActiveDeviceEntity } from './subscription-active-device.entity';
|
2
|
-
export { PayioSubscriptionItemEntity } from './subscription-item.entity';
|
3
2
|
export { PayioSubscriptionLogEntity } from './subscription-log.entity';
|
4
3
|
export { PayioSubscriptionSeatEntity } from './subscription-seat.entity';
|
5
4
|
export { PayioSubscriptionEntity } from './subscription.entity';
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayioSubscriptionEntity = exports.PayioSubscriptionSeatEntity = exports.PayioSubscriptionLogEntity = exports.
|
3
|
+
exports.PayioSubscriptionEntity = exports.PayioSubscriptionSeatEntity = exports.PayioSubscriptionLogEntity = exports.PayioSubscriptionActiveDeviceEntity = void 0;
|
4
4
|
var subscription_active_device_entity_1 = require("./subscription-active-device.entity");
|
5
5
|
Object.defineProperty(exports, "PayioSubscriptionActiveDeviceEntity", { enumerable: true, get: function () { return subscription_active_device_entity_1.PayioSubscriptionActiveDeviceEntity; } });
|
6
|
-
var subscription_item_entity_1 = require("./subscription-item.entity");
|
7
|
-
Object.defineProperty(exports, "PayioSubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.PayioSubscriptionItemEntity; } });
|
8
6
|
var subscription_log_entity_1 = require("./subscription-log.entity");
|
9
7
|
Object.defineProperty(exports, "PayioSubscriptionLogEntity", { enumerable: true, get: function () { return subscription_log_entity_1.PayioSubscriptionLogEntity; } });
|
10
8
|
var subscription_seat_entity_1 = require("./subscription-seat.entity");
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { CustomVariableEntity, EIntervalType, ESubsStatus, PaymentMethodEntity } from '../../../general';
|
2
|
+
import { PayioFeatureEntity } from '../../features';
|
2
3
|
import { IPayioSubscription } from '../interfaces/i-subscription';
|
3
4
|
import { PayioSubscriptionActiveDeviceEntity } from './subscription-active-device.entity';
|
4
|
-
import { PayioSubscriptionItemEntity } from './subscription-item.entity';
|
5
5
|
import { PayioSubscriptionLogEntity } from './subscription-log.entity';
|
6
6
|
import { PayioSubscriptionSeatEntity } from './subscription-seat.entity';
|
7
7
|
export declare class PayioSubscriptionEntity implements IPayioSubscription {
|
8
8
|
activeDevices: PayioSubscriptionActiveDeviceEntity[];
|
9
9
|
amount: number;
|
10
|
-
appIds: string[];
|
11
10
|
cancellationReason: string;
|
12
11
|
companyId: string;
|
13
12
|
createdAt: Date;
|
@@ -16,7 +15,7 @@ export declare class PayioSubscriptionEntity implements IPayioSubscription {
|
|
16
15
|
id: string;
|
17
16
|
interval: number;
|
18
17
|
intervalType: EIntervalType;
|
19
|
-
items:
|
18
|
+
items: PayioFeatureEntity[];
|
20
19
|
logs: PayioSubscriptionLogEntity[];
|
21
20
|
notes: string;
|
22
21
|
payment: PaymentMethodEntity;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { EIntervalType, ESubsStatus, ICustomVariable, IPaymentMethod } from '../../../general';
|
2
|
+
import { IPayioFeature } from '../../features';
|
2
3
|
import { IPayioSubscriptionActiveDevice } from './i-subscription-active-device';
|
3
|
-
import { IPayioSubscriptionItem } from './i-subscription-item';
|
4
4
|
import { IPayioSubscriptionLog } from './i-subscription-log';
|
5
|
-
import { IPayioSubscriptionSeat } from './i-subscription-seat';
|
6
5
|
export interface IPayioSubscription {
|
7
6
|
activeDevices: IPayioSubscriptionActiveDevice[];
|
8
7
|
amount: number;
|
9
|
-
appIds: string[];
|
10
8
|
cancellationReason: string;
|
11
9
|
companyId: string;
|
12
10
|
createdAt: Date;
|
@@ -15,7 +13,7 @@ export interface IPayioSubscription {
|
|
15
13
|
id: string;
|
16
14
|
interval: number;
|
17
15
|
intervalType: EIntervalType;
|
18
|
-
items:
|
16
|
+
items: IPayioFeature[];
|
19
17
|
logs: IPayioSubscriptionLog[];
|
20
18
|
notes: string;
|
21
19
|
payment: IPaymentMethod;
|
@@ -23,7 +21,6 @@ export interface IPayioSubscription {
|
|
23
21
|
planName: string;
|
24
22
|
renewPaymentDate: Date;
|
25
23
|
renovatedAt: Date;
|
26
|
-
seats: IPayioSubscriptionSeat[];
|
27
24
|
startsAt: Date;
|
28
25
|
status: ESubsStatus;
|
29
26
|
suspendedTimes: number;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export { IPayioSubscription } from './i-subscription';
|
2
2
|
export { IPayioSubscriptionActiveDevice } from './i-subscription-active-device';
|
3
|
-
export { IPayioSubscriptionItem } from './i-subscription-item';
|
4
3
|
export { IPayioSubscriptionLog } from './i-subscription-log';
|
5
4
|
export { IPayioSubscriptionSeat } from './i-subscription-seat';
|
@@ -1,7 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PlanEntity =
|
4
|
-
var feature_entity_1 = require("./feature.entity");
|
5
|
-
Object.defineProperty(exports, "PlanFeatureEntity", { enumerable: true, get: function () { return feature_entity_1.PlanFeatureEntity; } });
|
3
|
+
exports.PlanEntity = void 0;
|
6
4
|
var plan_entity_1 = require("./plan.entity");
|
7
5
|
Object.defineProperty(exports, "PlanEntity", { enumerable: true, get: function () { return plan_entity_1.PlanEntity; } });
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { EIntervalType } from '../../general/enums';
|
2
|
+
import { PayioFeatureEntity } from '../../payio';
|
2
3
|
import { EPlanIdentifier } from '../enums/plans-identifier.enum';
|
3
4
|
import { IPlan } from '../interfaces';
|
4
|
-
import { PlanFeatureEntity } from './feature.entity';
|
5
5
|
export declare class PlanEntity implements IPlan {
|
6
6
|
createdAt: Date;
|
7
|
-
features:
|
7
|
+
features: PayioFeatureEntity[];
|
8
8
|
id: string;
|
9
9
|
identifier: EPlanIdentifier;
|
10
10
|
index: number;
|
package/dist/plan/enums/index.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EPlanIdentifier =
|
4
|
-
var plans_feature_type_enum_1 = require("./plans-feature-type.enum");
|
5
|
-
Object.defineProperty(exports, "EPlanFeatureType", { enumerable: true, get: function () { return plans_feature_type_enum_1.EPlanFeatureType; } });
|
3
|
+
exports.EPlanIdentifier = void 0;
|
6
4
|
var plans_identifier_enum_1 = require("./plans-identifier.enum");
|
7
5
|
Object.defineProperty(exports, "EPlanIdentifier", { enumerable: true, get: function () { return plans_identifier_enum_1.EPlanIdentifier; } });
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { EIntervalType } from '../../general/enums';
|
2
|
+
import { IPayioFeature } from '../../payio';
|
2
3
|
import { EPlanIdentifier } from '../enums';
|
3
|
-
import { IPlanFeature } from './i-feature';
|
4
4
|
export interface IPlan {
|
5
5
|
createdAt: Date;
|
6
|
-
features:
|
6
|
+
features: IPayioFeature[];
|
7
7
|
id: string;
|
8
8
|
identifier: EPlanIdentifier;
|
9
9
|
index: number;
|
package/package.json
CHANGED
@@ -1,21 +0,0 @@
|
|
1
|
-
export class PayioSubscriptionItemEntity {
|
2
|
-
// #region Properties (6)
|
3
|
-
description = '';
|
4
|
-
quantity = 1;
|
5
|
-
recurrent = true;
|
6
|
-
totalPrice = 0;
|
7
|
-
unitPrice = 0;
|
8
|
-
voucherKey = null;
|
9
|
-
// #endregion Properties (6)
|
10
|
-
// #region Constructors (1)
|
11
|
-
constructor(data) {
|
12
|
-
if (data) {
|
13
|
-
for (let key in data) {
|
14
|
-
if (data.hasOwnProperty(key) && key in this) {
|
15
|
-
this[key] = data[key];
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLWl0ZW0uZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL3N1YnNjcmlwdGlvbnMvZW50aXRpZXMvc3Vic2NyaXB0aW9uLWl0ZW0uZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0s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U6IG51bWJlciA9IDA7XHJcbiAgcHVibGljIHZvdWNoZXJLZXk6IHN0cmluZyB8IG51bGwgPSBudWxsO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDYpXHJcblxyXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG5cclxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxQYXlpb1N1YnNjcmlwdGlvbkl0ZW1FbnRpdHk+KSB7XHJcbiAgICBpZiAoZGF0YSkge1xyXG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xyXG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcclxuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG59XHJcbiJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24taXRlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9wYXlpby9zdWJzY3JpcHRpb25zL2ludGVyZmFjZXMvaS1zdWJzY3JpcHRpb24taXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUGF5aW9TdWJzY3JpcHRpb25JdGVtIHtcclxuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDUpXHJcblxyXG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XHJcbiAgcXVhbnRpdHk6IG51bWJlcjtcclxuICByZWN1cnJlbnQ6IGJvb2xlYW47XHJcbiAgdm91Y2hlcktleTogc3RyaW5nIHwgbnVsbDtcclxuICB0b3RhbFByaWNlOiBudW1iZXI7XHJcbiAgdW5pdFByaWNlOiBudW1iZXI7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNSlcclxufVxyXG4iXX0=
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { EPlanFeatureType } from "../enums";
|
2
|
-
export class PlanFeatureEntity {
|
3
|
-
// #region Properties (10)
|
4
|
-
appId = "";
|
5
|
-
createdAt = new Date();
|
6
|
-
featureType = EPlanFeatureType.FEATURE;
|
7
|
-
id = "";
|
8
|
-
index = 0;
|
9
|
-
name = "";
|
10
|
-
planId = "";
|
11
|
-
price = 0;
|
12
|
-
quantity = 0;
|
13
|
-
updatedAt = new Date();
|
14
|
-
// #endregion Properties (10)
|
15
|
-
// #region Constructors (1)
|
16
|
-
constructor(data) {
|
17
|
-
if (data) {
|
18
|
-
for (let key in data) {
|
19
|
-
if (data.hasOwnProperty(key) && key in this) {
|
20
|
-
this[key] = data[key];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGxhbi9lbnRpdGllcy9mZWF0dXJlLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFHNUMsTUFBTSxPQUFPLGlCQUFpQjtJQUM1QiwwQkFBMEI7SUFFbkIsS0FBSyxHQUFXLEVBQUUsQ0FBQztJQUNuQixTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixXQU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JlVHlwZTogRVBsYW5GZWF0dXJlVHlwZSA9IEVQbGFuRmVhdHVyZVR5cGUuRkVBVFVSRTtcclxuICBwdWJsaWMgaWQ6IHN0cmluZyA9IFwiXCI7XHJcbiAgcHVibGljIGluZGV4OiBudW1iZXIgPSAwO1xyXG4gIHB1YmxpYyBuYW1lOiBzdHJpbmcgPSBcIlwiO1xyXG4gIHB1YmxpYyBwbGFuSWQ6IHN0cmluZyA9IFwiXCI7XHJcbiAgcHVibGljIHByaWNlOiBudW1iZXIgPSAwO1xyXG4gIHB1YmxpYyBxdWFudGl0eTogbnVtYmVyID0gMDtcclxuICBwdWJsaWMgdXBkYXRlZEF0OiBEYXRlID0gbmV3IERhdGUoKTtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxMClcclxuXHJcbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXHJcblxyXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPFBsYW5GZWF0dXJlRW50aXR5Pikge1xyXG4gICAgaWYgKGRhdGEpIHtcclxuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAvLyAjZW5kcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcclxufVxyXG4iXX0=
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export var EPlanFeatureType;
|
2
|
-
(function (EPlanFeatureType) {
|
3
|
-
EPlanFeatureType["FEATURE"] = "FEATURE";
|
4
|
-
EPlanFeatureType["DESCRIPTION"] = "DESCRIPTION";
|
5
|
-
})(EPlanFeatureType || (EPlanFeatureType = {}));
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhbnMtZmVhdHVyZS10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGxhbi9lbnVtcy9wbGFucy1mZWF0dXJlLXR5cGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxnQkFHWDtBQUhELFdBQVksZ0JBQWdCO0lBQ3hCLHVDQUFtQixDQUFBO0lBQ25CLCtDQUEyQixDQUFBO0FBQy9CLENBQUMsRUFIVyxnQkFBZ0IsS0FBaEIsZ0JBQWdCLFFBRzNCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRVBsYW5GZWF0dXJlVHlwZXtcclxuICAgIEZFQVRVUkUgPSAnRkVBVFVSRScsXHJcbiAgICBERVNDUklQVElPTiA9ICdERVNDUklQVElPTicsXHJcbn1cclxuIl19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1mZWF0dXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3BsYW4vaW50ZXJmYWNlcy9pLWZlYXR1cmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVQbGFuRmVhdHVyZVR5cGUgfSBmcm9tIFwiLi4vZW51bXNcIjtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSVBsYW5GZWF0dXJlIHtcclxuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDEwKVxyXG5cclxuICBhcHBJZDogc3RyaW5nO1xyXG4gIGNyZWF0ZWRBdDogRGF0ZTtcclxuICBmZWF0dXJlVHlwZTogRVBsYW5GZWF0dXJlVHlwZTtcclxuICBpZDogc3RyaW5nO1xyXG4gIGluZGV4OiBudW1iZXI7XHJcbiAgbmFtZTogc3RyaW5nO1xyXG4gIHBsYW5JZDogc3RyaW5nO1xyXG4gIHByaWNlOiBudW1iZXI7XHJcbiAgcXVhbnRpdHk6IG51bWJlcjtcclxuICB1cGRhdGVkQXQ6IERhdGU7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTApXHJcbn1cclxuIl19
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { IPayioSubscriptionItem } from '../interfaces';
|
2
|
-
export declare class PayioSubscriptionItemEntity implements IPayioSubscriptionItem {
|
3
|
-
description: string;
|
4
|
-
quantity: number;
|
5
|
-
recurrent: boolean;
|
6
|
-
totalPrice: number;
|
7
|
-
unitPrice: number;
|
8
|
-
voucherKey: string | null;
|
9
|
-
constructor(data?: Partial<PayioSubscriptionItemEntity>);
|
10
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayioSubscriptionItemEntity = void 0;
|
4
|
-
var PayioSubscriptionItemEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (6)
|
6
|
-
// #region Constructors (1)
|
7
|
-
function PayioSubscriptionItemEntity(data) {
|
8
|
-
// #region Properties (6)
|
9
|
-
this.description = '';
|
10
|
-
this.quantity = 1;
|
11
|
-
this.recurrent = true;
|
12
|
-
this.totalPrice = 0;
|
13
|
-
this.unitPrice = 0;
|
14
|
-
this.voucherKey = null;
|
15
|
-
if (data) {
|
16
|
-
for (var key in data) {
|
17
|
-
if (data.hasOwnProperty(key) && key in this) {
|
18
|
-
this[key] = data[key];
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
return PayioSubscriptionItemEntity;
|
24
|
-
}());
|
25
|
-
exports.PayioSubscriptionItemEntity = PayioSubscriptionItemEntity;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { EPlanFeatureType } from "../enums";
|
2
|
-
import { IPlanFeature } from "../interfaces";
|
3
|
-
export declare class PlanFeatureEntity implements IPlanFeature {
|
4
|
-
appId: string;
|
5
|
-
createdAt: Date;
|
6
|
-
featureType: EPlanFeatureType;
|
7
|
-
id: string;
|
8
|
-
index: number;
|
9
|
-
name: string;
|
10
|
-
planId: string;
|
11
|
-
price: number;
|
12
|
-
quantity: number;
|
13
|
-
updatedAt: Date;
|
14
|
-
constructor(data?: Partial<PlanFeatureEntity>);
|
15
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PlanFeatureEntity = void 0;
|
4
|
-
var enums_1 = require("../enums");
|
5
|
-
var PlanFeatureEntity = /** @class */ (function () {
|
6
|
-
// #endregion Properties (10)
|
7
|
-
// #region Constructors (1)
|
8
|
-
function PlanFeatureEntity(data) {
|
9
|
-
// #region Properties (10)
|
10
|
-
this.appId = "";
|
11
|
-
this.createdAt = new Date();
|
12
|
-
this.featureType = enums_1.EPlanFeatureType.FEATURE;
|
13
|
-
this.id = "";
|
14
|
-
this.index = 0;
|
15
|
-
this.name = "";
|
16
|
-
this.planId = "";
|
17
|
-
this.price = 0;
|
18
|
-
this.quantity = 0;
|
19
|
-
this.updatedAt = new Date();
|
20
|
-
if (data) {
|
21
|
-
for (var key in data) {
|
22
|
-
if (data.hasOwnProperty(key) && key in this) {
|
23
|
-
this[key] = data[key];
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
return PlanFeatureEntity;
|
29
|
-
}());
|
30
|
-
exports.PlanFeatureEntity = PlanFeatureEntity;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EPlanFeatureType = void 0;
|
4
|
-
var EPlanFeatureType;
|
5
|
-
(function (EPlanFeatureType) {
|
6
|
-
EPlanFeatureType["FEATURE"] = "FEATURE";
|
7
|
-
EPlanFeatureType["DESCRIPTION"] = "DESCRIPTION";
|
8
|
-
})(EPlanFeatureType || (exports.EPlanFeatureType = EPlanFeatureType = {}));
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { EPlanFeatureType } from "../enums";
|
2
|
-
export interface IPlanFeature {
|
3
|
-
appId: string;
|
4
|
-
createdAt: Date;
|
5
|
-
featureType: EPlanFeatureType;
|
6
|
-
id: string;
|
7
|
-
index: number;
|
8
|
-
name: string;
|
9
|
-
planId: string;
|
10
|
-
price: number;
|
11
|
-
quantity: number;
|
12
|
-
updatedAt: Date;
|
13
|
-
}
|
File without changes
|
/package/dist/payio/{subscriptions/interfaces/i-subscription-item.js → features/interfaces/index.js}
RENAMED
File without changes
|