0.0.2 • Published 4 years ago

node-cegid-api v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

node-cegid-api

安装

$ npm install node-cegid-api --save

初始化

const Cegid = require('node-cegid-api');


/**
 * Customer 初始化
 * @param {object} options
 * @param {string} options.req_url 请求地址 eg:http://x.x.x.x/Y2_TEST/CustomerWcfService.svc
 * @param {string} options.user_id 用户ID
 * @param {string} options.password 密码
 * @param {string} options.database_id 数据库ID
 * @constructor
 */
const customer = new Cegid.Customer(options);

/**
 * 测试 options是否有效
 * @param {string} text 测试输入,可以输入任意值
 */
customer.helloworld(text);

完成度

因本人对接cegid只包含 CustomerWcfService 和 ItemInventoryWcfService 所以目前API只包含此2大类,以下为接口对接情况

  • Web Service: ItemInventoryWcfService

    • AddNewCustomer
    • GetCustomerDetail
    • GetCustomerIdByReference
    • SearchCustomerIds
    • UpdateCustomer
  • Web Service: ItemInventoryWcfService

    • GetAvailableCumulativeQtyAllStores
    • GetAvailableQty
    • GetInventoryDetailByStore
    • GetListItemInventoryDetailByStore
    • ResetShoppingCart
    • UpdateShoppingCart