cecon-interfaces
Version:
Interfaces de Projetos Cecon
37 lines (36 loc) • 1.15 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayioAppEntity = void 0;
var enums_1 = require("../enums");
var PayioAppEntity = /** @class */ (function () {
function PayioAppEntity(data) {
this.accessToken = null;
this.activationMode = enums_1.EAppActivationMode.DIRECT_1_TO_1;
this.active = false;
this.clientKey = null;
this.clientSecret = null;
this.createdAt = new Date();
this.description = '';
this.downloadUrl = '';
this.expiresAt = null;
this.expiresIn = null;
this.id = '';
this.name = '';
this.price = 0;
this.refreshToken = null;
this.secret = '';
this.slug = enums_1.EPayioAppSlug.none;
this.tags = [];
this.updatedAt = new Date();
this.version = '0.0.1';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PayioAppEntity;
}());
exports.PayioAppEntity = PayioAppEntity;