UNPKG

mobyo-interfaces

Version:
34 lines (33 loc) 982 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayioProductEntity = void 0; var PayioProductEntity = /** @class */ (function () { function PayioProductEntity(data) { this.active = true; this.brand = ''; this.code = ''; this.companyId = ''; this.containerId = null; this.createdAt = new Date(); this.id = ''; this.name = ''; this.ncm = ''; this.price = 0; this.quantityPackaging = 0; this.sandbox = false; this.tags = []; this.thumbnail = null; this.unit = 'UN'; this.updatedAt = new Date(); this.weight = 0; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PayioProductEntity; }()); exports.PayioProductEntity = PayioProductEntity;