# mslpsapi

Mslpsapi - JavaScript client for mslpsapi
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v1
- Package version: v1
- Build date: 2017-05-08T14:38:08.568+08:00
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install mslpsapi --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:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). 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):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var Mslpsapi = require('mslpsapi');

var api = new Mslpsapi.FreightApi()

var channelCode = "channelCode_example"; // {String} 渠道编码

var orderPrice = 1.2; // {Number} 价格

var weigth = 1.2; // {Number} 重量

var countryCode = "countryCode_example"; // {String} 国家编码


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.freightCalcFreight(channelCode, orderPrice, weigth, countryCode, callback);

```

## Documentation for API Endpoints

All URIs are relative to *http://192.168.1.80/lps*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*Mslpsapi.FreightApi* | [**freightCalcFreight**](docs/FreightApi.md#freightCalcFreight) | **POST** /api/Freight/CalcFreight | 计算运费
*Mslpsapi.FreightApi* | [**freightGetAllTemplate**](docs/FreightApi.md#freightGetAllTemplate) | **GET** /api/Freight/GetAllTemplate | 获取所有运费模版
*Mslpsapi.LogisticsApi* | [**logisticsDeleteChannelInfo**](docs/LogisticsApi.md#logisticsDeleteChannelInfo) | **POST** /api/Logistics/DeleteChannelInfo | 根据标识和渠道编码删除渠道信息
*Mslpsapi.LogisticsApi* | [**logisticsDeleteCofigs**](docs/LogisticsApi.md#logisticsDeleteCofigs) | **POST** /api/Logistics/DeleteCofigs | 根据物流标识删除配置信息
*Mslpsapi.LogisticsApi* | [**logisticsGetChannelInfo**](docs/LogisticsApi.md#logisticsGetChannelInfo) | **GET** /api/Logistics/GetChannelInfo | 根据物流标识及渠道编码获取渠道信息
*Mslpsapi.LogisticsApi* | [**logisticsGetConfig**](docs/LogisticsApi.md#logisticsGetConfig) | **GET** /api/Logistics/GetConfig | 根据物流标识获取配置信息
*Mslpsapi.LogisticsApi* | [**logisticsRefreshLogisticsNo**](docs/LogisticsApi.md#logisticsRefreshLogisticsNo) | **POST** /api/Logistics/RefreshLogisticsNo | 根据提交单号更新物流单号并记录物流信息
*Mslpsapi.LogisticsApi* | [**logisticsSaveChannelInfo**](docs/LogisticsApi.md#logisticsSaveChannelInfo) | **POST** /api/Logistics/SaveChannelInfo | 保存渠道信息
*Mslpsapi.LogisticsApi* | [**logisticsSaveConfig**](docs/LogisticsApi.md#logisticsSaveConfig) | **POST** /api/Logistics/SaveConfig | 保存配置信息
*Mslpsapi.LogisticsApi* | [**logisticsSubMit**](docs/LogisticsApi.md#logisticsSubMit) | **POST** /api/Logistics/SubMit | 提交物流并记录提交结果
*Mslpsapi.LogsiticsCompanyApi* | [**logsiticsCompanyGetAllLogisticsCompanies**](docs/LogsiticsCompanyApi.md#logsiticsCompanyGetAllLogisticsCompanies) | **GET** /api/LogsiticsCompany/GetAllLogisticsCompanies | 获取所有物流公司信息
*Mslpsapi.LogsiticsCompanyApi* | [**logsiticsCompanyGetChannels**](docs/LogsiticsCompanyApi.md#logsiticsCompanyGetChannels) | **GET** /api/LogsiticsCompany/GetChannels | 根据物流标识和物流公司配置信息获取渠道列表
*Mslpsapi.LogsiticsCompanyApi* | [**logsiticsCompanyGetConfigs**](docs/LogsiticsCompanyApi.md#logsiticsCompanyGetConfigs) | **GET** /api/LogsiticsCompany/GetConfigs | 根据物流标识获取物流公司配置信息
*Mslpsapi.PrintApi* | [**printPrint**](docs/PrintApi.md#printPrint) | **POST** /api/Print/Print | 一键打印


## Documentation for Models

 - [Mslpsapi.AccessibleElementId](docs/AccessibleElementId.md)
 - [Mslpsapi.AcroFields](docs/AcroFields.md)
 - [Mslpsapi.AcroFieldsSearch](docs/AcroFieldsSearch.md)
 - [Mslpsapi.Address](docs/Address.md)
 - [Mslpsapi.Annotation](docs/Annotation.md)
 - [Mslpsapi.BaseColor](docs/BaseColor.md)
 - [Mslpsapi.BaseFont](docs/BaseFont.md)
 - [Mslpsapi.BaseResponseResult](docs/BaseResponseResult.md)
 - [Mslpsapi.ByteBuffer](docs/ByteBuffer.md)
 - [Mslpsapi.Chunk](docs/Chunk.md)
 - [Mslpsapi.ColumnText](docs/ColumnText.md)
 - [Mslpsapi.ConfigInfo](docs/ConfigInfo.md)
 - [Mslpsapi.FieldInformation](docs/FieldInformation.md)
 - [Mslpsapi.Font](docs/Font.md)
 - [Mslpsapi.ICCProfile](docs/ICCProfile.md)
 - [Mslpsapi.IDrawInterface](docs/IDrawInterface.md)
 - [Mslpsapi.IElement](docs/IElement.md)
 - [Mslpsapi.IPdfOCG](docs/IPdfOCG.md)
 - [Mslpsapi.IPdfPCellEvent](docs/IPdfPCellEvent.md)
 - [Mslpsapi.IPdfPTableEvent](docs/IPdfPTableEvent.md)
 - [Mslpsapi.IPdfPageEvent](docs/IPdfPageEvent.md)
 - [Mslpsapi.IXmpMeta](docs/IXmpMeta.md)
 - [Mslpsapi.Image](docs/Image.md)
 - [Mslpsapi.InverseStore](docs/InverseStore.md)
 - [Mslpsapi.Item](docs/Item.md)
 - [Mslpsapi.Order](docs/Order.md)
 - [Mslpsapi.OrderInfo](docs/OrderInfo.md)
 - [Mslpsapi.OutputStreamCounter](docs/OutputStreamCounter.md)
 - [Mslpsapi.PRAcroForm](docs/PRAcroForm.md)
 - [Mslpsapi.PRIndirectReference](docs/PRIndirectReference.md)
 - [Mslpsapi.PdfAcroForm](docs/PdfAcroForm.md)
 - [Mslpsapi.PdfCollection](docs/PdfCollection.md)
 - [Mslpsapi.PdfCollectionSchema](docs/PdfCollectionSchema.md)
 - [Mslpsapi.PdfCollectionSort](docs/PdfCollectionSort.md)
 - [Mslpsapi.PdfContentByte](docs/PdfContentByte.md)
 - [Mslpsapi.PdfDictionary](docs/PdfDictionary.md)
 - [Mslpsapi.PdfDocument](docs/PdfDocument.md)
 - [Mslpsapi.PdfIndirectReference](docs/PdfIndirectReference.md)
 - [Mslpsapi.PdfName](docs/PdfName.md)
 - [Mslpsapi.PdfOCProperties](docs/PdfOCProperties.md)
 - [Mslpsapi.PdfObject](docs/PdfObject.md)
 - [Mslpsapi.PdfOutline](docs/PdfOutline.md)
 - [Mslpsapi.PdfPCell](docs/PdfPCell.md)
 - [Mslpsapi.PdfPHeaderCell](docs/PdfPHeaderCell.md)
 - [Mslpsapi.PdfPRow](docs/PdfPRow.md)
 - [Mslpsapi.PdfPTable](docs/PdfPTable.md)
 - [Mslpsapi.PdfPageLabels](docs/PdfPageLabels.md)
 - [Mslpsapi.PdfReader](docs/PdfReader.md)
 - [Mslpsapi.PdfStructureTreeRoot](docs/PdfStructureTreeRoot.md)
 - [Mslpsapi.PdfTemplate](docs/PdfTemplate.md)
 - [Mslpsapi.PdfTransition](docs/PdfTransition.md)
 - [Mslpsapi.PdfTransparencyGroup](docs/PdfTransparencyGroup.md)
 - [Mslpsapi.PdfWriter](docs/PdfWriter.md)
 - [Mslpsapi.PrintInfo](docs/PrintInfo.md)
 - [Mslpsapi.ProductInfo](docs/ProductInfo.md)
 - [Mslpsapi.RandomAccessFileOrArray](docs/RandomAccessFileOrArray.md)
 - [Mslpsapi.Rectangle](docs/Rectangle.md)
 - [Mslpsapi.TabSettings](docs/TabSettings.md)
 - [Mslpsapi.TabStop](docs/TabStop.md)
 - [Mslpsapi.TextField](docs/TextField.md)
 - [Mslpsapi.XfaForm](docs/XfaForm.md)
 - [Mslpsapi.Xml2SomDatasets](docs/Xml2SomDatasets.md)
 - [Mslpsapi.Xml2SomTemplate](docs/Xml2SomTemplate.md)
 - [Mslpsapi.XmpWriter](docs/XmpWriter.md)


## Documentation for Authorization

 All endpoints do not require authorization.

