Socket
Socket
Sign inDemoInstall

ecard-api

Package Overview
Dependencies
35
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ecard-api

一卡通系统数据API


Version published
Weekly downloads
1
Maintainers
1
Install size
14.2 MB
Created
Weekly downloads
 

Readme

Source

ecard-api

一卡通系统数据API

API

对象

Shop
  • 示例
    {
      shopId: "1",
      fShopId: "0",
      shopName: "云南大学",
      areaCode: "",
      shopType: "",
      accFlag: "",
      status: "",
      accNo: ""
    }
    
  • 字段说明
    • shopId 商户编号
    • fShopId 父商户编号
    • shopName 商户名称
    • areaCode
    • shopType
    • accFlag
    • status
    • accNo
DeviceDailyBill

设备账单

  • 示例
{
  deviceId: "1"
  deviceName: "POS机",
  accDate: "20170119",
  transCnt: "234",
  drAmt: "2.44",
  crAmt: "44253.22",
  fShopId: "34",
  shopId: "67",
  accNo: "",
  shopName: "商户1",
  deviceNo: "",
  devPyhId: "45334",
}
  • 字段说明
    • deviceId 设备Id
    • deviceName 设备名称
    • accDate 账单日期,
    • transCnt 消费笔数
    • drAmt 冲正金额
    • crAmt 消费金额
    • fShopId 父商户Id
    • shopId 商户Id
    • accNo
    • shopName 商户名称
    • deviceNo
    • devPyhId 设备物理Id

YktManager

一卡通数据操作类

async getAncestorShops(shop: Shop | shopId: String): [Shop]

获取指定商户的所有祖先商户节点。

  • 参数
    • shop 指定的商户,至少包含shopIdfShopId两个字段;
    • shopId 指定的商户Id,可转换给数字的字符串。
  • 返回值
    • Shop 对象数组
async getDeviceBill(deviceId: String, accDate: String): [DeviceDailyBill]

获取指定设备及日期的账单

  • 参数
    • deviceId 指定设备的Id,可转换为数字的字符串;
    • accDate 账单日期。8为数字的日期,格式为YYYYMMDD,例如:20170119
  • 返回值 DeviceDailyBill 对象数组

FAQs

Last updated on 19 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc