synapsepay
Advanced tools
Comparing version 0.11.1 to 0.11.2
@@ -17,2 +17,3 @@ var Clients = require('./lib/Clients.js'), | ||
Crypto = require('./lib/Crypto.js'); | ||
PublicKey = require('./lib/PublicKey.js'); | ||
@@ -35,3 +36,4 @@ module.exports = { | ||
LocateATMs: LocateATMs, | ||
Crypto: Crypto | ||
Crypto: Crypto, | ||
PublicKey: PublicKey | ||
}; |
{ | ||
"name": "synapsepay", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"description": "Node.js Library for SynapsePay API v3.x Rest", | ||
@@ -5,0 +5,0 @@ "repository": { |
117
test.js
@@ -5,2 +5,3 @@ var Clients = require('./lib/Clients.js'); | ||
var Transactions = require('./lib/Transactions.js'); | ||
var PublicKey = require('./lib/PublicKey.js'); | ||
@@ -18,59 +19,75 @@ const Helpers = { | ||
const testFunc = () => { | ||
Users.get( | ||
PublicKey.get( | ||
Helpers.client, | ||
{ | ||
_id: '5c80142131d1770068fa9b5d', | ||
fingerprint: 'd1882ccdef25273d58f3fc9adad7f4a3', | ||
ip_address: '127.0.0.1' | ||
}, | ||
function(err, userObj) { | ||
{}, | ||
function(err, pubKeyObj) { | ||
if (err) { | ||
console.log('ERR ', err); | ||
return; | ||
} else { | ||
user = userObj; | ||
Nodes.get( | ||
userObj, | ||
{ | ||
_id: '5c8014394b7ba903595c2a3e' | ||
}, | ||
function(err, nodeObj) { | ||
if (err) { | ||
console.log('ERR ', err); | ||
} else { | ||
node = nodeObj; | ||
Transactions.get( | ||
nodeObj, | ||
{ | ||
_id: '5c801dbb26560a0067b7a104' | ||
}, | ||
function(err, trxnObj) { | ||
if (err) { | ||
console.log('ERR ', err); | ||
} else { | ||
trxnObj.dispute( | ||
{ | ||
dispute_reason: 'CHARGE_BACK' | ||
}, | ||
function(err, json) { | ||
if (err) { | ||
console.log('ERR ', err); | ||
return; | ||
} else { | ||
console.log('SUCCESS ', json); | ||
return; | ||
} | ||
} | ||
) | ||
} | ||
} | ||
) | ||
} | ||
} | ||
) | ||
console.log('PK ', pubKeyObj); | ||
return; | ||
} | ||
} | ||
); | ||
return; | ||
}; | ||
) | ||
} | ||
// const testFunc = () => { | ||
// Users.get( | ||
// Helpers.client, | ||
// { | ||
// _id: '5c80142131d1770068fa9b5d', | ||
// fingerprint: 'd1882ccdef25273d58f3fc9adad7f4a3', | ||
// ip_address: '127.0.0.1' | ||
// }, | ||
// function(err, userObj) { | ||
// if (err) { | ||
// console.log('ERR ', err); | ||
// } else { | ||
// user = userObj; | ||
// Nodes.get( | ||
// userObj, | ||
// { | ||
// _id: '5c8014394b7ba903595c2a3e' | ||
// }, | ||
// function(err, nodeObj) { | ||
// if (err) { | ||
// console.log('ERR ', err); | ||
// } else { | ||
// node = nodeObj; | ||
// Transactions.get( | ||
// nodeObj, | ||
// { | ||
// _id: '5c801dbb26560a0067b7a104' | ||
// }, | ||
// function(err, trxnObj) { | ||
// if (err) { | ||
// console.log('ERR ', err); | ||
// } else { | ||
// trxnObj.dispute( | ||
// { | ||
// dispute_reason: 'CHARGE_BACK' | ||
// }, | ||
// function(err, json) { | ||
// if (err) { | ||
// console.log('ERR ', err); | ||
// return; | ||
// } else { | ||
// console.log('SUCCESS ', json); | ||
// return; | ||
// } | ||
// } | ||
// ) | ||
// } | ||
// } | ||
// ) | ||
// } | ||
// } | ||
// ) | ||
// } | ||
// } | ||
// ); | ||
// return; | ||
// }; | ||
testFunc(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50469
1357