#0
nonstandard
0.00004000 BSV
Q!þd¼Ð[i©ÒA9q¤Öw;A¶&:Rhlf.aÛôQ®M%{"summary":1,"details":2,"correspondentBank":3,"beneficiaryBank":4,"__cls":"class InstitutionSC {\n constructor(\n admins = [],\n name = '',\n address = '',\n country = '',\n customerType = '',\n usPayIdType = 'SWIFT',\n defaultFund = '',\n currency = 'USD',\n trusteeId = 'None',\n complianceId = 'None',\n correspondentBankName = '',\n correspondentBankSwift = '',\n sortCode = '',\n ABA = '',\n accountName = '',\n accountNumber = '',\n beneficiaryBankSwift = '',\n iban = '',\n intermediarySwift = '',\n paymentReference = '',\n referenceNumber = '',\n isAgent = false\n ) {\n this._owners = admins;\n \n this.summary = {\n name,\n address,\n country,\n contactPersonId: ''\n }\n \n this.details = {\n customerType,\n usPayIdType,\n defaultFund,\n currency,\n trusteeId,\n complianceId\n }\n\n this.correspondentBank = {\n correspondentBankName,\n correspondentBankSwift,\n sortCode,\n ABA\n }\n\n this.beneficiaryBank = {\n accountName,\n accountNumber,\n beneficiaryBankSwift,\n iban,\n intermediarySwift,\n paymentReference,\n referenceNumber\n }\n\n this.admins = admins;\n this.isAgent = isAgent;\n\n this.kycRequirements = [];\n this.dqList = [];\n this.funds = [];\n this.members = [];\n\n this.onboarded = [];\n this.processing = [];\n this.files = [];\n }\n\n addAdmin(publicKey, userId) {\n this._owners = [...new Set(this._owners.concat(publicKey))]\n this.admins = [...new Set(this.admins.concat(userId))]\n this.addMember(userId)\n }\n\n setContactPersonId(userId) {\n this.summary.contactPersonId = userId\n }\n\n removeAdmin(id) {\n const index = this._owners.indexOf(id);\n this._owners.splice(index, 1);\n }\n\n removeMember(id) {\n const index = this.members.indexOf(id);\n this.members.splice(index, 1);\n this.removeAdmin(id);\n }\n\n addMember(id) {\n this.members.push(id);\n }\n\n addFund(id) {\n this.funds.push(id);\n }\n\n removeFund(id) {\n const index = this.funds.indexOf(id);\n this.funds.splice(index, 1);\n if (this.defaultFund === id) {\n this.defaultFund = null;\n }\n }\n\n setDefaultFund(id) {\n this.details.defaultFund = id;\n }\n\n setName(value) {\n this.summary.name = value;\n }\n\n setAddress(value) {\n this.summary.address = value;\n }\n\n setCountry(value) {\n this.summary.country = value;\n }\n\n setCustomerType(value) {\n this.details.customerType = value;\n }\n\n setUsPayIdType(value) {\n this.details.usPayIdType = value;\n }\n\n addKycRequirement(req) {\n this.kycRequirements.push({ requirementName: req, added: new Date().toLocaleDateString() });\n }\n\n addToDqList(fund) {\n this.dqList.push(fund);\n }\n\n addOnboardedFund(fundId) {\n this.onboarded.push(fundId);\n\n const index = this.processing.indexOf(fundId);\n if (index > -1) {\n this.processing.splice(index, 1);\n }\n }\n\n addProcessingFund(fundId) {\n this.processing.push(fundId);\n }\n\n setTrusteeId(trusteeId) {\n this.details.trusteeId = trusteeId\n }\n\n setComplianceId(complianceId) {\n this.details.complianceId = complianceId\n }\n\n edit([\n name, \n address, \n country, \n customerType,\n usPayIdType,\n defaultFund,\n currency,\n trusteeId,\n complianceId,\n correspondentBankName,\n correspondentBankSwift,\n sortCode,\n ABA,\n accountName,\n accountNumber,\n beneficiaryBankSwift,\n iban,\n intermediarySwift,\n paymentReference,\n referenceNumber\n ]) {\n this.summary.name = name;\n this.summary.address = address;\n this.summary.country = country; \n this.details.customerType = customerType;\n this.details.usPayIdType = usPayIdType;\n this.details.defaultFund = defaultFund;\n this.details.currency = currency;\n this.details.trusteeId = trusteeId;\n this.details.complianceId = complianceId;\n this.correspondentBank.correspondentBankName = correspondentBankName;\n this.correspondentBank.correspondentBankSwift = correspondentBankSwift;\n this.correspondentBank.sortCode = sortCode;\n this.correspondentBank.ABA = ABA \n this.beneficiaryBank.accountName = accountName,\n this.beneficiaryBank.accountNumber = accountNumber;\n this.beneficiaryBank.beneficiaryBankSwift = beneficiaryBankSwift;\n this.beneficiaryBank.iban = iban;\n this.beneficiaryBank.intermediarySwift = intermediarySwift;\n this.beneficiaryBank.paymentReference = paymentReference;\n this.beneficiaryBank.referenceNumber = referenceNumber;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["02fe64bcd05b69a9d2413971a491d6779e3b41b6263a5268166c11662e61dbf408"],"Test Institution"]}u
https://whatsonchain.com/tx/93829ae588e2445647e1c9a6fe7ab504e0cc73a6a6f637e2c290f03232e7a422