1.0.0 • Published 2 years ago

recycler_inlane v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

in_lane_api

InLaneApi - JavaScript client for in_lane_api InLane communication Web Api This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: v1
  • Build package: io.swagger.codegen.v3.generators.javascript.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 in_lane_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --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.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var InLaneApi = require('in_lane_api');
var defaultClient = InLaneApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new InLaneApi.AuthApi()
var body = new InLaneApi.LoginRequest(); // {LoginRequest} Object LoginRequest containing appId and username

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiV1AuthLoginPost(body, callback);

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
InLaneApi.AuthApiapiV1AuthLoginPostPOST /api/v1/Auth/loginLogin a client app to the web api (Allowed requests without authentication token)
InLaneApi.BagCollectionApiapiV1OperationBagCollectionStartPostPOST /api/v1/operation/BagCollection/startStart a new bag collection operation to change the bags inside the safe
InLaneApi.BagCollectionApiapiV1OperationBagCollectionStatusGetGET /api/v1/operation/BagCollection/statusRetrieve the status of the bag collection operation
InLaneApi.CassetteCollectionApiapiV1OperationCassetteCollectionReleaseCassettePostPOST /api/v1/operation/CassetteCollection/releaseCassetteCommand to release the hook of the cassette for 30 seconds
InLaneApi.CassetteCollectionApiapiV1OperationCassetteCollectionStartPostPOST /api/v1/operation/CassetteCollection/startStart a new banknotes cassette collection operation
InLaneApi.CassetteCollectionApiapiV1OperationCassetteCollectionStatusGetGET /api/v1/operation/CassetteCollection/statusRetrieve the status of the cassette collection operation
InLaneApi.ContentApiapiV1ContentAlertsGetGET /api/v1/Content/alertsRetrieve denominations that are under or over existing thresholds.
InLaneApi.ContentApiapiV1ContentCountingGetGET /api/v1/Content/countingRetrieve all device counting
InLaneApi.ContentApiapiV1ContentGetGET /api/v1/ContentRetrieve the device content by stock
InLaneApi.ContentApiapiV1ContentResetCountingPostPOST /api/v1/Content/resetCountingReset the content of a stock
InLaneApi.DeviceInfoApiapiV1DeviceInfoConfigurationGetGET /api/v1/DeviceInfo/configurationRetrieve the stocks configurations
InLaneApi.DeviceInfoApiapiV1DeviceInfoCurrencyExchangeRatesGetGET /api/v1/DeviceInfo/currencyExchangeRatesRetrieve currency exchange rates
InLaneApi.DeviceInfoApiapiV1DeviceInfoCurrencyExchangeRatesPostPOST /api/v1/DeviceInfo/currencyExchangeRatesSave new exchange rates on the machine
InLaneApi.DeviceInfoApiapiV1DeviceInfoGetGET /api/v1/DeviceInfoRetrieve the device information
InLaneApi.DeviceInfoApiapiV1DeviceInfoMainCurrencyGetGET /api/v1/DeviceInfo/mainCurrencyRetrieve main currency
InLaneApi.EmptyOutApiapiV1OperationEmptyOutStartPostPOST /api/v1/operation/EmptyOut/startStart a new empty out operation to empty some/all stocks
InLaneApi.EmptyOutApiapiV1OperationEmptyOutStatusGetGET /api/v1/operation/EmptyOut/statusRetrieve the status of the empty out operation
InLaneApi.ManualRefillApiapiV1OperationManualRefillNewContentPostPOST /api/v1/operation/ManualRefill/newContentCommand to send the new content to the machine
InLaneApi.ManualRefillApiapiV1OperationManualRefillStartPostPOST /api/v1/operation/ManualRefill/startStart a new manual refill operation to change manually the device content
InLaneApi.ManualRefillApiapiV1OperationManualRefillStatusGetGET /api/v1/operation/ManualRefill/statusRetrieve the status of the manual refill operation
InLaneApi.PaymentApiapiV1OperationPaymentEndPostPOST /api/v1/operation/Payment/endStop the payment operation during the deposit phase
InLaneApi.PaymentApiapiV1OperationPaymentStartPostPOST /api/v1/operation/Payment/startStart a new payment operation (from the deposit to the dispensation of the change if necessary)
InLaneApi.PaymentApiapiV1OperationPaymentStatusGetGET /api/v1/operation/Payment/statusRetrieve the status of the payment operation
InLaneApi.RefillApiapiV1OperationRefillEndPostPOST /api/v1/operation/Refill/endStop the refill operation
InLaneApi.RefillApiapiV1OperationRefillStartPostPOST /api/v1/operation/Refill/startStart a new refill operation
InLaneApi.RefillApiapiV1OperationRefillStatusGetGET /api/v1/operation/Refill/statusRetrieve the status of the refill operation
InLaneApi.ResetApiapiV1OperationResetStartPostPOST /api/v1/operation/Reset/startStart a new device reset operation
InLaneApi.ResetApiapiV1OperationResetStatusGetGET /api/v1/operation/Reset/statusRetrieve the status of the reset operation
InLaneApi.StatusApiapiV1StatusGetGET /api/v1/StatusRetrieve the device status
InLaneApi.TransactionsApiapiV1TransactionsGetGET /api/v1/TransactionsRetrieve the details of a single committed transaction by id or by reference
InLaneApi.TransferApiapiV1OperationTransferStartPostPOST /api/v1/operation/Transfer/startStart a new transfer operation
InLaneApi.TransferApiapiV1OperationTransferStatusGetGET /api/v1/operation/Transfer/statusRetrieve the status of the transfer operation
InLaneApi.TransferAllButKitApiapiV1OperationTransferAllButKitCheckUnderThresholdKitDenominationsGetGET /api/v1/operation/TransferAllButKit/checkUnderThresholdKitDenominationsFunction to check if there are some denomination under the minimum kit threshold
InLaneApi.TransferAllButKitApiapiV1OperationTransferAllButKitConfigurationGetGET /api/v1/operation/TransferAllButKit/configurationFunction to read minimum kit configured
InLaneApi.TransferAllButKitApiapiV1OperationTransferAllButKitConfigurationPostPOST /api/v1/operation/TransferAllButKit/configurationFunction to set the Minimum Kit
InLaneApi.TransferAllButKitApiapiV1OperationTransferAllButKitStartPostPOST /api/v1/operation/TransferAllButKit/startStart a new transfer all but kit operation
InLaneApi.TransferAllButKitApiapiV1OperationTransferAllButKitStatusGetGET /api/v1/operation/TransferAllButKit/statusRetrieve the status of the transfer all but kit operation
InLaneApi.WithdrawalApiapiV1OperationWithdrawalStartByCurrencyAmountPostPOST /api/v1/operation/Withdrawal/startByCurrencyAmountStart new withdrawal operation by currency amount
InLaneApi.WithdrawalApiapiV1OperationWithdrawalStartByDenominationPostPOST /api/v1/operation/Withdrawal/startByDenominationStart new withdrawal operation by denomination
InLaneApi.WithdrawalApiapiV1OperationWithdrawalStatusGetGET /api/v1/operation/Withdrawal/statusRetrieve the status of the transfer operation

Documentation for Models

Documentation for Authorization

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header