public class CredentialVerifyV2Request
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CredentialVerifyV2Request.CredentialVerifyV2RequestMerchantDetail |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
certNum
Relevant certificate number.
|
String |
credName
01: Personal ID cards
0101: ID card
0102: Bank card
0104: Teacher qualification certificate
0107: Student ID card
02: Business scenario
0201: Storefront photo
0202: Counter photo
0203: Scene photo
03: Corporate qualifications
0301: Business license
example:
0104
|
String |
credType
Credential type:
01: Personal ID cards
02: Business scenario
03: Corporate qualifications
example:
01
|
String |
identifyNum
ID number.
|
String |
imageContext
Base64 encoded image, choose one from
imageUrl, imageFile, or imageContext. |
String |
imageFile
Image input stream, choose one from
imageUrl, imageFile, or imageContext. |
String |
imageUrl
Image URL, choose one from
imageUrl, imageFile, or imageContext. |
String |
isCheck
Whether to enable authoritative authentication
0: No
1: Yes
example:
0
|
String |
isOcr
Whether to use OCR
example:
0
|
List<CredentialVerifyV2Request.CredentialVerifyV2RequestMerchantDetail> |
merchantDetail
Merchant details:
MerchantName: Merchant name
BusinessType: Industry information
BusinessContent: Business content
This field is required when PromptModel is set to DEFAULT.
|
String |
merchantId
Merchant ID.
|
String |
productCode
Invocation mode:
ANTI_FAKE_CHECK: Image anti-forgery check
ANTI_FAKE_VL: Image anti-forgery check and semantic understanding
IMAGE_VL_COG: Image semantic understanding
Default value: ANTI_FAKE_CHECK
When CredType is set to 02, ProductCode can only be ANTI_FAKE_VL or IMAGE_VL_COG.
|
String |
prompt
Customer-defined prompt content for image semantic understanding.
|
String |
promptModel
Prompt acquisition method for image semantic understanding:
DEFAULT: System default
CUSTOM: Customer-defined
Note: When ProductCode is set to ANTI_FAKE_VL or IMAGE_VL_COG, this parameter must be provided.
|
String |
userName
Name.
|
| 构造器和说明 |
|---|
CredentialVerifyV2Request() |
@NameInMap(value="CertNum") public String certNum
Relevant certificate number.
example:4601*****
@NameInMap(value="CredName") public String credName
0104
@NameInMap(value="CredType") public String credType
Credential type:
01
@NameInMap(value="IdentifyNum") public String identifyNum
ID number.
example:4****************1
@NameInMap(value="ImageContext") public String imageContext
Base64 encoded image, choose one from imageUrl, imageFile, or imageContext.
base64
@NameInMap(value="ImageFile") public String imageFile
Image input stream, choose one from imageUrl, imageFile, or imageContext.
none
@NameInMap(value="ImageUrl") public String imageUrl
Image URL, choose one from imageUrl, imageFile, or imageContext.
http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
@NameInMap(value="IsCheck") public String isCheck
Whether to enable authoritative authentication
0
@NameInMap(value="IsOcr") public String isOcr
Whether to use OCR
example:0
@NameInMap(value="MerchantDetail") public List<CredentialVerifyV2Request.CredentialVerifyV2RequestMerchantDetail> merchantDetail
Merchant details:
MerchantName: Merchant name
BusinessType: Industry information
BusinessContent: Business content
This field is required when PromptModel is set to DEFAULT.
@NameInMap(value="MerchantId") public String merchantId
Merchant ID. This field is required when CredName is set to 02.
example:none
@NameInMap(value="ProductCode") public String productCode
Invocation mode:
ANTI_FAKE_CHECK: Image anti-forgery check
ANTI_FAKE_VL: Image anti-forgery check and semantic understanding
IMAGE_VL_COG: Image semantic understanding
Default value: ANTI_FAKE_CHECK
When CredType is set to 02, ProductCode can only be ANTI_FAKE_VL or IMAGE_VL_COG.
example:ANTI_FAKE_CHECK
@NameInMap(value="Prompt") public String prompt
Customer-defined prompt content for image semantic understanding.
This field is required when PromptModel is set to CUSTOM.
example:none
@NameInMap(value="PromptModel") public String promptModel
Prompt acquisition method for image semantic understanding:
DEFAULT: System default
CUSTOM: Customer-defined
Note: When ProductCode is set to ANTI_FAKE_VL or IMAGE_VL_COG, this parameter must be provided.
example:DEFAULT
@NameInMap(value="UserName") public String userName
Name.
example:张三
public static CredentialVerifyV2Request build(Map<String,?> map) throws Exception
Exceptionpublic CredentialVerifyV2Request setCertNum(String certNum)
public String getCertNum()
public CredentialVerifyV2Request setCredName(String credName)
public String getCredName()
public CredentialVerifyV2Request setCredType(String credType)
public String getCredType()
public CredentialVerifyV2Request setIdentifyNum(String identifyNum)
public String getIdentifyNum()
public CredentialVerifyV2Request setImageContext(String imageContext)
public String getImageContext()
public CredentialVerifyV2Request setImageFile(String imageFile)
public String getImageFile()
public CredentialVerifyV2Request setImageUrl(String imageUrl)
public String getImageUrl()
public CredentialVerifyV2Request setIsCheck(String isCheck)
public String getIsCheck()
public CredentialVerifyV2Request setIsOcr(String isOcr)
public String getIsOcr()
public CredentialVerifyV2Request setMerchantDetail(List<CredentialVerifyV2Request.CredentialVerifyV2RequestMerchantDetail> merchantDetail)
public List<CredentialVerifyV2Request.CredentialVerifyV2RequestMerchantDetail> getMerchantDetail()
public CredentialVerifyV2Request setMerchantId(String merchantId)
public String getMerchantId()
public CredentialVerifyV2Request setProductCode(String productCode)
public String getProductCode()
public CredentialVerifyV2Request setPrompt(String prompt)
public String getPrompt()
public CredentialVerifyV2Request setPromptModel(String promptModel)
public String getPromptModel()
public CredentialVerifyV2Request setUserName(String userName)
public String getUserName()
Copyright © 2025. All rights reserved.