本文整理汇总了Java中com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse类的典型用法代码示例。如果您正苦于以下问题:Java AlipayTradeFastpayRefundQueryResponse类的具体用法?Java AlipayTradeFastpayRefundQueryResponse怎么用?Java AlipayTradeFastpayRefundQueryResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlipayTradeFastpayRefundQueryResponse类属于com.alipay.api.response包,在下文中一共展示了AlipayTradeFastpayRefundQueryResponse类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: tradeRefundQueryToResponse
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
public static AlipayTradeFastpayRefundQueryResponse tradeRefundQueryToResponse(
AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException {
AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();
request.setBizModel(model);
return AliPayConfig.build().getAlipayClient().execute(request);
}
示例2: tradeRefundQueryToResponse
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
public static AlipayTradeFastpayRefundQueryResponse tradeRefundQueryToResponse(
AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException {
AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();
request.setBizModel(model);
return AliPayConfig.build().getAlipayClient().execute(request);
}
示例3: getResponseClass
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
public Class<AlipayTradeFastpayRefundQueryResponse> getResponseClass() {
return AlipayTradeFastpayRefundQueryResponse.class;
}
示例4: getAliRefundReq
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
@Override
public Map getAliRefundReq(String jsonParam) {
String logPrefix = "【支付宝退款查询】";
BaseParam baseParam = JsonUtil.getObjectFromJson(jsonParam, BaseParam.class);
Map<String, Object> bizParamMap = baseParam.getBizParamMap();
if (ObjectValidUtil.isInvalid(bizParamMap)) {
_log.warn("{}失败, {}. jsonParam={}", logPrefix, RetEnum.RET_PARAM_NOT_FOUND.getMessage(), jsonParam);
return RpcUtil.createFailResult(baseParam, RetEnum.RET_PARAM_NOT_FOUND);
}
JSONObject refundOrderObj = baseParam.isNullValue("refundOrder") ? null : JSONObject.parseObject(bizParamMap.get("refundOrder").toString());
RefundOrder refundOrder = JSON.toJavaObject(refundOrderObj, RefundOrder.class);
if (ObjectValidUtil.isInvalid(refundOrder)) {
_log.warn("{}失败, {}. jsonParam={}", logPrefix, RetEnum.RET_PARAM_INVALID.getMessage(), jsonParam);
return RpcUtil.createFailResult(baseParam, RetEnum.RET_PARAM_INVALID);
}
String refundOrderId = refundOrder.getRefundOrderId();
String mchId = refundOrder.getMchId();
String channelId = refundOrder.getChannelId();
PayChannel payChannel = baseService4PayOrder.baseSelectPayChannel(mchId, channelId);
alipayConfig.init(payChannel.getParam());
AlipayClient client = new DefaultAlipayClient(alipayConfig.getUrl(), alipayConfig.getApp_id(), alipayConfig.getRsa_private_key(), AlipayConfig.FORMAT, AlipayConfig.CHARSET, alipayConfig.getAlipay_public_key(), AlipayConfig.SIGNTYPE);
AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();
AlipayTradeFastpayRefundQueryModel model = new AlipayTradeFastpayRefundQueryModel();
model.setOutTradeNo(refundOrder.getPayOrderId());
model.setTradeNo(refundOrder.getChannelPayOrderNo());
model.setOutRequestNo(refundOrderId);
request.setBizModel(model);
Map<String, Object> map = new HashMap<>();
map.put("refundOrderId", refundOrderId);
try {
AlipayTradeFastpayRefundQueryResponse response = client.execute(request);
if(response.isSuccess()){
map.putAll((Map) JSON.toJSON(response));
map.put("isSuccess", true);
}else {
_log.info("{}返回失败", logPrefix);
_log.info("sub_code:{},sub_msg:{}", response.getSubCode(), response.getSubMsg());
map.put("channelErrCode", response.getSubCode());
map.put("channelErrMsg", response.getSubMsg());
}
} catch (AlipayApiException e) {
_log.error(e, "");
}
return RpcUtil.createBizResult(baseParam, map);
}
示例5: tradeRefundQuery
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
/**
* 退款查询
* https://doc.open.alipay.com/docs/api.htm?spm=a219a.7629065.0.0.KQeTSa&apiId=1049&docType=4
* @param model
* @return {String}
* @throws {AlipayApiException}
*/
public static String tradeRefundQuery(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException{
AlipayTradeFastpayRefundQueryResponse response = tradeRefundQueryToResponse(model);
return response.getBody();
}
示例6: tradeRefundQueryToResponse
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
/**
* 退款查询
* @param model
* @return {AlipayTradeFastpayRefundQueryResponse}
* @throws {AlipayApiException}
*/
public static AlipayTradeFastpayRefundQueryResponse tradeRefundQueryToResponse(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException{
AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();
request.setBizModel(model);
return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
}
示例7: tradeRefundQuery
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
/**
* 退款查询
*
* @param model
* @return
* @throws AlipayApiException
*/
public static String tradeRefundQuery(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException {
AlipayTradeFastpayRefundQueryResponse response = tradeRefundQueryToResponse(model);
return response.getBody();
}
示例8: tradeRefundQuery
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
/**
* 退款查询
* https://doc.open.alipay.com/docs/api.htm?spm=a219a.7629065.0.0.KQeTSa&apiId=1049&docType=4
*
* @param model
* @return
* @throws AlipayApiException
*/
public static String tradeRefundQuery(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException {
AlipayTradeFastpayRefundQueryResponse response = tradeRefundQueryToResponse(model);
return response.getBody();
}