synapsepay
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -31,2 +31,12 @@ 'use strict'; | ||
Node.prototype.resendMicro = function(callback) { | ||
const url = this.json._links.self.href + "?resend_micro=YES"; | ||
const self = this; | ||
const config = this.getAPIConfig(); | ||
APIClient.patch(url, config, {}, function(err, json) { | ||
self.json = json; | ||
callback(err, json); | ||
}); | ||
}; | ||
Node.prototype.delete = function(callback) { | ||
@@ -33,0 +43,0 @@ const url = this.json._links.self.href; |
{ | ||
"name": "synapsepay", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Node.js Library for SynapsePay API v3.x Rest", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -334,3 +334,14 @@ | ||
// Resend Microdeposits (for those added via Account/Routing) | ||
node = nodes[0]; | ||
node.resendMicro( | ||
function(err, nodeResponse) { | ||
// error or node object | ||
node = nodeResponse; | ||
} | ||
); | ||
// Delete a Node | ||
@@ -337,0 +348,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
27656
14
601