balanced-node-new
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "balanced-node-new", | ||
"description": "Offical Balanced Payments API Client for node.js, https://www.balancedpayments.com/docs/api", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Balanced Payments / uh-sem-blee, Co. | typefoo", | ||
@@ -20,3 +20,3 @@ "contributors": [ | ||
"license": "MIT", | ||
"main": "./lib_new/balanced.js", | ||
"main": "./lib/balanced.js", | ||
"engines": { | ||
@@ -23,0 +23,0 @@ "node": ">= 0.8.0" |
@@ -15,3 +15,3 @@ Balanced Node.js library | ||
``` | ||
npm install balanced-official | ||
npm install balanced-node-new | ||
``` | ||
@@ -35,3 +35,3 @@ | ||
```js | ||
var balanced = require('balanced'); | ||
var balanced = require('balanced-node-new'); | ||
@@ -38,0 +38,0 @@ balanced.init("API_SECRET", "MARKETPLACE_URI"); |
@@ -48,18 +48,57 @@ module.exports = { | ||
account_create_hold: { | ||
module: 'account', | ||
method: 'add_hold', | ||
data: { | ||
amount: "${payload['amount'] if payload else request['amount'] or '1100'}" | ||
}, | ||
urlOptions: { | ||
account_id: "${request['account']['id']}" | ||
} | ||
}, | ||
account_create_merchant: { | ||
module: 'account', | ||
method: 'add_bank', | ||
data: { | ||
card_uri: "${request['bank']['uri']}" | ||
} | ||
urlOptions: { | ||
account_id: "${request['account']['id']}" | ||
} | ||
}, | ||
account_underwrite_business: { | ||
module: 'account', | ||
method: 'add_underwriter', | ||
data: { | ||
merchant: {} | ||
}, | ||
urlOptions: { | ||
account_id: "${request['account']['id']}" | ||
} | ||
}, | ||
account_underwrite_person: { | ||
module: 'account', | ||
method: 'add_underwriter', | ||
data: { | ||
merchant: {} | ||
}, | ||
urlOptions: { | ||
account_id: "${request['account']['id']}" | ||
} | ||
}, | ||
bank_account_create: { | ||
module: 'bank', | ||
method: 'create', | ||
data: { | ||
name: "${payload['name'] if payload else request['bank_account']['name']}", | ||
account_number: "${payload['account_number'] if payload else request['bank_account']['account_number']}", | ||
routing_number: "${payload['routing_number'] if payload else request['bank_account']['routing_number']}", | ||
type: "checking" | ||
} | ||
}, | ||
bank_account_delete: { | ||
module: 'bank', | ||
method: 'delete', | ||
urlOptions: { | ||
bank_account_id: "${request['bank']['id']}" | ||
} | ||
}, | ||
@@ -66,0 +105,0 @@ bank_account_find_and_credit: { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
4
3
38324
38
1451