UNPKG

mobyo-interfaces

Version:
30 lines (29 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VoucherCustomerEntity = void 0; var general_1 = require("../../general"); var order_1 = require("../../order"); var VoucherCustomerEntity = /** @class */ (function () { function VoucherCustomerEntity(data) { this.customerId = ''; this.cords = new general_1.CoordsEntity(); this.address = new general_1.AddressEntity(); this.phoneNumber = ''; this.meta = ''; // JSON meta this.id = ''; this.itensCount = 0; this.total = new order_1.OrderTotalEntity(); this.averageAmount = 0; // total.subTotal / itensCount this.createdAt = new Date(); this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return VoucherCustomerEntity; }()); exports.VoucherCustomerEntity = VoucherCustomerEntity;