UNPKG

coa-wx-isv

Version:

一个轻量的微信SDK服务商版 for Node.js

146 lines (145 loc) 3.99 kB
import { WxIsvServiceBase } from '../libs/WxIsvServiceBase'; import { WxIsv } from '../typings'; export declare class WxIsvExpressService extends WxIsvServiceBase { batchGetOrder(accessToken: string, orderList: WxIsv.WxIsvExpressBatchGetOrder[]): Promise<{ orderList: { errcode: number; errmsg: string; orderId: string; deliveryId: string; waybillId: string; printHtml: string; waybillData: { key: string; value: string; }[]; orderStatus: number; }[]; }>; addOrder(accessToken: string, order: WxIsv.WxIsvAddOrderParam): Promise<{ orderId: string; waybillId: string; waybillData: { key: string; value: string; }[]; }>; bindAccount(accessToken: string, data: { type: string; bizId: string; deliveryId: string; password: string; remarkContent: string; }): Promise<{ errcode: number; errmsg: string; }>; cancelOrder(accessToken: string, data: { orderId: string; openid: string; deliveryId: string; waybillId: string; }): Promise<{ errcode: number; errmsg: string; deliveryResultcode: number; deliveryResultmsg: string; }>; getAllAccount(accessToken: string): Promise<{ count: number; list: { bizId: string; deliveryId: string; createTime: number; updateTime: number; statusCode: number; alias: string; remarkWrongMsg: string; remarkContent: string; quotaNum: number; quotaUpdateTime: number; serviceType: { serviceType: number; serviceName: string; }[]; }[]; }>; getAllDelivery(accessToken: string): Promise<{ count: number; data: { deliveryId: string; deliveryName: string; canUseCash: number; canGetQuota: number; cashBizId: string; serviceType: { serviceType: number; serviceName: string; }[]; }[]; }>; getOrder(accessToken: string, data: { orderId: string; openid: string; deliveryId: string; waybillId: string; }): Promise<{ printHtml: string; waybillData: { key: string; value: string; }[]; deliveryId: string; waybillId: string; orderId: string; orderStatus: number; }>; getPath(accessToken: string, data: { orderId: string; openid: string; deliveryId: string; waybillId: string; }): Promise<{ openid: string; deliveryId: string; waybillId: string; pathItemNum: number; pathItemList: { actionTime: number; actionType: number; actionMsg: string; }[]; }>; getPrinter(accessToken: string): Promise<{ count: number; openid: string[]; tagidList: string[]; }>; getQuota(accessToken: string, data: { deliveryId: string; bizId: string; }): Promise<{ quotaNum: number; }>; testUpdateOrder(accessToken: string, data: { bizId: string; orderId: string; deliveryId: string; waybillId: string; actionTime: number; actionType: number; actionMsg: string; }): Promise<{ errcode: number; errmsg: string; }>; updatePrinter(accessToken: string, data: { openid: string; updateType: string; tagidList: string; }): Promise<{ errcode: number; errmsg: string; }>; protected customErrorHandler(res: WxIsv.AxiosResponse): void; }