UNPKG

scheunemann-interfaces

Version:
52 lines (51 loc) 1.89 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 (30) // #region Constructors (1) function TransactionEntity(data) { // #region Properties (30) this.balance = null; this.card = {}; this.containerId = ''; this.createdAt = new Date(); this.dateApproved = null; this.dateCreated = new Date(); this.dateLastUpdated = new Date(); this.dateOfExpiration = null; this.description = ''; this.externalOrderReference = ''; this.feeDetails = []; this.from = general_1.EDesenfilaFrom.NATIPAY; this.id = ''; this.installments = 0; this.liveMode = true; this.merchantId = ''; this.moneyReleaseDate = null; this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING; this.operationType = enums_1.EOperationType.REGULAR_PAYMENT; this.paymentMethod = null; this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY; this.posId = ''; this.referenceId = ''; 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;