绑定账号设定
parent
57efb33a00
commit
297157a9ec
|
|
@ -76,16 +76,30 @@ public class AccountService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定账号新增
|
* 绑定账号新增-个人
|
||||||
*
|
*
|
||||||
* @param request AddPrimAccRequest
|
* @param request AddPrimAccRequest
|
||||||
* @return AddPrimAccResponse
|
* @return AddPrimAccResponse
|
||||||
*/
|
*/
|
||||||
public AddPrimAccResponse addPrimAcc(AddPrimAccRequest request) {
|
public AddPrimAccPersonResponse addPrimAccPerson(AddPrimAccPersonRequest request) {
|
||||||
String url = "/accInfo/addPrimAcc";
|
String url = "/accInfo/addPrimAcc";
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.addHeader(API_VERSION, V_1);
|
headers.addHeader(API_VERSION, V_1);
|
||||||
HttpResponse<AddPrimAccResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), AddPrimAccResponse.class);
|
HttpResponse<AddPrimAccPersonResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), AddPrimAccPersonResponse.class);
|
||||||
|
return httpResponse.getServiceResponse();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 绑定账号新增-企业
|
||||||
|
*
|
||||||
|
* @param request AddPrimAccRequest
|
||||||
|
* @return AddPrimAccResponse
|
||||||
|
*/
|
||||||
|
public AddPrimAccPersonResponse addPrimAccCompany(AddPrimAccPersonRequest request) {
|
||||||
|
String url = "/accInfo/addPrimAcc";
|
||||||
|
HttpHeaders headers = new HttpHeaders();
|
||||||
|
headers.addHeader(API_VERSION, V_1);
|
||||||
|
HttpResponse<AddPrimAccPersonResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), AddPrimAccPersonResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,114 @@
|
||||||
|
package com.czcb.scfs.api.service.v1.account.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("100014")
|
||||||
|
public class AddPrimAccCompanyRequest 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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号性质; 2:企业
|
||||||
|
*/
|
||||||
|
@SerializedName("account_property")
|
||||||
|
private String accountProperty = "2";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 证件类型
|
||||||
|
*/
|
||||||
|
@SerializedName("id_type")
|
||||||
|
private String idType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 证件号码
|
||||||
|
*/
|
||||||
|
@SerializedName("id_no")
|
||||||
|
private String idNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号
|
||||||
|
*/
|
||||||
|
@SerializedName("mobile")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易码=功能号(trans_type)
|
||||||
|
*/
|
||||||
|
@SerializedName("trade_no")
|
||||||
|
private String tradeNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证码;短信验证码
|
||||||
|
*/
|
||||||
|
@SerializedName("verify_code")
|
||||||
|
private String verifyCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行卡号
|
||||||
|
*/
|
||||||
|
@SerializedName("primary_account")
|
||||||
|
private String primaryAccount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开户行号;企业户必输
|
||||||
|
*/
|
||||||
|
@SerializedName("bank_no")
|
||||||
|
private String bankNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开户行名称;企业户必输
|
||||||
|
*/
|
||||||
|
@SerializedName("bank_name")
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设为默认;0:否 1:是
|
||||||
|
*/
|
||||||
|
@SerializedName("set_default")
|
||||||
|
private String setDefault;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作日期
|
||||||
|
*/
|
||||||
|
@SerializedName("trans_date")
|
||||||
|
private String transDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作时间
|
||||||
|
*/
|
||||||
|
@SerializedName("trans_tradetime")
|
||||||
|
private String transTradeTime;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
package com.czcb.scfs.api.service.v1.account.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 AddPrimAccCompanyResponse implements ApiResponse {
|
||||||
|
/**
|
||||||
|
* 000000:表示成功
|
||||||
|
*/
|
||||||
|
@SerializedName("recode")
|
||||||
|
private String recode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果信息
|
||||||
|
*/
|
||||||
|
@SerializedName("recode_Info")
|
||||||
|
private String recodeInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统日期(YYYY-MM-DD)
|
||||||
|
*/
|
||||||
|
@SerializedName("sys_date")
|
||||||
|
private String sysDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||||
|
*/
|
||||||
|
@SerializedName("recode_Info")
|
||||||
|
private String sysTime;
|
||||||
|
}
|
||||||
|
|
@ -15,7 +15,7 @@ import lombok.experimental.Accessors;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TransType("100014")
|
@TransType("100014")
|
||||||
public class AddPrimAccRequest implements ApiRequest {
|
public class AddPrimAccPersonRequest implements ApiRequest {
|
||||||
/**
|
/**
|
||||||
* 渠道编号
|
* 渠道编号
|
||||||
*/
|
*/
|
||||||
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class AddPrimAccResponse implements ApiResponse {
|
public class AddPrimAccPersonResponse implements ApiResponse {
|
||||||
/**
|
/**
|
||||||
* 000000:表示成功
|
* 000000:表示成功
|
||||||
*/
|
*/
|
||||||
Loading…
Reference in New Issue