From 4c9cd1803bc01697bd87bba717dfbec6734a14ed Mon Sep 17 00:00:00 2001 From: wb2476 Date: Tue, 3 Dec 2024 15:43:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E4=B8=87=E9=A1=BA?= =?UTF-8?q?=E8=9E=8D=E8=B5=84=E6=94=AF=E4=BB=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/v2/loan/CreditPayService.java | 61 +++++ .../CreditPayLoanInfoPageQueryRequest.java | 157 +++++++++++ .../CreditPayLoanInfoPageQueryResponse.java | 255 ++++++++++++++++++ .../v2/loan/model/CreditPayLoanRequest.java | 106 ++++++++ .../v2/loan/model/CreditPayLoanResponse.java | 58 ++++ .../CreditPayRepayInfoPageQueryRequest.java | 126 +++++++++ .../CreditPayRepayInfoPageQueryResponse.java | 174 ++++++++++++ .../v2/loan/model/CreditPayRepayRequest.java | 92 +++++++ .../v2/loan/model/CreditPayRepayResponse.java | 46 ++++ 9 files changed, 1075 insertions(+) create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryRequest.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryResponse.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanRequest.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanResponse.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryRequest.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryResponse.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayRequest.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayResponse.java diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/CreditPayService.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/CreditPayService.java index 2b8227c..1321a58 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/CreditPayService.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/CreditPayService.java @@ -1,6 +1,12 @@ package com.czcb.scfs.api.service.v2.loan; 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.v2.loan.model.*; + +import static com.czcb.scfs.api.core.Constants.API_VERSION; +import static com.czcb.scfs.api.core.Constants.V_2; /** * 融资支付管理 @@ -16,4 +22,59 @@ public class CreditPayService { this.apiClient = apiClient; } + /** + * 301907-融资支付贷款提款 + * + * @author H.T + * @since 2024/12/03 + */ + public CreditPayLoanResponse creditPayLoan(CreditPayLoanRequest request) { + String url = "/credit-pay/loan"; + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(API_VERSION, V_2); + HttpResponse httpResponse = apiClient.post(url, headers, request.toJsonRequest(), CreditPayLoanResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 301909-融资支付贷款提款信息分页查询 + * + * @author H.T + * @since 2024/12/03 + */ + public CreditPayLoanInfoPageQueryResponse creditPayLoanQueryPage(CreditPayLoanInfoPageQueryRequest request) { + String url = "/credit-pay/loan/query-page"; + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(API_VERSION, V_2); + HttpResponse httpResponse = apiClient.post(url, headers, request.toJsonRequest(), CreditPayLoanInfoPageQueryResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 302007-融资支付贷款还款 + * + * @author H.T + * @since 2024/12/03 + */ + public CreditPayRepayResponse creditPayRepay(CreditPayRepayRequest request) { + String url = "/credit-pay/repay"; + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(API_VERSION, V_2); + HttpResponse httpResponse = apiClient.post(url, headers, request.toJsonRequest(), CreditPayRepayResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 302008-融资支付贷款还款信息分页查询 + * + * @author H.T + * @since 2024/12/03 + */ + public CreditPayRepayInfoPageQueryResponse creditPayRepayQueryPage(CreditPayRepayInfoPageQueryRequest request) { + String url = "/credit-pay/repay/query-page"; + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(API_VERSION, V_2); + HttpResponse httpResponse = apiClient.post(url, headers, request.toJsonRequest(), CreditPayRepayInfoPageQueryResponse.class); + return httpResponse.getServiceResponse(); + } } diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryRequest.java new file mode 100644 index 0000000..e38079a --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryRequest.java @@ -0,0 +1,157 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.PageApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.ToString; +import lombok.experimental.Accessors; + +/** + * 301909-融资支付贷款提款信息分页查询 + * + * @author H.T + * @since 2024-11-20 + */ +@Data +@Accessors(chain = true) +@TransType("301909") +public class CreditPayLoanInfoPageQueryRequest implements PageApiRequest { + /** + * 渠道编号 + */ + @SerializedName("channel_no") + private String channelNo; + + /** + * 应用编号 + */ + @SerializedName("app_no") + private String appNo; + + /** + * 流水号 + */ + @SerializedName("serial_no") + private String serialNo; + + /** + * 操作日期 + */ + @SerializedName("trans_date") + private String transDate; + + /** + * 操作时间 + */ + @SerializedName("trans_tradetime") + private String transTradeTime; + + /** + * 请求流水号(提款请求流水号) + */ + @SerializedName("req_serial_no") + private String reqSerialNo; + + /** + * 系统流水号(提款系统流水号) + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 项目编号 + */ + @SerializedName("project_no") + private String projectNo; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 收款账号 + */ + @SerializedName("opp_account_no") + private String oppAccountNo; + + /** + * 收款户名 + */ + @SerializedName("opp_account_name") + private String oppAccountName; + + /** + * 受托收款账号 + */ + @SerializedName("st_opp_account_no") + private String stOppAccountNo; + + /** + * 受托收款户名 + */ + @SerializedName("st_opp_account_name") + private String stOppAccountName; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acc_no") + private String loanAccNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; + + /** + * 还款状态: 0、未还款 1、已还款 2、部分还款 + */ + @SerializedName("repay_status") + private String repayStatus; + + /** + * 交易日期-开始 + */ + @SerializedName("trans_date_start") + private String transDateStart; + + /** + * 交易日期-截至 + */ + @SerializedName("trans_date_end") + private String transDateEnd; + + /** + * 交易状态:0-未提款 1-提款成功 2-提款失败 + */ + @SerializedName("trans_status") + private String transStatus; + + /** + * 当前页数 + */ + @SerializedName("current_page") + private Long currentPage; + + /** + * 每页行数 + */ + @SerializedName("current_rows") + private Long currentRows; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryResponse.java new file mode 100644 index 0000000..61c69f0 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanInfoPageQueryResponse.java @@ -0,0 +1,255 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.PageApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +/** + * 301909-融资支付贷款提款信息分页查询 + * + * @author H.T + * @since 2024-12-03 + */ +@Data +@Accessors(chain = true) +public class CreditPayLoanInfoPageQueryResponse implements PageApiResponse { + /** + * 000000:表示成功 + */ + @SerializedName("recode") + private String recode; + + /** + * 结果信息 + */ + @SerializedName("recode_info") + private String recodeInfo; + + /** + * 系统流水号 + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 系统日期(YYYY-MM-DD) + */ + @SerializedName("sys_date") + private String sysDate; + + /** + * 系统时间(YYYY-MM-DD hh:mm:ss) + */ + @SerializedName("sys_time") + private String sysTime; + + /** + * 当前页码 + */ + @SerializedName("current_page") + private Long currentPage; + + /** + * 总页数 + */ + @SerializedName("total_page") + private Long totalPage; + + /** + * 总条数 + */ + @SerializedName("total_rows") + private Long totalRows; + + /** + * 融资支付贷款提款信息List + */ + @SerializedName("data") + private List data; + + /** + * 融资支付贷款提款信息 + */ + @Data + public static class CreditPayLoanInfoPageQueryDTO implements Serializable { + /** + * 请求流水号(提款请求流水号) + */ + @SerializedName("req_serial_no") + private String reqSerialNo; + + /** + * 系统流水号(提款系统流水号) + */ + @SerializedName("data_sys_serial_no") + private String dataSysSerialNo; + + /** + * 项目编号 + */ + @SerializedName("project_no") + private String projectNo; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 提款金额 + */ + @SerializedName("apply_loan_amount") + private BigDecimal applyLoanAmount; + + /** + * 收款账号 + */ + @SerializedName("opp_account_no") + private String oppAccountNo; + + /** + * 收款户名 + */ + @SerializedName("opp_account_name") + private String oppAccountName; + + /** + * 受托收款账号 + */ + @SerializedName("st_opp_account_no") + private String stOppAccountNo; + + /** + * 受托收款户名 + */ + @SerializedName("st_opp_account_name") + private String stOppAccountName; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acc_no") + private String loanAccNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; + + /** + * 放款金额:为实际放款金额,等于=提款金额*融资比例 + */ + @SerializedName("loan_amount") + private BigDecimal loanAmount; + + /** + * 放款比例 + */ + @SerializedName("loan_ratio") + private BigDecimal loanRatio; + + /** + * 借据到期日期 + */ + @SerializedName("loan_deal_end_date") + private Date loanDealEndDate; + + /** + * 还款状态: 0、未还款 1、已还款 2、部分还款 + */ + @SerializedName("repay_status") + private String repayStatus; + + /** + * 累计还款金额 + */ + @SerializedName("repay_amount_total") + private BigDecimal repayAmountTotal; + + /** + * 累计还款本金 + */ + @SerializedName("repay_amount_bj_total") + private BigDecimal repayAmountBjTotal; + + /** + * 累计还款利息 + */ + @SerializedName("repay_amount_lx_total") + private BigDecimal repayAmountLxTotal; + + /** + * 最后一次还款金额 + */ + @SerializedName("last_repay_amount") + private BigDecimal lastRepayAmount; + + /** + * 最后一次还款本金 + */ + @SerializedName("last_repay_amount_bj") + private BigDecimal lastRepayAmountBj; + + /** + * 最后一次还款利息 + */ + @SerializedName("last_repay_amount_lx") + private BigDecimal lastRepayAmountLx; + + /** + * 最后一次还款时间yyyy-MM-dd hh:mm:ss + */ + @SerializedName("last_repay_time") + private Date lastRepayTime; + + /** + * 交易日期 + */ + @SerializedName("trans_date") + private Date transDate; + + /** + * 交易时间 + */ + @SerializedName("trans_time") + private Date transTime; + + /** + * 交易状态 0-未提款 1-提款成功 2-提款失败 + */ + @SerializedName("trans_status") + private String transStatus; + + /** + * 交易结果 + */ + @SerializedName("trans_result") + private String transResult; + + /** + * 摘要 + */ + @SerializedName("remark") + private String remark; + } +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanRequest.java new file mode 100644 index 0000000..2bfbb59 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanRequest.java @@ -0,0 +1,106 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.czcb.scfs.api.service.v2.file.model.FileMaterial; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; +import java.util.List; + +/** + * 301907-融资支付贷款提款 + * + * @author H.T + * @since 2024-11-20 + */ +@Data +@Accessors(chain = true) +@TransType("301907") +public class CreditPayLoanRequest implements ApiRequest { + /** + * 渠道编号 + */ + @SerializedName("channel_no") + private String channelNo; + + /** + * 应用编号 + */ + @SerializedName("app_no") + private String appNo; + + /** + * 流水号 + */ + @SerializedName("serial_no") + private String serialNo; + + /** + * 操作日期 + */ + @SerializedName("trans_date") + private String transDate; + + /** + * 操作时间 + */ + @SerializedName("trans_tradetime") + private String transTradeTime; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 融资支付交易金额 + */ + @SerializedName("trans_amount") + private BigDecimal transAmount; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 验证码 + */ + @SerializedName("verify_code") + private String verifyCode; + + /** + * 受托收款账号 + */ + @SerializedName("st_opp_account_no") + private String stOppAccountNo; + + /** + * 受托收款户名 + */ + @SerializedName("st_opp_account_name") + private String stOppAccountName; + + /** + * 借款期限 + */ + @SerializedName("period") + private String period; + + /** + * 放款资料 + */ + @SerializedName("file_list") + private List fileList; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanResponse.java new file mode 100644 index 0000000..b6de798 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayLoanResponse.java @@ -0,0 +1,58 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 302007-融资支付贷款还款 + * + * @author H.T + * @since 2024-11-20 + */ +@Data +@Accessors(chain = true) +public class CreditPayLoanResponse implements ApiResponse { + /** + * 000000:表示成功 + */ + @SerializedName("recode") + private String recode; + + /** + * 结果信息 + */ + @SerializedName("recode_info") + private String recodeInfo; + + /** + * 系统流水号 + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 系统日期(YYYY-MM-DD) + */ + @SerializedName("sys_date") + private String sysDate; + + /** + * 系统时间(YYYY-MM-DD hh:mm:ss) + */ + @SerializedName("sys_time") + private String sysTime; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acct_no") + private String loanAcctNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryRequest.java new file mode 100644 index 0000000..9211d2a --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryRequest.java @@ -0,0 +1,126 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.PageApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 302008-融资支付贷款还款信息分页查询 + * + * @author H.T + * @since 2024-12-03 + */ +@Data +@Accessors(chain = true) +@TransType("302008") +public class CreditPayRepayInfoPageQueryRequest implements PageApiRequest { + /** + * 渠道编号 + */ + @SerializedName("channel_no") + private String channelNo; + + /** + * 应用编号 + */ + @SerializedName("app_no") + private String appNo; + + /** + * 流水号 + */ + @SerializedName("serial_no") + private String serialNo; + + /** + * 操作日期 + */ + @SerializedName("trans_date") + private String transDate; + + /** + * 操作时间 + */ + @SerializedName("trans_tradetime") + private String transTradeTime; + + /** + * 请求流水号(提款请求流水号) + */ + @SerializedName("req_serial_no") + private String reqSerialNo; + + /** + * 系统流水号(提款系统流水号) + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 还款方式 0、部分还款 1、全部还款 + */ + @SerializedName("repay_way") + private String repayWay; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acc_no") + private String loanAccNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; + + /** + * 交易日期-开始 + */ + @SerializedName("trans_date_start") + private String transDateStart; + + /** + * 交易日期-截至 + */ + @SerializedName("trans_date_end") + private String transDateEnd; + + /** + * 交易状态:0-未还款 1-已全部还款 2-部分还款 + */ + @SerializedName("trans_status") + private String transStatus; + + /** + * 当前页数 + */ + @SerializedName("current_page") + private Long currentPage; + + /** + * 每页行数 + */ + @SerializedName("current_rows") + private Long currentRows; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryResponse.java new file mode 100644 index 0000000..0e3f37f --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayInfoPageQueryResponse.java @@ -0,0 +1,174 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.PageApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +/** + * 302008-融资支付贷款还款信息分页查询 + * + * @author H.T + * @since 2024-12-03 + */ +@Data +@Accessors(chain = true) +public class CreditPayRepayInfoPageQueryResponse implements PageApiResponse { + /** + * 000000:表示成功 + */ + @SerializedName("recode") + private String recode; + + /** + * 结果信息 + */ + @SerializedName("recode_info") + private String recodeInfo; + + /** + * 系统流水号 + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 系统日期(YYYY-MM-DD) + */ + @SerializedName("sys_date") + private String sysDate; + + /** + * 系统时间(YYYY-MM-DD hh:mm:ss) + */ + @SerializedName("sys_time") + private String sysTime; + + /** + * 当前页码 + */ + @SerializedName("current_page") + private Long currentPage; + + /** + * 总页数 + */ + @SerializedName("total_page") + private Long totalPage; + + /** + * 总条数 + */ + @SerializedName("total_rows") + private Long totalRows; + + /** + * 融资支付贷款还款信息List + */ + @SerializedName("data") + private List data; + + @Data + public static class CreditPayRepayInfoPageQueryDTO implements Serializable { + /** + * 请求流水号(提款请求流水号) + */ + @SerializedName("req_serial_no") + private String reqSerialNo; + + /** + * 系统流水号(提款系统流水号) + */ + @SerializedName("data_sys_serial_no") + private String dataSysSerialNo; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 还款金额 + */ + @SerializedName("repay_amount") + private BigDecimal repayAmount; + + /** + * 还款方式 0、部分还款 1、全部还款 + */ + @SerializedName("repay_way") + private String repayWay; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acc_no") + private String loanAccNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; + + /** + * 本次还款本金 + */ + @SerializedName("repay_amount_bj") + private BigDecimal repayAmountBj; + + /** + * 本次还款利息 + */ + @SerializedName("repay_amount_lx") + private BigDecimal repayAmountLx; + + /** + * 交易日期 + */ + @SerializedName("trans_date") + private Date transDate; + + /** + * 交易时间 + */ + @SerializedName("trans_time") + private Date transTime; + + /** + * 交易状态 + */ + @SerializedName("trans_status") + private String transStatus; + + /** + * 交易结果 + */ + @SerializedName("trans_result") + private String transResult; + + /** + * 摘要 + */ + @SerializedName("remark") + private String remark; + } +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayRequest.java new file mode 100644 index 0000000..917c5ff --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayRequest.java @@ -0,0 +1,92 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; + +/** + * 302007-融资支付贷款还款 + * + * @author H.T + * @since 2024-12-03 + */ +@Data +@Accessors(chain = true) +@TransType("302007") +public class CreditPayRepayRequest implements ApiRequest { + /** + * 渠道编号 + */ + @SerializedName("channel_no") + private String channelNo; + + /** + * 应用编号 + */ + @SerializedName("app_no") + private String appNo; + + /** + * 流水号 + */ + @SerializedName("serial_no") + private String serialNo; + + /** + * 操作日期 + */ + @SerializedName("trans_date") + private String transDate; + + /** + * 操作时间 + */ + @SerializedName("trans_tradetime") + private String transTradeTime; + + /** + * 贷款申请人账号 + */ + @SerializedName("apply_account_no") + private String applyAccountNo; + + /** + * 贷款申请人户名 + */ + @SerializedName("apply_account_name") + private String applyAccountName; + + /** + * 融资支付交易金额 + */ + @SerializedName("trans_amount") + private BigDecimal transAmount; + + /** + * 贷款合同编号 + */ + @SerializedName("contract_no") + private String contractNo; + + /** + * 验证码 + */ + @SerializedName("verify_code") + private String verifyCode; + + /** + * 贷款账号(借据编号) + */ + @SerializedName("loan_acct_no") + private String loanAcctNo; + + /** + * 贷款账号序号 + */ + @SerializedName("loan_acc_seq_no") + private String loanAccSeqNo; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayResponse.java new file mode 100644 index 0000000..37fc27d --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/loan/model/CreditPayRepayResponse.java @@ -0,0 +1,46 @@ +package com.czcb.scfs.api.service.v2.loan.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 302007-融资支付贷款还款 + * + * @author H.T + * @since 2024-12-03 + */ +@Data +@Accessors(chain = true) +public class CreditPayRepayResponse implements ApiResponse { + /** + * 000000:表示成功 + */ + @SerializedName("recode") + private String recode; + + /** + * 结果信息 + */ + @SerializedName("recode_info") + private String recodeInfo; + + /** + * 系统流水号 + */ + @SerializedName("sys_serial_no") + private String sysSerialNo; + + /** + * 系统日期(YYYY-MM-DD) + */ + @SerializedName("sys_date") + private String sysDate; + + /** + * 系统时间(YYYY-MM-DD hh:mm:ss) + */ + @SerializedName("sys_time") + private String sysTime; +}