mobyo-interfaces
Version:
Interfaces de Projetos Mobyo
51 lines (50 loc) • 2.04 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerMobyoEntity = void 0;
var customer_1 = require("../../../customer");
var customer_privacy_entity_1 = require("./customer-privacy.entity");
var CustomerMobyoEntity = /** @class */ (function (_super) {
__extends(CustomerMobyoEntity, _super);
// #endregion Properties (9)
// #region Constructors (1)
function CustomerMobyoEntity(data) {
var _this = _super.call(this, data) || this;
// #region Properties (9)
_this.active = true;
_this.addresses = [];
_this.companyId = '';
_this.containerId = '';
_this.engines = [];
_this.isTest = false;
_this.ordersCountOnRestaurant = 0;
_this.uid = '';
_this.version = '1.0.2';
_this.birthday = null;
_this.privacySettings = new customer_privacy_entity_1.PrivacySettingEntity();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in _this) {
_this[key] = data[key];
}
}
}
return _this;
}
return CustomerMobyoEntity;
}(customer_1.CustomerEntity));
exports.CustomerMobyoEntity = CustomerMobyoEntity;