Q!UîÜ6í;¿Ë¶0ò»pÿ¡Â¶[Yg]!Tf^¤¯S=ÿqBðïv]ªÊïx;2z¬xR®Mò{"__cls":"class Booking {\n constructor(depositPercentage,onContract,onKey,installments,installmentFrequency,unitPrice,status,taxPercentage,startTime,agentKey,developerKey,unitNumber,buildingName,unitId,timestamp) {\n this.depositPercentage = depositPercentage;\n this.paymentFrequency = installmentFrequency;\n this.onContractAmount = onContract.amount;\n this.onContractPercentage = onContract.percent;\n this.onKeyPercentage = onKey;\n this.paymentInstallmentsAmount = installments.amount;\n this.paymentInstallmentsPercentage = installments.percent;\n this.unitPrice = unitPrice;\n this.status = status\n this.agentKey = agentKey;\n this.developerKey = developerKey;\n this.startTime = startTime;\n this.taxPercentage = taxPercentage\n this.unitNumber = unitNumber\n this.buildingName = buildingName,\n this.unitId = unitId;\n this._owners = [developerKey, agentKey]\n }\n\n updateTerms(depositPercentage,onContract,onKey,installments,installmentFrequency, currentTime) {\n this.depositPercentage = depositPercentage;\n this.paymentFrequency = installmentFrequency;\n this.onContractAmount = onContract.amount;\n this.onContractPercentage = onContract.percent;\n this.onKeyPercentage = onKey;\n this.status = 'negotiating';\n this.startTime = currentTime\n this.paymentInstallmentsAmount = installments.amount;\n this.paymentInstallmentsPercentage = installments.percent;\n this._owners = [this.developerKey, this.agentKey]\n }\n\n approveBooking(time){\n this.status = 'in-progress'\n this.startTime = time;\n this._owners = [this.agentKey,this.developerKey];\n }\n cancelBooking(){\n this.status = 'cancelled'\n this._owners = [this.developerKey]\n }\n endBooking(){\n this._owners = []\n }\n negotiateAccepted(time){\n this.startTime = time\n this.status = 'negotiate-approved';\n this._owners = [ this.agentKey,this.developerKey];\n }\n negotiateRejected(time){\n this.status = 'negotiate-rejected';\n this.startTime = time\n this._owners = [ this.agentKey,this.developerKey];\n }\n rejectBooking(time){\n this.status = 'booking-rejected'\n this.startTime = time;\n this._owners = [ this.agentKey,this.developerKey];\n }\n payDeposit(txid,time){\n this.status = 'pending-deposit-confirmation';\n this.depositTxid = txid;\n this.startTime = time\n this._owners = [this.developerKey, this.agentKey]\n }\n confirmDeposit(time){\n this.status = 'sold'\n this.startTime = time;\n this._owners = [this.developerKey, this.agentKey]\n }\n\n}","__index":{"obj":0},"__func":"constructor","__args":["0.5",{"amount":2,"percent":5},4,{"amount":6,"percent":14},120,63320,"booked",3.6,1614298846117,"035466905ea484af53813dff7142f0ef0b76189c905daaca19ef783b327aac1a78","0355ee1fdc360398ed873badbfcbb630f280bb9c1470ff95a1c290b65b5991675d","110","Layan_B","623bf3d88030e3ffcc84f78c155a86034dcfa9cf76fabbd909e05e5841042ccd:0"]}u
https://whatsonchain.com/tx/undefined