public class CardVerifyResult extends AbstractModel
header, skipSign
Constructor and Description |
---|
CardVerifyResult() |
CardVerifyResult(CardVerifyResult source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
FileInfo |
getCardImage()
Get The download URL of the identity document image, which is valid for 10 minutes.
|
CardInfo |
getCardInfo()
Deprecated.
|
FileInfo |
getCardInfoOcrJson()
Get The OCR result (in JSON) of the identity document image.
|
FileInfo |
getCardVideo()
Get The download URL of the video used for identity document verification, which is valid for 10 minutes.
|
Boolean |
getIsEdit()
Get Whether the user modified the card recognition result
|
Boolean |
getIsPass()
Get Whether the authentication or OCR process is successful.
|
NormalCardInfo |
getNormalCardInfo()
Get License OCR result
|
String |
getRequestId()
Get The request ID of a single process.
|
Long[] |
getWarnCardInfos()
Get Card warning information
-9101 Alarm for covered certificate,
-9102 Alarm for photocopied certificate,
-9103 Alarm for photographed certificate,
-9107 Alarm for reflective certificate,
-9108 Alarm for blurry image,
-9109 This capability is not enabled.
|
void |
setCardImage(FileInfo CardImage)
Set The download URL of the identity document image, which is valid for 10 minutes.
|
void |
setCardInfo(CardInfo CardInfo)
Deprecated.
|
void |
setCardInfoOcrJson(FileInfo CardInfoOcrJson)
Set The OCR result (in JSON) of the identity document image.
|
void |
setCardVideo(FileInfo CardVideo)
Set The download URL of the video used for identity document verification, which is valid for 10 minutes.
|
void |
setIsEdit(Boolean IsEdit)
Set Whether the user modified the card recognition result
|
void |
setIsPass(Boolean IsPass)
Set Whether the authentication or OCR process is successful.
|
void |
setNormalCardInfo(NormalCardInfo NormalCardInfo)
Set License OCR result
|
void |
setRequestId(String RequestId)
Set The request ID of a single process.
|
void |
setWarnCardInfos(Long[] WarnCardInfos)
Set Card warning information
-9101 Alarm for covered certificate,
-9102 Alarm for photocopied certificate,
-9103 Alarm for photographed certificate,
-9107 Alarm for reflective certificate,
-9108 Alarm for blurry image,
-9109 This capability is not enabled.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CardVerifyResult()
public CardVerifyResult(CardVerifyResult source)
public Boolean getIsPass()
public void setIsPass(Boolean IsPass)
IsPass
- Whether the authentication or OCR process is successful.public Boolean getIsEdit()
public void setIsEdit(Boolean IsEdit)
IsEdit
- Whether the user modified the card recognition resultpublic FileInfo getCardVideo()
public void setCardVideo(FileInfo CardVideo)
CardVideo
- The download URL of the video used for identity document verification, which is valid for 10 minutes. This parameter is returned only if video-based identity document verification is enabled.
Note: This field may return null, indicating that no valid value can be obtained.public FileInfo getCardImage()
public void setCardImage(FileInfo CardImage)
CardImage
- The download URL of the identity document image, which is valid for 10 minutes.
Note: This field may return null, indicating that no valid value can be obtained.public FileInfo getCardInfoOcrJson()
public void setCardInfoOcrJson(FileInfo CardInfoOcrJson)
CardInfoOcrJson
- The OCR result (in JSON) of the identity document image. If verification or OCR fails, this parameter is left empty. The URL is valid for 10 minutes.
(1) Hong Kong (China) identity card
When the value of `IdCardType` is `HK`:
- CnName (string): Name in Chinese.
- EnName (string): Name in English.
- TelexCode (string): The code corresponding to the name in Chinese.
- Sex (string): Gender. Valid values: `M` (male) and `F` (female).
- Birthday (string): Date of birth.
- Permanent (int): Whether it is a permanent residence identity card. Valid values: `0` (non-permanent), `1` (permanent), and `-1` (unknown).
- IdNum (string): Identity card number.
- Symbol (string): The ID symbol below the date of birth, such as "***AZ".
- FirstIssueDate (string): Month and year of first registration.
- CurrentIssueDate (string): The date of latest issuance.
(2) Malaysian identity card
When the value of `IdCardType` is `ML`:
- Sex (string): Gender. Valid values: `LELAKI` (male) and `PEREMPUAN` (female).
- Birthday (string): Date of birth.
- ID (string): Identity card number.
- Name (string): Name.
- Address (string): Address.
- Type (string): Identity document type.
(3) Philippine identity document
When the value of `IdCardType` is `PhilippinesVoteID`:
- Birthday (string): Date of birth.
- Address (string): Address.
- LastName (string): Last name.
- FirstName (string): First name.
- VIN (string): Voter's identification number (VIN).
- CivilStatus (string): Civil status.
- Citizenship (string): Citizenship.
- PrecinctNo (string): Precinct.
When the value of `IdCardType` is `PhilippinesDrivingLicense`:
- Sex (string): Gender.
- Birthday (string): Date of birth.
- Name (string): Name.
- Address (string): Address.
- LastName (string): Last name.
- FirstName (string): First name.
- MiddleName (string): Middle name.
- Nationality (string): Nationality.
- LicenseNo (string): License number.
- ExpiresDate (string): Expiration date.
- AgencyCode (string): Agency code.
When the value of `IdCardType` is `PhilippinesTinID`:
- LicenseNumber (string): Tax identification number (TIN).
- FullName (string): Full name.
- Address (string): Address.
- Birthday (string): Date of birth.
- IssueDate (string): Issue date.
When the value of `IdCardType` is `PhilippinesSSSID`:
- LicenseNumber (string): Common reference number (CRN).
- FullName (string): Full name.
- Birthday (string): Date of birth.
When the value of `IdCardType` is `PhilippinesUMID`:
- Surname (string): Surname.
- MiddleName (string):Middle name.
- GivenName (string): Given name.
- Sex (string): Gender.
- Birthday (string): Date of birth.
- Address (string): Address.
- CRN (string): Common reference number (CRN).
(4) Indonesian identity card
When the value of `IdCardType` is `IndonesiaIDCard`:
- NIK (string): Single Identity Number.
- Nama (string): Full name.
- TempatTglLahir (string): Place and date of birth.
- JenisKelamin (string): Gender.
- GolDarah (string): Blood type.
- Alamat (string): Address.
- RTRW (string): Street.
- KelDesa (string): Village.
- Kecamatan (string): Region.
- Agama (string): Religion.
- StatusPerkawinan (string): Marital status.
- Perkerjaan (string): Occupation.
- KewargaNegaraan (string): Nationality.
- BerlakuHingga (string): Expiry date.
- IssuedDate (string): Issue date.
(5) A passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions
When the value of `IdCardType` is `MLIDPassport`:
- FullName (string): Full name.
- Surname (string): Surname.
- GivenName (string): Given name.
- Birthday (string): Date of birth.
- Sex (string): Gender. Valid values: `F` (female) and `M` (male).
- DateOfExpiration (string): Expiration date.
- IssuingCountry (string): Issuing country.
- NationalityCode (string): Country/region code.
Note: This field may return null, indicating that no valid values can be obtained.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The request ID of a single process.@Deprecated public CardInfo getCardInfo()
@Deprecated public void setCardInfo(CardInfo CardInfo)
CardInfo
- The recognition results of ID cardpublic NormalCardInfo getNormalCardInfo()
public void setNormalCardInfo(NormalCardInfo NormalCardInfo)
NormalCardInfo
- License OCR resultpublic Long[] getWarnCardInfos()
public void setWarnCardInfos(Long[] WarnCardInfos)
WarnCardInfos
- Card warning information
-9101 Alarm for covered certificate,
-9102 Alarm for photocopied certificate,
-9103 Alarm for photographed certificate,
-9107 Alarm for reflective certificate,
-9108 Alarm for blurry image,
-9109 This capability is not enabled.Copyright © 2024. All rights reserved.