cecon-interfaces
Version:
Interfaces de Projetos Cecon
54 lines (53 loc) • 1.86 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerEntity = void 0;
var general_1 = require("../../general");
var enums_1 = require("../enums");
var CustomerEntity = /** @class */ (function () {
// #endregion Properties (32)
// #region Constructors (1)
function CustomerEntity(data) {
// #region Properties (32)
this.address = new general_1.AddressEntity();
this.addresses = [];
this.blockedReason = null;
this.createdAt = new Date();
this.deliveryArea = [];
this.deliveryAreaFixed = undefined;
this.doc = '';
this.docType = general_1.EDocType.CPF;
this.email = '';
this.fullName = '';
this.id = '';
this.imageUrl = null;
this.internationalCode = '55';
this.interval = enums_1.ECustomerInterval.MONTHLY;
this.limit = 0;
this.name = '';
this.password = '';
this.paymentProvider = new general_1.PaymentProviderEntity();
this.phoneNumber = '';
this.phoneNumberVerified = false;
this.phoneNumberVerifiedApp = null;
this.phoneNumberVerifiedAt = null;
this.phoneNumbersNotification = [];
this.refreshToken = null;
this.sandbox = false;
this.status = enums_1.ECustomerStatus.WAITING_CREDIT_ANALYSIS;
this.subscription = null;
this.tags = [];
this.token = null;
this.twoStepsVerification = false;
this.type = enums_1.ECustomerType.SINGLE;
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return CustomerEntity;
}());
exports.CustomerEntity = CustomerEntity;