com.dingtalk.api.request.OapiFinanceFaceVerificationUpdateRequest Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.TaobaoUtils;
import com.dingtalk.api.response.OapiFinanceFaceVerificationUpdateResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.finance.faceVerification.update request
*
* @author top auto create
* @since 1.0, 2021.01.26
*/
public class OapiFinanceFaceVerificationUpdateRequest extends BaseTaobaoRequest {
/**
* 人脸识别业务编码,初始化返回值中获取
*/
private String businessId;
/**
* 错误原因,jsapi调用返回错误原因
*/
private String failReason;
/**
* 身份证号
*/
private String idCardNo;
/**
* 人脸识别请求编码,初始化返回值中获取
*/
private String requestCode;
/**
* 错误码,jsapi调用返回错误码
*/
private String resultCode;
/**
* 手机号
*/
private String userMobile;
/**
* 校验结果
*/
private String verifyResult;
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getBusinessId() {
return this.businessId;
}
public void setFailReason(String failReason) {
this.failReason = failReason;
}
public String getFailReason() {
return this.failReason;
}
public void setIdCardNo(String idCardNo) {
this.idCardNo = idCardNo;
}
public String getIdCardNo() {
return this.idCardNo;
}
public void setRequestCode(String requestCode) {
this.requestCode = requestCode;
}
public String getRequestCode() {
return this.requestCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
public String getResultCode() {
return this.resultCode;
}
public void setUserMobile(String userMobile) {
this.userMobile = userMobile;
}
public String getUserMobile() {
return this.userMobile;
}
public void setVerifyResult(String verifyResult) {
this.verifyResult = verifyResult;
}
public String getVerifyResult() {
return this.verifyResult;
}
public String getApiMethodName() {
return "dingtalk.oapi.finance.faceVerification.update";
}
private String topResponseType = Constants.RESPONSE_TYPE_DINGTALK_OAPI;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_OAPI;
}
private String topHttpMethod = DingTalkConstants.HTTP_METHOD_POST;
public String getTopHttpMethod() {
return this.topHttpMethod;
}
public void setTopHttpMethod(String topHttpMethod) {
this.topHttpMethod = topHttpMethod;
}
public void setHttpMethod(String httpMethod) {
this.setTopHttpMethod(httpMethod);
}
public Map getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("business_id", this.businessId);
txtParams.put("fail_reason", this.failReason);
txtParams.put("id_card_no", this.idCardNo);
txtParams.put("request_code", this.requestCode);
txtParams.put("result_code", this.resultCode);
txtParams.put("user_mobile", this.userMobile);
txtParams.put("verify_result", this.verifyResult);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return OapiFinanceFaceVerificationUpdateResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(businessId, "businessId");
RequestCheckUtils.checkNotEmpty(idCardNo, "idCardNo");
RequestCheckUtils.checkNotEmpty(requestCode, "requestCode");
RequestCheckUtils.checkNotEmpty(userMobile, "userMobile");
RequestCheckUtils.checkNotEmpty(verifyResult, "verifyResult");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy