UNPKG

cecon-interfaces

Version:
34 lines (33 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlanEntity = void 0; var enums_1 = require("../../general/enums"); var plans_identifier_enum_1 = require("../enums/plans-identifier.enum"); var PlanEntity = /** @class */ (function () { // #endregion Properties (12) // #region Constructors (1) function PlanEntity(data) { // #region Properties (12) this.createdAt = new Date(); this.features = []; this.id = ''; this.identifier = plans_identifier_enum_1.EPlanIdentifier.NATIGO; this.index = 0; this.interval = 12; this.intervalType = enums_1.EIntervalType.MONTHS; this.name = ''; this.price = 0; this.tags = []; this.trialDays = 0; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PlanEntity; }()); exports.PlanEntity = PlanEntity;