UNPKG

@jinyexin/wechat

Version:

A simple wechat server lib

15 lines (14 loc) 696 B
import { menuCreateMessage, templateMessage, unifiedorder } from "../message"; /** * Created by enixjin on 4/13/17. */ export declare class wechatService { static sendTemplateMessage(message: templateMessage): Promise<any>; static pushMenu(message: menuCreateMessage): Promise<any>; static transfer(openid: string, amount: number, trade_no: string): Promise<any>; static getWebAccessToken(code: string): Promise<any>; static getSignature(url: string): Promise<any>; static getPaySign(message: any): any; static getUserByWebToken(accessToken: string, openID: string): Promise<any>; static createUnifiedOrder(_message: unifiedorder): Promise<any>; }