贷款还款信息查询v2

main
13009 2024-03-20 13:54:26 +08:00
parent f3b319173a
commit f814a2faf1
11 changed files with 270 additions and 2 deletions

View File

@ -75,6 +75,20 @@ public class LoanService {
return httpResponse.getServiceResponse();
}
/**
* v2
*
* @param applyQueryV2Request ApplyQueryV2Request
* @return ApplyQueryV2Response
*/
public ApplyQueryV2Response repayQueryV2(ApplyQueryV2Request applyQueryV2Request) {
String url = "/loanapi/v2/repayquery";
HttpHeaders headers = new HttpHeaders();
headers.addHeader(API_VERSION, V_1);
HttpResponse<ApplyQueryV2Response> httpResponse = apiClient.post(url, headers, applyQueryV2Request.toJsonRequest(), ApplyQueryV2Response.class);
return httpResponse.getServiceResponse();
}
/**
*
*

View File

@ -11,7 +11,7 @@ import java.math.BigDecimal;
import java.util.List;
/**
*
*
*
* @author wangwei
* @since 2.0.0

View File

@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
*
*
*
* @author wangwei
* @since 2.0.0

View File

@ -9,6 +9,8 @@ import java.math.BigDecimal;
import java.util.List;
/**
*
*
* @author wangwei
* @since 2.0.0
*/

View File

@ -0,0 +1,92 @@
package com.czcb.scfs.api.service.v1.loan.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;
import java.math.BigDecimal;
/**
* V2
*
* @author wangwei
* @since 2.0.0
*/
@Data
@Accessors(chain = true)
@TransType("102002")
public class ApplyQueryV2Request implements ApiRequest {
/**
*
*/
@SerializedName("channel_no")
private String channelNo;
/**
*
*/
@SerializedName("app_no")
private String appNo;
/**
*
*/
@SerializedName("serial_no")
private String serialNo;
/**
* A1
*/
@SerializedName("account_no")
private String accountNo;
/**
* A1
*/
@SerializedName("account_name")
private String accountName;
/**
* 0 123
*/
@SerializedName("qrymd")
private String qrymd;
/**
*
*/
@SerializedName("loanaccno")
private String loanaccno;
/**
*
*/
@SerializedName("acctseqno")
private String acctseqno;
/**
*
*/
@SerializedName("repymtdt")
private String repymtdt;
/**
*
*/
@SerializedName("elyrepymtamt")
private BigDecimal elyrepymtamt;
/**
*
*/
@SerializedName("trans_date")
private String transDate;
/**
*
*/
@SerializedName("trans_tradetime")
private String transTradeTime;
}

View File

@ -0,0 +1,150 @@
package com.czcb.scfs.api.service.v1.loan.model;
import com.czcb.scfs.api.core.ApiResponse;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
/**
* V2
*
* @author wangwei
* @since 200
*/
@Data
public class ApplyQueryV2Response implements ApiResponse {
/**
* 000000
*/
@SerializedName("recode")
private String recode;
/**
*
*/
@SerializedName("recode_Info")
private String recodeInfo;
@SerializedName("recode_list")
private List<RecodeList> recodeList;
/**
* YYYY-MM-DD
*/
@SerializedName("sys_date")
private String sysDate;
/**
* YYYY-MM-DD hh:mm:ss
*/
@SerializedName("sys_time")
private String sysTime;
@Data
public static class RecodeList implements Serializable {
/**
* 01234567
*/
@SerializedName("loanst")
private String loanst;
/**
* 0 1 2 3 4 5
*/
@SerializedName("loantp1")
private String loantp1;
/**
*
*/
@SerializedName("dstrbtintrate")
private BigDecimal dstrbtintrate;
/**
*
*/
@SerializedName("lndngdt")
private String lndngdt;
/**
* 1 2 3 4 5 6 7
*/
@SerializedName("repymtmd")
private String repymtmd;
/**
*
*/
@SerializedName("ctrtrm")
private String ctrtrm;
/**
*
*/
@SerializedName("drwpnp")
private BigDecimal drwpnp;
/**
*
*/
@SerializedName("loanexprddt")
private String loanexprddt;
/**
*
*/
@SerializedName("intamt")
private BigDecimal intamt;
/**
*
*/
@SerializedName("actintamt")
private BigDecimal actintamt;
/**
*
*/
@SerializedName("adlint")
private BigDecimal adlint;
/**
*
*/
@SerializedName("ddcint")
private BigDecimal ddcint;
/**
*
*/
@SerializedName("netint")
private BigDecimal netint;
/**
*
*/
@SerializedName("exprtnint")
private BigDecimal exprtnint;
/**
*
*/
@SerializedName("rpybl0dueint")
private BigDecimal rpybl0dueint;
/**
*
*/
@SerializedName("actrepymtpnpamt")
private BigDecimal actrepymtpnpamt;
/**
*
*/
@SerializedName("acmclctintamt")
private BigDecimal acmclctintamt;
}
}

View File

@ -7,6 +7,8 @@ import lombok.Data;
import lombok.experimental.Accessors;
/**
*
*
* @author wangwei
* @since 2.0.0
*/

View File

@ -9,6 +9,8 @@ import java.math.BigDecimal;
import java.util.List;
/**
*
*
* @author wangwei
* @since 2.0.0
*/

View File

@ -7,6 +7,8 @@ import lombok.Data;
import lombok.experimental.Accessors;
/**
*
*
* @author wangwei
* @since 2.0.0
*/

View File

@ -5,6 +5,8 @@ import com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
*
*
* @author wangwei
* @since 2.0.0
*/

View File

@ -8,6 +8,8 @@ import java.io.Serializable;
import java.util.List;
/**
*
*
* @author wangwei
* @since 2.0.0
*/