Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

synapsepay

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synapsepay - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

23

lib/Node.js

@@ -10,3 +10,5 @@ 'use strict';

Node.prototype.shipDebitCard = function(options, callback) {
Node.prototype.shipDebitCard = function(payload, callback) {
const url = `${this.json._links.self.href}?ship=yes`;
const config = {

@@ -19,22 +21,3 @@ client: this.user.client,

let url = `${this.json._links.self.href}`;
const payload = {};
if (options) {
if (options.ship) {
url += `?ship=${options.ship}`;
}
if (options.fee_node_id) {
payload.fee_node_id = options.fee_node_id;
}
if (options.expedite) {
payload.expedite = options.expedite;
}
if (options.card_style_id) {
payload.card_style_id = options.card_style_id;
}
}
APIClient.patch(url, config, payload, (err, json) => {

@@ -41,0 +24,0 @@ if (err) {

13

lib/Subnet.js

@@ -10,2 +10,15 @@ 'use strict';

Subnet.prototype.shipCard = function(payload, callback) {
const url = `${this.json._links.self.href}/ship`;
const config = this.generateConfig();
APIClient.patch(url, config, payload, (err, json) => {
if (err) {
callback(err);
} else {
callback(null, json);
}
});
}
Subnet.prototype.updateJSON = function(err, json, callback) {

@@ -12,0 +25,0 @@ if (err) {

{
"name": "synapsepay",
"version": "0.10.1",
"version": "0.10.2",
"description": "Node.js Library for SynapsePay API v3.x Rest",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc