新增退款申请接口

This commit is contained in:
jy.hu 2014-11-06 20:51:57 +08:00
parent 26d04798c5
commit eaaa724d07

View File

@ -108,11 +108,12 @@ public class PayApi extends BaseApi {
} }
/** /**
* 订单查询 * V2订单查询
* *
* @param orderNo * @param orderNo
* 订单号 * 订单号
* @return * @return 订单信息
* @see com.foxinmy.weixin4j.mp.payment.v2.Order
* @throws WeixinException * @throws WeixinException
*/ */
public Order orderQueryV2(String orderNo) throws WeixinException { public Order orderQueryV2(String orderNo) throws WeixinException {
@ -168,7 +169,7 @@ public class PayApi extends BaseApi {
* 用户ID * 用户ID
* @param feedbackId * @param feedbackId
* 维权单号 * 维权单号
* @return * @return 维权处理结果
* @throws WeixinException * @throws WeixinException
*/ */
public JsonResult updateFeedback(String openId, String feedbackId) public JsonResult updateFeedback(String openId, String feedbackId)
@ -186,6 +187,8 @@ public class PayApi extends BaseApi {
* @param idQuery * @param idQuery
* 商户系统内部的订单号, transaction_idout_trade_no 选一,如果同时存在优先级: * 商户系统内部的订单号, transaction_idout_trade_no 选一,如果同时存在优先级:
* transaction_id> out_trade_no * transaction_id> out_trade_no
* @return 订单信息
* @see com.foxinmy.weixin4j.mp.payment.v3.Order
* @throws WeixinException * @throws WeixinException
*/ */
public com.foxinmy.weixin4j.mp.payment.v3.Order orderQueryV3(IdQuery idQuery) public com.foxinmy.weixin4j.mp.payment.v3.Order orderQueryV3(IdQuery idQuery)
@ -223,9 +226,11 @@ public class PayApi extends BaseApi {
* 退款总金额,单位为元,可以做部分退款 * 退款总金额,单位为元,可以做部分退款
* @param opUserId * @param opUserId
* 操作员帐号, 默认为商户号 * 操作员帐号, 默认为商户号
*
* @return 退款申请结果
* @see com.foxinmy.weixin4j.mp.payment.v3.RefundResult
* @throws WeixinException * @throws WeixinException
* @throws IOException * @throws IOException
* @return 退款结果
*/ */
public RefundResult refund(InputStream ca, IdQuery idQuery, public RefundResult refund(InputStream ca, IdQuery idQuery,
String outRefundNo, double totalFee, double refundFee, String outRefundNo, double totalFee, double refundFee,
@ -266,8 +271,6 @@ public class PayApi extends BaseApi {
/** /**
* native支付URL转短链接 * native支付URL转短链接
* *
* @param weixinAccount
* 商户信息
* @param url * @param url
* 具有native标识的支付URL * 具有native标识的支付URL
* @return 转换后的短链接 * @return 转换后的短链接
@ -298,7 +301,7 @@ public class PayApi extends BaseApi {
* *
* @param outTradeNo * @param outTradeNo
* 商户系统内部的订单号 * 商户系统内部的订单号
* @return * @return 处理结果
* @throws WeixinException * @throws WeixinException
*/ */
public XmlResult closeOrder(String outTradeNo) throws WeixinException { public XmlResult closeOrder(String outTradeNo) throws WeixinException {
@ -386,6 +389,7 @@ public class PayApi extends BaseApi {
* 四个参数必填一个,优先级为: * 四个参数必填一个,优先级为:
* refund_id>out_refund_no>transaction_id>out_trade_no * refund_id>out_refund_no>transaction_id>out_trade_no
* @return 退款记录 * @return 退款记录
* @see com.foxinmy.weixin4j.mp.payment.v3.Refund
* @throws WeixinException * @throws WeixinException
*/ */
public Refund refundQuery(IdQuery idQuery) throws WeixinException { public Refund refundQuery(IdQuery idQuery) throws WeixinException {