com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse Java Examples
The following examples show how to use
com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AlipayServiceImpl.java From fast-family-master with Apache License 2.0 | 5 votes |
@Override public AlipayTradeFastpayRefundQueryResponse selectRefund(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException { AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest(); request.setBizModel(model); return alipayClient.execute(request); }
Example #2
Source File: AlipayTradeFastpayRefundQueryRequest.java From alipay-sdk-java-all with Apache License 2.0 | 4 votes |
public Class<AlipayTradeFastpayRefundQueryResponse> getResponseClass() { return AlipayTradeFastpayRefundQueryResponse.class; }
Example #3
Source File: AlipayTradeFastpayRefundQueryRequest.java From alipay-sdk with Apache License 2.0 | 4 votes |
public Class<AlipayTradeFastpayRefundQueryResponse> getResponseClass() { return AlipayTradeFastpayRefundQueryResponse.class; }
Example #4
Source File: PayChannel4AliServiceImpl.java From xxpay-master with MIT License | 4 votes |
@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); }
Example #5
Source File: AlipayTradeFastpayRefundQueryRequest.java From pay with Apache License 2.0 | 4 votes |
public Class<AlipayTradeFastpayRefundQueryResponse> getResponseClass() { return AlipayTradeFastpayRefundQueryResponse.class; }
Example #6
Source File: AlipayService.java From fast-family-master with Apache License 2.0 | 2 votes |
/** * 查询退款 * * @param model * @return * @throws AlipayApiException */ AlipayTradeFastpayRefundQueryResponse selectRefund(AlipayTradeFastpayRefundQueryModel model) throws AlipayApiException;