本文整理汇总了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);
}
开发者ID:iBase4J,项目名称:iBase4J-Common,代码行数:7,代码来源:AliPay.java
示例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);
}
开发者ID:guokezheng,项目名称:automat,代码行数:7,代码来源:AliPay.java
示例3: getResponseClass
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; //导入依赖的package包/类
public Class<AlipayTradeFastpayRefundQueryResponse> getResponseClass() {
return AlipayTradeFastpayRefundQueryResponse.class;
}
开发者ID:wendal,项目名称:alipay-sdk,代码行数:4,代码来源:AlipayTradeFastpayRefundQueryRequest.java
示例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);
}
开发者ID:jmdhappy,项目名称:xxpay-master,代码行数:46,代码来源:PayChannel4AliServiceImpl.java
示例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();
}
开发者ID:Javen205,项目名称:IJPay,代码行数:12,代码来源:AliPayApi.java
示例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);
}
开发者ID:Javen205,项目名称:IJPay,代码行数:12,代码来源:AliPayApi.java
示例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();
}
开发者ID:iBase4J,项目名称:iBase4J-Common,代码行数:12,代码来源:AliPay.java
示例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();
}
开发者ID:guokezheng,项目名称:automat,代码行数:13,代码来源:AliPay.java
注:本文中的com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论