com.alipay.api.response.AlipayFundTransOrderQueryResponse Java Examples
The following examples show how to use
com.alipay.api.response.AlipayFundTransOrderQueryResponse.
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: AlipayTransferQueryResult.java From anyline with Apache License 2.0 | 6 votes |
public AlipayTransferQueryResult(AlipayFundTransOrderQueryResponse res){ response = res; setSuccess(res.isSuccess()); setCode(res.getCode()); setSub_code(res.getSubCode()); setMsg(res.getMsg()); setSub_msg(res.getSubMsg()); setStatus(res.getStatus()); setOrder_id(res.getOrderId()); setOut_biz_no(res.getOutBizNo()); setPay_date(res.getPayDate()); setArrival_time_end(res.getArrivalTimeEnd()); setOrder_fee(res.getOrderFee()); setFail_reason(res.getFailReason()); setError_code(res.getErrorCode()); }
Example #2
Source File: AlipayUtil.java From anyline with Apache License 2.0 | 6 votes |
/** * 单笔转账到支付宝账户 结果查询 * @param query 查询参数 * @return return */ public AlipayTransferQueryResult transferQuery(AlipayTransferQuery query) { AlipayTransferQueryResult result = null; AlipayFundTransOrderQueryRequest request = new AlipayFundTransOrderQueryRequest(); String json = BeanUtil.object2json(query); request.setBizContent(json); try { AlipayFundTransOrderQueryResponse res = client.execute(request); result = new AlipayTransferQueryResult(res); } catch (AlipayApiException e) { result = new AlipayTransferQueryResult(); e.printStackTrace(); }finally{ log.warn("[单笔转账到支付宝账户查询][data:{}][result:{}]", json,BeanUtil.object2json(result)); } return result; }
Example #3
Source File: AlipayTransferQueryResult.java From anyline with Apache License 2.0 | 4 votes |
public AlipayFundTransOrderQueryResponse getResponse() { return response; }
Example #4
Source File: AlipayTransferQueryResult.java From anyline with Apache License 2.0 | 4 votes |
public void setResponse(AlipayFundTransOrderQueryResponse response) { this.response = response; }
Example #5
Source File: AlipayFundTransOrderQueryRequest.java From alipay-sdk-java-all with Apache License 2.0 | 4 votes |
public Class<AlipayFundTransOrderQueryResponse> getResponseClass() { return AlipayFundTransOrderQueryResponse.class; }
Example #6
Source File: AlipayFundTransOrderQueryRequest.java From alipay-sdk with Apache License 2.0 | 4 votes |
public Class<AlipayFundTransOrderQueryResponse> getResponseClass() { return AlipayFundTransOrderQueryResponse.class; }
Example #7
Source File: PayChannel4AliServiceImpl.java From xxpay-master with MIT License | 4 votes |
@Override public Map getAliTransReq(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 transOrderObj = baseParam.isNullValue("transOrder") ? null : JSONObject.parseObject(bizParamMap.get("transOrder").toString()); TransOrder transOrder = JSON.toJavaObject(transOrderObj, TransOrder.class); if (ObjectValidUtil.isInvalid(transOrder)) { _log.warn("{}失败, {}. jsonParam={}", logPrefix, RetEnum.RET_PARAM_INVALID.getMessage(), jsonParam); return RpcUtil.createFailResult(baseParam, RetEnum.RET_PARAM_INVALID); } String transOrderId = transOrder.getTransOrderId(); String mchId = transOrder.getMchId(); String channelId = transOrder.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); AlipayFundTransOrderQueryRequest request = new AlipayFundTransOrderQueryRequest(); AlipayFundTransOrderQueryModel model = new AlipayFundTransOrderQueryModel(); model.setOutBizNo(transOrderId); model.setOrderId(transOrder.getChannelOrderNo()); request.setBizModel(model); Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null); map.put("transOrderId", transOrderId); try { AlipayFundTransOrderQueryResponse 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 #8
Source File: AlipayFundTransOrderQueryRequest.java From pay with Apache License 2.0 | 4 votes |
public Class<AlipayFundTransOrderQueryResponse> getResponseClass() { return AlipayFundTransOrderQueryResponse.class; }