查询账户交易明细
parent
634a6dc61a
commit
5f5871b3c6
|
|
@ -35,7 +35,7 @@ public class AddPrimAccCompanyRequest implements ApiRequest {
|
|||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 交账号
|
||||
* 账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class AddPrimAccPersonRequest implements ApiRequest {
|
|||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 交账号
|
||||
* 账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import static com.czcb.scfs.api.core.Constants.V_1;
|
|||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @date 2024/3/13
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class BmdService {
|
||||
private final ApiClient apiClient;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
package com.czcb.scfs.api.service.v1.pay;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class PayService {
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.czcb.scfs.api.service.v1.trans;
|
||||
|
||||
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.trans.model.QueryTradeListRequest;
|
||||
import com.czcb.scfs.api.service.v1.trans.model.QueryTradeListResponse;
|
||||
|
||||
import static com.czcb.scfs.api.core.Constants.API_VERSION;
|
||||
import static com.czcb.scfs.api.core.Constants.V_1;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class TransService {
|
||||
private final ApiClient apiClient;
|
||||
|
||||
public TransService(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询账户交易明细
|
||||
*
|
||||
* @param request QueryTradeListRequest
|
||||
* @return QueryTradeListResponse
|
||||
*/
|
||||
public QueryTradeListResponse queryTradeList(QueryTradeListRequest request) {
|
||||
String url = "/tradeDetails/queryTradeList";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<QueryTradeListResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), QueryTradeListResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.czcb.scfs.api.service.v1.trans.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("100005")
|
||||
public class QueryTradeListRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
|
||||
/**
|
||||
* 应用编号
|
||||
*/
|
||||
@SerializedName("app_no")
|
||||
private String appNo;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
|
||||
/**
|
||||
* 操作日期
|
||||
*/
|
||||
@SerializedName("trans_date")
|
||||
private String transDate;
|
||||
|
||||
/**
|
||||
* 操作时间
|
||||
*/
|
||||
@SerializedName("trans_tradetime")
|
||||
private String transTradeTime;
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
package com.czcb.scfs.api.service.v1.trans.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiResponse;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 查询账户交易明细
|
||||
*
|
||||
* @author wangwei
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Data
|
||||
public class QueryTradeListResponse implements ApiResponse {
|
||||
/**
|
||||
* 000000:表示成功
|
||||
*/
|
||||
@SerializedName("recode")
|
||||
private String recode;
|
||||
|
||||
/**
|
||||
* 结果信息
|
||||
*/
|
||||
@SerializedName("recode_Info")
|
||||
private String recodeInfo;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
|
||||
/**
|
||||
* 户名
|
||||
*/
|
||||
@SerializedName("account_name")
|
||||
private String accountName;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
*/
|
||||
@SerializedName("id_type")
|
||||
private String idType;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
*/
|
||||
@SerializedName("id_no")
|
||||
private String idNo;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@SerializedName("mobile")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
*/
|
||||
@SerializedName("cur_balance")
|
||||
private BigDecimal curBalance;
|
||||
|
||||
/**
|
||||
* 可用余额
|
||||
*/
|
||||
@SerializedName("avail_balance")
|
||||
private BigDecimal availBalance;
|
||||
|
||||
/**
|
||||
* 可提取金额
|
||||
*/
|
||||
@SerializedName("withdraw_balance")
|
||||
private BigDecimal withdrawBalance;
|
||||
|
||||
/**
|
||||
* 昨日余额
|
||||
*/
|
||||
@SerializedName("pre_balance")
|
||||
private BigDecimal preBalance;
|
||||
|
||||
@SerializedName("detail_list")
|
||||
private List<DetailList> detailList;
|
||||
|
||||
/**
|
||||
* 系统日期(YYYY-MM-DD)
|
||||
*/
|
||||
@SerializedName("sys_date")
|
||||
private String sysDate;
|
||||
|
||||
/**
|
||||
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||
*/
|
||||
@SerializedName("recode_Info")
|
||||
private String sysTime;
|
||||
|
||||
@Data
|
||||
public static class DetailList {
|
||||
@SerializedName("recode_Info")
|
||||
private String id;
|
||||
|
||||
@SerializedName("account_date")
|
||||
private String accountDate;
|
||||
|
||||
@SerializedName("trade_time")
|
||||
private String tradeTime;
|
||||
|
||||
@SerializedName("detail_type")
|
||||
private String detailType;
|
||||
|
||||
@SerializedName("trans_type")
|
||||
private String transType;
|
||||
|
||||
@SerializedName("original_serialno")
|
||||
private String originalSerialno;
|
||||
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
@SerializedName("trans_amount")
|
||||
private BigDecimal transAmount;
|
||||
|
||||
@SerializedName("total_amount")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
@SerializedName("trans_fee")
|
||||
private BigDecimal transFee;
|
||||
|
||||
@SerializedName("balance")
|
||||
private BigDecimal balance;
|
||||
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
|
||||
@SerializedName("opp_account_no")
|
||||
private String oppAccountNo;
|
||||
|
||||
@SerializedName("opp_account_name")
|
||||
private String oppAccountName;
|
||||
|
||||
@SerializedName("remark")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue