18.0.0 • Published 8 years ago

itensity_api v18.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 years ago

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/

ClassMethodHTTP requestDescription
ItensityApi.AdditionalTariffApitariffAddPostPOST /Tariff_addAdd a new additional product
ItensityApi.CategoryApipOSCategoryDeleteDELETE /POS/categoryDelete a category
ItensityApi.CategoryApipOSCategoryGetGET /POS/categoryGet a list of categories
ItensityApi.CategoryApipOSCategoryPostPOST /POS/categoryAdd a new category
ItensityApi.CategoryApipOSCategoryPutPUT /POS/categoryUpdate a category
ItensityApi.ItemsApipOSItemDeleteDELETE /POS/itemDelete an item
ItensityApi.ItemsApipOSItemGetGET /POS/itemGet a list of items
ItensityApi.ItemsApipOSItemPostPOST /POS/itemAdd a new item
ItensityApi.ItemsApipOSItemPutPUT /POS/itemUpdate an item
ItensityApi.MembershipApiauthenticationPostPOST /AuthenticationAuthenticate
ItensityApi.MembershipApimembershipPostPOST /MembershipAdd a new membership
ItensityApi.PointApipOSPointDeleteDELETE /POS/pointDeactivate a point of service
ItensityApi.PointApipOSPointGetGET /POS/pointGet a list of points of service
ItensityApi.PointApipOSPointPostPOST /POS/pointAdd a new item
ItensityApi.PointApipOSPointPutPUT /POS/pointUpdate an point of service
ItensityApi.StockApipOSStockDeleteDELETE /POS/stockWrite off Stock
ItensityApi.StockApipOSStockGetGET /POS/stockGet a list of stock entries / Stock Manifest
ItensityApi.StockApipOSStockPostPOST /POS/stockAdd stock
ItensityApi.StockApipOSStockPutPUT /POS/stockReverse Stock
ItensityApi.StockCodeApipOSMethodStockFromCodePostPOST /POS/Method/StockFromCodeAdd stock from a stock code
ItensityApi.StockCodeApipOSReportsStocklistGetGET /POS/Reports/StocklistGet an inventory list
ItensityApi.StockCodeApipOSStockcodeDeleteDELETE /POS/stockcodeRemove Stock Code
ItensityApi.StockCodeApipOSStockcodeGetGET /POS/stockcodeGet a list of stock code items
ItensityApi.StockCodeApipOSStockcodePostPOST /POS/stockcodeAdd stock code
ItensityApi.StockCodeApipOSStockcodePutPUT /POS/stockcodeUpdate stock code
ItensityApi.SupplierApipOSSupplierDeleteDELETE /POS/supplierDeactivate a supplier
ItensityApi.SupplierApipOSSupplierGetGET /POS/supplierGet a list of suppliers
ItensityApi.SupplierApipOSSupplierPostPOST /POS/supplierAdd a new supplier
ItensityApi.SupplierApipOSSupplierPutPUT /POS/supplierUpdate an item
ItensityApi.TariffApitariffPostPOST /TariffAdd a new tariff
ItensityApi.TariffApitariffPutPUT /TariffUpdate tariffs to correct renewal link
ItensityApi.TariffLinkApitariffLinkPostPOST /Tariff_linkLink a tariff to an additional product
ItensityApi.UserApiuserPostPOST /UserAdd a new user
ItensityApi.UserApiuserPutPUT /UserUpdate user fingerprint

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.