|
|
|
|
|
|
|
|
import cn.com.taiji.core.entity.dict.pay.RefundChannel; |
|
|
import cn.com.taiji.core.entity.dict.pay.RefundChannel; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Request; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Request; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Response; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Response; |
|
|
|
|
|
import cn.com.taiji.core.model.comm.protocol.valid.GlyServiceError; |
|
|
import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryRequest; |
|
|
import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryRequest; |
|
|
import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryResult; |
|
|
import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryResult; |
|
|
import com.github.binarywang.wxpay.config.WxPayConfig; |
|
|
import com.github.binarywang.wxpay.config.WxPayConfig; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
result = wxPayService.refundQuery(request); |
|
|
result = wxPayService.refundQuery(request); |
|
|
} catch (WxPayException e) { |
|
|
} catch (WxPayException e) { |
|
|
throw new RuntimeException(e); |
|
|
|
|
|
|
|
|
logger.error("微信退款V2查询失败:{}", e.getMessage()); |
|
|
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException(e.getMessage()); |
|
|
} |
|
|
} |
|
|
//处理响应 |
|
|
//处理响应 |
|
|
AtsQueryRefundV2Response response = copyProperties(result,new AtsQueryRefundV2Response()); |
|
|
AtsQueryRefundV2Response response = copyProperties(result,new AtsQueryRefundV2Response()); |