cecon-interfaces
Version:
Interfaces de Projetos Cecon
33 lines (32 loc) • 1.01 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayioJwtPayloadEntity = void 0;
/** @deprecated use PayioJwtPayloadEntity from @arcnet-payio-interfaces instead */
var PayioJwtPayloadEntity = /** @class */ (function () {
function PayioJwtPayloadEntity(data) {
this.app = null;
this.aud = '';
/** @deprecated use machine instead */
this.device = null;
this.distributorId = null;
this.exp = 0;
this.iat = 0;
this.info = null;
this.iss = '';
this.jti = '';
this.machine = null;
this.permissions = [];
this.sub = '';
this.type = null;
this.user = null;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PayioJwtPayloadEntity;
}());
exports.PayioJwtPayloadEntity = PayioJwtPayloadEntity;