node-wxpay3
Version:
22 lines (21 loc) • 1.3 kB
TypeScript
import Withdraw from './lib/withdraw';
import { IUnifiedorder, IOrderquery, IOrderquery2, ICloseorder, IRefund, IRefund2, IRefundquery1, IRefundquery2, IRefundquery3, IRefundquery4, IDownloadbill, IDownloadfundflow, IReport, IBatchquerycomment, IMicropay, IReverse1, IReverse2, IAuthcodetoopenid } from './lib/interface';
declare class WxPay extends Withdraw {
md5(params: object): string;
hmac(params: object): string;
xmltojson(params: string): object;
unifiedorder(params: IUnifiedorder): Promise<object>;
callback_check(data: any): boolean;
orderquery(params: IOrderquery | IOrderquery2): Promise<object>;
closeorder(params: ICloseorder): Promise<object>;
refund(params: IRefund | IRefund2): Promise<object>;
refundquery(params: IRefundquery1 | IRefundquery2 | IRefundquery3 | IRefundquery4): Promise<object>;
downloadbill(params: IDownloadbill): Promise<object>;
downloadfundflow(params: IDownloadfundflow): Promise<object>;
report(params: IReport): Promise<object>;
batchquerycomment(params: IBatchquerycomment): Promise<object>;
micropay(params: IMicropay): Promise<object>;
reverse(params: IReverse1 | IReverse2): Promise<object>;
authcodetoopenid(params: IAuthcodetoopenid): Promise<object>;
}
export = WxPay;