1.3.2 • Published 9 years ago

node-fastbill-automatic v1.3.2

Weekly downloads
54
License
MIT
Repository
github
Last release
9 years ago

node-fastbill-automatic

Complete and tested ES6 client for the fastbill automatic API

quick start

npm install node-fastbill-automatic

available methods

The module exposes API functionality for customers, invoices and subscriptions. Access through fastbill.customer, fastbill.invoice or fastbill.subscription (like in the example below).

first example

'use strict';
import Fastbill from 'node-fastbill-automatic';

const fastbill = Fastbill.instantiate(
    {
        email: 'YOUR_FASTBILL_EMAIL',
        apikey: 'YOUR_FASTBILL_API_KEY'
    }
);

// 1. create a customer
fastbill.customer.create(
  {
    CUSTOMER_NUMBER: 1,
    CUSTOMER_TYPE: 'consumer',
    FIRST_NAME: 'Max',
    LAST_NAME: 'Michael'
})
.then(function(customerId){
    console.log(`The customer's fastbillId is ${customerId}`);
    })
.catch(function(err){
    throw new Error('Customer creation failed');
});

development

  1. Download the repository

  2. Install dependencies

npm install
  1. install gulp and babel
npm install gulp -g
npm install babel -g
  1. Run tests
npm run cover
  1. Run ESLint
gulp lint
1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.0.0

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago