itensity_api v18.0.0
itensity_api
ItensityApi - JavaScript client for itensity_api Api for all services at itensity This SDK is automatically generated by the Swagger Codegen project:
- API version: 18.0.0
- Package version: 18.0.0
- Build date: 2016-10-26T12:27:50.073Z
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install itensity_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/itensity_api then install it via:
npm install YOUR_USERNAME/itensity_api --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var ItensityApi = require('itensity_api');
var api = new ItensityApi.AdditionalTariffApi()
var token = "token_example"; // {String} authentication token.
var tadName = "tadName_example"; // {String} The additional product name.
var tadAmount = 1.2; // {Number} The additional product amount.
var tadOnceOff = true; // {Boolean} Is the additional product once off.
var tadKLink = "tadKLink_example"; // {String} The additional product link id.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.tariffAddPost(token, tadName, tadAmount, tadOnceOff, tadKLink, callback);
Documentation for API Endpoints
All URIs are relative to https://rest-api.itensityonline.com/
Class | Method | HTTP request | Description |
---|---|---|---|
ItensityApi.AdditionalTariffApi | tariffAddPost | POST /Tariff_add | Add a new additional product |
ItensityApi.CategoryApi | pOSCategoryDelete | DELETE /POS/category | Delete a category |
ItensityApi.CategoryApi | pOSCategoryGet | GET /POS/category | Get a list of categories |
ItensityApi.CategoryApi | pOSCategoryPost | POST /POS/category | Add a new category |
ItensityApi.CategoryApi | pOSCategoryPut | PUT /POS/category | Update a category |
ItensityApi.ItemsApi | pOSItemDelete | DELETE /POS/item | Delete an item |
ItensityApi.ItemsApi | pOSItemGet | GET /POS/item | Get a list of items |
ItensityApi.ItemsApi | pOSItemPost | POST /POS/item | Add a new item |
ItensityApi.ItemsApi | pOSItemPut | PUT /POS/item | Update an item |
ItensityApi.MembershipApi | authenticationPost | POST /Authentication | Authenticate |
ItensityApi.MembershipApi | membershipPost | POST /Membership | Add a new membership |
ItensityApi.PointApi | pOSPointDelete | DELETE /POS/point | Deactivate a point of service |
ItensityApi.PointApi | pOSPointGet | GET /POS/point | Get a list of points of service |
ItensityApi.PointApi | pOSPointPost | POST /POS/point | Add a new item |
ItensityApi.PointApi | pOSPointPut | PUT /POS/point | Update an point of service |
ItensityApi.StockApi | pOSStockDelete | DELETE /POS/stock | Write off Stock |
ItensityApi.StockApi | pOSStockGet | GET /POS/stock | Get a list of stock entries / Stock Manifest |
ItensityApi.StockApi | pOSStockPost | POST /POS/stock | Add stock |
ItensityApi.StockApi | pOSStockPut | PUT /POS/stock | Reverse Stock |
ItensityApi.StockCodeApi | pOSMethodStockFromCodePost | POST /POS/Method/StockFromCode | Add stock from a stock code |
ItensityApi.StockCodeApi | pOSReportsStocklistGet | GET /POS/Reports/Stocklist | Get an inventory list |
ItensityApi.StockCodeApi | pOSStockcodeDelete | DELETE /POS/stockcode | Remove Stock Code |
ItensityApi.StockCodeApi | pOSStockcodeGet | GET /POS/stockcode | Get a list of stock code items |
ItensityApi.StockCodeApi | pOSStockcodePost | POST /POS/stockcode | Add stock code |
ItensityApi.StockCodeApi | pOSStockcodePut | PUT /POS/stockcode | Update stock code |
ItensityApi.SupplierApi | pOSSupplierDelete | DELETE /POS/supplier | Deactivate a supplier |
ItensityApi.SupplierApi | pOSSupplierGet | GET /POS/supplier | Get a list of suppliers |
ItensityApi.SupplierApi | pOSSupplierPost | POST /POS/supplier | Add a new supplier |
ItensityApi.SupplierApi | pOSSupplierPut | PUT /POS/supplier | Update an item |
ItensityApi.TariffApi | tariffPost | POST /Tariff | Add a new tariff |
ItensityApi.TariffApi | tariffPut | PUT /Tariff | Update tariffs to correct renewal link |
ItensityApi.TariffLinkApi | tariffLinkPost | POST /Tariff_link | Link a tariff to an additional product |
ItensityApi.UserApi | userPost | POST /User | Add a new user |
ItensityApi.UserApi | userPut | PUT /User | Update user fingerprint |
Documentation for Models
- ItensityApi.Category
- ItensityApi.Error
- ItensityApi.Item
- ItensityApi.Point
- ItensityApi.Stock
- ItensityApi.StockCode
- ItensityApi.StockList
- ItensityApi.Supplier
Documentation for Authorization
All endpoints do not require authorization.
8 years ago