cecon-interfaces
Version:
Interfaces de Projetos Cecon
35 lines (34 loc) • 1.22 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WithDrawRequestEntity = void 0;
var general_1 = require("../../general");
var enums_1 = require("../enums");
var WithDrawRequestEntity = /** @class */ (function () {
function WithDrawRequestEntity(data) {
this.amount = 0;
this.approvedAt = null;
this.createdAt = new Date();
this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
this.id = '';
this.liveMode = false;
this.mobyoInfo = new general_1.MobyoInfoEntity();
this.name = '';
this.natiInfo = new general_1.InfoEntity();
this.pixKey = null;
this.refusalReason = null;
this.refusedAt = null;
this.status = enums_1.EWithdrawRequestStatus.PENDING;
this.transactionId = null;
this.transferDocumentUrl = null;
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return WithDrawRequestEntity;
}());
exports.WithDrawRequestEntity = WithDrawRequestEntity;