#0
nonstandard
0.00004000 BSV
Q!YÍnÖ¨/ Ó"NÜámy
¸ñu!Óvª390®Éþ_ÀP©ee|£:~µÀ×8dR®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];\n }\n cancelBooking(){\n this.status = 'cancelled'\n this._owners = [this.developerKey]\n }\n endBooking(){\n this._owners = []\n }\n negotiateAccepted(time){\n if(this.status !== 'booked'){\n return false;\n }\n this.startTime = time\n this.status = 'negotiate-approved';\n this._owners = [ this.agentKey];\n }\n negotiateRejected(time){\n this.status = 'negotiate-rejected';\n this.startTime = time\n this._owners = [ this.agentKey];\n }\n rejectBooking(time){\n this.status = 'booking-rejected'\n this.startTime = time;\n this._owners = [ this.agentKey];\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,71650,"booked",3.6,1614284696923,"0314d376aa338e391a30aec9fe8a5fc05006a965657c98a33a0e7eb5c0d7386405","0359cd966e9f80d6a898842f09d3224e089ddce16d790d90861a040eb8f1759084","106","Eastway","501fa7aad497fecfbc83780179316378c563845ec9447bb38a43c4fe65fd2cf1:0"]}u
https://whatsonchain.com/tx/ca6b1be7a9726f32294d5542dc1a3236b856b544e92da68d1f1348519d8b45da