UNPKG

cannoli-interfaces

Version:
55 lines (54 loc) 2.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionEntity = void 0; var general_1 = require("../../general"); var enums_1 = require("../enums"); var TransactionEntity = /** @class */ (function () { // #endregion Properties (33) // #region Constructors (1) function TransactionEntity(data) { // #region Properties (33) this.balance = null; this.card = {}; this.createdAt = new Date(); this.dateApproved = null; this.dateCreated = new Date(); this.dateLastUpdated = new Date(); this.dateOfExpiration = null; this.description = ''; this.desenfilaInfo = new general_1.DesenfilaInfoEntity(); this.externalOrderReference = ''; this.feeDetails = []; this.from = general_1.EFrom.NATIPAY; this.id = ''; this.installments = 0; this.liveMode = true; this.cannoliInfo = new general_1.CannoliInfoEntity(); this.moneyReleaseDate = null; this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING; this.natiInfo = new general_1.InfoEntity(); this.operationType = enums_1.EOperationType.REGULAR_PAYMENT; this.paymentMethod = null; this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY; this.posId = ''; this.referenceId = ''; this.resumeVersion = ''; this.stamped = null; this.status = enums_1.EMpStatus.PENDING; this.statusDetail = enums_1.EMpStatusDetail.ACCREDITED; this.total = null; this.transactionAmount = 0; this.transactionAmountRefunded = 0; this.transactionStatus = enums_1.ETransactionStatus.PROCESSING; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return TransactionEntity; }()); exports.TransactionEntity = TransactionEntity;