v20180301

package
v3.0.93+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-03-01"

Variables

This section is empty.

Functions

This section is empty.

Types

type BankCard2EVerificationRequest

type BankCard2EVerificationRequest struct {
	*tchttp.BaseRequest

	// 姓名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 银行卡
	BankCard *string `json:"BankCard,omitempty" name:"BankCard"`
}

func NewBankCard2EVerificationRequest

func NewBankCard2EVerificationRequest() (request *BankCard2EVerificationRequest)

func (*BankCard2EVerificationRequest) FromJsonString

func (r *BankCard2EVerificationRequest) FromJsonString(s string) error

func (*BankCard2EVerificationRequest) ToJsonString

func (r *BankCard2EVerificationRequest) ToJsonString() string

type BankCard2EVerificationResponse

type BankCard2EVerificationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果码。
		//   '0': '认证通过'
		//   '-1': '认证未通过'
		//   '-2': '姓名校验不通过'
		//   '-3': '银行卡号码有误'
		//   '-4': '持卡人信息有误'
		//   '-5': '未开通无卡支付'
		//   '-6': '此卡被没收'
		//   '-7': '无效卡号'
		//   '-8': '此卡无对应发卡行'
		//   '-9': '该卡未初始化或睡眠卡'
		//   '-10': '作弊卡、吞卡'
		//   '-11': '此卡已挂失'
		//   '-12': '该卡已过期'
		//   '-13': '受限制的卡'
		//   '-14': '密码错误次数超限'
		//   '-15': '发卡行不支持此交易'
		//   '-16': '服务繁忙'
		Result *string `json:"Result,omitempty" name:"Result"`

		// 认证结果信息。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBankCard2EVerificationResponse

func NewBankCard2EVerificationResponse() (response *BankCard2EVerificationResponse)

func (*BankCard2EVerificationResponse) FromJsonString

func (r *BankCard2EVerificationResponse) FromJsonString(s string) error

func (*BankCard2EVerificationResponse) ToJsonString

func (r *BankCard2EVerificationResponse) ToJsonString() string

type BankCard4EVerificationRequest

type BankCard4EVerificationRequest struct {
	*tchttp.BaseRequest

	// 姓名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 银行卡
	BankCard *string `json:"BankCard,omitempty" name:"BankCard"`

	// 手机号码
	Phone *string `json:"Phone,omitempty" name:"Phone"`

	// 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。(不填默认0)
	// 0 身份证
	// 1 军官证
	// 2 护照
	// 3 港澳证
	// 4 台胞证
	// 5 警官证
	// 6 士兵证
	// 7 其它证件
	CertType *int64 `json:"CertType,omitempty" name:"CertType"`
}

func NewBankCard4EVerificationRequest

func NewBankCard4EVerificationRequest() (request *BankCard4EVerificationRequest)

func (*BankCard4EVerificationRequest) FromJsonString

func (r *BankCard4EVerificationRequest) FromJsonString(s string) error

func (*BankCard4EVerificationRequest) ToJsonString

func (r *BankCard4EVerificationRequest) ToJsonString() string

type BankCard4EVerificationResponse

type BankCard4EVerificationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果码。
		//   '0': '认证通过'
		//   '-1': '认证未通过'
		//   '-2': '姓名校验不通过'
		//   '-3': '身份证号码有误'
		//   '-4': '银行卡号码有误'
		//   '-5': '手机号码不合法'
		//   '-6': '持卡人信息有误'
		//   '-7': '未开通无卡支付'
		//   '-8': '此卡被没收'
		//   '-9': '无效卡号'
		//   '-10': '此卡无对应发卡行'
		//   '-11': '该卡未初始化或睡眠卡'
		//   '-12': '作弊卡、吞卡'
		//   '-13': '此卡已挂失'
		//   '-14': '该卡已过期'
		//   '-15': '受限制的卡'
		//   '-16': '密码错误次数超限'
		//   '-17': '发卡行不支持此交易'
		//   '-18': '服务繁忙'
		Result *string `json:"Result,omitempty" name:"Result"`

		// 认证结果信息。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBankCard4EVerificationResponse

func NewBankCard4EVerificationResponse() (response *BankCard4EVerificationResponse)

func (*BankCard4EVerificationResponse) FromJsonString

