1.2.5 • Published 4 years ago

node-fabricare v1.2.5

Weekly downloads
71
License
-
Repository
github
Last release
4 years ago

node-fabricare

Fabricare POS Wrapper in NodeJS, fully promisified

Initialization

var FABRI = require('node-fabricare');
var options = {
    User: "your_user",
    Password: "your_password",
    Prefix: "your_prefix",
    Port: "your_port",
    IP: "your_ip"
}
var pos = new FABRI(options);

Basic use

Call fabricare for full documentation, but here are a few basics:

pos.Customer.CreateCustomer({ email: "a@b.com", firstName: "a", lastName: "b" });
pos.Customer.GetCustomer("id");
pos.Customer.GetCustomers({ firstName: "c" });
pos.Customer.UpdateCustomer("id", { firstName: "d" });

pos.Order.Exists(order_id);
pos.Order.FindById(order_id);
pos.Order.Create(order_object);
pos.Order.Update(order_id, order_object);
pos.Order.Sold(order_id);
pos.Order.Status(order_id);

pos.Invoice.Exists(order_id);
pos.Invoice.FindById(order_id);

Tests

npm test will run a linter and the tests in test.js
The tests will not pass unless you edit the configuration there and set it to your Fabricare Instance.
Feel free to use those tests as reference for your implementation.

1.2.5

4 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago