UNPKG

scheunemann-interfaces

Version:
36 lines (35 loc) 1.15 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.DEFAULT; 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(); this.active = false; this.isRecommended = false; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PlanEntity; }()); exports.PlanEntity = PlanEntity;