提现查证
parent
e6d122bf7b
commit
db8a0de0ef
|
|
@ -3,6 +3,8 @@ package com.czcb.scfs.api.service.v1.pay;
|
||||||
import com.czcb.scfs.api.core.ApiClient;
|
import com.czcb.scfs.api.core.ApiClient;
|
||||||
import com.czcb.scfs.api.core.http.HttpHeaders;
|
import com.czcb.scfs.api.core.http.HttpHeaders;
|
||||||
import com.czcb.scfs.api.core.http.HttpResponse;
|
import com.czcb.scfs.api.core.http.HttpResponse;
|
||||||
|
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawCheckRequest;
|
||||||
|
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawCheckResponse;
|
||||||
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawRequest;
|
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawRequest;
|
||||||
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawResponse;
|
import com.czcb.scfs.api.service.v1.pay.model.MerWithdrawResponse;
|
||||||
|
|
||||||
|
|
@ -33,4 +35,18 @@ public class PayService {
|
||||||
HttpResponse<MerWithdrawResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), MerWithdrawResponse.class);
|
HttpResponse<MerWithdrawResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), MerWithdrawResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现查证
|
||||||
|
*
|
||||||
|
* @param request MerWithdrawCheckRequest
|
||||||
|
* @return MerWithdrawCheckResponse
|
||||||
|
*/
|
||||||
|
public MerWithdrawCheckResponse withdrawCheck(MerWithdrawCheckRequest request) {
|
||||||
|
String url = "/merTrade/mer_withdraw_check";
|
||||||
|
HttpHeaders headers = new HttpHeaders();
|
||||||
|
headers.addHeader(API_VERSION, V_1);
|
||||||
|
HttpResponse<MerWithdrawCheckResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), MerWithdrawCheckResponse.class);
|
||||||
|
return httpResponse.getServiceResponse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
package com.czcb.scfs.api.service.v1.pay.model;
|
||||||
|
|
||||||
|
import com.czcb.scfs.api.core.ApiRequest;
|
||||||
|
import com.czcb.scfs.api.service.TransType;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现查证
|
||||||
|
*
|
||||||
|
* @author wangwei
|
||||||
|
* @since 2.0.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TransType("100019")
|
||||||
|
public class MerWithdrawCheckRequest implements ApiRequest {
|
||||||
|
/**
|
||||||
|
* 渠道编号
|
||||||
|
*/
|
||||||
|
@SerializedName("channel_no")
|
||||||
|
private String channelNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应用编号
|
||||||
|
*/
|
||||||
|
@SerializedName("app_no")
|
||||||
|
private String appNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水号
|
||||||
|
*/
|
||||||
|
@SerializedName("serial_no")
|
||||||
|
private String serialNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原交易流水号
|
||||||
|
*/
|
||||||
|
@SerializedName("original_serialno")
|
||||||
|
private String originalSerialNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作日期
|
||||||
|
*/
|
||||||
|
@SerializedName("trans_date")
|
||||||
|
private String transDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作时间
|
||||||
|
*/
|
||||||
|
@SerializedName("trans_tradetime")
|
||||||
|
private String transTradeTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作柜员
|
||||||
|
*/
|
||||||
|
@SerializedName("trans_teller")
|
||||||
|
private String transTeller;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,79 @@
|
||||||
|
package com.czcb.scfs.api.service.v1.pay.model;
|
||||||
|
|
||||||
|
import com.czcb.scfs.api.core.ApiResponse;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现查证
|
||||||
|
*
|
||||||
|
* @author wangwei
|
||||||
|
* @since 2.0.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class MerWithdrawCheckResponse implements ApiResponse {
|
||||||
|
/**
|
||||||
|
* 000000:表示成功
|
||||||
|
*/
|
||||||
|
@SerializedName("recode")
|
||||||
|
private String recode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果信息
|
||||||
|
*/
|
||||||
|
@SerializedName("recode_Info")
|
||||||
|
private String recodeInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水号
|
||||||
|
*/
|
||||||
|
@SerializedName("serial_no")
|
||||||
|
private String serialNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取现状态,0:未知 1:成功 2:失败
|
||||||
|
*/
|
||||||
|
@SerializedName("status")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 失败原因
|
||||||
|
*/
|
||||||
|
@SerializedName("info")
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号
|
||||||
|
*/
|
||||||
|
@SerializedName("account_no")
|
||||||
|
private String accountNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 户名
|
||||||
|
*/
|
||||||
|
@SerializedName("account_name")
|
||||||
|
private String accountName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原交易流水号
|
||||||
|
*/
|
||||||
|
@SerializedName("original_serialno")
|
||||||
|
private String originalSerialNo;
|
||||||
|
/**
|
||||||
|
* 主账号
|
||||||
|
*/
|
||||||
|
@SerializedName("primary_account")
|
||||||
|
private String primaryAccount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统日期(YYYY-MM-DD)
|
||||||
|
*/
|
||||||
|
@SerializedName("sys_date")
|
||||||
|
private String sysDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||||
|
*/
|
||||||
|
@SerializedName("recode_Info")
|
||||||
|
private String sysTime;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue