UNPKG

cecon-interfaces

Version:
33 lines (32 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayioCardEntity = void 0; var enums_1 = require("../enums"); var card_config_entity_1 = require("./card-config.entity"); /** @deprecated use CardEntity from @arcnetdev/arcnet-payio-interfaces instead */ var PayioCardEntity = /** @class */ (function () { function PayioCardEntity(data) { this.active = false; this.companyId = ''; this.config = new card_config_entity_1.PayioCardConfigEntity(); this.containerId = null; this.createdAt = new Date(); this.id = ''; this.logs = []; this.mode = enums_1.ECardMode.HYBRID; this.status = enums_1.EPayioCardStatus.BLOCKED; this.tags = []; this.unlockCode = null; this.unlockedAt = null; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PayioCardEntity; }()); exports.PayioCardEntity = PayioCardEntity;