func (r *BankCard4EVerificationResponse) FromJsonString(s string) error

func (*BankCard4EVerificationResponse) ToJsonString

func (r *BankCard4EVerificationResponse) ToJsonString() string

type BankCardVerificationRequest

type BankCardVerificationRequest struct {
	*tchttp.BaseRequest

	// 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 银行卡
	BankCard *string `json:"BankCard,omitempty" name:"BankCard"`

	// 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。(不填默认0)
	// 0 身份证
	// 1 军官证
	// 2 护照
	// 3 港澳证
	// 4 台胞证
	// 5 警官证
	// 6 士兵证
	// 7 其它证件
	CertType *int64 `json:"CertType,omitempty" name:"CertType"`
}

func NewBankCardVerificationRequest

func NewBankCardVerificationRequest() (request *BankCardVerificationRequest)

func (*BankCardVerificationRequest) FromJsonString

func (r *BankCardVerificationRequest) FromJsonString(s string) error

func (*BankCardVerificationRequest) ToJsonString

func (r *BankCardVerificationRequest) ToJsonString() string

type BankCardVerificationResponse

type BankCardVerificationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果码。
		// '0': '认证通过'
		// '-1': '认证未通过'
		// '-2': '姓名校验不通过'
		// '-3': '身份证号码有误'
		// '-4': '银行卡号码有误'
		// '-5': '持卡人信息有误'
		// '-6': '未开通无卡支付'
		// '-7': '此卡被没收'
		// '-8': '无效卡号'
		// '-9': '此卡无对应发卡行'
		// '-10': '该卡未初始化或睡眠卡'
		// '-11': '作弊卡、吞卡'
		// '-12': '此卡已挂失'
		// '-13': '该卡已过期'
		// '-14': '受限制的卡'
		// '-15': '密码错误次数超限'
		// '-16': '发卡行不支持此交易'
		// '-17': '服务繁忙'
		Result *string `json:"Result,omitempty" name:"Result"`

		// 认证结果信息。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBankCardVerificationResponse

func NewBankCardVerificationResponse() (response *BankCardVerificationResponse)

func (*BankCardVerificationResponse) FromJsonString

func (r *BankCardVerificationResponse) FromJsonString(s string) error

func (*BankCardVerificationResponse) ToJsonString

func (r *BankCardVerificationResponse) ToJsonString() string

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) BankCard2EVerification

func (c *Client) BankCard2EVerification(request *BankCard2EVerificationRequest) (response *BankCard2EVerificationResponse, err error)

输入银行卡号、姓名,校验信息的真实性和一致性。

func (*Client) BankCard4EVerification

func (c *Client) BankCard4EVerification(request *BankCard4EVerificationRequest) (response *BankCard4EVerificationResponse, err error)

输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。

func (*Client) BankCardVerification

func (c *Client) BankCardVerification(request *BankCardVerificationRequest) (response *BankCardVerificationResponse, err error)

银行卡三要素核验,输入银行卡号、姓名、开户证件号,校验信息的真实性和一致性。

func (*Client) DetectAuth

func (c *Client) DetectAuth(request *DetectAuthRequest) (response *DetectAuthResponse, err error)

每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。

func (*Client) GetActionSequence

func (c *Client) GetActionSequence(request *GetActionSequenceRequest) (response *GetActionSequenceResponse, err error)

使用动作活体检测模式前,需调用本接口获取动作顺序。

func (*Client) GetDetectInfo

func (c *Client) GetDetectInfo(request *GetDetectInfoRequest) (response *GetDetectInfoResponse, err error)

完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。

func (*Client) GetLiveCode

func (c *Client) GetLiveCode(request *GetLiveCodeRequest) (response *GetLiveCodeResponse, err error)

使用数字活体检测模式前,需调用本接口获取数字验证码。

func (*Client) IdCardOCRVerification

func (c *Client) IdCardOCRVerification(request *IdCardOCRVerificationRequest) (response *IdCardOCRVerificationResponse, err error)

本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。

func (*Client) IdCardVerification

func (c *Client) IdCardVerification(request *IdCardVerificationRequest) (response *IdCardVerificationResponse, err error)

传入姓名和身份证号,校验两者的真实性和一致性。

func (*Client) ImageRecognition

