@@ -65,12 +65,10 @@ public interface WxPayService {
65
65
*/
66
66
String postV3 (String url , String requestStr ) throws WxPayException ;
67
67
68
-
69
68
/**
70
69
* 发送get V3请求,得到响应字符串.
71
70
*
72
- * @param url 请求地址
73
- * @param param 请求信息
71
+ * @param url 请求地址
74
72
* @return 返回请求结果字符串 string
75
73
* @throws WxPayException the wx pay exception
76
74
*/
@@ -200,11 +198,11 @@ public interface WxPayService {
200
198
/**
201
199
* 调用统一下单接口,并组装生成支付所需参数对象.
202
200
*
203
- * @see WxPayService#createOrder(WxPayUnifiedOrderRequest)
204
201
* @param specificTradeType 将使用的交易方式,不能为 null
205
- * @param request 统一下单请求参数,设定的 tradeType 及配置里的 tradeType 将被忽略,转而使用 specificTradeType
202
+ * @param request 统一下单请求参数,设定的 tradeType 及配置里的 tradeType 将被忽略,转而使用 specificTradeType
206
203
* @return 返回 {@link WxPayConstants.TradeType.Specific} 指定的类
207
204
* @throws WxPayException the wx pay exception
205
+ * @see WxPayService#createOrder(WxPayUnifiedOrderRequest)
208
206
*/
209
207
<T > T createOrder (WxPayConstants .TradeType .Specific <T > specificTradeType , WxPayUnifiedOrderRequest request ) throws WxPayException ;
210
208
@@ -759,5 +757,18 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri
759
757
*/
760
758
WxPayFacepayResult facepay (WxPayFacepayRequest request ) throws WxPayException ;
761
759
762
-
760
+ /**
761
+ * 查询汇率
762
+ * <pre>
763
+ * 应用场景:商户网站的商品以外币标价时,通过该接口可以实时查询到微信使用的转换汇率。汇率更新时间为北京时间上午10:00,一天更新一次。
764
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/api/app/app_jw.php?chapter=9_15&index=12
765
+ * 接口链接:https://api.mch.weixin.qq.com/pay/queryexchagerate
766
+ * </pre>
767
+ *
768
+ * @param feeType 外币币种
769
+ * @param date 日期,格式为yyyyMMdd,如2009年12月25日表示为20091225。时区为GMT+8 beijing
770
+ * @return .
771
+ * @throws WxPayException .
772
+ */
773
+ WxPayQueryExchangeRateResult queryExchangeRate (String feeType , String date ) throws WxPayException ;
763
774
}
0 commit comments