移块上云插件文档
    正在准备搜索索引...
    索引

    属性

    injectName: "sim" = 'sim'

    方法

    • 终端用户创建业务订单(sim卡充值)

      参数

      • options: {
            complete: () => void;
            deviceKey: string;
            fail: (res: Error) => void;
            iccidList: string[];
            merchantNo: string;
            packageVersionId: string;
            productKey: string;
            size: number;
            success: (res: ResponseData) => void;
        }
        • complete: () => void

          接口调用结束的回调函数(调用成功、失败都会执行)

        • deviceKey: string

          设备 DK

        • fail: (res: Error) => void

          接口调用失败的回调函数

        • iccidList: string[]

          卡标识

        • merchantNo: string

          商户号

        • packageVersionId: string

          套餐版本 ID

        • productKey: string

          产品 PK

        • size: number

          购买份数

        • success: (res: ResponseData) => void

          接口调用成功的回调函数

      返回 void

      const plugin = requirePlugin('quecPlugin')
      plugin.sim.createSimCardBizOrder({
      merchantNo:'',
      packageVersionId:'',
      size:1,
      productKey:'',
      deviceKey:'',
      iccidList:['12345678'],
      success (res) {},
      fail (res) {},
      complete (res) { }
      })
    • 获取SIM卡详情

      参数

      • options: {
            complete: () => void;
            fail: (res: Error) => void;
            iccid: string;
            success: (res: ResponseData) => void;
        }
        • complete: () => void

          接口调用结束的回调函数(调用成功、失败都会执行)

        • fail: (res: Error) => void

          接口调用失败的回调函数

        • iccid: string

          卡号

        • success: (res: ResponseData) => void

          接口调用成功的回调函数

      返回 void

      const plugin = requirePlugin('quecPlugin')
      plugin.sim.getSimCardDetail({
      iccid:'12345678',
      success (res) {},
      fail (res) {},
      complete (res) { }
      })
    • 查询SIM卡预警配置

      参数

      • options: {
            complete: () => void;
            fail: (res: Error) => void;
            productKey: string;
            success: (res: ResponseData) => void;
        }
        • complete: () => void

          接口调用结束的回调函数(调用成功、失败都会执行)

        • fail: (res: Error) => void

          接口调用失败的回调函数

        • productKey: string

          产品 PK

        • success: (res: ResponseData) => void

          接口调用成功的回调函数

      返回 void