module.exports = Self => { Self.remoteMethod('confirmTransaction', { description: 'Confirm a web payment', accessType: 'WRITE', accepts: [{ arg: 'id', type: 'number', required: true, description: 'Transaction id' }], returns: { type: 'Object', root: true }, http: { path: `/confirmTransaction`, verb: 'POST' } }); Self.confirmTransaction = async id => { return await Self.rawSql('CALL hedera.tpvTransactionConfirmById(?)', [id]); }; };