UNPKG

cannoli-interfaces

Version:
26 lines (25 loc) 754 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PixKeyEntity = void 0; var enums_1 = require("../enums"); var PixKeyEntity = /** @class */ (function () { function PixKeyEntity(data) { this.active = true; this.createdAt = new Date(); this.description = ''; this.id = ''; this.isDefault = false; this.key = ''; this.type = enums_1.EPixKey.CPF; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PixKeyEntity; }()); exports.PixKeyEntity = PixKeyEntity;