scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
45 lines (44 loc) • 1.98 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubscriptionCompanyEntity = void 0;
var subscription_base_entity_1 = require("../../subscription-base/entities/subscription-base.entity");
var subscription_profile_entity_1 = require("./subscription-profile.entity");
var SubscriptionCompanyEntity = /** @class */ (function (_super) {
__extends(SubscriptionCompanyEntity, _super);
// #endregion Properties (9)
// #region Constructors (1)
function SubscriptionCompanyEntity(data) {
var _this = _super.call(this, data) || this;
// #region Properties (9)
_this.features = [];
_this.partnerId = '';
_this.planId = '';
_this.planName = '';
_this.profile = new subscription_profile_entity_1.SubscriptionCompanyProfileEntity();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in _this) {
_this[key] = data[key];
}
}
}
return _this;
}
return SubscriptionCompanyEntity;
}(subscription_base_entity_1.SubscriptionBaseEntity));
exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;