New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

balanced-node-new

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balanced-node-new - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

12

example/bank_account.js
var balanced = require('../lib/balanced'),
config = require('./definitions');
balanced.init(config.secret, config.marketplace_uri);
var b = balanced.init(config.secret, config.marketplace_uri);
// Invalid Test
new balanced.bank_account().create({
new b.bank_account().create({
account_number: '8887776665555',

@@ -21,3 +21,3 @@ routing_number: '100000007',

// Valid Test
new balanced.bank_account().create({
new b.bank_account().create({
account_number: '9900000002',

@@ -34,3 +34,3 @@ routing_number: '021000021',

// Now get an account by ID
new balanced.bank_account(res.uri).id(function(err, bankAccount) {
new b.bank_account(res.uri).id(function(err, bankAccount) {
if(err) {

@@ -42,3 +42,3 @@ return console.log(err);

// new customer
new balanced.customer().create({
new b.customer().create({
name: 'John Doe'

@@ -52,3 +52,3 @@ }, function(err, customer) {

// add bank to customer
new balanced.customer(customer.uri).add_bank({
new b.customer(customer.uri).add_bank({
bank_account_uri: bankAccount.uri

@@ -55,0 +55,0 @@ }, function(err, res) {

@@ -36,2 +36,4 @@ function balanced() {

}
return $scope;
};

@@ -38,0 +40,0 @@

{
"name": "balanced-node-new",
"description": "Offical Balanced Payments API Client for node.js, https://www.balancedpayments.com/docs/api",
"version": "0.4.8",
"version": "0.4.9",
"author": "Balanced Payments / uh-sem-blee, Co. | typefoo",
"contributors": [
"matthewfl, matthew@balancedpayments.com",
"cscharf, chad.scharf@tenorent.com",
"jjosef, john@typefoo.com"

@@ -10,0 +8,0 @@ ],

@@ -36,6 +36,6 @@ Balanced Node.js library

balanced.init("API_SECRET", "MARKETPLACE_URI");
var b = balanced.init("API_SECRET", "MARKETPLACE_URI");
// Create a credit card
new balanced.card().create({
new b.card().create({
card_number: "5105105105105100",

@@ -64,3 +64,3 @@ expiration_year: 2020,

```js
new balanced.customer().create({ name: "Valued Customer" }, function (err, newCustomer) {
new b.customer().create({ name: "Valued Customer" }, function (err, newCustomer) {
if (err) {

@@ -76,3 +76,3 @@ console.error("customer.create", err);

```js
new balanced.customer(newCustomer.uri).add_bank({
new b.customer(newCustomer.uri).add_bank({
bank_account_uri: <bank_account_uri>

@@ -79,0 +79,0 @@ }, function(err, response){ ... })

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