com.alipay.api.request.DatadigitalFincloudGeneralsaasOcrServerDetectRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alipay-sdk-java Show documentation
Show all versions of alipay-sdk-java Show documentation
Alipay openapi SDK for Java
Copyright © 2018 杭州蚂蚁金服
All rights reserved.
版权所有 (C)杭州蚂蚁金服
http://open.alipay.com
package com.alipay.api.request;
import java.util.HashMap;
import java.util.Map;
import com.alipay.api.FileItem;
import com.alipay.api.AlipayUploadRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.DatadigitalFincloudGeneralsaasOcrServerDetectResponse;
import com.alipay.api.AlipayObject;
/**
* ALIPAY API: datadigital.fincloud.generalsaas.ocr.server.detect request
*
* @author auto create
* @since 1.0, 2024-01-16 19:57:02
*/
public class DatadigitalFincloudGeneralsaasOcrServerDetectRequest implements AlipayUploadRequest {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 二进制流图片,大小限制1M
*/
private FileItem fileContent;
/**
* 可识别OCR类型。如,ID_CARD_FRONT 身份证含照片的一面;ID_CARD_BACK 身份证带国徽的一面。具体支持的类型以接入文档为准。
*/
private String ocrType;
/**
* 客户业务单据号,请保证幂等性。
*/
private String outerOrderNo;
public void setFileContent(FileItem fileContent) {
this.fileContent = fileContent;
}
public FileItem getFileContent() {
return this.fileContent;
}
public void setOcrType(String ocrType) {
this.ocrType = ocrType;
}
public String getOcrType() {
return this.ocrType;
}
public void setOuterOrderNo(String outerOrderNo) {
this.outerOrderNo = outerOrderNo;
}
public String getOuterOrderNo() {
return this.outerOrderNo;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
public String getNotifyUrl() {
return this.notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getReturnUrl() {
return this.returnUrl;
}
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
public String getApiVersion() {
return this.apiVersion;
}
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
public String getTerminalType(){
return this.terminalType;
}
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
public String getTerminalInfo(){
return this.terminalInfo;
}
public String getProdCode() {
return this.prodCode;
}
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
public String getApiMethodName() {
return "datadigital.fincloud.generalsaas.ocr.server.detect";
}
public Map getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("ocr_type", this.ocrType);
txtParams.put("outer_order_no", this.outerOrderNo);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
public Map getFileParams() {
Map params = new HashMap();
params.put("file_content", this.fileContent);
return params;
}
public Class getResponseClass() {
return DatadigitalFincloudGeneralsaasOcrServerDetectResponse.class;
}
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
public AlipayObject getBizModel() {
return this.bizModel;
}
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy