UNPKG

cecon-interfaces

Version:
42 lines (41 loc) 1.44 kB
"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.cancelledAt = null; this.cancelledReason = null; this.completedAt = null; this.createdAt = new Date(); this.data = null; this.failedAt = null; this.failedReason = null; this.id = ''; this.isRecurring = false; this.liveMode = false; this.name = ''; this.natiInfo = new general_1.InfoEntity(); this.pixKey = null; this.pixValidation = enums_1.EPixValidation.LOCKED; this.recurrenceDay = null; this.recurrenceEndAt = null; this.status = enums_1.EWithdrawStatus.PROCESSING; this.transactionId = null; this.transferDocumentUrl = null; this.type = enums_1.EWithdrawType.MANUAL; this.updatedAt = new Date(); this.withdrawAt = 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;