UNPKG

cecon-interfaces

Version:
34 lines (33 loc) 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayioCatalogEntity = void 0; var enums_1 = require("../enums"); var import_status_enum_1 = require("../enums/import-status.enum"); var PayioCatalogEntity = /** @class */ (function () { function PayioCatalogEntity(data) { this.active = true; this.autoImportStatus = import_status_enum_1.EPayioImportStatus.DISABLED; this.categories = []; this.companyId = ''; this.containerId = null; this.context = [enums_1.EPayioCatalogContext.DEFAULT]; this.createdAt = new Date(); this.engine = enums_1.EPayioEngines.NONE; this.externalReference = null; this.id = ''; this.name = ''; this.sandbox = false; this.status = enums_1.EPayioCatalogStatus.AVAILABLE; this.tags = []; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PayioCatalogEntity; }()); exports.PayioCatalogEntity = PayioCatalogEntity;