package com.cirle.scientific.service;

import com.alibaba.fastjson.JSONObject;
import com.cirle.scientific.dto.weixin.WxUerInfoDTO;
import com.cirle.scientific.utils.weixin.WeiXinPay;

import java.util.Map;

public interface WeixinService {

	Map<String,String> wxapay(WeiXinPay weiXinPay);

	String mwebpay(WeiXinPay weiXinPay);

	Map<String,String> jsapipay(WeiXinPay weiXinPay);

	Map<String,String> jsapicollagepay(WeiXinPay weiXinPay);


	Map<String,String> apppay(WeiXinPay weiXinPay);

	Map<String,String> wxshare(String url);

	String getTicket();

	Map<String, String> getTokenByCode(String appid, String secret, String code, String grant_type);

	WxUerInfoDTO getUserInfo(String access_token, String openid);

	Map<String, String> refund(String appid, String mch_id, String apiKey, String out_trade_no,
			Double total_fee, Double refund_fee, String refund_desc);

	JSONObject generateWxUserInfo(String appId, String secret, String openId);

	Map<String, String> queryPayStatus(String orderNo);

	WxUerInfoDTO oauth2getAccessToken(String code, String memCard);

	Map<String, String> getTokenByCodeNew(String appid, String secret, String code, String grant_type);

	 String getPhone(String code);
}
