diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/PayService.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/PayService.java index 1bdcc3e..8568cfb 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/PayService.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/PayService.java @@ -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.http.HttpHeaders; 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.MerWithdrawResponse; @@ -33,4 +35,18 @@ public class PayService { HttpResponse httpResponse = apiClient.post(url, headers, request.toJsonRequest(), MerWithdrawResponse.class); 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 httpResponse = apiClient.post(url, headers, request.toJsonRequest(), MerWithdrawCheckResponse.class); + return httpResponse.getServiceResponse(); + } } diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckRequest.java new file mode 100644 index 0000000..9cc9d8a --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckRequest.java @@ -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; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckResponse.java new file mode 100644 index 0000000..baac741 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/pay/model/MerWithdrawCheckResponse.java @@ -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; +}