#0
nonstandard
0.00004000 BSV
Q!jì³~ðX.XÏ÷ÚùÐÓ2äç£zoâ\Úµ!BÎæx¾S3äç)ßÛ-héH®ª0RSR®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) {\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.paymentInstallmentsAmount = installments.amount;\n this.paymentInstallmentsPercentage = installments.percent;\n this._owners = [this.developerKey, this.agentKey]\n }\n\n approveBooking(){\n this.status = 'in-progress'\n this._owners = [this.agentKey];\n }\n cancelBooking(){\n this.status = 'cancelled'\n this._owners = []\n }\n negotiateAccepted(){\n if(this.status !== 'booked'){\n return false;\n }\n this.status = 'negotiate-approved';\n this._owners = [ this.agentKey];\n }\n negotiateRejected(){\n this.status = 'negotiate-rejected';\n this._owners = [ this.agentKey];\n }\n rejectBooking(){\n this.status = 'booking-rejected'\n this._owners = [ this.agentKey];\n }\n payDeposit(txid){\n this.status = 'pending-deposit-confirmation';\n this.depositTxid = txid;\n this._owners = [this.developerKey, this.agentKey]\n }\n confirmDeposit(){\n this.status = 'sold'\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},60,79150,"booked",3.6,1614076206430,"029742ce92e678be533397e4e7298694df86db2d68e94883981e11ae01aa305253","026a7f1cecb37e14f0582e9d58cf9692f7daf9d0d332e4e7a3907a6fe21f5cdab5","106","Ocean Tower","be4801499bedfa274c355ea1d4a401b27b75a48afa5783f6ef4acc20d22fdf97:0"]}u
https://whatsonchain.com/tx/20d4067c0221a3889555d813a5f2fb2937a87cc37f149f4ceb39ef8b8b2cf01a