func (c *Client) ImageRecognition(request *ImageRecognitionRequest) (response *ImageRecognitionResponse, err error)

传入照片和身份信息,判断该照片与公安权威库的证件照是否属于同一个人。

func (*Client) Liveness

func (c *Client) Liveness(request *LivenessRequest) (response *LivenessResponse, err error)

活体检测

func (*Client) LivenessCompare

func (c *Client) LivenessCompare(request *LivenessCompareRequest) (response *LivenessCompareResponse, err error)

传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。

func (*Client) LivenessRecognition

func (c *Client) LivenessRecognition(request *LivenessRecognitionRequest) (response *LivenessRecognitionResponse, err error)

传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与公安权威库的证件照是否属于同一个人。

type DetectAuthRequest

type DetectAuthRequest struct {
	*tchttp.BaseRequest

	// 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

	// 本接口不需要传递此参数。
	TerminalType *string `json:"TerminalType,omitempty" name:"TerminalType"`

	// 身份标识(与公安权威库比对时必须是身份证号)。
	// 规则:a-zA-Z0-9组合。最长长度32位。
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名。最长长度32位。中文请使用UTF-8编码。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 认证结束后重定向的回调链接地址。最长长度1024位。
	RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`

	// 透传字段,在获取验证结果时返回。
	Extra *string `json:"Extra,omitempty" name:"Extra"`

	// 用于人脸比对的照片,图片的BASE64值;
	// BASE64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
}

func NewDetectAuthRequest

func NewDetectAuthRequest() (request *DetectAuthRequest)

func (*DetectAuthRequest) FromJsonString

func (r *DetectAuthRequest) FromJsonString(s string) error

func (*DetectAuthRequest) ToJsonString

func (r *DetectAuthRequest) ToJsonString() string

type DetectAuthResponse

type DetectAuthResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用于发起核身流程的URL,仅微信H5场景使用。
		Url *string `json:"Url,omitempty" name:"Url"`

		// 一次核身流程的标识,有效时间为7,200秒;
		// 完成核身后,可用该标识获取验证结果信息。
		BizToken *string `json:"BizToken,omitempty" name:"BizToken"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDetectAuthResponse

func NewDetectAuthResponse() (response *DetectAuthResponse)

func (*DetectAuthResponse) FromJsonString

func (r *DetectAuthResponse) FromJsonString(s string) error

func (*DetectAuthResponse) ToJsonString

func (r *DetectAuthResponse) ToJsonString() string

type GetActionSequenceRequest

type GetActionSequenceRequest struct {
	*tchttp.BaseRequest
}

func NewGetActionSequenceRequest

func NewGetActionSequenceRequest() (request *GetActionSequenceRequest)

func (*GetActionSequenceRequest) FromJsonString

func (r *GetActionSequenceRequest) FromJsonString(s string) error

func (*GetActionSequenceRequest) ToJsonString

func (r *GetActionSequenceRequest) ToJsonString() string

type GetActionSequenceResponse

type GetActionSequenceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
		ActionSequence *string `json:"ActionSequence,omitempty" name:"ActionSequence"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetActionSequenceResponse

func NewGetActionSequenceResponse() (response *GetActionSequenceResponse)

func (*GetActionSequenceResponse) FromJsonString

func (r *GetActionSequenceResponse) FromJsonString(s string) error

func (*GetActionSequenceResponse) ToJsonString

func (r *GetActionSequenceResponse) ToJsonString() string

type GetDetectInfoRequest

type GetDetectInfoRequest struct {
	*tchttp.BaseRequest

	// 人脸核身流程的标识,调用DetectAuth接口时生成。
	BizToken *string `json:"BizToken,omitempty" name:"BizToken"`

	// 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

	// 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
	// 如 134表示拉取文本类、视频最佳截图照片、视频。
	InfoType *string `json:"InfoType,omitempty" name:"InfoType"`
}

func NewGetDetectInfoRequest

func NewGetDetectInfoRequest() (request *GetDetectInfoRequest)

func (*GetDetectInfoRequest) FromJsonString

func (r *GetDetectInfoRequest) FromJsonString(s string) error

func (*GetDetectInfoRequest) ToJsonString

func (r *GetDetectInfoRequest) ToJsonString() string

type GetDetectInfoResponse

type GetDetectInfoResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// JSON字符串。
		// {
		//   // 文本类信息
		//   "Text": {
		//     "ErrCode": null,      // 本次核身最终结果。0为成功
		//     "ErrMsg": null,       // 本次核身最终结果信息描述。
		//     "IdCard": "",         // 本次核身最终获得的身份证号。
		//     "Name": "",           // 本次核身最终获得的姓名。
		//     "OcrNation": null,    // ocr阶段获取的民族
		//     "OcrAddress": null,   // ocr阶段获取的地址
		//     "OcrBirth": null,     // ocr阶段获取的出生信息
		//     "OcrAuthority": null, // ocr阶段获取的证件签发机关
		//     "OcrValidDate": null, // ocr阶段获取的证件有效期
		//     "OcrName": null,      // ocr阶段获取的姓名
		//     "OcrIdCard": null,    // ocr阶段获取的身份证号
		//     "OcrGender": null,    // ocr阶段获取的性别
		//     "LiveStatus": null,   // 活体检测阶段的错误码。0为成功
		//     "LiveMsg": null,      // 活体检测阶段的错误信息
		//     "Comparestatus": null,// 一比一阶段的错误码。0为成功
		//     "Comparemsg": null,   // 一比一阶段的错误信息
		//     "Location": null, // 地理位置信息
		//     "Extra": "",          // DetectAuth结果传进来的Extra信息
		//     "Detail": {           // 活体一比一信息详情
		//       "LivenessData": []
		//     }
		//   },
		//   // 身份证正反面照片Base64
		//   "IdCardData": {
		//     "OcrFront": null,
		//     "OcrBack": null
		//   },
		//   // 视频最佳帧截图Base64
		//   "BestFrame": {
		//     "BestFrame": null
		//   },
		//   // 活体视频Base64
		//   "VideoData": {
		//     "LivenessVideo": null
		//   }
		// }
		DetectInfo *string `json:"DetectInfo,omitempty" name:"DetectInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetDetectInfoResponse

func NewGetDetectInfoResponse() (response *GetDetectInfoResponse)

func (*GetDetectInfoResponse) FromJsonString

func (r *GetDetectInfoResponse) FromJsonString(s string) error

func (*GetDetectInfoResponse) ToJsonString

func (r *GetDetectInfoResponse) ToJsonString() string

type GetLiveCodeRequest

type GetLiveCodeRequest struct {
	*tchttp.BaseRequest
}

func NewGetLiveCodeRequest

func NewGetLiveCodeRequest() (request *GetLiveCodeRequest)

func (*GetLiveCodeRequest) FromJsonString

func (r *GetLiveCodeRequest) FromJsonString(s string) error

func (*GetLiveCodeRequest) ToJsonString

func (r *GetLiveCodeRequest) ToJsonString() string

type GetLiveCodeResponse

type GetLiveCodeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 数字验证码,如:1234
		LiveCode *string `json:"LiveCode,omitempty" name:"LiveCode"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetLiveCodeResponse

func NewGetLiveCodeResponse() (response *GetLiveCodeResponse)

func (*GetLiveCodeResponse) FromJsonString

func (r *GetLiveCodeResponse) FromJsonString(s string) error

func (*GetLiveCodeResponse) ToJsonString

func (r *GetLiveCodeResponse) ToJsonString() string

type IdCardOCRVerificationRequest

type IdCardOCRVerificationRequest struct {
	*tchttp.BaseRequest

	// 身份证号
	// 姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 身份证人像面的 Base64 值
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 身份证人像面的 Url 地址
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewIdCardOCRVerificationRequest

func NewIdCardOCRVerificationRequest() (request *IdCardOCRVerificationRequest)

func (*IdCardOCRVerificationRequest) FromJsonString

func (r *IdCardOCRVerificationRequest) FromJsonString(s string) error

func (*IdCardOCRVerificationRequest) ToJsonString

func (r *IdCardOCRVerificationRequest) ToJsonString() string

type IdCardOCRVerificationResponse

type IdCardOCRVerificationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果码,收费情况如下。
		// 收费结果码:
		// 0: 姓名和身份证号一致
		// -1: 姓名和身份证号不一致
		// 不收费结果码:
		// -2: 非法身份证号(长度、校验位等不正确)
		// -3: 非法姓名(长度、格式等不正确)
		// -4: 证件库服务异常
		// -5: 证件库中无此身份证记录
		Result *string `json:"Result,omitempty" name:"Result"`

		// 认证结果信息。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 用于验证的姓名
		Name *string `json:"Name,omitempty" name:"Name"`

		// 用于验证的身份证号
		IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

		// OCR得到的性别
		// 注意:此字段可能返回 null,表示取不到有效值。
		Sex *string `json:"Sex,omitempty" name:"Sex"`

		// OCR得到的民族
		// 注意:此字段可能返回 null,表示取不到有效值。
		Nation *string `json:"Nation,omitempty" name:"Nation"`

		// OCR得到的生日
		// 注意:此字段可能返回 null,表示取不到有效值。
		Birth *string `json:"Birth,omitempty" name:"Birth"`

		// OCR得到的地址
		// 注意:此字段可能返回 null,表示取不到有效值。
		Address *string `json:"Address,omitempty" name:"Address"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewIdCardOCRVerificationResponse

func NewIdCardOCRVerificationResponse() (response *IdCardOCRVerificationResponse)

func (*IdCardOCRVerificationResponse) FromJsonString

func (r *IdCardOCRVerificationResponse) FromJsonString(s string) error

func (*IdCardOCRVerificationResponse) ToJsonString

func (r *IdCardOCRVerificationResponse) ToJsonString() string

type IdCardVerificationRequest

type IdCardVerificationRequest struct {
	*tchttp.BaseRequest

	// 身份证号
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewIdCardVerificationRequest

func NewIdCardVerificationRequest() (request *IdCardVerificationRequest)

func (*IdCardVerificationRequest) FromJsonString

func (r *IdCardVerificationRequest) FromJsonString(s string) error

func (*IdCardVerificationRequest) ToJsonString

func (r *IdCardVerificationRequest) ToJsonString() string

type IdCardVerificationResponse

type IdCardVerificationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果码,收费情况如下。
		// 收费结果码:
		// 0: 姓名和身份证号一致
		// -1: 姓名和身份证号不一致
		// 不收费结果码:
		// -2: 非法身份证号(长度、校验位等不正确)
		// -3: 非法姓名(长度、格式等不正确)
		// -4: 证件库服务异常
		// -5: 证件库中无此身份证记录
		Result *string `json:"Result,omitempty" name:"Result"`

		// 认证结果信息。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewIdCardVerificationResponse

func NewIdCardVerificationResponse() (response *IdCardVerificationResponse)

func (*IdCardVerificationResponse) FromJsonString

func (r *IdCardVerificationResponse) FromJsonString(s string) error

func (*IdCardVerificationResponse) ToJsonString

func (r *IdCardVerificationResponse) ToJsonString() string

type ImageRecognitionRequest

type ImageRecognitionRequest struct {
	*tchttp.BaseRequest

	// 身份证号
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名。中文请使用UTF-8编码。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 用于人脸比对的照片,图片的BASE64值;
	// BASE64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 本接口不需要传递此参数。
	Optional *string `json:"Optional,omitempty" name:"Optional"`
}

func NewImageRecognitionRequest

func NewImageRecognitionRequest() (request *ImageRecognitionRequest)

func (*ImageRecognitionRequest) FromJsonString

func (r *ImageRecognitionRequest) FromJsonString(s string) error

func (*ImageRecognitionRequest) ToJsonString

func (r *ImageRecognitionRequest) ToJsonString() string

type ImageRecognitionResponse

type ImageRecognitionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
		Sim *float64 `json:"Sim,omitempty" name:"Sim"`

		// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
		Result *string `json:"Result,omitempty" name:"Result"`

		// 业务错误描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewImageRecognitionResponse

func NewImageRecognitionResponse() (response *ImageRecognitionResponse)

func (*ImageRecognitionResponse) FromJsonString

func (r *ImageRecognitionResponse) FromJsonString(s string) error

func (*ImageRecognitionResponse) ToJsonString

func (r *ImageRecognitionResponse) ToJsonString() string

type LivenessCompareRequest

type LivenessCompareRequest struct {
	*tchttp.BaseRequest

	// 用于人脸比对的照片,图片的BASE64值;
	// BASE64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 用于活体检测的视频,视频的BASE64值;
	// BASE64编码后的大小不超过5M,支持mp4、avi、flv格式。
	VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`

	// 活体检测类型,取值:LIP/ACTION/SILENT。
	// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
	LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`

	// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
	// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
	// 静默模式传参:空。
	ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`

	// 本接口不需要传递此参数。
	Optional *string `json:"Optional,omitempty" name:"Optional"`
}

func NewLivenessCompareRequest

func NewLivenessCompareRequest() (request *LivenessCompareRequest)

func (*LivenessCompareRequest) FromJsonString

func (r *LivenessCompareRequest) FromJsonString(s string) error

func (*LivenessCompareRequest) ToJsonString

func (r *LivenessCompareRequest) ToJsonString() string

type LivenessCompareResponse

type LivenessCompareResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
		BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`

		// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
		Sim *float64 `json:"Sim,omitempty" name:"Sim"`

		// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
		Result *string `json:"Result,omitempty" name:"Result"`

		// 业务错误描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewLivenessCompareResponse

func NewLivenessCompareResponse() (response *LivenessCompareResponse)

func (*LivenessCompareResponse) FromJsonString

func (r *LivenessCompareResponse) FromJsonString(s string) error

func (*LivenessCompareResponse) ToJsonString

func (r *LivenessCompareResponse) ToJsonString() string

type LivenessRecognitionRequest

type LivenessRecognitionRequest struct {
	*tchttp.BaseRequest

	// 身份证号
	IdCard *string `json:"IdCard,omitempty" name:"IdCard"`

	// 姓名。中文请使用UTF-8编码。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 用于活体检测的视频,视频的BASE64值;
	// BASE64编码后的大小不超过5M,支持mp4、avi、flv格式。
	VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`

	// 活体检测类型,取值:LIP/ACTION/SILENT。
	// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
	LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`

	// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
	// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
	// 静默模式传参:空。
	ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`

	// 本接口不需要传递此参数。
	Optional *string `json:"Optional,omitempty" name:"Optional"`
}

func NewLivenessRecognitionRequest

func NewLivenessRecognitionRequest() (request *LivenessRecognitionRequest)

func (*LivenessRecognitionRequest) FromJsonString

func (r *LivenessRecognitionRequest) FromJsonString(s string) error

func (*LivenessRecognitionRequest) ToJsonString

func (r *LivenessRecognitionRequest) ToJsonString() string

type LivenessRecognitionResponse

type LivenessRecognitionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
		BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`

		// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
		Sim *float64 `json:"Sim,omitempty" name:"Sim"`

		// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
		Result *string `json:"Result,omitempty" name:"Result"`

		// 业务错误描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewLivenessRecognitionResponse

func NewLivenessRecognitionResponse() (response *LivenessRecognitionResponse)

func (*LivenessRecognitionResponse) FromJsonString

func (r *LivenessRecognitionResponse) FromJsonString(s string) error

func (*LivenessRecognitionResponse) ToJsonString

func (r *LivenessRecognitionResponse) ToJsonString() string

type LivenessRequest

type LivenessRequest struct {
	*tchttp.BaseRequest

	// 用于活体检测的视频,视频的BASE64值;
	// BASE64编码后的大小不超过5M,支持mp4、avi、flv格式。
	VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`

	// 活体检测类型,取值:LIP/ACTION/SILENT。
	// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
	LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`

	// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
	// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
	// 静默模式传参:不需要传递此参数。
	ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`

	// 本接口不需要传递此参数。
	Optional *string `json:"Optional,omitempty" name:"Optional"`
}

func NewLivenessRequest

func NewLivenessRequest() (request *LivenessRequest)

func (*LivenessRequest) FromJsonString

func (r *LivenessRequest) FromJsonString(s string) error

func (*LivenessRequest) ToJsonString

func (r *LivenessRequest) ToJsonString() string

type LivenessResponse

type LivenessResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
		BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`

		// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
		Result *string `json:"Result,omitempty" name:"Result"`

		// 业务错误描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewLivenessResponse

func NewLivenessResponse() (response *LivenessResponse)

func (*LivenessResponse) FromJsonString

func (r *LivenessResponse) FromJsonString(s string) error

func (*LivenessResponse) ToJsonString

func (r *LivenessResponse) ToJsonString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL