UNPKG

cecon-interfaces

Version:
45 lines (44 loc) 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionEntity = void 0; var general_1 = require("../../general"); var natipay_1 = require("../../natipay"); var enums_1 = require("../enums"); var payer_entity_1 = require("./payer.entity"); var TransactionEntity = /** @class */ (function () { function TransactionEntity(data) { this.balance = null; this.createdAt = new Date(); this.data = ''; this.description = ''; this.externalOrderReference = ''; this.feeDetails = []; this.feePayer = enums_1.EFeePayer.PLATFORM; this.from = general_1.EFrom.NATIPAY; this.id = ''; this.receipt = null; this.moneyReleaseDate = null; this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING; this.natiInfo = new general_1.InfoEntity(); this.operationType = enums_1.EOperationType.NATIPAY; this.payer = new payer_entity_1.TransactionPayerEntity(); this.posId = ''; this.provider = enums_1.ETransactionProvider.DEFAULT; this.referenceId = ''; this.resumeVersion = ''; this.saleChannel = natipay_1.ENatipaySaleChannel.NATI_PDV; this.stamped = null; this.total = null; 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;