Browse Source

一些常用工具

lizhen_gitee 8 months ago
parent
commit
f1b38c80f8
100 changed files with 12332 additions and 0 deletions
  1. 491 0
      extend/TencentCloud/Common/AbstractClient.php
  2. 129 0
      extend/TencentCloud/Common/AbstractModel.php
  3. 107 0
      extend/TencentCloud/Common/Credential.php
  4. 77 0
      extend/TencentCloud/Common/Exception/TencentCloudSDKException.php
  5. 85 0
      extend/TencentCloud/Common/Http/HttpConnection.php
  6. 170 0
      extend/TencentCloud/Common/Profile/ClientProfile.php
  7. 215 0
      extend/TencentCloud/Common/Profile/HttpProfile.php
  8. 49 0
      extend/TencentCloud/Common/Sign.php
  9. 113 0
      extend/TencentCloud/Faceid/V20180301/FaceidClient.php
  10. 73 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplyLivenessTokenRequest.php
  11. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplyLivenessTokenResponse.php
  12. 101 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplySdkVerificationTokenRequest.php
  13. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplySdkVerificationTokenResponse.php
  14. 85 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplyWebVerificationTokenRequest.php
  15. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/ApplyWebVerificationTokenResponse.php
  16. 78 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCard2EVerificationRequest.php
  17. 153 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCard2EVerificationResponse.php
  18. 118 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCard4EVerificationRequest.php
  19. 161 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCard4EVerificationResponse.php
  20. 106 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCardVerificationRequest.php
  21. 157 0
      extend/TencentCloud/Faceid/V20180301/Models/BankCardVerificationResponse.php
  22. 284 0
      extend/TencentCloud/Faceid/V20180301/Models/CardVerifyResult.php
  23. 149 0
      extend/TencentCloud/Faceid/V20180301/Models/ChargeDetail.php
  24. 66 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckBankCardInformationRequest.php
  25. 125 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckBankCardInformationResponse.php
  26. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckEidTokenStatusRequest.php
  27. 81 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckEidTokenStatusResponse.php
  28. 169 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckIdCardInformationRequest.php
  29. 250 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckIdCardInformationResponse.php
  30. 102 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckIdNameDateRequest.php
  31. 117 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckIdNameDateResponse.php
  32. 78 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckPhoneAndNameRequest.php
  33. 105 0
      extend/TencentCloud/Faceid/V20180301/Models/CheckPhoneAndNameResponse.php
  34. 310 0
      extend/TencentCloud/Faceid/V20180301/Models/CompareResult.php
  35. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/CreateUploadUrlRequest.php
  36. 89 0
      extend/TencentCloud/Faceid/V20180301/Models/CreateUploadUrlResponse.php
  37. 175 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectAuthRequest.php
  38. 81 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectAuthResponse.php
  39. 301 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectDetail.php
  40. 73 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectInfoBestFrame.php
  41. 217 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectInfoIdCardData.php
  42. 450 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectInfoText.php
  43. 57 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectInfoVideoData.php
  44. 89 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectReflectLivenessAndCompareRequest.php
  45. 113 0
      extend/TencentCloud/Faceid/V20180301/Models/DetectReflectLivenessAndCompareResponse.php
  46. 89 0
      extend/TencentCloud/Faceid/V20180301/Models/EidInfo.php
  47. 105 0
      extend/TencentCloud/Faceid/V20180301/Models/EncryptedPhoneVerificationRequest.php
  48. 113 0
      extend/TencentCloud/Faceid/V20180301/Models/EncryptedPhoneVerificationResponse.php
  49. 101 0
      extend/TencentCloud/Faceid/V20180301/Models/Encryption.php
  50. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/FileInfo.php
  51. 89 0
      extend/TencentCloud/Faceid/V20180301/Models/GenerateReflectSequenceRequest.php
  52. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/GenerateReflectSequenceResponse.php
  53. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/GetActionSequenceRequest.php
  54. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/GetActionSequenceResponse.php
  55. 146 0
      extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoEnhancedRequest.php
  56. 172 0
      extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoEnhancedResponse.php
  57. 85 0
      extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoRequest.php
  58. 257 0
      extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoResponse.php
  59. 85 0
      extend/TencentCloud/Faceid/V20180301/Models/GetEidResultRequest.php
  60. 155 0
      extend/TencentCloud/Faceid/V20180301/Models/GetEidResultResponse.php
  61. 142 0
      extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenConfig.php
  62. 131 0
      extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenRequest.php
  63. 81 0
      extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenResponse.php
  64. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdResultRequest.php
  65. 221 0
      extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdResultResponse.php
  66. 133 0
      extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdTokenRequest.php
  67. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdTokenResponse.php
  68. 47 0
      extend/TencentCloud/Faceid/V20180301/Models/GetLiveCodeRequest.php
  69. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/GetLiveCodeResponse.php
  70. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/GetLivenessResultRequest.php
  71. 103 0
      extend/TencentCloud/Faceid/V20180301/Models/GetLivenessResultResponse.php
  72. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthResultRequest.php
  73. 97 0
      extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthResultResponse.php
  74. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthTokenRequest.php
  75. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthTokenResponse.php
  76. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/GetSdkVerificationResultRequest.php
  77. 135 0
      extend/TencentCloud/Faceid/V20180301/Models/GetSdkVerificationResultResponse.php
  78. 77 0
      extend/TencentCloud/Faceid/V20180301/Models/GetWeChatBillDetailsRequest.php
  79. 94 0
      extend/TencentCloud/Faceid/V20180301/Models/GetWeChatBillDetailsResponse.php
  80. 53 0
      extend/TencentCloud/Faceid/V20180301/Models/GetWebVerificationResultRequest.php
  81. 170 0
      extend/TencentCloud/Faceid/V20180301/Models/GetWebVerificationResultResponse.php
  82. 130 0
      extend/TencentCloud/Faceid/V20180301/Models/IdCardOCRVerificationRequest.php
  83. 205 0
      extend/TencentCloud/Faceid/V20180301/Models/IdCardOCRVerificationResponse.php
  84. 78 0
      extend/TencentCloud/Faceid/V20180301/Models/IdCardVerificationRequest.php
  85. 117 0
      extend/TencentCloud/Faceid/V20180301/Models/IdCardVerificationResponse.php
  86. 110 0
      extend/TencentCloud/Faceid/V20180301/Models/ImageRecognitionRequest.php
  87. 89 0
      extend/TencentCloud/Faceid/V20180301/Models/ImageRecognitionResponse.php
  88. 65 0
      extend/TencentCloud/Faceid/V20180301/Models/IntentionQuestion.php
  89. 145 0
      extend/TencentCloud/Faceid/V20180301/Models/IntentionQuestionResult.php
  90. 137 0
      extend/TencentCloud/Faceid/V20180301/Models/IntentionVerifyData.php
  91. 213 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessCompareRequest.php
  92. 121 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessCompareResponse.php
  93. 182 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessRecognitionRequest.php
  94. 121 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessRecognitionResponse.php
  95. 117 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessRequest.php
  96. 109 0
      extend/TencentCloud/Faceid/V20180301/Models/LivenessResponse.php
  97. 118 0
      extend/TencentCloud/Faceid/V20180301/Models/MinorsVerificationRequest.php
  98. 153 0
      extend/TencentCloud/Faceid/V20180301/Models/MinorsVerificationResponse.php
  99. 66 0
      extend/TencentCloud/Faceid/V20180301/Models/MobileNetworkTimeVerificationRequest.php
  100. 121 0
      extend/TencentCloud/Faceid/V20180301/Models/MobileNetworkTimeVerificationResponse.php

+ 491 - 0
extend/TencentCloud/Common/AbstractClient.php

@@ -0,0 +1,491 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common;
+
+use \ReflectionClass;
+
+use TencentCloud\Common\Http\HttpConnection;
+use TencentCloud\Common\Profile\ClientProfile;
+use TencentCloud\Common\Profile\HttpProfile;
+use TencentCloud\Common\Exception\TencentCloudSDKException;
+
+
+/**
+ * 抽象api类,禁止client引用
+ * @package TencentCloud\Common
+ */
+abstract class AbstractClient
+{
+    /**
+     * @var string SDK版本
+     */
+    public static $SDK_VERSION = "SDK_PHP_3.0.754";
+
+    /**
+     * @var integer http响应码200
+     */
+    public static $HTTP_RSP_OK = 200;
+
+    private $PHP_VERSION_MINIMUM = "5.6.0";
+
+    /**
+     * @var Credential 认证类实例,保存认证相关字段
+     */
+    private $credential;
+
+    /**
+     * @var ClientProfile 会话配置信息类
+     */
+    private $profile;
+
+    /**
+     * @var string 产品地域
+     */
+    private $region;
+
+    /**
+     * @var string 请求路径
+     */
+    private $path;
+
+    /**
+     * @var string sdk版本号
+     */
+    private $sdkVersion;
+
+    /**
+     * @var string api版本号
+     */
+    private $apiVersion;
+
+    /**
+     * @var HttpConnection
+     */
+    private $httpConn;
+
+    /**
+     * 基础client类
+     * @param string $endpoint Deprecated, we use service+rootdomain instead
+     * @param string $version api版本
+     * @param Credential $credential 认证信息实例
+     * @param string $region 产品地域
+     * @param ClientProfile $profile
+     */
+    function __construct($endpoint, $version, $credential, $region, $profile=null)
+    {
+        $this->path = "/";
+        $this->credential = $credential;
+        $this->region = $region;
+        if ($profile) {
+            $this->profile = $profile;
+        } else {
+            $this->profile = new ClientProfile();
+        }
+
+        $this->getRefreshedEndpoint();
+
+        $this->sdkVersion = AbstractClient::$SDK_VERSION;
+        $this->apiVersion = $version;
+
+        if (version_compare(phpversion(), $this->PHP_VERSION_MINIMUM, '<') && $profile->getCheckPHPVersion()) {
+            throw new TencentCloudSDKException("ClientError", "PHP version must >= ".$this->PHP_VERSION_MINIMUM.", your current is ".phpversion());
+        }
+
+        $this->httpConn = $this->createConnect();
+    }
+
+    /**
+     * 设置产品地域
+     * @param string $region 地域
+     */
+    public function setRegion($region)
+    {
+        $this->region = $region;
+    }
+
+    /**
+     * 获取产品地域
+     * @return string
+     */
+    public function getRegion()
+    {
+        return $this->region;
+    }
+
+    /**
+     * 设置认证信息实例
+     * @param Credential $credential 认证信息实例
+     */
+    public function setCredential($credential)
+    {
+        $this->credential = $credential;
+    }
+
+    /**
+     * 返回认证信息实例
+     * @return Credential
+     */
+    public function getCredential()
+    {
+        return $this->credential;
+    }
+
+    /**
+     * 设置配置实例
+     * @param ClientProfile $profile 配置实例
+     */
+    public function setClientProfile($profile)
+    {
+        $this->profile = $profile;
+    }
+
+    /**
+     * 返回配置实例
+     * @return ClientProfile
+     */
+    public function getClientProfile()
+    {
+        return $this->profile;
+    }
+
+    /**
+     * @param string $action  方法名
+     * @param array $request  参数列表
+     * @return mixed
+     * @throws TencentCloudSDKException
+     */
+    public function __call($action, $request)
+    {
+        return $this->doRequestWithOptions($action, $request[0], array());
+    }
+
+    /**
+     * @param string $action  方法名
+     * @param array  $headers  自定义headers
+     * @param string $body     content
+     * @return mixed
+     * @throws TencentCloudSDKException
+     */
+    public function call_octet_stream($action, $headers, $body) {
+        try {
+            $responseData = null;
+            $options = array(
+                "IsOctetStream" => true,
+            );
+            switch ($this->profile->getSignMethod()) {
+                case ClientProfile::$SIGN_TC3_SHA256:
+                    $responseData = $this->doRequestWithTC3($action, Null, $options, $headers, $body);
+                    break;
+                default:
+                    throw new TencentCloudSDKException("ClientError", "Invalid sign method");
+                    break;
+            }
+            if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
+                throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
+            }
+            $tmpResp = json_decode($responseData->getBody(), true)["Response"];
+            if (array_key_exists("Error", $tmpResp)) {
+                throw new TencentCloudSDKException($tmpResp["Error"]["Code"], $tmpResp["Error"]["Message"], $tmpResp["RequestId"]);
+            }
+
+            return $this->returnResponse($action, $tmpResp);
+        } catch (\Exception $e) {
+            if (!($e instanceof TencentCloudSDKException)) {
+                throw new TencentCloudSDKException("", $e->getMessage());
+            } else {
+                throw $e;
+            }
+        }
+    }
+
+    protected function doRequestWithOptions($action, $request, $options)
+    {
+        try {
+            $responseData = null;
+            $serializeRequest = $request->serialize();
+            $method = $this->getPrivateMethod($request, "arrayMerge");
+            $serializeRequest = $method->invoke($request, $serializeRequest);
+            switch ($this->profile->getSignMethod()) {
+                case ClientProfile::$SIGN_HMAC_SHA1:
+                case ClientProfile::$SIGN_HMAC_SHA256:
+                    $responseData = $this->doRequest($action, $serializeRequest);
+                    break;
+                case ClientProfile::$SIGN_TC3_SHA256:
+                    $responseData = $this->doRequestWithTC3($action, $request, $options, array(), "");
+                    break;
+                default:
+                    throw new TencentCloudSDKException("ClientError", "Invalid sign method");
+                    break;
+            }
+            if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
+                throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
+            }
+            $tmpResp = json_decode($responseData->getBody(), true)["Response"];
+            if (array_key_exists("Error", $tmpResp)) {
+                throw new TencentCloudSDKException($tmpResp["Error"]["Code"], $tmpResp["Error"]["Message"], $tmpResp["RequestId"]);
+            }
+
+            return $this->returnResponse($action, $tmpResp);
+        } catch (\Exception $e) {
+            if (!($e instanceof TencentCloudSDKException)) {
+                throw new TencentCloudSDKException("", $e->getMessage());
+            } else {
+                throw $e;
+            }
+        }
+    }
+
+    private function doRequest($action, $request)
+    {
+        switch ($this->profile->getHttpProfile()->getReqMethod()) {
+            case HttpProfile::$REQ_GET:
+                return $this->getRequest($action, $request);
+                break;
+            case HttpProfile::$REQ_POST:
+                return $this->postRequest($action, $request);
+                break;
+            default:
+                throw new TencentCloudSDKException("", "Method only support (GET, POST)");
+                break;
+        }
+    }
+
+    private function doRequestWithTC3($action, $request, $options, $headers, $payload)
+    {
+        $endpoint = $this->getRefreshedEndpoint();
+        $headers["Host"] = $endpoint;
+        $headers["X-TC-Action"] = ucfirst($action);
+        $headers["X-TC-RequestClient"] = $this->sdkVersion;
+        $headers["X-TC-Timestamp"] = time();
+        $headers["X-TC-Version"] = $this->apiVersion;
+
+        if ($this->region) {
+            $headers["X-TC-Region"] = $this->region;
+        }
+
+        if ($this->credential->getToken()) {
+            $headers["X-TC-Token"] = $this->credential->getToken();
+        }
+
+        $language = $this->profile->getLanguage();
+        if ($language) {
+            $headers["X-TC-Language"] = $language;
+        }
+
+        $canonicalUri = $this->path;
+
+        $reqmethod = $this->profile->getHttpProfile()->getReqMethod();
+        if (HttpProfile::$REQ_GET == $reqmethod) {
+            $headers["Content-Type"] = "application/x-www-form-urlencoded";
+            $rs = $request->serialize();
+            $am = $this->getPrivateMethod($request, "arrayMerge");
+            $rsam = $am->invoke($request, $rs);
+            $canonicalQueryString = http_build_query($rsam);
+            $payload = "";
+        }
+        if (HttpProfile::$REQ_POST == $reqmethod)  {
+             if (isset($options["IsMultipart"]) && $options["IsMultipart"] === true) {
+                 $boundary = uniqid();
+                 $headers["Content-Type"] = "multipart/form-data; boundary=" . $boundary;
+                 $canonicalQueryString = "";
+                 $payload = $this->getMultipartPayload($request, $boundary, $options);
+             } else if (isset($options["IsOctetStream"]) && $options["IsOctetStream"] === true) {
+                 $headers["Content-Type"] = "application/octet-stream";
+                 $canonicalQueryString = "";
+             } else {
+                 $headers["Content-Type"] = "application/json";
+                 $canonicalQueryString = "";
+                 $payload = $request->toJsonString();
+             }
+        }
+
+        if ($this->profile->getUnsignedPayload() == true) {
+            $headers["X-TC-Content-SHA256"] = "UNSIGNED-PAYLOAD";
+            $payloadHash = hash("SHA256", "UNSIGNED-PAYLOAD");
+        } else {
+            $payloadHash = hash("SHA256", $payload);
+        }
+
+
+        $canonicalHeaders = "content-type:".$headers["Content-Type"]."\n".
+                            "host:".$headers["Host"]."\n";
+        $signedHeaders = "content-type;host";
+        $canonicalRequest = $reqmethod."\n".
+                            $canonicalUri."\n".
+                            $canonicalQueryString."\n".
+                            $canonicalHeaders."\n".
+                            $signedHeaders."\n".
+                            $payloadHash;
+        $algo = "TC3-HMAC-SHA256";
+        // date_default_timezone_set('UTC');
+        // $date = date("Y-m-d", $headers["X-TC-Timestamp"]);
+        $date = gmdate("Y-m-d", $headers["X-TC-Timestamp"]);
+        $service = explode(".", $endpoint)[0];
+        $credentialScope = $date."/".$service."/tc3_request";
+        $hashedCanonicalRequest = hash("SHA256", $canonicalRequest);
+        $str2sign = $algo."\n".
+                    $headers["X-TC-Timestamp"]."\n".
+                    $credentialScope."\n".
+                    $hashedCanonicalRequest;
+        $skey = $this->credential->getSecretKey();
+        $signature = Sign::signTC3($skey, $date, $service, $str2sign);
+
+        $sid = $this->credential->getSecretId();
+        $auth = $algo.
+                " Credential=".$sid."/".$credentialScope.
+                ", SignedHeaders=content-type;host, Signature=".$signature;
+        $headers["Authorization"] = $auth;
+
+        if (HttpProfile::$REQ_GET == $reqmethod) {
+            $connect = $this->getConnect();
+            return $connect->getRequest($this->path, $canonicalQueryString, $headers);
+        } else {
+            $connect = $this->getConnect();
+            return $connect->postRequestRaw($this->path, $headers, $payload);
+        }
+    }
+
+    private function getMultipartPayload($request, $boundary, $options)
+    {
+        $body = "";
+        $params = $request->serialize();
+        foreach ($params as $key => $value) {
+            $body .= "--".$boundary."\r\n";
+            $body .= "Content-Disposition: form-data; name=\"".$key;
+            if (in_array($key, $options["BinaryParams"])) {
+                $body .= "\"; filename=\"".$key;
+            }
+            $body .= "\"\r\n";
+            if (is_array($value)) {
+                $value = json_encode($value);
+                $body .= "Content-Type: application/json\r\n";
+            }
+            $body .= "\r\n".$value."\r\n";
+        }
+        if ($body != "") {
+            $body .= "--".$boundary."--\r\n";
+        }
+        return $body;
+    }
+
+    /**
+     * @throws TencentCloudSDKException
+     */
+    private function getRequest($action, $request)
+    {
+        $query = $this->formatRequestData($action, $request, httpProfile::$REQ_GET);
+        $connect = $this->getConnect();
+        return $connect->getRequest($this->path, $query, []);
+    }
+
+    /**
+     * @throws TencentCloudSDKException
+     */
+    private function postRequest($action, $request)
+    {
+        $body = $this->formatRequestData($action, $request, httpProfile::$REQ_POST);
+        $connect = $this->getConnect();
+        return $connect->postRequest($this->path, [], $body);
+    }
+
+    /**
+     * @throws TencentCloudSDKException
+     */
+    private function formatRequestData($action, $request, $reqMethod)
+    {
+        $param = $request;
+        $param["Action"] = ucfirst($action);
+        $param["RequestClient"] = $this->sdkVersion;
+        $param["Nonce"] = rand();
+        $param["Timestamp"] = time();
+        $param["Version"] = $this->apiVersion;
+
+        if ($this->credential->getSecretId()) {
+            $param["SecretId"] = $this->credential->getSecretId();
+        }
+
+        if ($this->region) {
+            $param["Region"] = $this->region;
+        }
+
+        if ($this->credential->getToken()) {
+            $param["Token"] = $this->credential->getToken();
+        }
+
+        if ($this->profile->getSignMethod()) {
+            $param["SignatureMethod"] = $this->profile->getSignMethod();
+        }
+
+        $language = $this->profile->getLanguage();
+        if ($language) {
+            $param["Language"] = $language;
+        }
+
+        $signStr = $this->formatSignString($this->getRefreshedEndpoint(), $this->path, $param, $reqMethod);
+        $param["Signature"] = Sign::sign($this->credential->getSecretKey(), $signStr, $this->profile->getSignMethod());
+        return $param;
+    }
+
+    private function createConnect()
+    {
+        $prot = $this->profile->getHttpProfile()->getProtocol();
+        return new HttpConnection($prot.$this->getRefreshedEndpoint(), $this->profile);
+    }
+
+    private function getConnect() {
+        $keepAlive = $this->profile->getHttpProfile()->getKeepAlive();
+        if (true === $keepAlive) {
+            return $this->httpConn;
+        } else {
+            return $this->createConnect();
+        }
+    }
+
+    private function formatSignString($host, $uri, $param, $requestMethod)
+    {
+        $tmpParam = [];
+        ksort($param);
+        foreach ($param as $key => $value) {
+            array_push($tmpParam, $key . "=" . $value);
+        }
+        $strParam = join ("&", $tmpParam);
+        $signStr = strtoupper($requestMethod) . $host . $uri ."?".$strParam;
+        return $signStr;
+    }
+
+    private function getPrivateMethod($obj, $methodName) {
+        $objReflectClass = new ReflectionClass(get_class($obj));
+        $method = $objReflectClass->getMethod($methodName);
+        $method->setAccessible(true);
+        return $method;
+    }
+
+    /**
+     * User might call httpProfile.SetEndpoint after client is initialized,
+     * so everytime we get the enpoint we need to check it.
+     * Or we must find a way to disable such usage.
+     */
+    private function getRefreshedEndpoint() {
+        $this->endpoint = $this->profile->getHttpProfile()->getEndpoint();
+        if ($this->endpoint === null) {
+            $this->endpoint = $this->service.".".$this->profile->getHttpProfile()->getRootDomain();
+        }
+        return $this->endpoint;
+    }
+}

+ 129 - 0
extend/TencentCloud/Common/AbstractModel.php

@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common;
+use \ReflectionClass;
+
+/**
+ * 抽象model类,禁止client引用
+ * @package TencentCloud\Common
+ */
+abstract class AbstractModel
+{
+    /**
+     * 内部实现,用户禁止调用
+     */
+    public function serialize()
+    {
+        $ret = $this->objSerialize($this);
+		return $ret;
+    }
+
+    private function objSerialize($obj) {
+        $memberRet = [];
+        $ref = new ReflectionClass(get_class($obj));
+        $memberList = $ref->getProperties();
+        foreach ($memberList as $x => $member)
+        {
+            $name = ucfirst($member->getName());
+            $member->setAccessible(true);
+            $value = $member->getValue($obj);
+            if ($value === null) {
+                continue;
+            }
+            if ($value instanceof AbstractModel) {
+                $memberRet[$name] = $this->objSerialize($value);
+            } else if (is_array($value)) {
+                $memberRet[$name] = $this->arraySerialize($value);
+            } else {
+                $memberRet[$name] = $value;
+            }
+        }
+        return $memberRet;
+    }
+
+    private function arraySerialize($memberList) {
+        $memberRet = [];
+        foreach ($memberList as $name => $value)
+        {
+            if ($value === null) {
+                continue;
+            }
+            if ($value instanceof AbstractModel) {
+                $memberRet[$name] = $this->objSerialize($value);
+            } elseif (is_array($value)) {
+                $memberRet[$name] = $this->arraySerialize($value);
+            }else {
+                $memberRet[$name] = $value;
+            }
+        }
+        return $memberRet;
+    }
+
+    private function arrayMerge($array, $prepend = null)
+    {
+        $results = array();
+        foreach ($array as $key => $value) {
+            if (is_array($value)) {
+                $results = array_merge($results, static::arrayMerge($value, $prepend.$key.'.'));
+            }
+            else {
+                if (is_bool($value)) {
+                    $results[$prepend.$key] = json_encode($value);
+                } else {
+                    $results[$prepend.$key] = $value;
+                }
+
+            }
+        }
+        return $results;
+    }
+
+    abstract public function deserialize($param);
+
+    /**
+     * @param string $jsonString json格式的字符串
+     */
+    public function fromJsonString($jsonString)
+    {
+        $arr = json_decode($jsonString, true);
+        $this->deserialize($arr);
+    }
+
+    public function toJsonString()
+    {
+        $r = $this->serialize();
+        // it is an object rather than an array
+        if (empty($r)) {
+            return "{}";
+        }
+        return json_encode($r, JSON_UNESCAPED_UNICODE);
+    }
+
+    public function __call($member, $param)
+    {
+        $act = substr($member,0,3);
+        $attr = substr($member,3);
+        if ($act === "get") {
+            return $this->$attr;
+        } else if ($act === "set") {
+            $this->$attr = $param[0];
+        }
+    }
+}
+

+ 107 - 0
extend/TencentCloud/Common/Credential.php

@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common;
+
+/**
+ * 证书类,保存认证相关参数
+ * @package TencentCloud\Common
+ */
+class Credential
+{
+    /**
+     * @var string secretId
+     */
+    private $secretId;
+
+    /**
+     * @var string secretKey
+     */
+    private $secretKey;
+
+    /**
+     * @var string token
+     */
+    private $token;
+
+    /**
+     * Credential constructor.
+     * @param string $secretId   secretId
+     * @param string $secretKey  secretKey
+     * @param string $token token
+     */
+    public function __construct($secretId, $secretKey, $token = null)
+    {
+        $this->secretId = $secretId;
+        $this->secretKey = $secretKey;
+        $this->token = $token;
+    }
+
+    /**
+     * 设置secretId
+     * @param string $secretId secretId
+     */
+    public function  setSecretId($secretId)
+    {
+        $this->secretId = $secretId;
+    }
+
+    /**
+     * 设置secretKey
+     * @param string $secretKey secretKey
+     */
+    public function setSecretKey($secretKey)
+    {
+        $this->secretKey = $secretKey;
+    }
+
+    /**
+     * @param string $token 要设置的token
+     */
+    public function setToken($token)
+    {
+        $this->token = $token;
+    }
+
+    /**
+     * 获取secretId
+     * @return string secretId
+     */
+    public function getSecretId()
+    {
+        return $this->secretId;
+    }
+
+    /**
+     * 获取secretKey
+     * @return string secretKey
+     */
+    public function getSecretKey()
+    {
+        return $this->secretKey;
+    }
+
+    /**
+     * 获取token
+     * @return null|string token
+     */
+    public function getToken()
+    {
+        return $this->token;
+    }
+}

+ 77 - 0
extend/TencentCloud/Common/Exception/TencentCloudSDKException.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common\Exception;
+
+/**
+ * sdk异常类
+ * @package TencentCloud\Common\Exception
+ */
+class TencentCloudSDKException extends \Exception
+{
+    /**
+     * @var string 请求id
+     */
+    private $requestId;
+
+    private $errorCode;
+
+
+    /**
+     * TencentCloudSDKException constructor.
+     * @param string $code 异常错误码
+     * @param string $message 异常信息
+     * @param string $requestId 请求ID
+     */
+    public function __construct($code = "", $message = "",  $requestId = "")
+    {
+        parent::__construct($message, 0);
+        $this->errorCode = $code;
+        $this->requestId = $requestId;
+    }
+
+    /**
+     * 返回请求id
+     * @return string
+     */
+    public function getRequestId()
+    {
+        return $this->requestId;
+    }
+
+    /**
+     * 返回错误码
+     * @return string
+     */
+    public function getErrorCode()
+    {
+        return $this->errorCode;
+    }
+
+    /**
+     * 格式化输出异常码,异常信息,请求id
+     * @return string
+     */
+    public function __toString()
+    {
+        return "[".__CLASS__."]"." code:".$this->errorCode.
+            " message:".$this->getMessage().
+            " requestId:".$this->requestId;
+    }
+}
+

+ 85 - 0
extend/TencentCloud/Common/Http/HttpConnection.php

@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common\Http;
+
+use GuzzleHttp\Client;
+
+/**
+ * http连接类
+ * @package TencentCloud\Common\http
+ */
+class HttpConnection
+{
+    private $client;
+    private $profile;
+    function __construct($url, $profile)
+    {
+        $this->client = new Client(["base_uri" => $url]);
+        $this->profile = $profile;
+    }
+
+    private  function getOptions()
+    {
+        $options = ["allow_redirects" => false];
+        $options["timeout"] = $this->profile->getHttpProfile()->getReqTimeout();
+        $options["proxy"] = $this->profile->getHttpProfile()->getProxy();
+        return $options;
+    }
+
+    public function getRequest($uri = '', $query = [], $headers = [])
+    {
+        $options = $this->getOptions();
+
+        if ($query) {
+            $options["query"] = $query;
+        }
+
+        if ($headers) {
+            $options["headers"] = $headers;
+        }
+        return $this->client->get($uri, $options);
+    }
+
+    public function postRequest($uri = '', $headers = [], $body = '')
+    {
+        $options  = $this->getOptions();
+        if ($headers) {
+            $options["headers"] = $headers;
+        }
+
+        if ($body) {
+            $options["form_params"] = $body;
+        }
+        return $this->client->post($uri, $options);
+    }
+
+    public function postRequestRaw($uri = '', $headers = [], $body = '')
+    {
+        $options  = $this->getOptions();
+        if ($headers) {
+            $options["headers"] = $headers;
+        }
+
+        if ($body) {
+            $options["body"] = $body;
+        }
+        return $this->client->post($uri, $options);
+    }
+}
+

+ 170 - 0
extend/TencentCloud/Common/Profile/ClientProfile.php

@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common\Profile;
+
+/**
+ * client可选参数类
+ * Class ClientProfile
+ * @package TencentCloud\Common\Profile
+ */
+class ClientProfile
+{
+
+    /**
+     * @var string  hmacsha1算法
+     */
+    public static $SIGN_HMAC_SHA1 = "HmacSHA1";
+
+    /**
+     * @var string hmacsha256算法
+     */
+    public static $SIGN_HMAC_SHA256 = "HmacSHA256";
+
+    /**
+     * @var string 签名V3
+     */
+    public static $SIGN_TC3_SHA256 = "TC3-HMAC-SHA256";
+
+    /**
+     * @var string Chinese simplified
+     */
+    public static $ZH_CN = "zh-CN";
+
+    /**
+     * @var string English
+     */
+    public static $EN_US = "en-US";
+
+    /**
+     * @var HttpProfile http相关参数
+     */
+    private $httpProfile;
+
+    /**
+     * @var string 签名方法
+     */
+    private $signMethod;
+
+    /**
+     * @var string 忽略内容签名
+     */
+    private $unsignedPayload;
+
+    /**
+     * @var boolean
+     */
+    private $checkPHPVersion;
+
+    /**
+     * @var string
+     */
+    private $language;
+
+
+    /**
+     * ClientProfile constructor.
+     * @param string $signMethod  签名算法,目前支持SHA256,SHA1
+     * @param HttpProfile $httpProfile http参数类
+     */
+    public function __construct($signMethod = null, $httpProfile = null)
+    {
+        $this->signMethod = $signMethod ? $signMethod : ClientProfile::$SIGN_TC3_SHA256;
+        $this->httpProfile = $httpProfile ? $httpProfile : new HttpProfile();
+        $this->unsignedPayload = false;
+	$this->checkPHPVersion = true;
+	//$this->language = ClientProfile::$ZH_CN;
+    }
+
+    /**
+     * 设置签名算法
+     * @param string $signMethod 签名方法,目前支持SHA256,SHA1, TC3
+     */
+    public function setSignMethod($signMethod)
+    {
+        $this->signMethod = $signMethod;
+    }
+
+    /**
+     * 设置http相关参数
+     * @param HttpProfile $httpProfile http相关参数
+     */
+    public function setHttpProfile($httpProfile)
+    {
+        $this->httpProfile = $httpProfile;
+    }
+
+    /**
+     * 获取签名方法
+     * @return null|string 签名方法
+     */
+    public function getSignMethod()
+    {
+        return $this->signMethod;
+    }
+
+    /**
+     * 设置是否忽略内容签名
+     * @param bool $flag true表示忽略签名
+     */
+    public function setUnsignedPayload($flag)
+    {
+        $this->unsignedPayload = $flag;
+    }
+
+    /**
+     * 获取是否忽略内容签名标志位
+     * @return bool
+     */
+    public function getUnsignedPayload()
+    {
+        return $this->unsignedPayload;
+    }
+
+    public function getCheckPHPVersion()
+    {
+        return $this->checkPHPVersion;
+    }
+
+    public function setCheckPHPVersion($flag)
+    {
+        $this->checkPHPVersion = $flag;
+    }
+
+    public function getLanguage()
+    {
+	return $this->language;
+    }
+
+    /**
+     * @param string $language Valid values: zh-CN, en-US
+     */
+    public function setLanguage($language)
+    {
+	$this->language = $language;
+    }
+
+    /**
+     * 获取http选项实例
+     * @return null|HttpProfile http选项实例
+     */
+    public function getHttpProfile()
+    {
+        return $this->httpProfile;
+    }
+}

+ 215 - 0
extend/TencentCloud/Common/Profile/HttpProfile.php

@@ -0,0 +1,215 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common\Profile;
+
+/**
+ * http相关参数类
+ * Class HttpProfile
+ * @package TencentCloud\Common\Profile
+ */
+class HttpProfile
+{
+
+    /**
+     * @var string https访问
+     */
+    public static $REQ_HTTPS = "https://";
+
+    /**
+     * @var string http访问
+     */
+    public static $REQ_HTTP = "http://";
+
+    /**
+     * @var string  post请求
+     */
+    public static $REQ_POST = "POST";
+
+    /**
+     * @var string  get请求
+     */
+    public static $REQ_GET = "GET";
+
+    /**
+     * @var int 时间一分钟
+     */
+    public static $TM_MINUTE = 60;
+
+    /**
+     * @var string http请求方法
+     */
+    private $reqMethod;
+
+    /**
+     * @var string 请求接入点域名
+     */
+    private $endpoint;
+
+    /**
+     * @var integer 请求超时时长,单位为秒
+     */
+    private $reqTimeout;
+
+    /**
+     * @var string 请求协议
+     */
+    private $protocol;
+
+    /**
+     * @var string|array 请求代理
+     */
+    private $proxy;
+
+    /**
+     * @var string
+     */
+    private $rootDomain;
+
+    /**
+     * @var boolean
+     */
+    private $keepAlive;
+
+    /**
+     * HttpProfile constructor.
+     * @param string $protocol  请求协议
+     * @param string $endpoint  请求接入点域名(xx.[region.]tencentcloudapi.com)
+     * @param string $reqMethod http请求方法,目前支持POST GET
+     * @param integer $reqTimeout 请求超时时间,单位:s
+     */
+    public function __construct($protocol = null, $endpoint = null, $reqMethod = null,  $reqTimeout = null)
+    {
+        $this->reqMethod = $reqMethod ? $reqMethod : HttpProfile::$REQ_POST;
+        $this->endpoint = $endpoint;
+        $this->reqTimeout = $reqTimeout ? $reqTimeout : HttpProfile::$TM_MINUTE;
+        $this->protocol = $protocol ? $protocol : HttpProfile::$REQ_HTTPS;
+        $this->rootDomain = "tencentcloudapi.com";
+        $this->keepAlive = false;
+    }
+
+    /**
+     * 设置http请求方法
+     * @param string $reqMethod http请求方法,目前支持POST GET
+     */
+    public function setReqMethod($reqMethod)
+    {
+        $this->reqMethod = $reqMethod;
+    }
+
+    /**
+     * 设置请求协议
+     * @param string $protocol 请求协议(https://  http://)
+     */
+    public function setProtocol($protocol) {
+        $this->protocol = $protocol;
+    }
+
+    /**
+     * 设置请求接入点域名
+     * @param string $endpoint 请求接入点域名(xx.[region.]tencentcloudapi.com)
+     */
+    public function setEndpoint($endpoint)
+    {
+        $this->endpoint = $endpoint;
+    }
+
+    /**
+     * 设置请求超时时间
+     * @param integer $reqTimeout 请求超时时间,单位:s
+     */
+    public function setReqTimeout($reqTimeout)
+    {
+        $this->reqTimeout = $reqTimeout;
+    }
+
+    /**
+     * 设置请求代理
+     * @param string|array $proxy 请求代理配置
+     */
+    public function setProxy($proxy)
+    {
+        $this->proxy = $proxy;
+    }
+
+    /**
+     * 获取请求方法
+     * @return null|string 请求方法
+     */
+    public function getReqMethod()
+    {
+        return $this->reqMethod;
+    }
+
+    /**
+     * 获取请求协议
+     * @return null|string 请求协议
+     */
+    public function getProtocol()
+    {
+        return $this->protocol;
+    }
+
+    /**
+     * 获取请求超时时间
+     * @return int 请求超时时间
+     */
+    public function getReqTimeout()
+    {
+        return $this->reqTimeout;
+    }
+
+    /**
+     * 获取请求接入点域名
+     * @return null|string 接入点域名
+     */
+    public function getEndpoint()
+    {
+        return $this->endpoint;
+    }
+
+    /**
+     * 获取请求代理
+     * @return null|string|array
+     */
+    public function getProxy()
+    {
+        return $this->proxy;
+    }
+
+    public function setRootDomain($domain)
+    {
+        $this->rootDomain = $domain;
+    }
+
+    public function getRootDomain()
+    {
+        return $this->rootDomain;
+    }
+
+    /**
+     * @param boolean $flag
+     */
+    public function setKeepAlive($flag) {
+        $this->keepAlive = $flag;
+    }
+
+    public function getKeepAlive() {
+        return $this->keepAlive;
+    }
+}

+ 49 - 0
extend/TencentCloud/Common/Sign.php

@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace TencentCloud\Common;
+
+use TencentCloud\Common\Exception\TencentCloudSDKException;
+/**
+ * 签名类,禁止client引用
+ * @package TencentCloud\Common
+ * @throws TencentCloudSDKException
+ */
+class Sign
+{
+    /**
+     * @throws TencentCloudSDKException
+     */
+    public static function sign($secretKey, $signStr, $signMethod)
+    {
+        $signMethodMap = ["HmacSHA1" => "SHA1", "HmacSHA256" => "SHA256"];
+        if (!array_key_exists($signMethod, $signMethodMap)) {
+            throw new TencentCloudSDKException("signMethod invalid", "signMethod only support (HmacSHA1, HmacSHA256)");
+        }
+        $signature = base64_encode(hash_hmac($signMethodMap[$signMethod], $signStr, $secretKey, true));
+        return $signature;
+    }
+
+    public static function signTC3($skey, $date, $service, $str2sign)
+    {
+        $dateKey = hash_hmac("SHA256", $date, "TC3".$skey, true);
+        $serviceKey = hash_hmac("SHA256", $service, $dateKey, true);
+        $reqKey = hash_hmac("SHA256", "tc3_request", $serviceKey, true);
+        return hash_hmac("SHA256", $str2sign, $reqKey);
+    }
+}

+ 113 - 0
extend/TencentCloud/Faceid/V20180301/FaceidClient.php

@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace TencentCloud\Faceid\V20180301;
+
+use TencentCloud\Common\AbstractClient;
+use TencentCloud\Common\Profile\ClientProfile;
+use TencentCloud\Common\Credential;
+use TencentCloud\Faceid\V20180301\Models as Models;
+
+/**
+ * @method Models\ApplyLivenessTokenResponse ApplyLivenessToken(Models\ApplyLivenessTokenRequest $req) 每次调用活体服务前,需要先调用本接口获取Token,需要保存此Token用来发起核验流程,并且在核验完成后获取结果信息。
+ * @method Models\ApplySdkVerificationTokenResponse ApplySdkVerificationToken(Models\ApplySdkVerificationTokenRequest $req) 每次调用Web核验服务前,需要先调用本接口获取Token,需要保存此Token用来发起核验流程,并且在核验完成后获取结果信息。
+ * @method Models\ApplyWebVerificationTokenResponse ApplyWebVerificationToken(Models\ApplyWebVerificationTokenRequest $req) 每次调用Web核验服务前,需要先调用本接口获取BizToken,需要保存此BizToken用来发起核验流程,并且在核验完成后获取结果信息。
+ * @method Models\BankCard2EVerificationResponse BankCard2EVerification(Models\BankCard2EVerificationRequest $req) 本接口用于校验姓名和银行卡号的真实性和一致性。
+ * @method Models\BankCard4EVerificationResponse BankCard4EVerification(Models\BankCard4EVerificationRequest $req) 本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
+ * @method Models\BankCardVerificationResponse BankCardVerification(Models\BankCardVerificationRequest $req) 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
+ * @method Models\CheckBankCardInformationResponse CheckBankCardInformation(Models\CheckBankCardInformationRequest $req) 银行卡基础信息查询
+ * @method Models\CheckEidTokenStatusResponse CheckEidTokenStatus(Models\CheckEidTokenStatusRequest $req) 用于轮询E证通H5场景EidToken验证状态。
+ * @method Models\CheckIdCardInformationResponse CheckIdCardInformation(Models\CheckIdCardInformationRequest $req) 传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
+ * @method Models\CheckIdNameDateResponse CheckIdNameDate(Models\CheckIdNameDateRequest $req) 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
+ * @method Models\CheckPhoneAndNameResponse CheckPhoneAndName(Models\CheckPhoneAndNameRequest $req) 手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
+
+ * @method Models\CreateUploadUrlResponse CreateUploadUrl(Models\CreateUploadUrlRequest $req) 生成一个临时的UploadUrl用于上传资源文件,客户需要使用HTTP PUT方法上传,上传完成后将ResourceUrl传给TargetAction对应接口完成资源传递(具体字段由使用场景确定)。
+数据存储于Region参数对应地域的腾讯云COS Bucket,存储有效期2小时。
+ * @method Models\DetectAuthResponse DetectAuth(Models\DetectAuthRequest $req) 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
+ * @method Models\DetectReflectLivenessAndCompareResponse DetectReflectLivenessAndCompare(Models\DetectReflectLivenessAndCompareRequest $req) 使用活体比对(光线)SDK生成的数据包检测活体,并和传入的图片进行比对。
+图片和SDK生成的数据内容必须存储在腾讯云COS,COS Bucket所在的Region需要和本接口请求的Region保持一致,推荐使用生成上传链接接口来完成资源传递。
+ * @method Models\EncryptedPhoneVerificationResponse EncryptedPhoneVerification(Models\EncryptedPhoneVerificationRequest $req) 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
+ * @method Models\GenerateReflectSequenceResponse GenerateReflectSequence(Models\GenerateReflectSequenceRequest $req) 根据活体比对(光线)SDK采集的机器信息生成适合的光线序列,将光线序列传入SDK后开启核身。
+SDK生成的数据内容必须存储在腾讯云COS,COS Bucket所在的Region需要和本接口请求的Region保持一致,推荐使用生成上传链接接口来完成资源传递。
+ * @method Models\GetActionSequenceResponse GetActionSequence(Models\GetActionSequenceRequest $req) 使用动作活体检测模式前,需调用本接口获取动作顺序。
+ * @method Models\GetDetectInfoResponse GetDetectInfo(Models\GetDetectInfoRequest $req) 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
+ * @method Models\GetDetectInfoEnhancedResponse GetDetectInfoEnhanced(Models\GetDetectInfoEnhancedRequest $req) 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
+ * @method Models\GetEidResultResponse GetEidResult(Models\GetEidResultRequest $req) 完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
+ * @method Models\GetEidTokenResponse GetEidToken(Models\GetEidTokenRequest $req) 每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
+ * @method Models\GetFaceIdResultResponse GetFaceIdResult(Models\GetFaceIdResultRequest $req) 完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
+ * @method Models\GetFaceIdTokenResponse GetFaceIdToken(Models\GetFaceIdTokenRequest $req) 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
+ * @method Models\GetLiveCodeResponse GetLiveCode(Models\GetLiveCodeRequest $req) 使用数字活体检测模式前,需调用本接口获取数字验证码。
+ * @method Models\GetLivenessResultResponse GetLivenessResult(Models\GetLivenessResultRequest $req) 完成活体检测流程后,用核验令牌(SdkToken)调用本接口查询对应核验结果信息。Token申请后2小时内有效,可多次调用。
+ * @method Models\GetRealNameAuthResultResponse GetRealNameAuthResult(Models\GetRealNameAuthResultRequest $req) 获取微信实名认证结果
+ * @method Models\GetRealNameAuthTokenResponse GetRealNameAuthToken(Models\GetRealNameAuthTokenRequest $req) 该接口仅限微信公众号中使用,传入姓名和身份证号获取回调URL,在微信公众号中打开验证姓名和身份证号与微信实名的信息是否一致。
+
+ * @method Models\GetSdkVerificationResultResponse GetSdkVerificationResult(Models\GetSdkVerificationResultRequest $req) 完成Sdk核验流程后,用核验令牌(Token)调用本接口查询对应核验结果信息。Token申请后三天内有效,可多次调用。
+ * @method Models\GetWeChatBillDetailsResponse GetWeChatBillDetails(Models\GetWeChatBillDetailsRequest $req) 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
+ * @method Models\GetWebVerificationResultResponse GetWebVerificationResult(Models\GetWebVerificationResultRequest $req) 完成Web核验流程后,用核验令牌(BizToken)调用本接口查询对应核验结果信息。BizToken申请后三天内(3\*24\*3,600秒)有效,可多次调用。
+ * @method Models\IdCardOCRVerificationResponse IdCardOCRVerification(Models\IdCardOCRVerificationRequest $req) 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
+ * @method Models\IdCardVerificationResponse IdCardVerification(Models\IdCardVerificationRequest $req) 传入姓名和身份证号,校验两者的真实性和一致性。
+ * @method Models\ImageRecognitionResponse ImageRecognition(Models\ImageRecognitionRequest $req) 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
+ * @method Models\LivenessResponse Liveness(Models\LivenessRequest $req) 活体检测
+ * @method Models\LivenessCompareResponse LivenessCompare(Models\LivenessCompareRequest $req) 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
+ * @method Models\LivenessRecognitionResponse LivenessRecognition(Models\LivenessRecognitionRequest $req) 传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
+ * @method Models\MinorsVerificationResponse MinorsVerification(Models\MinorsVerificationRequest $req) 通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
+ * @method Models\MobileNetworkTimeVerificationResponse MobileNetworkTimeVerification(Models\MobileNetworkTimeVerificationRequest $req) 本接口用于查询手机号在网时长,输入手机号进行查询。
+ * @method Models\MobileStatusResponse MobileStatus(Models\MobileStatusRequest $req) 本接口用于验证手机号的状态,您可以输入手机号进行查询。
+ * @method Models\ParseNfcDataResponse ParseNfcData(Models\ParseNfcDataRequest $req) 解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
+ * @method Models\PhoneVerificationResponse PhoneVerification(Models\PhoneVerificationRequest $req) 本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
+ * @method Models\PhoneVerificationCMCCResponse PhoneVerificationCMCC(Models\PhoneVerificationCMCCRequest $req) 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
+ * @method Models\PhoneVerificationCTCCResponse PhoneVerificationCTCC(Models\PhoneVerificationCTCCRequest $req) 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
+ * @method Models\PhoneVerificationCUCCResponse PhoneVerificationCUCC(Models\PhoneVerificationCUCCRequest $req) 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
+ * @method Models\VideoLivenessCompareResponse VideoLivenessCompare(Models\VideoLivenessCompareRequest $req) 传入视频和照片地址,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
+ */
+
+class FaceidClient extends AbstractClient
+{
+    /**
+     * @var string
+     */
+    protected $endpoint = "faceid.tencentcloudapi.com";
+
+    /**
+     * @var string
+     */
+    protected $service = "faceid";
+
+    /**
+     * @var string
+     */
+    protected $version = "2018-03-01";
+
+    /**
+     * @param Credential $credential
+     * @param string $region
+     * @param ClientProfile|null $profile
+     * @throws TencentCloudSDKException
+     */
+    function __construct($credential, $region, $profile=null)
+    {
+        parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
+    }
+
+    public function returnResponse($action, $response)
+    {
+        $respClass = "TencentCloud"."\\".ucfirst("faceid")."\\"."V20180301\\Models"."\\".ucfirst($action)."Response";
+        $obj = new $respClass();
+        $obj->deserialize($response);
+        return $obj;
+    }
+}

+ 73 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplyLivenessTokenRequest.php

@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplyLivenessToken请求参数结构体
+ *
+ * @method string getSecureLevel() 获取枚举值,取值范围:1、2、3、4
+各个含义如下
+1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+ * @method void setSecureLevel(string $SecureLevel) 设置枚举值,取值范围:1、2、3、4
+各个含义如下
+1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+ */
+class ApplyLivenessTokenRequest extends AbstractModel
+{
+    /**
+     * @var string 枚举值,取值范围:1、2、3、4
+各个含义如下
+1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+     */
+    public $SecureLevel;
+
+    /**
+     * @param string $SecureLevel 枚举值,取值范围:1、2、3、4
+各个含义如下
+1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("SecureLevel",$param) and $param["SecureLevel"] !== null) {
+            $this->SecureLevel = $param["SecureLevel"];
+        }
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplyLivenessTokenResponse.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplyLivenessToken返回参数结构体
+ *
+ * @method string getSdkToken() 获取标识一次SDK核验流程的令牌,有效时间为10分钟。流程结束后可用该令牌获取核验结果信息。
+ * @method void setSdkToken(string $SdkToken) 设置标识一次SDK核验流程的令牌,有效时间为10分钟。流程结束后可用该令牌获取核验结果信息。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class ApplyLivenessTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 标识一次SDK核验流程的令牌,有效时间为10分钟。流程结束后可用该令牌获取核验结果信息。
+     */
+    public $SdkToken;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $SdkToken 标识一次SDK核验流程的令牌,有效时间为10分钟。流程结束后可用该令牌获取核验结果信息。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("SdkToken",$param) and $param["SdkToken"] !== null) {
+            $this->SdkToken = $param["SdkToken"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 101 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplySdkVerificationTokenRequest.php

@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplySdkVerificationToken请求参数结构体
+ *
+ * @method boolean getNeedVerifyIdCard() 获取是否需要身份证鉴伪,如果不需要,则仅做证件OCR。当前仅IdCardType为HK支持鉴伪。
+ * @method void setNeedVerifyIdCard(boolean $NeedVerifyIdCard) 设置是否需要身份证鉴伪,如果不需要,则仅做证件OCR。当前仅IdCardType为HK支持鉴伪。
+ * @method string getIdCardType() 获取卡证类型,当前仅支持HK(香港身份证),ML(马来西亚身份证),PhilippinesVoteID(菲律宾选民卡),PhilippinesDrivingLicense(菲律宾驾驶证)。默认为HK。
+ * @method void setIdCardType(string $IdCardType) 设置卡证类型,当前仅支持HK(香港身份证),ML(马来西亚身份证),PhilippinesVoteID(菲律宾选民卡),PhilippinesDrivingLicense(菲律宾驾驶证)。默认为HK。
+ * @method boolean getDisableChangeOcrResult() 获取是否允许用户修改ocr结果,默认false,允许。
+ * @method void setDisableChangeOcrResult(boolean $DisableChangeOcrResult) 设置是否允许用户修改ocr结果,默认false,允许。
+ * @method boolean getDisableCheckOcrWarnings() 获取是否关闭OCR告警,默认false,不关闭。如果为false开启OCR告警,我们会根据Ocr的告警信息进行拦截,当NeedVerifyIdCard为true时该字段将为true。
+ * @method void setDisableCheckOcrWarnings(boolean $DisableCheckOcrWarnings) 设置是否关闭OCR告警,默认false,不关闭。如果为false开启OCR告警,我们会根据Ocr的告警信息进行拦截,当NeedVerifyIdCard为true时该字段将为true。
+ * @method string getExtra() 获取透传字段,在获取验证结果时返回,最长1024位。
+ * @method void setExtra(string $Extra) 设置透传字段,在获取验证结果时返回,最长1024位。
+ */
+class ApplySdkVerificationTokenRequest extends AbstractModel
+{
+    /**
+     * @var boolean 是否需要身份证鉴伪,如果不需要,则仅做证件OCR。当前仅IdCardType为HK支持鉴伪。
+     */
+    public $NeedVerifyIdCard;
+
+    /**
+     * @var string 卡证类型,当前仅支持HK(香港身份证),ML(马来西亚身份证),PhilippinesVoteID(菲律宾选民卡),PhilippinesDrivingLicense(菲律宾驾驶证)。默认为HK。
+     */
+    public $IdCardType;
+
+    /**
+     * @var boolean 是否允许用户修改ocr结果,默认false,允许。
+     */
+    public $DisableChangeOcrResult;
+
+    /**
+     * @var boolean 是否关闭OCR告警,默认false,不关闭。如果为false开启OCR告警,我们会根据Ocr的告警信息进行拦截,当NeedVerifyIdCard为true时该字段将为true。
+     */
+    public $DisableCheckOcrWarnings;
+
+    /**
+     * @var string 透传字段,在获取验证结果时返回,最长1024位。
+     */
+    public $Extra;
+
+    /**
+     * @param boolean $NeedVerifyIdCard 是否需要身份证鉴伪,如果不需要,则仅做证件OCR。当前仅IdCardType为HK支持鉴伪。
+     * @param string $IdCardType 卡证类型,当前仅支持HK(香港身份证),ML(马来西亚身份证),PhilippinesVoteID(菲律宾选民卡),PhilippinesDrivingLicense(菲律宾驾驶证)。默认为HK。
+     * @param boolean $DisableChangeOcrResult 是否允许用户修改ocr结果,默认false,允许。
+     * @param boolean $DisableCheckOcrWarnings 是否关闭OCR告警,默认false,不关闭。如果为false开启OCR告警,我们会根据Ocr的告警信息进行拦截,当NeedVerifyIdCard为true时该字段将为true。
+     * @param string $Extra 透传字段,在获取验证结果时返回,最长1024位。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("NeedVerifyIdCard",$param) and $param["NeedVerifyIdCard"] !== null) {
+            $this->NeedVerifyIdCard = $param["NeedVerifyIdCard"];
+        }
+
+        if (array_key_exists("IdCardType",$param) and $param["IdCardType"] !== null) {
+            $this->IdCardType = $param["IdCardType"];
+        }
+
+        if (array_key_exists("DisableChangeOcrResult",$param) and $param["DisableChangeOcrResult"] !== null) {
+            $this->DisableChangeOcrResult = $param["DisableChangeOcrResult"];
+        }
+
+        if (array_key_exists("DisableCheckOcrWarnings",$param) and $param["DisableCheckOcrWarnings"] !== null) {
+            $this->DisableCheckOcrWarnings = $param["DisableCheckOcrWarnings"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplySdkVerificationTokenResponse.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplySdkVerificationToken返回参数结构体
+ *
+ * @method string getSdkToken() 获取标识一次SDK核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+ * @method void setSdkToken(string $SdkToken) 设置标识一次SDK核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class ApplySdkVerificationTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 标识一次SDK核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+     */
+    public $SdkToken;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $SdkToken 标识一次SDK核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("SdkToken",$param) and $param["SdkToken"] !== null) {
+            $this->SdkToken = $param["SdkToken"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 85 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplyWebVerificationTokenRequest.php

@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplyWebVerificationToken请求参数结构体
+ *
+ * @method string getRedirectUrl() 获取核验结束后重定向的Web回跳地址。
+ * @method void setRedirectUrl(string $RedirectUrl) 设置核验结束后重定向的Web回跳地址。
+ * @method string getCompareImageUrl() 获取人脸比对照片的腾讯云对象存储地址,可以使用以下两种方式:
+1. 调用CreateUploadUrl接口生成,确保成功上传照片后再调用此接口。
+2. 使用已有的腾讯云对象存储地址,如果是私有读写桶,请使用预签名URL授予下载权限,对象存储地域需要和入参Region保持一致。
+ * @method void setCompareImageUrl(string $CompareImageUrl) 设置人脸比对照片的腾讯云对象存储地址,可以使用以下两种方式:
+1. 调用CreateUploadUrl接口生成,确保成功上传照片后再调用此接口。
+2. 使用已有的腾讯云对象存储地址,如果是私有读写桶,请使用预签名URL授予下载权限,对象存储地域需要和入参Region保持一致。
+ * @method string getCompareImageMd5() 获取人脸比对照片(CompareImageUrl)内容的MD5散列值。
+ * @method void setCompareImageMd5(string $CompareImageMd5) 设置人脸比对照片(CompareImageUrl)内容的MD5散列值。
+ */
+class ApplyWebVerificationTokenRequest extends AbstractModel
+{
+    /**
+     * @var string 核验结束后重定向的Web回跳地址。
+     */
+    public $RedirectUrl;
+
+    /**
+     * @var string 人脸比对照片的腾讯云对象存储地址,可以使用以下两种方式:
+1. 调用CreateUploadUrl接口生成,确保成功上传照片后再调用此接口。
+2. 使用已有的腾讯云对象存储地址,如果是私有读写桶,请使用预签名URL授予下载权限,对象存储地域需要和入参Region保持一致。
+     */
+    public $CompareImageUrl;
+
+    /**
+     * @var string 人脸比对照片(CompareImageUrl)内容的MD5散列值。
+     */
+    public $CompareImageMd5;
+
+    /**
+     * @param string $RedirectUrl 核验结束后重定向的Web回跳地址。
+     * @param string $CompareImageUrl 人脸比对照片的腾讯云对象存储地址,可以使用以下两种方式:
+1. 调用CreateUploadUrl接口生成,确保成功上传照片后再调用此接口。
+2. 使用已有的腾讯云对象存储地址,如果是私有读写桶,请使用预签名URL授予下载权限,对象存储地域需要和入参Region保持一致。
+     * @param string $CompareImageMd5 人脸比对照片(CompareImageUrl)内容的MD5散列值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("RedirectUrl",$param) and $param["RedirectUrl"] !== null) {
+            $this->RedirectUrl = $param["RedirectUrl"];
+        }
+
+        if (array_key_exists("CompareImageUrl",$param) and $param["CompareImageUrl"] !== null) {
+            $this->CompareImageUrl = $param["CompareImageUrl"];
+        }
+
+        if (array_key_exists("CompareImageMd5",$param) and $param["CompareImageMd5"] !== null) {
+            $this->CompareImageMd5 = $param["CompareImageMd5"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/ApplyWebVerificationTokenResponse.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ApplyWebVerificationToken返回参数结构体
+ *
+ * @method string getVerificationUrl() 获取用户浏览器需要打开此地址开始核验流程。
+ * @method void setVerificationUrl(string $VerificationUrl) 设置用户浏览器需要打开此地址开始核验流程。
+ * @method string getBizToken() 获取标识一次Web核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+ * @method void setBizToken(string $BizToken) 设置标识一次Web核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class ApplyWebVerificationTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 用户浏览器需要打开此地址开始核验流程。
+     */
+    public $VerificationUrl;
+
+    /**
+     * @var string 标识一次Web核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+     */
+    public $BizToken;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $VerificationUrl 用户浏览器需要打开此地址开始核验流程。
+     * @param string $BizToken 标识一次Web核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("VerificationUrl",$param) and $param["VerificationUrl"] !== null) {
+            $this->VerificationUrl = $param["VerificationUrl"];
+        }
+
+        if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
+            $this->BizToken = $param["BizToken"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 78 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCard2EVerificationRequest.php

@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCard2EVerification请求参数结构体
+ *
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getBankCard() 获取银行卡
+ * @method void setBankCard(string $BankCard) 设置银行卡
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class BankCard2EVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 银行卡
+     */
+    public $BankCard;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Name 姓名
+     * @param string $BankCard 银行卡
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("BankCard",$param) and $param["BankCard"] !== null) {
+            $this->BankCard = $param["BankCard"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 153 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCard2EVerificationResponse.php

@@ -0,0 +1,153 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCard2EVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码
+计费结果码:
+  '0': '认证通过'
+  '-1': '认证未通过'
+ '-4': '持卡人信息有误'
+  '-5': '未开通无卡支付'
+  '-6': '此卡被没收'
+  '-7': '无效卡号'
+  '-8': '此卡无对应发卡行'
+  '-9': '该卡未初始化或睡眠卡'
+  '-10': '作弊卡、吞卡'
+  '-11': '此卡已挂失'
+  '-12': '该卡已过期'
+  '-13': '受限制的卡'
+  '-14': '密码错误次数超限'
+  '-15': '发卡行不支持此交易'
+不计费结果码:
+  '-2': '姓名校验不通过'
+  '-3': '银行卡号码有误'
+  '-16': '验证中心服务繁忙'
+ * @method void setResult(string $Result) 设置认证结果码
+计费结果码:
+  '0': '认证通过'
+  '-1': '认证未通过'
+ '-4': '持卡人信息有误'
+  '-5': '未开通无卡支付'
+  '-6': '此卡被没收'
+  '-7': '无效卡号'
+  '-8': '此卡无对应发卡行'
+  '-9': '该卡未初始化或睡眠卡'
+  '-10': '作弊卡、吞卡'
+  '-11': '此卡已挂失'
+  '-12': '该卡已过期'
+  '-13': '受限制的卡'
+  '-14': '密码错误次数超限'
+  '-15': '发卡行不支持此交易'
+不计费结果码:
+  '-2': '姓名校验不通过'
+  '-3': '银行卡号码有误'
+  '-16': '验证中心服务繁忙'
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class BankCard2EVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码
+计费结果码:
+  '0': '认证通过'
+  '-1': '认证未通过'
+ '-4': '持卡人信息有误'
+  '-5': '未开通无卡支付'
+  '-6': '此卡被没收'
+  '-7': '无效卡号'
+  '-8': '此卡无对应发卡行'
+  '-9': '该卡未初始化或睡眠卡'
+  '-10': '作弊卡、吞卡'
+  '-11': '此卡已挂失'
+  '-12': '该卡已过期'
+  '-13': '受限制的卡'
+  '-14': '密码错误次数超限'
+  '-15': '发卡行不支持此交易'
+不计费结果码:
+  '-2': '姓名校验不通过'
+  '-3': '银行卡号码有误'
+  '-16': '验证中心服务繁忙'
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码
+计费结果码:
+  '0': '认证通过'
+  '-1': '认证未通过'
+ '-4': '持卡人信息有误'
+  '-5': '未开通无卡支付'
+  '-6': '此卡被没收'
+  '-7': '无效卡号'
+  '-8': '此卡无对应发卡行'
+  '-9': '该卡未初始化或睡眠卡'
+  '-10': '作弊卡、吞卡'
+  '-11': '此卡已挂失'
+  '-12': '该卡已过期'
+  '-13': '受限制的卡'
+  '-14': '密码错误次数超限'
+  '-15': '发卡行不支持此交易'
+不计费结果码:
+  '-2': '姓名校验不通过'
+  '-3': '银行卡号码有误'
+  '-16': '验证中心服务繁忙'
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 118 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCard4EVerificationRequest.php

@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCard4EVerification请求参数结构体
+ *
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getBankCard() 获取银行卡
+ * @method void setBankCard(string $BankCard) 设置银行卡
+ * @method string getPhone() 获取手机号码
+ * @method void setPhone(string $Phone) 设置手机号码
+ * @method string getIdCard() 获取开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+ * @method void setIdCard(string $IdCard) 设置开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+ * @method integer getCertType() 获取证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认为0:身份证,其他证件类型暂不支持。
+ * @method void setCertType(integer $CertType) 设置证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认为0:身份证,其他证件类型暂不支持。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号、手机号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号、手机号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class BankCard4EVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 银行卡
+     */
+    public $BankCard;
+
+    /**
+     * @var string 手机号码
+     */
+    public $Phone;
+
+    /**
+     * @var string 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+     */
+    public $IdCard;
+
+    /**
+     * @var integer 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认为0:身份证,其他证件类型暂不支持。
+     */
+    public $CertType;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、手机号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Name 姓名
+     * @param string $BankCard 银行卡
+     * @param string $Phone 手机号码
+     * @param string $IdCard 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+     * @param integer $CertType 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认为0:身份证,其他证件类型暂不支持。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、手机号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("BankCard",$param) and $param["BankCard"] !== null) {
+            $this->BankCard = $param["BankCard"];
+        }
+
+        if (array_key_exists("Phone",$param) and $param["Phone"] !== null) {
+            $this->Phone = $param["Phone"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("CertType",$param) and $param["CertType"] !== null) {
+            $this->CertType = $param["CertType"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 161 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCard4EVerificationResponse.php

@@ -0,0 +1,161 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCard4EVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-6': '持卡人信息有误'
+'-7': '未开通无卡支付'
+'-8': '此卡被没收'
+'-9': '无效卡号'
+'-10': '此卡无对应发卡行'
+'-11': '该卡未初始化或睡眠卡'
+'-12': '作弊卡、吞卡'
+'-13': '此卡已挂失'
+'-14': '该卡已过期'
+'-15': '受限制的卡'
+'-16': '密码错误次数超限'
+'-17': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-5': '手机号码不合法'
+'-18': '验证中心服务繁忙'
+ * @method void setResult(string $Result) 设置认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-6': '持卡人信息有误'
+'-7': '未开通无卡支付'
+'-8': '此卡被没收'
+'-9': '无效卡号'
+'-10': '此卡无对应发卡行'
+'-11': '该卡未初始化或睡眠卡'
+'-12': '作弊卡、吞卡'
+'-13': '此卡已挂失'
+'-14': '该卡已过期'
+'-15': '受限制的卡'
+'-16': '密码错误次数超限'
+'-17': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-5': '手机号码不合法'
+'-18': '验证中心服务繁忙'
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class BankCard4EVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-6': '持卡人信息有误'
+'-7': '未开通无卡支付'
+'-8': '此卡被没收'
+'-9': '无效卡号'
+'-10': '此卡无对应发卡行'
+'-11': '该卡未初始化或睡眠卡'
+'-12': '作弊卡、吞卡'
+'-13': '此卡已挂失'
+'-14': '该卡已过期'
+'-15': '受限制的卡'
+'-16': '密码错误次数超限'
+'-17': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-5': '手机号码不合法'
+'-18': '验证中心服务繁忙'
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-6': '持卡人信息有误'
+'-7': '未开通无卡支付'
+'-8': '此卡被没收'
+'-9': '无效卡号'
+'-10': '此卡无对应发卡行'
+'-11': '该卡未初始化或睡眠卡'
+'-12': '作弊卡、吞卡'
+'-13': '此卡已挂失'
+'-14': '该卡已过期'
+'-15': '受限制的卡'
+'-16': '密码错误次数超限'
+'-17': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-5': '手机号码不合法'
+'-18': '验证中心服务繁忙'
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 106 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCardVerificationRequest.php

@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCardVerification请求参数结构体
+ *
+ * @method string getIdCard() 获取开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+ * @method void setIdCard(string $IdCard) 设置开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getBankCard() 获取银行卡
+ * @method void setBankCard(string $BankCard) 设置银行卡
+ * @method integer getCertType() 获取证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认:0 身份证,其他证件类型需求可以添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行确认。
+ * @method void setCertType(integer $CertType) 设置证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认:0 身份证,其他证件类型需求可以添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行确认。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class BankCardVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 银行卡
+     */
+    public $BankCard;
+
+    /**
+     * @var integer 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认:0 身份证,其他证件类型需求可以添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行确认。
+     */
+    public $CertType;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $IdCard 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
+     * @param string $Name 姓名
+     * @param string $BankCard 银行卡
+     * @param integer $CertType 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
+目前默认:0 身份证,其他证件类型需求可以添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行确认。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("BankCard",$param) and $param["BankCard"] !== null) {
+            $this->BankCard = $param["BankCard"];
+        }
+
+        if (array_key_exists("CertType",$param) and $param["CertType"] !== null) {
+            $this->CertType = $param["CertType"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 157 - 0
extend/TencentCloud/Faceid/V20180301/Models/BankCardVerificationResponse.php

@@ -0,0 +1,157 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * BankCardVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-5': '持卡人信息有误'
+'-6': '未开通无卡支付'
+'-7': '此卡被没收'
+'-8': '无效卡号'
+'-9': '此卡无对应发卡行'
+'-10': '该卡未初始化或睡眠卡'
+'-11': '作弊卡、吞卡'
+'-12': '此卡已挂失'
+'-13': '该卡已过期'
+'-14': '受限制的卡'
+'-15': '密码错误次数超限'
+'-16': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-17': '验证中心服务繁忙'
+ * @method void setResult(string $Result) 设置认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-5': '持卡人信息有误'
+'-6': '未开通无卡支付'
+'-7': '此卡被没收'
+'-8': '无效卡号'
+'-9': '此卡无对应发卡行'
+'-10': '该卡未初始化或睡眠卡'
+'-11': '作弊卡、吞卡'
+'-12': '此卡已挂失'
+'-13': '该卡已过期'
+'-14': '受限制的卡'
+'-15': '密码错误次数超限'
+'-16': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-17': '验证中心服务繁忙'
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class BankCardVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-5': '持卡人信息有误'
+'-6': '未开通无卡支付'
+'-7': '此卡被没收'
+'-8': '无效卡号'
+'-9': '此卡无对应发卡行'
+'-10': '该卡未初始化或睡眠卡'
+'-11': '作弊卡、吞卡'
+'-12': '此卡已挂失'
+'-13': '该卡已过期'
+'-14': '受限制的卡'
+'-15': '密码错误次数超限'
+'-16': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-17': '验证中心服务繁忙'
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码
+收费结果码:
+'0': '认证通过'
+'-1': '认证未通过'
+'-5': '持卡人信息有误'
+'-6': '未开通无卡支付'
+'-7': '此卡被没收'
+'-8': '无效卡号'
+'-9': '此卡无对应发卡行'
+'-10': '该卡未初始化或睡眠卡'
+'-11': '作弊卡、吞卡'
+'-12': '此卡已挂失'
+'-13': '该卡已过期'
+'-14': '受限制的卡'
+'-15': '密码错误次数超限'
+'-16': '发卡行不支持此交易'
+不收费结果码:
+'-2': '姓名校验不通过'
+'-3': '身份证号码有误'
+'-4': '银行卡号码有误'
+'-17': '验证中心服务繁忙'
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 284 - 0
extend/TencentCloud/Faceid/V20180301/Models/CardVerifyResult.php

@@ -0,0 +1,284 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 核身过程中,鉴伪或OCR单次结果。
+ *
+ * @method boolean getIsPass() 获取鉴伪或OCR是否成功
+ * @method void setIsPass(boolean $IsPass) 设置鉴伪或OCR是否成功
+ * @method FileInfo getCardVideo() 获取身份证鉴伪视频,仅开启证件视频鉴伪功能时返回,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCardVideo(FileInfo $CardVideo) 设置身份证鉴伪视频,仅开启证件视频鉴伪功能时返回,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method FileInfo getCardImage() 获取证件照图片,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCardImage(FileInfo $CardImage) 设置证件照图片,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method FileInfo getCardInfoOcrJson() 获取证件照的文字识别结果,如果鉴伪失败或者ocr失败则该参数为空。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string 生日
+- ID string 证号
+- Name string 名字
+- Address string 地址
+- Type string 证件类型
+
+IdCardType为PhilippinesVoteID时:
+- Birthday  string 生日
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 姓名
+- VIN string VIN号
+- CivilStatus string 婚姻状况
+- Citizenship string 国籍
+- PrecinctNo string 地区
+
+IdCardType为PhilippinesDrivingLicense时:
+- Sex string 性别
+- Birthday  string 生日
+- Name string 姓名
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 首姓名
+- MiddleName string 中间姓名
+- Nationality string 国籍
+- LicenseNo string 证号
+- ExpiresDate string 有效期
+- AgencyCode string 机构代码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCardInfoOcrJson(FileInfo $CardInfoOcrJson) 设置证件照的文字识别结果,如果鉴伪失败或者ocr失败则该参数为空。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string 生日
+- ID string 证号
+- Name string 名字
+- Address string 地址
+- Type string 证件类型
+
+IdCardType为PhilippinesVoteID时:
+- Birthday  string 生日
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 姓名
+- VIN string VIN号
+- CivilStatus string 婚姻状况
+- Citizenship string 国籍
+- PrecinctNo string 地区
+
+IdCardType为PhilippinesDrivingLicense时:
+- Sex string 性别
+- Birthday  string 生日
+- Name string 姓名
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 首姓名
+- MiddleName string 中间姓名
+- Nationality string 国籍
+- LicenseNo string 证号
+- ExpiresDate string 有效期
+- AgencyCode string 机构代码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取单次流程请求标示。
+ * @method void setRequestId(string $RequestId) 设置单次流程请求标示。
+ */
+class CardVerifyResult extends AbstractModel
+{
+    /**
+     * @var boolean 鉴伪或OCR是否成功
+     */
+    public $IsPass;
+
+    /**
+     * @var FileInfo 身份证鉴伪视频,仅开启证件视频鉴伪功能时返回,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CardVideo;
+
+    /**
+     * @var FileInfo 证件照图片,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CardImage;
+
+    /**
+     * @var FileInfo 证件照的文字识别结果,如果鉴伪失败或者ocr失败则该参数为空。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string 生日
+- ID string 证号
+- Name string 名字
+- Address string 地址
+- Type string 证件类型
+
+IdCardType为PhilippinesVoteID时:
+- Birthday  string 生日
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 姓名
+- VIN string VIN号
+- CivilStatus string 婚姻状况
+- Citizenship string 国籍
+- PrecinctNo string 地区
+
+IdCardType为PhilippinesDrivingLicense时:
+- Sex string 性别
+- Birthday  string 生日
+- Name string 姓名
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 首姓名
+- MiddleName string 中间姓名
+- Nationality string 国籍
+- LicenseNo string 证号
+- ExpiresDate string 有效期
+- AgencyCode string 机构代码
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CardInfoOcrJson;
+
+    /**
+     * @var string 单次流程请求标示。
+     */
+    public $RequestId;
+
+    /**
+     * @param boolean $IsPass 鉴伪或OCR是否成功
+     * @param FileInfo $CardVideo 身份证鉴伪视频,仅开启证件视频鉴伪功能时返回,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param FileInfo $CardImage 证件照图片,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param FileInfo $CardInfoOcrJson 证件照的文字识别结果,如果鉴伪失败或者ocr失败则该参数为空。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string 生日
+- ID string 证号
+- Name string 名字
+- Address string 地址
+- Type string 证件类型
+
+IdCardType为PhilippinesVoteID时:
+- Birthday  string 生日
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 姓名
+- VIN string VIN号
+- CivilStatus string 婚姻状况
+- Citizenship string 国籍
+- PrecinctNo string 地区
+
+IdCardType为PhilippinesDrivingLicense时:
+- Sex string 性别
+- Birthday  string 生日
+- Name string 姓名
+- Address string 地址
+- LastName string 姓氏
+- FirstName string 首姓名
+- MiddleName string 中间姓名
+- Nationality string 国籍
+- LicenseNo string 证号
+- ExpiresDate string 有效期
+- AgencyCode string 机构代码
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 单次流程请求标示。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IsPass",$param) and $param["IsPass"] !== null) {
+            $this->IsPass = $param["IsPass"];
+        }
+
+        if (array_key_exists("CardVideo",$param) and $param["CardVideo"] !== null) {
+            $this->CardVideo = new FileInfo();
+            $this->CardVideo->deserialize($param["CardVideo"]);
+        }
+
+        if (array_key_exists("CardImage",$param) and $param["CardImage"] !== null) {
+            $this->CardImage = new FileInfo();
+            $this->CardImage->deserialize($param["CardImage"]);
+        }
+
+        if (array_key_exists("CardInfoOcrJson",$param) and $param["CardInfoOcrJson"] !== null) {
+            $this->CardInfoOcrJson = new FileInfo();
+            $this->CardInfoOcrJson->deserialize($param["CardInfoOcrJson"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 149 - 0
extend/TencentCloud/Faceid/V20180301/Models/ChargeDetail.php

@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 计费详情
+ *
+ * @method string getReqTime() 获取一比一时间时间戳,13位。
+ * @method void setReqTime(string $ReqTime) 设置一比一时间时间戳,13位。
+ * @method string getSeq() 获取一比一请求的唯一标记。
+ * @method void setSeq(string $Seq) 设置一比一请求的唯一标记。
+ * @method string getIdcard() 获取一比一时使用的、脱敏后的身份证号。
+ * @method void setIdcard(string $Idcard) 设置一比一时使用的、脱敏后的身份证号。
+ * @method string getName() 获取一比一时使用的、脱敏后的姓名。
+ * @method void setName(string $Name) 设置一比一时使用的、脱敏后的姓名。
+ * @method string getSim() 获取一比一的相似度。0-100,保留2位小数。
+ * @method void setSim(string $Sim) 设置一比一的相似度。0-100,保留2位小数。
+ * @method boolean getIsNeedCharge() 获取本次详情是否收费。
+ * @method void setIsNeedCharge(boolean $IsNeedCharge) 设置本次详情是否收费。
+ * @method string getChargeType() 获取收费类型,比对、核身、混合部署。
+ * @method void setChargeType(string $ChargeType) 设置收费类型,比对、核身、混合部署。
+ * @method string getErrorCode() 获取本次活体一比一最终结果。
+ * @method void setErrorCode(string $ErrorCode) 设置本次活体一比一最终结果。
+ * @method string getErrorMessage() 获取本次活体一比一最终结果描述。
+ * @method void setErrorMessage(string $ErrorMessage) 设置本次活体一比一最终结果描述。
+ */
+class ChargeDetail extends AbstractModel
+{
+    /**
+     * @var string 一比一时间时间戳,13位。
+     */
+    public $ReqTime;
+
+    /**
+     * @var string 一比一请求的唯一标记。
+     */
+    public $Seq;
+
+    /**
+     * @var string 一比一时使用的、脱敏后的身份证号。
+     */
+    public $Idcard;
+
+    /**
+     * @var string 一比一时使用的、脱敏后的姓名。
+     */
+    public $Name;
+
+    /**
+     * @var string 一比一的相似度。0-100,保留2位小数。
+     */
+    public $Sim;
+
+    /**
+     * @var boolean 本次详情是否收费。
+     */
+    public $IsNeedCharge;
+
+    /**
+     * @var string 收费类型,比对、核身、混合部署。
+     */
+    public $ChargeType;
+
+    /**
+     * @var string 本次活体一比一最终结果。
+     */
+    public $ErrorCode;
+
+    /**
+     * @var string 本次活体一比一最终结果描述。
+     */
+    public $ErrorMessage;
+
+    /**
+     * @param string $ReqTime 一比一时间时间戳,13位。
+     * @param string $Seq 一比一请求的唯一标记。
+     * @param string $Idcard 一比一时使用的、脱敏后的身份证号。
+     * @param string $Name 一比一时使用的、脱敏后的姓名。
+     * @param string $Sim 一比一的相似度。0-100,保留2位小数。
+     * @param boolean $IsNeedCharge 本次详情是否收费。
+     * @param string $ChargeType 收费类型,比对、核身、混合部署。
+     * @param string $ErrorCode 本次活体一比一最终结果。
+     * @param string $ErrorMessage 本次活体一比一最终结果描述。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ReqTime",$param) and $param["ReqTime"] !== null) {
+            $this->ReqTime = $param["ReqTime"];
+        }
+
+        if (array_key_exists("Seq",$param) and $param["Seq"] !== null) {
+            $this->Seq = $param["Seq"];
+        }
+
+        if (array_key_exists("Idcard",$param) and $param["Idcard"] !== null) {
+            $this->Idcard = $param["Idcard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("IsNeedCharge",$param) and $param["IsNeedCharge"] !== null) {
+            $this->IsNeedCharge = $param["IsNeedCharge"];
+        }
+
+        if (array_key_exists("ChargeType",$param) and $param["ChargeType"] !== null) {
+            $this->ChargeType = $param["ChargeType"];
+        }
+
+        if (array_key_exists("ErrorCode",$param) and $param["ErrorCode"] !== null) {
+            $this->ErrorCode = $param["ErrorCode"];
+        }
+
+        if (array_key_exists("ErrorMessage",$param) and $param["ErrorMessage"] !== null) {
+            $this->ErrorMessage = $param["ErrorMessage"];
+        }
+    }
+}

+ 66 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckBankCardInformationRequest.php

@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckBankCardInformation请求参数结构体
+ *
+ * @method string getBankCard() 获取银行卡号。
+ * @method void setBankCard(string $BankCard) 设置银行卡号。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class CheckBankCardInformationRequest extends AbstractModel
+{
+    /**
+     * @var string 银行卡号。
+     */
+    public $BankCard;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $BankCard 银行卡号。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BankCard",$param) and $param["BankCard"] !== null) {
+            $this->BankCard = $param["BankCard"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 125 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckBankCardInformationResponse.php

@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckBankCardInformation返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 查询成功
+-1: 未查到信息
+不收费结果码
+-2:验证中心服务繁忙
+-3:银行卡不存在
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 查询成功
+-1: 未查到信息
+不收费结果码
+-2:验证中心服务繁忙
+-3:银行卡不存在
+ * @method string getDescription() 获取业务结果描述
+ * @method void setDescription(string $Description) 设置业务结果描述
+ * @method string getAccountBank() 获取开户行
+ * @method void setAccountBank(string $AccountBank) 设置开户行
+ * @method integer getAccountType() 获取卡性质:1. 借记卡;2. 贷记卡;3. 预付费卡;4. 准贷记卡
+ * @method void setAccountType(integer $AccountType) 设置卡性质:1. 借记卡;2. 贷记卡;3. 预付费卡;4. 准贷记卡
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CheckBankCardInformationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 查询成功
+-1: 未查到信息
+不收费结果码
+-2:验证中心服务繁忙
+-3:银行卡不存在
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述
+     */
+    public $Description;
+
+    /**
+     * @var string 开户行
+     */
+    public $AccountBank;
+
+    /**
+     * @var integer 卡性质:1. 借记卡;2. 贷记卡;3. 预付费卡;4. 准贷记卡
+     */
+    public $AccountType;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 查询成功
+-1: 未查到信息
+不收费结果码
+-2:验证中心服务繁忙
+-3:银行卡不存在
+     * @param string $Description 业务结果描述
+     * @param string $AccountBank 开户行
+     * @param integer $AccountType 卡性质:1. 借记卡;2. 贷记卡;3. 预付费卡;4. 准贷记卡
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("AccountBank",$param) and $param["AccountBank"] !== null) {
+            $this->AccountBank = $param["AccountBank"];
+        }
+
+        if (array_key_exists("AccountType",$param) and $param["AccountType"] !== null) {
+            $this->AccountType = $param["AccountType"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckEidTokenStatusRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckEidTokenStatus请求参数结构体
+ *
+ * @method string getEidToken() 获取E证通流程的唯一标识,调用GetEidToken接口时生成。
+ * @method void setEidToken(string $EidToken) 设置E证通流程的唯一标识,调用GetEidToken接口时生成。
+ */
+class CheckEidTokenStatusRequest extends AbstractModel
+{
+    /**
+     * @var string E证通流程的唯一标识,调用GetEidToken接口时生成。
+     */
+    public $EidToken;
+
+    /**
+     * @param string $EidToken E证通流程的唯一标识,调用GetEidToken接口时生成。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("EidToken",$param) and $param["EidToken"] !== null) {
+            $this->EidToken = $param["EidToken"];
+        }
+    }
+}

+ 81 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckEidTokenStatusResponse.php

@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckEidTokenStatus返回参数结构体
+ *
+ * @method string getStatus() 获取枚举:
+init:token未验证
+doing: 验证中
+finished: 验证完成
+timeout: token已超时
+ * @method void setStatus(string $Status) 设置枚举:
+init:token未验证
+doing: 验证中
+finished: 验证完成
+timeout: token已超时
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CheckEidTokenStatusResponse extends AbstractModel
+{
+    /**
+     * @var string 枚举:
+init:token未验证
+doing: 验证中
+finished: 验证完成
+timeout: token已超时
+     */
+    public $Status;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Status 枚举:
+init:token未验证
+doing: 验证中
+finished: 验证完成
+timeout: token已超时
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Status",$param) and $param["Status"] !== null) {
+            $this->Status = $param["Status"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 169 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckIdCardInformationRequest.php

@@ -0,0 +1,169 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckIdCardInformation请求参数结构体
+ *
+ * @method string getImageBase64() 获取身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 7M。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl>ImageBase64的优先级使用参数。
+ * @method void setImageBase64(string $ImageBase64) 设置身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 7M。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl>ImageBase64的优先级使用参数。
+ * @method string getImageUrl() 获取身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method void setImageUrl(string $ImageUrl) 设置身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method string getConfig() 获取以下可选字段均为bool 类型,默认false:
+CopyWarn,复印件告警
+BorderCheckWarn,边框和框内遮挡告警
+ReshootWarn,翻拍告警
+DetectPsWarn,PS检测告警
+TempIdWarn,临时身份证告警
+Quality,图片质量告警(评价图片模糊程度)
+
+SDK 设置方式参考:
+Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})
+API 3.0 Explorer 设置方式参考:
+Config = {"CopyWarn":true,"ReshootWarn":true}
+ * @method void setConfig(string $Config) 设置以下可选字段均为bool 类型,默认false:
+CopyWarn,复印件告警
+BorderCheckWarn,边框和框内遮挡告警
+ReshootWarn,翻拍告警
+DetectPsWarn,PS检测告警
+TempIdWarn,临时身份证告警
+Quality,图片质量告警(评价图片模糊程度)
+
+SDK 设置方式参考:
+Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})
+API 3.0 Explorer 设置方式参考:
+Config = {"CopyWarn":true,"ReshootWarn":true}
+ * @method boolean getIsEncrypt() 获取是否需要对返回中的敏感信息进行加密。默认false。
+其中敏感信息包括:Response.IdNum、Response.Name
+ * @method void setIsEncrypt(boolean $IsEncrypt) 设置是否需要对返回中的敏感信息进行加密。默认false。
+其中敏感信息包括:Response.IdNum、Response.Name
+ */
+class CheckIdCardInformationRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 7M。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl>ImageBase64的优先级使用参数。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var string 身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    public $ImageUrl;
+
+    /**
+     * @var string 以下可选字段均为bool 类型,默认false:
+CopyWarn,复印件告警
+BorderCheckWarn,边框和框内遮挡告警
+ReshootWarn,翻拍告警
+DetectPsWarn,PS检测告警
+TempIdWarn,临时身份证告警
+Quality,图片质量告警(评价图片模糊程度)
+
+SDK 设置方式参考:
+Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})
+API 3.0 Explorer 设置方式参考:
+Config = {"CopyWarn":true,"ReshootWarn":true}
+     */
+    public $Config;
+
+    /**
+     * @var boolean 是否需要对返回中的敏感信息进行加密。默认false。
+其中敏感信息包括:Response.IdNum、Response.Name
+     */
+    public $IsEncrypt;
+
+    /**
+     * @param string $ImageBase64 身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 7M。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl>ImageBase64的优先级使用参数。
+     * @param string $ImageUrl 身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     * @param string $Config 以下可选字段均为bool 类型,默认false:
+CopyWarn,复印件告警
+BorderCheckWarn,边框和框内遮挡告警
+ReshootWarn,翻拍告警
+DetectPsWarn,PS检测告警
+TempIdWarn,临时身份证告警
+Quality,图片质量告警(评价图片模糊程度)
+
+SDK 设置方式参考:
+Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})
+API 3.0 Explorer 设置方式参考:
+Config = {"CopyWarn":true,"ReshootWarn":true}
+     * @param boolean $IsEncrypt 是否需要对返回中的敏感信息进行加密。默认false。
+其中敏感信息包括:Response.IdNum、Response.Name
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("ImageUrl",$param) and $param["ImageUrl"] !== null) {
+            $this->ImageUrl = $param["ImageUrl"];
+        }
+
+        if (array_key_exists("Config",$param) and $param["Config"] !== null) {
+            $this->Config = $param["Config"];
+        }
+
+        if (array_key_exists("IsEncrypt",$param) and $param["IsEncrypt"] !== null) {
+            $this->IsEncrypt = $param["IsEncrypt"];
+        }
+    }
+}

+ 250 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckIdCardInformationResponse.php

@@ -0,0 +1,250 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckIdCardInformation返回参数结构体
+ *
+ * @method float getSim() 获取相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method void setSim(float $Sim) 设置相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method string getResult() 获取业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getSex() 获取性别
+ * @method void setSex(string $Sex) 设置性别
+ * @method string getNation() 获取民族
+ * @method void setNation(string $Nation) 设置民族
+ * @method string getBirth() 获取出生日期
+ * @method void setBirth(string $Birth) 设置出生日期
+ * @method string getAddress() 获取地址
+ * @method void setAddress(string $Address) 设置地址
+ * @method string getIdNum() 获取身份证号
+ * @method void setIdNum(string $IdNum) 设置身份证号
+ * @method string getPortrait() 获取身份证头像照片的base64编码,如果抠图失败会拿整张身份证做比对并返回空。
+ * @method void setPortrait(string $Portrait) 设置身份证头像照片的base64编码,如果抠图失败会拿整张身份证做比对并返回空。
+ * @method string getWarnings() 获取告警信息,当在Config中配置了告警信息会停止人像比对,Result返回错误(FailedOperation.OcrWarningOccurred)并有此告警信息,Code 告警码列表和释义:
+
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警。
+-8001 图片模糊告警
+多个会 |  隔开如 "-9101|-9106|-9104"
+ * @method void setWarnings(string $Warnings) 设置告警信息,当在Config中配置了告警信息会停止人像比对,Result返回错误(FailedOperation.OcrWarningOccurred)并有此告警信息,Code 告警码列表和释义:
+
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警。
+-8001 图片模糊告警
+多个会 |  隔开如 "-9101|-9106|-9104"
+ * @method float getQuality() 获取图片质量分数,当请求Config中配置图片模糊告警该参数才有意义,取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。
+ * @method void setQuality(float $Quality) 设置图片质量分数,当请求Config中配置图片模糊告警该参数才有意义,取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CheckIdCardInformationResponse extends AbstractModel
+{
+    /**
+     * @var float 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     */
+    public $Sim;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 性别
+     */
+    public $Sex;
+
+    /**
+     * @var string 民族
+     */
+    public $Nation;
+
+    /**
+     * @var string 出生日期
+     */
+    public $Birth;
+
+    /**
+     * @var string 地址
+     */
+    public $Address;
+
+    /**
+     * @var string 身份证号
+     */
+    public $IdNum;
+
+    /**
+     * @var string 身份证头像照片的base64编码,如果抠图失败会拿整张身份证做比对并返回空。
+     */
+    public $Portrait;
+
+    /**
+     * @var string 告警信息,当在Config中配置了告警信息会停止人像比对,Result返回错误(FailedOperation.OcrWarningOccurred)并有此告警信息,Code 告警码列表和释义:
+
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警。
+-8001 图片模糊告警
+多个会 |  隔开如 "-9101|-9106|-9104"
+     */
+    public $Warnings;
+
+    /**
+     * @var float 图片质量分数,当请求Config中配置图片模糊告警该参数才有意义,取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。
+     */
+    public $Quality;
+
+    /**
+     * @var Encryption 敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Encryption;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param float $Sim 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     * @param string $Result 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     * @param string $Description 业务结果描述。
+     * @param string $Name 姓名
+     * @param string $Sex 性别
+     * @param string $Nation 民族
+     * @param string $Birth 出生日期
+     * @param string $Address 地址
+     * @param string $IdNum 身份证号
+     * @param string $Portrait 身份证头像照片的base64编码,如果抠图失败会拿整张身份证做比对并返回空。
+     * @param string $Warnings 告警信息,当在Config中配置了告警信息会停止人像比对,Result返回错误(FailedOperation.OcrWarningOccurred)并有此告警信息,Code 告警码列表和释义:
+
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警。
+-8001 图片模糊告警
+多个会 |  隔开如 "-9101|-9106|-9104"
+     * @param float $Quality 图片质量分数,当请求Config中配置图片模糊告警该参数才有意义,取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。
+     * @param Encryption $Encryption 敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Sex",$param) and $param["Sex"] !== null) {
+            $this->Sex = $param["Sex"];
+        }
+
+        if (array_key_exists("Nation",$param) and $param["Nation"] !== null) {
+            $this->Nation = $param["Nation"];
+        }
+
+        if (array_key_exists("Birth",$param) and $param["Birth"] !== null) {
+            $this->Birth = $param["Birth"];
+        }
+
+        if (array_key_exists("Address",$param) and $param["Address"] !== null) {
+            $this->Address = $param["Address"];
+        }
+
+        if (array_key_exists("IdNum",$param) and $param["IdNum"] !== null) {
+            $this->IdNum = $param["IdNum"];
+        }
+
+        if (array_key_exists("Portrait",$param) and $param["Portrait"] !== null) {
+            $this->Portrait = $param["Portrait"];
+        }
+
+        if (array_key_exists("Warnings",$param) and $param["Warnings"] !== null) {
+            $this->Warnings = $param["Warnings"];
+        }
+
+        if (array_key_exists("Quality",$param) and $param["Quality"] !== null) {
+            $this->Quality = $param["Quality"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 102 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckIdNameDateRequest.php

@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckIdNameDate请求参数结构体
+ *
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getIdCard() 获取身份证号
+ * @method void setIdCard(string $IdCard) 设置身份证号
+ * @method string getValidityBegin() 获取身份证有效期开始时间,格式:YYYYMMDD。如:20210701
+ * @method void setValidityBegin(string $ValidityBegin) 设置身份证有效期开始时间,格式:YYYYMMDD。如:20210701
+ * @method string getValidityEnd() 获取身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
+ * @method void setValidityEnd(string $ValidityEnd) 设置身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class CheckIdNameDateRequest extends AbstractModel
+{
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 身份证号
+     */
+    public $IdCard;
+
+    /**
+     * @var string 身份证有效期开始时间,格式:YYYYMMDD。如:20210701
+     */
+    public $ValidityBegin;
+
+    /**
+     * @var string 身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
+     */
+    public $ValidityEnd;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Name 姓名
+     * @param string $IdCard 身份证号
+     * @param string $ValidityBegin 身份证有效期开始时间,格式:YYYYMMDD。如:20210701
+     * @param string $ValidityEnd 身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("ValidityBegin",$param) and $param["ValidityBegin"] !== null) {
+            $this->ValidityBegin = $param["ValidityBegin"];
+        }
+
+        if (array_key_exists("ValidityEnd",$param) and $param["ValidityEnd"] !== null) {
+            $this->ValidityEnd = $param["ValidityEnd"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 117 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckIdNameDateResponse.php

@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckIdNameDate返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 一致
+-1: 不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 非法有效期(长度、格式等不正确)
+-5: 身份信息无效
+-6: 证件库服务异常
+-7: 证件库中无此身份证记录
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 一致
+-1: 不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 非法有效期(长度、格式等不正确)
+-5: 身份信息无效
+-6: 证件库服务异常
+-7: 证件库中无此身份证记录
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CheckIdNameDateResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 一致
+-1: 不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 非法有效期(长度、格式等不正确)
+-5: 身份信息无效
+-6: 证件库服务异常
+-7: 证件库中无此身份证记录
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 一致
+-1: 不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 非法有效期(长度、格式等不正确)
+-5: 身份信息无效
+-6: 证件库服务异常
+-7: 证件库中无此身份证记录
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 78 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckPhoneAndNameRequest.php

@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckPhoneAndName请求参数结构体
+ *
+ * @method string getMobile() 获取⼿机号
+ * @method void setMobile(string $Mobile) 设置⼿机号
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class CheckPhoneAndNameRequest extends AbstractModel
+{
+    /**
+     * @var string ⼿机号
+     */
+    public $Mobile;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Mobile ⼿机号
+     * @param string $Name 姓名
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Mobile",$param) and $param["Mobile"] !== null) {
+            $this->Mobile = $param["Mobile"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 105 - 0
extend/TencentCloud/Faceid/V20180301/Models/CheckPhoneAndNameResponse.php

@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CheckPhoneAndName返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 验证结果一致
+1: 验证结果不一致
+不收费结果码:
+-1:查无记录
+-2:引擎未知错误
+-3:引擎服务异常
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 验证结果一致
+1: 验证结果不一致
+不收费结果码:
+-1:查无记录
+-2:引擎未知错误
+-3:引擎服务异常
+ * @method string getDescription() 获取业务结果描述
+ * @method void setDescription(string $Description) 设置业务结果描述
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CheckPhoneAndNameResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 验证结果一致
+1: 验证结果不一致
+不收费结果码:
+-1:查无记录
+-2:引擎未知错误
+-3:引擎服务异常
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 验证结果一致
+1: 验证结果不一致
+不收费结果码:
+-1:查无记录
+-2:引擎未知错误
+-3:引擎服务异常
+     * @param string $Description 业务结果描述
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 310 - 0
extend/TencentCloud/Faceid/V20180301/Models/CompareResult.php

@@ -0,0 +1,310 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 单次比对结果描述
+ *
+ * @method string getErrorCode() 获取最终比对结果
+ * @method void setErrorCode(string $ErrorCode) 设置最终比对结果
+ * @method string getErrorMsg() 获取最终比对结果描述
+ * @method void setErrorMsg(string $ErrorMsg) 设置最终比对结果描述
+ * @method FileInfo getLiveData() 获取本次活体SDK生成的活体算法数据包
+ * @method void setLiveData(FileInfo $LiveData) 设置本次活体SDK生成的活体算法数据包
+ * @method FileInfo getLiveVideo() 获取本次用户活体验证过程的视频,url链接有效期10分钟。
+ * @method void setLiveVideo(FileInfo $LiveVideo) 设置本次用户活体验证过程的视频,url链接有效期10分钟。
+ * @method string getLiveErrorCode() 获取活体认证结果码
+ * @method void setLiveErrorCode(string $LiveErrorCode) 设置活体认证结果码
+ * @method string getLiveErrorMsg() 获取活体认证结果描述
+ * @method void setLiveErrorMsg(string $LiveErrorMsg) 设置活体认证结果描述
+ * @method FileInfo getBestFrame() 获取本次活体的最佳人像截图,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrame(FileInfo $BestFrame) 设置本次活体的最佳人像截图,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method FileInfo getProfileImage() 获取证件照头像截图,url链接有效期10分钟。
+ * @method void setProfileImage(FileInfo $ProfileImage) 设置证件照头像截图,url链接有效期10分钟。
+ * @method string getCompareErrorCode() 获取人脸比对结果码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCompareErrorCode(string $CompareErrorCode) 设置人脸比对结果码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getCompareErrorMsg() 获取人脸比对结果描述
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCompareErrorMsg(string $CompareErrorMsg) 设置人脸比对结果描述
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method float getSim() 获取相似度
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setSim(float $Sim) 设置相似度
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method boolean getIsNeedCharge() 获取该字段废弃
+ * @method void setIsNeedCharge(boolean $IsNeedCharge) 设置该字段废弃
+ * @method FileInfo getCardInfoInputJson() 获取用户编辑后的证件照信息,如果DisableChangeOcrResult为true禁用编辑无该值。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string
+- ID string
+- Name string
+- Address string
+- Type string 证件类型
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCardInfoInputJson(FileInfo $CardInfoInputJson) 设置用户编辑后的证件照信息,如果DisableChangeOcrResult为true禁用编辑无该值。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string
+- ID string
+- Name string
+- Address string
+- Type string 证件类型
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取本次认证的请求标识。
+ * @method void setRequestId(string $RequestId) 设置本次认证的请求标识。
+ */
+class CompareResult extends AbstractModel
+{
+    /**
+     * @var string 最终比对结果
+     */
+    public $ErrorCode;
+
+    /**
+     * @var string 最终比对结果描述
+     */
+    public $ErrorMsg;
+
+    /**
+     * @var FileInfo 本次活体SDK生成的活体算法数据包
+     */
+    public $LiveData;
+
+    /**
+     * @var FileInfo 本次用户活体验证过程的视频,url链接有效期10分钟。
+     */
+    public $LiveVideo;
+
+    /**
+     * @var string 活体认证结果码
+     */
+    public $LiveErrorCode;
+
+    /**
+     * @var string 活体认证结果描述
+     */
+    public $LiveErrorMsg;
+
+    /**
+     * @var FileInfo 本次活体的最佳人像截图,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrame;
+
+    /**
+     * @var FileInfo 证件照头像截图,url链接有效期10分钟。
+     */
+    public $ProfileImage;
+
+    /**
+     * @var string 人脸比对结果码
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CompareErrorCode;
+
+    /**
+     * @var string 人脸比对结果描述
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CompareErrorMsg;
+
+    /**
+     * @var float 相似度
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Sim;
+
+    /**
+     * @var boolean 该字段废弃
+     */
+    public $IsNeedCharge;
+
+    /**
+     * @var FileInfo 用户编辑后的证件照信息,如果DisableChangeOcrResult为true禁用编辑无该值。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string
+- ID string
+- Name string
+- Address string
+- Type string 证件类型
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CardInfoInputJson;
+
+    /**
+     * @var string 本次认证的请求标识。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $ErrorCode 最终比对结果
+     * @param string $ErrorMsg 最终比对结果描述
+     * @param FileInfo $LiveData 本次活体SDK生成的活体算法数据包
+     * @param FileInfo $LiveVideo 本次用户活体验证过程的视频,url链接有效期10分钟。
+     * @param string $LiveErrorCode 活体认证结果码
+     * @param string $LiveErrorMsg 活体认证结果描述
+     * @param FileInfo $BestFrame 本次活体的最佳人像截图,url链接有效期10分钟。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param FileInfo $ProfileImage 证件照头像截图,url链接有效期10分钟。
+     * @param string $CompareErrorCode 人脸比对结果码
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $CompareErrorMsg 人脸比对结果描述
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param float $Sim 相似度
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param boolean $IsNeedCharge 该字段废弃
+     * @param FileInfo $CardInfoInputJson 用户编辑后的证件照信息,如果DisableChangeOcrResult为true禁用编辑无该值。url链接有效期10分钟。格式为json文本信息。
+IdCardType为HK时:
+- CnName string 中文姓名
+- EnName string 英文姓名
+- TelexCode string 中文姓名对应电码
+- Sex string 性别 :“男M”或“女F”
+- Birthday string 出生日期
+- Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
+- IdNum string 身份证号码
+- Symbol string 证件符号,出生日期下的符号,例如"***AZ"
+- FirstIssueDate string 首次签发日期
+- CurrentIssueDate string 最近领用日期
+
+IdCardType为ML时:
+- Sex string 男:LELAKI 女:PEREMPUAN
+- Birthday  string
+- ID string
+- Name string
+- Address string
+- Type string 证件类型
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 本次认证的请求标识。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ErrorCode",$param) and $param["ErrorCode"] !== null) {
+            $this->ErrorCode = $param["ErrorCode"];
+        }
+
+        if (array_key_exists("ErrorMsg",$param) and $param["ErrorMsg"] !== null) {
+            $this->ErrorMsg = $param["ErrorMsg"];
+        }
+
+        if (array_key_exists("LiveData",$param) and $param["LiveData"] !== null) {
+            $this->LiveData = new FileInfo();
+            $this->LiveData->deserialize($param["LiveData"]);
+        }
+
+        if (array_key_exists("LiveVideo",$param) and $param["LiveVideo"] !== null) {
+            $this->LiveVideo = new FileInfo();
+            $this->LiveVideo->deserialize($param["LiveVideo"]);
+        }
+
+        if (array_key_exists("LiveErrorCode",$param) and $param["LiveErrorCode"] !== null) {
+            $this->LiveErrorCode = $param["LiveErrorCode"];
+        }
+
+        if (array_key_exists("LiveErrorMsg",$param) and $param["LiveErrorMsg"] !== null) {
+            $this->LiveErrorMsg = $param["LiveErrorMsg"];
+        }
+
+        if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
+            $this->BestFrame = new FileInfo();
+            $this->BestFrame->deserialize($param["BestFrame"]);
+        }
+
+        if (array_key_exists("ProfileImage",$param) and $param["ProfileImage"] !== null) {
+            $this->ProfileImage = new FileInfo();
+            $this->ProfileImage->deserialize($param["ProfileImage"]);
+        }
+
+        if (array_key_exists("CompareErrorCode",$param) and $param["CompareErrorCode"] !== null) {
+            $this->CompareErrorCode = $param["CompareErrorCode"];
+        }
+
+        if (array_key_exists("CompareErrorMsg",$param) and $param["CompareErrorMsg"] !== null) {
+            $this->CompareErrorMsg = $param["CompareErrorMsg"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("IsNeedCharge",$param) and $param["IsNeedCharge"] !== null) {
+            $this->IsNeedCharge = $param["IsNeedCharge"];
+        }
+
+        if (array_key_exists("CardInfoInputJson",$param) and $param["CardInfoInputJson"] !== null) {
+            $this->CardInfoInputJson = new FileInfo();
+            $this->CardInfoInputJson->deserialize($param["CardInfoInputJson"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/CreateUploadUrlRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CreateUploadUrl请求参数结构体
+ *
+ * @method string getTargetAction() 获取用于的接口
+ * @method void setTargetAction(string $TargetAction) 设置用于的接口
+ */
+class CreateUploadUrlRequest extends AbstractModel
+{
+    /**
+     * @var string 用于的接口
+     */
+    public $TargetAction;
+
+    /**
+     * @param string $TargetAction 用于的接口
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("TargetAction",$param) and $param["TargetAction"] !== null) {
+            $this->TargetAction = $param["TargetAction"];
+        }
+    }
+}

+ 89 - 0
extend/TencentCloud/Faceid/V20180301/Models/CreateUploadUrlResponse.php

@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * CreateUploadUrl返回参数结构体
+ *
+ * @method string getUploadUrl() 获取用于上传内容的链接,使用HTTP PUT方法上传。
+ * @method void setUploadUrl(string $UploadUrl) 设置用于上传内容的链接,使用HTTP PUT方法上传。
+ * @method string getResourceUrl() 获取完成上传后将该链接用于后续需要传入资源URL的地方。
+ * @method void setResourceUrl(string $ResourceUrl) 设置完成上传后将该链接用于后续需要传入资源URL的地方。
+ * @method integer getExpiredTimestamp() 获取上传和下载链接过期时间点,10位unix时间戳。
+ * @method void setExpiredTimestamp(integer $ExpiredTimestamp) 设置上传和下载链接过期时间点,10位unix时间戳。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class CreateUploadUrlResponse extends AbstractModel
+{
+    /**
+     * @var string 用于上传内容的链接,使用HTTP PUT方法上传。
+     */
+    public $UploadUrl;
+
+    /**
+     * @var string 完成上传后将该链接用于后续需要传入资源URL的地方。
+     */
+    public $ResourceUrl;
+
+    /**
+     * @var integer 上传和下载链接过期时间点,10位unix时间戳。
+     */
+    public $ExpiredTimestamp;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $UploadUrl 用于上传内容的链接,使用HTTP PUT方法上传。
+     * @param string $ResourceUrl 完成上传后将该链接用于后续需要传入资源URL的地方。
+     * @param integer $ExpiredTimestamp 上传和下载链接过期时间点,10位unix时间戳。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("UploadUrl",$param) and $param["UploadUrl"] !== null) {
+            $this->UploadUrl = $param["UploadUrl"];
+        }
+
+        if (array_key_exists("ResourceUrl",$param) and $param["ResourceUrl"] !== null) {
+            $this->ResourceUrl = $param["ResourceUrl"];
+        }
+
+        if (array_key_exists("ExpiredTimestamp",$param) and $param["ExpiredTimestamp"] !== null) {
+            $this->ExpiredTimestamp = $param["ExpiredTimestamp"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 175 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectAuthRequest.php

@@ -0,0 +1,175 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * DetectAuth请求参数结构体
+ *
+ * @method string getRuleId() 获取用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
+ * @method void setRuleId(string $RuleId) 设置用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
+ * @method string getTerminalType() 获取本接口不需要传递此参数。
+ * @method void setTerminalType(string $TerminalType) 设置本接口不需要传递此参数。
+ * @method string getIdCard() 获取身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+ * @method void setIdCard(string $IdCard) 设置身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+ * @method string getName() 获取姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+ * @method void setName(string $Name) 设置姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+ * @method string getRedirectUrl() 获取认证结束后重定向的回调链接地址。最长长度1024位。
+ * @method void setRedirectUrl(string $RedirectUrl) 设置认证结束后重定向的回调链接地址。最长长度1024位。
+ * @method string getExtra() 获取透传字段,在获取验证结果时返回。
+ * @method void setExtra(string $Extra) 设置透传字段,在获取验证结果时返回。
+ * @method string getImageBase64() 获取用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method void setImageBase64(string $ImageBase64) 设置用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method string getIntentionVerifyText() 获取意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+ * @method void setIntentionVerifyText(string $IntentionVerifyText) 设置意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+ * @method array getIntentionQuestions() 获取意愿核身过程中播报文本/问题、用户朗读/回答的文本,当前支持一个播报文本+回答文本。
+ * @method void setIntentionQuestions(array $IntentionQuestions) 设置意愿核身过程中播报文本/问题、用户朗读/回答的文本,当前支持一个播报文本+回答文本。
+ */
+class DetectAuthRequest extends AbstractModel
+{
+    /**
+     * @var string 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
+     */
+    public $RuleId;
+
+    /**
+     * @var string 本接口不需要传递此参数。
+     */
+    public $TerminalType;
+
+    /**
+     * @var string 身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+     */
+    public $Name;
+
+    /**
+     * @var string 认证结束后重定向的回调链接地址。最长长度1024位。
+     */
+    public $RedirectUrl;
+
+    /**
+     * @var string 透传字段,在获取验证结果时返回。
+     */
+    public $Extra;
+
+    /**
+     * @var string 用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @var string 意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+     */
+    public $IntentionVerifyText;
+
+    /**
+     * @var array 意愿核身过程中播报文本/问题、用户朗读/回答的文本,当前支持一个播报文本+回答文本。
+     */
+    public $IntentionQuestions;
+
+    /**
+     * @param string $RuleId 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
+     * @param string $TerminalType 本接口不需要传递此参数。
+     * @param string $IdCard 身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+     * @param string $Name 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+     * @param string $RedirectUrl 认证结束后重定向的回调链接地址。最长长度1024位。
+     * @param string $Extra 透传字段,在获取验证结果时返回。
+     * @param string $ImageBase64 用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     * @param string $IntentionVerifyText 意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+     * @param array $IntentionQuestions 意愿核身过程中播报文本/问题、用户朗读/回答的文本,当前支持一个播报文本+回答文本。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("RuleId",$param) and $param["RuleId"] !== null) {
+            $this->RuleId = $param["RuleId"];
+        }
+
+        if (array_key_exists("TerminalType",$param) and $param["TerminalType"] !== null) {
+            $this->TerminalType = $param["TerminalType"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("RedirectUrl",$param) and $param["RedirectUrl"] !== null) {
+            $this->RedirectUrl = $param["RedirectUrl"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+
+        if (array_key_exists("IntentionVerifyText",$param) and $param["IntentionVerifyText"] !== null) {
+            $this->IntentionVerifyText = $param["IntentionVerifyText"];
+        }
+
+        if (array_key_exists("IntentionQuestions",$param) and $param["IntentionQuestions"] !== null) {
+            $this->IntentionQuestions = [];
+            foreach ($param["IntentionQuestions"] as $key => $value){
+                $obj = new IntentionQuestion();
+                $obj->deserialize($value);
+                array_push($this->IntentionQuestions, $obj);
+            }
+        }
+    }
+}

+ 81 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectAuthResponse.php

@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * DetectAuth返回参数结构体
+ *
+ * @method string getUrl() 获取用于发起核身流程的URL,仅微信H5场景使用。
+ * @method void setUrl(string $Url) 设置用于发起核身流程的URL,仅微信H5场景使用。
+ * @method string getBizToken() 获取一次核身流程的标识,有效时间为7,200秒;
+完成核身后,可用该标识获取验证结果信息。
+ * @method void setBizToken(string $BizToken) 设置一次核身流程的标识,有效时间为7,200秒;
+完成核身后,可用该标识获取验证结果信息。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class DetectAuthResponse extends AbstractModel
+{
+    /**
+     * @var string 用于发起核身流程的URL,仅微信H5场景使用。
+     */
+    public $Url;
+
+    /**
+     * @var string 一次核身流程的标识,有效时间为7,200秒;
+完成核身后,可用该标识获取验证结果信息。
+     */
+    public $BizToken;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Url 用于发起核身流程的URL,仅微信H5场景使用。
+     * @param string $BizToken 一次核身流程的标识,有效时间为7,200秒;
+完成核身后,可用该标识获取验证结果信息。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Url",$param) and $param["Url"] !== null) {
+            $this->Url = $param["Url"];
+        }
+
+        if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
+            $this->BizToken = $param["BizToken"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 301 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectDetail.php

@@ -0,0 +1,301 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 活体一比一详情
+ *
+ * @method string getReqTime() 获取请求时间戳。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setReqTime(string $ReqTime) 设置请求时间戳。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getSeq() 获取本次活体一比一请求的唯一标记。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setSeq(string $Seq) 设置本次活体一比一请求的唯一标记。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getIdcard() 获取参与本次活体一比一的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIdcard(string $Idcard) 设置参与本次活体一比一的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getName() 获取参与本次活体一比一的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setName(string $Name) 设置参与本次活体一比一的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getSim() 获取本次活体一比一的相似度。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setSim(string $Sim) 设置本次活体一比一的相似度。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method boolean getIsNeedCharge() 获取本次活体一比一是否收费
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIsNeedCharge(boolean $IsNeedCharge) 设置本次活体一比一是否收费
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getErrcode() 获取本次活体一比一最终结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrcode(integer $Errcode) 设置本次活体一比一最终结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getErrmsg() 获取本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrmsg(string $Errmsg) 设置本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getLivestatus() 获取本次活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivestatus(integer $Livestatus) 设置本次活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getLivemsg() 获取本次活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivemsg(string $Livemsg) 设置本次活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getComparestatus() 获取本次一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setComparestatus(integer $Comparestatus) 设置本次一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getComparemsg() 获取本次一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setComparemsg(string $Comparemsg) 设置本次一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getCompareLibType() 获取比对库源类型。包括:
+公安商业库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCompareLibType(string $CompareLibType) 设置比对库源类型。包括:
+公安商业库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getLivenessMode() 获取枚举活体检测类型:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivenessMode(integer $LivenessMode) 设置枚举活体检测类型:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class DetectDetail extends AbstractModel
+{
+    /**
+     * @var string 请求时间戳。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ReqTime;
+
+    /**
+     * @var string 本次活体一比一请求的唯一标记。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Seq;
+
+    /**
+     * @var string 参与本次活体一比一的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Idcard;
+
+    /**
+     * @var string 参与本次活体一比一的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Name;
+
+    /**
+     * @var string 本次活体一比一的相似度。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Sim;
+
+    /**
+     * @var boolean 本次活体一比一是否收费
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IsNeedCharge;
+
+    /**
+     * @var integer 本次活体一比一最终结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Errcode;
+
+    /**
+     * @var string 本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Errmsg;
+
+    /**
+     * @var integer 本次活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Livestatus;
+
+    /**
+     * @var string 本次活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Livemsg;
+
+    /**
+     * @var integer 本次一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Comparestatus;
+
+    /**
+     * @var string 本次一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Comparemsg;
+
+    /**
+     * @var string 比对库源类型。包括:
+公安商业库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CompareLibType;
+
+    /**
+     * @var integer 枚举活体检测类型:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LivenessMode;
+
+    /**
+     * @param string $ReqTime 请求时间戳。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Seq 本次活体一比一请求的唯一标记。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Idcard 参与本次活体一比一的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Name 参与本次活体一比一的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Sim 本次活体一比一的相似度。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param boolean $IsNeedCharge 本次活体一比一是否收费
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $Errcode 本次活体一比一最终结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Errmsg 本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $Livestatus 本次活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Livemsg 本次活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $Comparestatus 本次一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Comparemsg 本次一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $CompareLibType 比对库源类型。包括:
+公安商业库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $LivenessMode 枚举活体检测类型:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ReqTime",$param) and $param["ReqTime"] !== null) {
+            $this->ReqTime = $param["ReqTime"];
+        }
+
+        if (array_key_exists("Seq",$param) and $param["Seq"] !== null) {
+            $this->Seq = $param["Seq"];
+        }
+
+        if (array_key_exists("Idcard",$param) and $param["Idcard"] !== null) {
+            $this->Idcard = $param["Idcard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("IsNeedCharge",$param) and $param["IsNeedCharge"] !== null) {
+            $this->IsNeedCharge = $param["IsNeedCharge"];
+        }
+
+        if (array_key_exists("Errcode",$param) and $param["Errcode"] !== null) {
+            $this->Errcode = $param["Errcode"];
+        }
+
+        if (array_key_exists("Errmsg",$param) and $param["Errmsg"] !== null) {
+            $this->Errmsg = $param["Errmsg"];
+        }
+
+        if (array_key_exists("Livestatus",$param) and $param["Livestatus"] !== null) {
+            $this->Livestatus = $param["Livestatus"];
+        }
+
+        if (array_key_exists("Livemsg",$param) and $param["Livemsg"] !== null) {
+            $this->Livemsg = $param["Livemsg"];
+        }
+
+        if (array_key_exists("Comparestatus",$param) and $param["Comparestatus"] !== null) {
+            $this->Comparestatus = $param["Comparestatus"];
+        }
+
+        if (array_key_exists("Comparemsg",$param) and $param["Comparemsg"] !== null) {
+            $this->Comparemsg = $param["Comparemsg"];
+        }
+
+        if (array_key_exists("CompareLibType",$param) and $param["CompareLibType"] !== null) {
+            $this->CompareLibType = $param["CompareLibType"];
+        }
+
+        if (array_key_exists("LivenessMode",$param) and $param["LivenessMode"] !== null) {
+            $this->LivenessMode = $param["LivenessMode"];
+        }
+    }
+}

+ 73 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectInfoBestFrame.php

@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 核身最佳帧信息
+ *
+ * @method string getBestFrame() 获取活体比对最佳帧Base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrame(string $BestFrame) 设置活体比对最佳帧Base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getBestFrames() 获取自截帧Base64编码数组。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrames(array $BestFrames) 设置自截帧Base64编码数组。
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class DetectInfoBestFrame extends AbstractModel
+{
+    /**
+     * @var string 活体比对最佳帧Base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrame;
+
+    /**
+     * @var array 自截帧Base64编码数组。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrames;
+
+    /**
+     * @param string $BestFrame 活体比对最佳帧Base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $BestFrames 自截帧Base64编码数组。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
+            $this->BestFrame = $param["BestFrame"];
+        }
+
+        if (array_key_exists("BestFrames",$param) and $param["BestFrames"] !== null) {
+            $this->BestFrames = $param["BestFrames"];
+        }
+    }
+}

+ 217 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectInfoIdCardData.php

@@ -0,0 +1,217 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 核身身份证图片信息
+ *
+ * @method string getOcrFront() 获取OCR正面照片的base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrFront(string $OcrFront) 设置OCR正面照片的base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrBack() 获取OCR反面照片的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrBack(string $OcrBack) 设置OCR反面照片的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getProcessedFrontImage() 获取旋转裁边后的正面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setProcessedFrontImage(string $ProcessedFrontImage) 设置旋转裁边后的正面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getProcessedBackImage() 获取旋转裁边后的背面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setProcessedBackImage(string $ProcessedBackImage) 设置旋转裁边后的背面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getAvatar() 获取身份证正面人像图base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAvatar(string $Avatar) 设置身份证正面人像图base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getWarnInfos() 获取身份证人像面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setWarnInfos(array $WarnInfos) 设置身份证人像面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getBackWarnInfos() 获取身份证国徽面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBackWarnInfos(array $BackWarnInfos) 设置身份证国徽面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class DetectInfoIdCardData extends AbstractModel
+{
+    /**
+     * @var string OCR正面照片的base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrFront;
+
+    /**
+     * @var string OCR反面照片的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrBack;
+
+    /**
+     * @var string 旋转裁边后的正面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ProcessedFrontImage;
+
+    /**
+     * @var string 旋转裁边后的背面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ProcessedBackImage;
+
+    /**
+     * @var string 身份证正面人像图base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Avatar;
+
+    /**
+     * @var array 身份证人像面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $WarnInfos;
+
+    /**
+     * @var array 身份证国徽面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BackWarnInfos;
+
+    /**
+     * @param string $OcrFront OCR正面照片的base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrBack OCR反面照片的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $ProcessedFrontImage 旋转裁边后的正面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $ProcessedBackImage 旋转裁边后的背面照片base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Avatar 身份证正面人像图base64编码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $WarnInfos 身份证人像面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $BackWarnInfos 身份证国徽面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
+-9100 身份证有效日期不合法告警,
+-9101 身份证边框不完整告警,
+-9102 身份证复印件告警,
+-9103 身份证翻拍告警,
+-9105 身份证框内遮挡告警,
+-9104 临时身份证告警,
+-9106 身份证 PS 告警,
+-9107 身份证反光告警。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("OcrFront",$param) and $param["OcrFront"] !== null) {
+            $this->OcrFront = $param["OcrFront"];
+        }
+
+        if (array_key_exists("OcrBack",$param) and $param["OcrBack"] !== null) {
+            $this->OcrBack = $param["OcrBack"];
+        }
+
+        if (array_key_exists("ProcessedFrontImage",$param) and $param["ProcessedFrontImage"] !== null) {
+            $this->ProcessedFrontImage = $param["ProcessedFrontImage"];
+        }
+
+        if (array_key_exists("ProcessedBackImage",$param) and $param["ProcessedBackImage"] !== null) {
+            $this->ProcessedBackImage = $param["ProcessedBackImage"];
+        }
+
+        if (array_key_exists("Avatar",$param) and $param["Avatar"] !== null) {
+            $this->Avatar = $param["Avatar"];
+        }
+
+        if (array_key_exists("WarnInfos",$param) and $param["WarnInfos"] !== null) {
+            $this->WarnInfos = $param["WarnInfos"];
+        }
+
+        if (array_key_exists("BackWarnInfos",$param) and $param["BackWarnInfos"] !== null) {
+            $this->BackWarnInfos = $param["BackWarnInfos"];
+        }
+    }
+}

+ 450 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectInfoText.php

@@ -0,0 +1,450 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 核身文本信息
+ *
+ * @method integer getErrCode() 获取本次流程最终验证结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrCode(integer $ErrCode) 设置本次流程最终验证结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getErrMsg() 获取本次流程最终验证结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrMsg(string $ErrMsg) 设置本次流程最终验证结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getIdCard() 获取本次验证使用的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIdCard(string $IdCard) 设置本次验证使用的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getName() 获取本次验证使用的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setName(string $Name) 设置本次验证使用的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrNation() 获取Ocr识别结果。民族。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrNation(string $OcrNation) 设置Ocr识别结果。民族。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrAddress() 获取Ocr识别结果。家庭住址。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrAddress(string $OcrAddress) 设置Ocr识别结果。家庭住址。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrBirth() 获取Ocr识别结果。生日。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrBirth(string $OcrBirth) 设置Ocr识别结果。生日。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrAuthority() 获取Ocr识别结果。签发机关。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrAuthority(string $OcrAuthority) 设置Ocr识别结果。签发机关。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrValidDate() 获取Ocr识别结果。有效日期。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrValidDate(string $OcrValidDate) 设置Ocr识别结果。有效日期。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrName() 获取Ocr识别结果。姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrName(string $OcrName) 设置Ocr识别结果。姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrIdCard() 获取Ocr识别结果。身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrIdCard(string $OcrIdCard) 设置Ocr识别结果。身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getOcrGender() 获取Ocr识别结果。性别。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setOcrGender(string $OcrGender) 设置Ocr识别结果。性别。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getLiveStatus() 获取本次流程最终活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLiveStatus(integer $LiveStatus) 设置本次流程最终活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getLiveMsg() 获取本次流程最终活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLiveMsg(string $LiveMsg) 设置本次流程最终活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getComparestatus() 获取本次流程最终一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setComparestatus(integer $Comparestatus) 设置本次流程最终一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getComparemsg() 获取本次流程最终一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setComparemsg(string $Comparemsg) 设置本次流程最终一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getSim() 获取本次流程活体一比一的分数,取值范围 [0.00, 100.00]。相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setSim(string $Sim) 设置本次流程活体一比一的分数,取值范围 [0.00, 100.00]。相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getLocation() 获取地理位置经纬度。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLocation(string $Location) 设置地理位置经纬度。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getExtra() 获取Auth接口带入额外信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setExtra(string $Extra) 设置Auth接口带入额外信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getLivenessDetail() 获取本次流程进行的活体一比一流水。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivenessDetail(array $LivenessDetail) 设置本次流程进行的活体一比一流水。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getMobile() 获取手机号码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setMobile(string $Mobile) 设置手机号码。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getCompareLibType() 获取本次流程最终比对库源类型。包括:
+权威库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setCompareLibType(string $CompareLibType) 设置本次流程最终比对库源类型。包括:
+权威库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getLivenessMode() 获取本次流程最终活体类型。包括:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivenessMode(integer $LivenessMode) 设置本次流程最终活体类型。包括:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class DetectInfoText extends AbstractModel
+{
+    /**
+     * @var integer 本次流程最终验证结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrCode;
+
+    /**
+     * @var string 本次流程最终验证结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrMsg;
+
+    /**
+     * @var string 本次验证使用的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 本次验证使用的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Name;
+
+    /**
+     * @var string Ocr识别结果。民族。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrNation;
+
+    /**
+     * @var string Ocr识别结果。家庭住址。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrAddress;
+
+    /**
+     * @var string Ocr识别结果。生日。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrBirth;
+
+    /**
+     * @var string Ocr识别结果。签发机关。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrAuthority;
+
+    /**
+     * @var string Ocr识别结果。有效日期。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrValidDate;
+
+    /**
+     * @var string Ocr识别结果。姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrName;
+
+    /**
+     * @var string Ocr识别结果。身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrIdCard;
+
+    /**
+     * @var string Ocr识别结果。性别。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $OcrGender;
+
+    /**
+     * @var integer 本次流程最终活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LiveStatus;
+
+    /**
+     * @var string 本次流程最终活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LiveMsg;
+
+    /**
+     * @var integer 本次流程最终一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Comparestatus;
+
+    /**
+     * @var string 本次流程最终一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Comparemsg;
+
+    /**
+     * @var string 本次流程活体一比一的分数,取值范围 [0.00, 100.00]。相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Sim;
+
+    /**
+     * @var string 地理位置经纬度。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Location;
+
+    /**
+     * @var string Auth接口带入额外信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Extra;
+
+    /**
+     * @var array 本次流程进行的活体一比一流水。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LivenessDetail;
+
+    /**
+     * @var string 手机号码。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Mobile;
+
+    /**
+     * @var string 本次流程最终比对库源类型。包括:
+权威库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $CompareLibType;
+
+    /**
+     * @var integer 本次流程最终活体类型。包括:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LivenessMode;
+
+    /**
+     * @param integer $ErrCode 本次流程最终验证结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $ErrMsg 本次流程最终验证结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $IdCard 本次验证使用的身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Name 本次验证使用的姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrNation Ocr识别结果。民族。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrAddress Ocr识别结果。家庭住址。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrBirth Ocr识别结果。生日。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrAuthority Ocr识别结果。签发机关。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrValidDate Ocr识别结果。有效日期。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrName Ocr识别结果。姓名。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrIdCard Ocr识别结果。身份证号。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $OcrGender Ocr识别结果。性别。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $LiveStatus 本次流程最终活体结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $LiveMsg 本次流程最终活体结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $Comparestatus 本次流程最终一比一结果。0为成功
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Comparemsg 本次流程最终一比一结果描述。(仅描述用,文案更新时不会通知。)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Sim 本次流程活体一比一的分数,取值范围 [0.00, 100.00]。相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Location 地理位置经纬度。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Extra Auth接口带入额外信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $LivenessDetail 本次流程进行的活体一比一流水。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Mobile 手机号码。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $CompareLibType 本次流程最终比对库源类型。包括:
+权威库;
+业务方自有库(用户上传照片、客户的混合库、混合部署库);
+二次验证库;
+人工审核库;
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $LivenessMode 本次流程最终活体类型。包括:
+0:未知
+1:数字活体
+2:动作活体
+3:静默活体
+4:一闪活体(动作+光线)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ErrCode",$param) and $param["ErrCode"] !== null) {
+            $this->ErrCode = $param["ErrCode"];
+        }
+
+        if (array_key_exists("ErrMsg",$param) and $param["ErrMsg"] !== null) {
+            $this->ErrMsg = $param["ErrMsg"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("OcrNation",$param) and $param["OcrNation"] !== null) {
+            $this->OcrNation = $param["OcrNation"];
+        }
+
+        if (array_key_exists("OcrAddress",$param) and $param["OcrAddress"] !== null) {
+            $this->OcrAddress = $param["OcrAddress"];
+        }
+
+        if (array_key_exists("OcrBirth",$param) and $param["OcrBirth"] !== null) {
+            $this->OcrBirth = $param["OcrBirth"];
+        }
+
+        if (array_key_exists("OcrAuthority",$param) and $param["OcrAuthority"] !== null) {
+            $this->OcrAuthority = $param["OcrAuthority"];
+        }
+
+        if (array_key_exists("OcrValidDate",$param) and $param["OcrValidDate"] !== null) {
+            $this->OcrValidDate = $param["OcrValidDate"];
+        }
+
+        if (array_key_exists("OcrName",$param) and $param["OcrName"] !== null) {
+            $this->OcrName = $param["OcrName"];
+        }
+
+        if (array_key_exists("OcrIdCard",$param) and $param["OcrIdCard"] !== null) {
+            $this->OcrIdCard = $param["OcrIdCard"];
+        }
+
+        if (array_key_exists("OcrGender",$param) and $param["OcrGender"] !== null) {
+            $this->OcrGender = $param["OcrGender"];
+        }
+
+        if (array_key_exists("LiveStatus",$param) and $param["LiveStatus"] !== null) {
+            $this->LiveStatus = $param["LiveStatus"];
+        }
+
+        if (array_key_exists("LiveMsg",$param) and $param["LiveMsg"] !== null) {
+            $this->LiveMsg = $param["LiveMsg"];
+        }
+
+        if (array_key_exists("Comparestatus",$param) and $param["Comparestatus"] !== null) {
+            $this->Comparestatus = $param["Comparestatus"];
+        }
+
+        if (array_key_exists("Comparemsg",$param) and $param["Comparemsg"] !== null) {
+            $this->Comparemsg = $param["Comparemsg"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("Location",$param) and $param["Location"] !== null) {
+            $this->Location = $param["Location"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("LivenessDetail",$param) and $param["LivenessDetail"] !== null) {
+            $this->LivenessDetail = [];
+            foreach ($param["LivenessDetail"] as $key => $value){
+                $obj = new DetectDetail();
+                $obj->deserialize($value);
+                array_push($this->LivenessDetail, $obj);
+            }
+        }
+
+        if (array_key_exists("Mobile",$param) and $param["Mobile"] !== null) {
+            $this->Mobile = $param["Mobile"];
+        }
+
+        if (array_key_exists("CompareLibType",$param) and $param["CompareLibType"] !== null) {
+            $this->CompareLibType = $param["CompareLibType"];
+        }
+
+        if (array_key_exists("LivenessMode",$param) and $param["LivenessMode"] !== null) {
+            $this->LivenessMode = $param["LivenessMode"];
+        }
+    }
+}

+ 57 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectInfoVideoData.php

@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 核身视频信息
+ *
+ * @method string getLivenessVideo() 获取活体视频的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setLivenessVideo(string $LivenessVideo) 设置活体视频的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class DetectInfoVideoData extends AbstractModel
+{
+    /**
+     * @var string 活体视频的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $LivenessVideo;
+
+    /**
+     * @param string $LivenessVideo 活体视频的base64编码
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("LivenessVideo",$param) and $param["LivenessVideo"] !== null) {
+            $this->LivenessVideo = $param["LivenessVideo"];
+        }
+    }
+}

+ 89 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectReflectLivenessAndCompareRequest.php

@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * DetectReflectLivenessAndCompare请求参数结构体
+ *
+ * @method string getLiveDataUrl() 获取SDK生成的活体检测数据包的资源地址。
+ * @method void setLiveDataUrl(string $LiveDataUrl) 设置SDK生成的活体检测数据包的资源地址。
+ * @method string getLiveDataMd5() 获取SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
+ * @method void setLiveDataMd5(string $LiveDataMd5) 设置SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
+ * @method string getImageUrl() 获取用于比对的目标图片的资源地址。
+ * @method void setImageUrl(string $ImageUrl) 设置用于比对的目标图片的资源地址。
+ * @method string getImageMd5() 获取用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
+ * @method void setImageMd5(string $ImageMd5) 设置用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
+ */
+class DetectReflectLivenessAndCompareRequest extends AbstractModel
+{
+    /**
+     * @var string SDK生成的活体检测数据包的资源地址。
+     */
+    public $LiveDataUrl;
+
+    /**
+     * @var string SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
+     */
+    public $LiveDataMd5;
+
+    /**
+     * @var string 用于比对的目标图片的资源地址。
+     */
+    public $ImageUrl;
+
+    /**
+     * @var string 用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
+     */
+    public $ImageMd5;
+
+    /**
+     * @param string $LiveDataUrl SDK生成的活体检测数据包的资源地址。
+     * @param string $LiveDataMd5 SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
+     * @param string $ImageUrl 用于比对的目标图片的资源地址。
+     * @param string $ImageMd5 用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("LiveDataUrl",$param) and $param["LiveDataUrl"] !== null) {
+            $this->LiveDataUrl = $param["LiveDataUrl"];
+        }
+
+        if (array_key_exists("LiveDataMd5",$param) and $param["LiveDataMd5"] !== null) {
+            $this->LiveDataMd5 = $param["LiveDataMd5"];
+        }
+
+        if (array_key_exists("ImageUrl",$param) and $param["ImageUrl"] !== null) {
+            $this->ImageUrl = $param["ImageUrl"];
+        }
+
+        if (array_key_exists("ImageMd5",$param) and $param["ImageMd5"] !== null) {
+            $this->ImageMd5 = $param["ImageMd5"];
+        }
+    }
+}

+ 113 - 0
extend/TencentCloud/Faceid/V20180301/Models/DetectReflectLivenessAndCompareResponse.php

@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * DetectReflectLivenessAndCompare返回参数结构体
+ *
+ * @method string getBestFrameUrl() 获取验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
+ * @method void setBestFrameUrl(string $BestFrameUrl) 设置验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
+ * @method string getBestFrameMd5() 获取验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
+ * @method void setBestFrameMd5(string $BestFrameMd5) 设置验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
+ * @method string getResult() 获取业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method float getSim() 获取相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+ * @method void setSim(float $Sim) 设置相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class DetectReflectLivenessAndCompareResponse extends AbstractModel
+{
+    /**
+     * @var string 验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
+     */
+    public $BestFrameUrl;
+
+    /**
+     * @var string 验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
+     */
+    public $BestFrameMd5;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var float 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+     */
+    public $Sim;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $BestFrameUrl 验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
+     * @param string $BestFrameMd5 验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
+     * @param string $Result 业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
+     * @param string $Description 业务结果描述。
+     * @param float $Sim 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BestFrameUrl",$param) and $param["BestFrameUrl"] !== null) {
+            $this->BestFrameUrl = $param["BestFrameUrl"];
+        }
+
+        if (array_key_exists("BestFrameMd5",$param) and $param["BestFrameMd5"] !== null) {
+            $this->BestFrameMd5 = $param["BestFrameMd5"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 89 - 0
extend/TencentCloud/Faceid/V20180301/Models/EidInfo.php

@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * Eid出参,包括商户方用户的标识和加密的用户姓名身份证信息。
+ *
+ * @method string getEidCode() 获取商户方 appeIDcode 的数字证书
+ * @method void setEidCode(string $EidCode) 设置商户方 appeIDcode 的数字证书
+ * @method string getEidSign() 获取Eid中心针对商户方EidCode的电子签名
+ * @method void setEidSign(string $EidSign) 设置Eid中心针对商户方EidCode的电子签名
+ * @method string getDesKey() 获取商户方公钥加密的会话密钥的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+ * @method void setDesKey(string $DesKey) 设置商户方公钥加密的会话密钥的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+ * @method string getUserInfo() 获取会话密钥sm2加密后的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+ * @method void setUserInfo(string $UserInfo) 设置会话密钥sm2加密后的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+ */
+class EidInfo extends AbstractModel
+{
+    /**
+     * @var string 商户方 appeIDcode 的数字证书
+     */
+    public $EidCode;
+
+    /**
+     * @var string Eid中心针对商户方EidCode的电子签名
+     */
+    public $EidSign;
+
+    /**
+     * @var string 商户方公钥加密的会话密钥的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+     */
+    public $DesKey;
+
+    /**
+     * @var string 会话密钥sm2加密后的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+     */
+    public $UserInfo;
+
+    /**
+     * @param string $EidCode 商户方 appeIDcode 的数字证书
+     * @param string $EidSign Eid中心针对商户方EidCode的电子签名
+     * @param string $DesKey 商户方公钥加密的会话密钥的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+     * @param string $UserInfo 会话密钥sm2加密后的base64字符串,[指引详见](https://cloud.tencent.com/document/product/1007/63370)
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("EidCode",$param) and $param["EidCode"] !== null) {
+            $this->EidCode = $param["EidCode"];
+        }
+
+        if (array_key_exists("EidSign",$param) and $param["EidSign"] !== null) {
+            $this->EidSign = $param["EidSign"];
+        }
+
+        if (array_key_exists("DesKey",$param) and $param["DesKey"] !== null) {
+            $this->DesKey = $param["DesKey"];
+        }
+
+        if (array_key_exists("UserInfo",$param) and $param["UserInfo"] !== null) {
+            $this->UserInfo = $param["UserInfo"];
+        }
+    }
+}

+ 105 - 0
extend/TencentCloud/Faceid/V20180301/Models/EncryptedPhoneVerificationRequest.php

@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * EncryptedPhoneVerification请求参数结构体
+ *
+ * @method string getIdCard() 获取身份证号,加密方式以EncryptionMode为准
+ * @method void setIdCard(string $IdCard) 设置身份证号,加密方式以EncryptionMode为准
+ * @method string getName() 获取姓名,加密方式以EncryptionMode为准
+ * @method void setName(string $Name) 设置姓名,加密方式以EncryptionMode为准
+ * @method string getPhone() 获取手机号,加密方式以EncryptionMode为准
+ * @method void setPhone(string $Phone) 设置手机号,加密方式以EncryptionMode为准
+ * @method string getEncryptionMode() 获取敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
+
+0:明文,不加密
+1:   使用MD5加密
+2:   使用SHA256
+ * @method void setEncryptionMode(string $EncryptionMode) 设置敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
+
+0:明文,不加密
+1:   使用MD5加密
+2:   使用SHA256
+ */
+class EncryptedPhoneVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证号,加密方式以EncryptionMode为准
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名,加密方式以EncryptionMode为准
+     */
+    public $Name;
+
+    /**
+     * @var string 手机号,加密方式以EncryptionMode为准
+     */
+    public $Phone;
+
+    /**
+     * @var string 敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
+
+0:明文,不加密
+1:   使用MD5加密
+2:   使用SHA256
+     */
+    public $EncryptionMode;
+
+    /**
+     * @param string $IdCard 身份证号,加密方式以EncryptionMode为准
+     * @param string $Name 姓名,加密方式以EncryptionMode为准
+     * @param string $Phone 手机号,加密方式以EncryptionMode为准
+     * @param string $EncryptionMode 敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
+
+0:明文,不加密
+1:   使用MD5加密
+2:   使用SHA256
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Phone",$param) and $param["Phone"] !== null) {
+            $this->Phone = $param["Phone"];
+        }
+
+        if (array_key_exists("EncryptionMode",$param) and $param["EncryptionMode"] !== null) {
+            $this->EncryptionMode = $param["EncryptionMode"];
+        }
+    }
+}

+ 113 - 0
extend/TencentCloud/Faceid/V20180301/Models/EncryptedPhoneVerificationResponse.php

@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * EncryptedPhoneVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码:
+【收费结果码】
+0:   三要素信息一致
+-4:  三要素信息不一致
+
+【不收费结果码】
+-7: 身份证号码有误
+-8: 参数错误
+-9: 没有记录
+-11: 验证中心服务繁忙
+ * @method void setResult(string $Result) 设置认证结果码:
+【收费结果码】
+0:   三要素信息一致
+-4:  三要素信息不一致
+
+【不收费结果码】
+-7: 身份证号码有误
+-8: 参数错误
+-9: 没有记录
+-11: 验证中心服务繁忙
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class EncryptedPhoneVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码:
+【收费结果码】
+0:   三要素信息一致
+-4:  三要素信息不一致
+
+【不收费结果码】
+-7: 身份证号码有误
+-8: 参数错误
+-9: 没有记录
+-11: 验证中心服务繁忙
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码:
+【收费结果码】
+0:   三要素信息一致
+-4:  三要素信息不一致
+
+【不收费结果码】
+-7: 身份证号码有误
+-8: 参数错误
+-9: 没有记录
+-11: 验证中心服务繁忙
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 101 - 0
extend/TencentCloud/Faceid/V20180301/Models/Encryption.php

@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 敏感数据加密
+ *
+ * @method array getEncryptList() 获取在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
+ * @method void setEncryptList(array $EncryptList) 设置在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
+ * @method string getCiphertextBlob() 获取有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
+ * @method void setCiphertextBlob(string $CiphertextBlob) 设置有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
+ * @method string getIv() 获取有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
+ * @method void setIv(string $Iv) 设置有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
+ * @method string getAlgorithm() 获取加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
+ * @method void setAlgorithm(string $Algorithm) 设置加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
+ * @method array getTagList() 获取SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
+ * @method void setTagList(array $TagList) 设置SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
+ */
+class Encryption extends AbstractModel
+{
+    /**
+     * @var array 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
+     */
+    public $EncryptList;
+
+    /**
+     * @var string 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
+     */
+    public $CiphertextBlob;
+
+    /**
+     * @var string 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
+     */
+    public $Iv;
+
+    /**
+     * @var string 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
+     */
+    public $Algorithm;
+
+    /**
+     * @var array SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
+     */
+    public $TagList;
+
+    /**
+     * @param array $EncryptList 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
+     * @param string $CiphertextBlob 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
+     * @param string $Iv 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
+     * @param string $Algorithm 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
+     * @param array $TagList SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("EncryptList",$param) and $param["EncryptList"] !== null) {
+            $this->EncryptList = $param["EncryptList"];
+        }
+
+        if (array_key_exists("CiphertextBlob",$param) and $param["CiphertextBlob"] !== null) {
+            $this->CiphertextBlob = $param["CiphertextBlob"];
+        }
+
+        if (array_key_exists("Iv",$param) and $param["Iv"] !== null) {
+            $this->Iv = $param["Iv"];
+        }
+
+        if (array_key_exists("Algorithm",$param) and $param["Algorithm"] !== null) {
+            $this->Algorithm = $param["Algorithm"];
+        }
+
+        if (array_key_exists("TagList",$param) and $param["TagList"] !== null) {
+            $this->TagList = $param["TagList"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/FileInfo.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 用于描述一个文件内容,包括一个下载链接和与文件内容对应的MD5和大小。
+ *
+ * @method string getUrl() 获取用于下载文件的URL
+ * @method void setUrl(string $Url) 设置用于下载文件的URL
+ * @method string getMD5() 获取文件的32位MD5
+ * @method void setMD5(string $MD5) 设置文件的32位MD5
+ * @method integer getSize() 获取文件字节数
+ * @method void setSize(integer $Size) 设置文件字节数
+ */
+class FileInfo extends AbstractModel
+{
+    /**
+     * @var string 用于下载文件的URL
+     */
+    public $Url;
+
+    /**
+     * @var string 文件的32位MD5
+     */
+    public $MD5;
+
+    /**
+     * @var integer 文件字节数
+     */
+    public $Size;
+
+    /**
+     * @param string $Url 用于下载文件的URL
+     * @param string $MD5 文件的32位MD5
+     * @param integer $Size 文件字节数
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Url",$param) and $param["Url"] !== null) {
+            $this->Url = $param["Url"];
+        }
+
+        if (array_key_exists("MD5",$param) and $param["MD5"] !== null) {
+            $this->MD5 = $param["MD5"];
+        }
+
+        if (array_key_exists("Size",$param) and $param["Size"] !== null) {
+            $this->Size = $param["Size"];
+        }
+    }
+}

+ 89 - 0
extend/TencentCloud/Faceid/V20180301/Models/GenerateReflectSequenceRequest.php

@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GenerateReflectSequence请求参数结构体
+ *
+ * @method string getDeviceDataUrl() 获取SDK生成的打包数据的资源链接。
+ * @method void setDeviceDataUrl(string $DeviceDataUrl) 设置SDK生成的打包数据的资源链接。
+ * @method string getDeviceDataMd5() 获取SDK生成的打包数据的MD5值。
+ * @method void setDeviceDataMd5(string $DeviceDataMd5) 设置SDK生成的打包数据的MD5值。
+ * @method string getSecurityLevel() 获取1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+ * @method void setSecurityLevel(string $SecurityLevel) 设置1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+ */
+class GenerateReflectSequenceRequest extends AbstractModel
+{
+    /**
+     * @var string SDK生成的打包数据的资源链接。
+     */
+    public $DeviceDataUrl;
+
+    /**
+     * @var string SDK生成的打包数据的MD5值。
+     */
+    public $DeviceDataMd5;
+
+    /**
+     * @var string 1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+     */
+    public $SecurityLevel;
+
+    /**
+     * @param string $DeviceDataUrl SDK生成的打包数据的资源链接。
+     * @param string $DeviceDataMd5 SDK生成的打包数据的MD5值。
+     * @param string $SecurityLevel 1-静默
+2-眨眼
+3-光线
+4-眨眼+光线 (默认)
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("DeviceDataUrl",$param) and $param["DeviceDataUrl"] !== null) {
+            $this->DeviceDataUrl = $param["DeviceDataUrl"];
+        }
+
+        if (array_key_exists("DeviceDataMd5",$param) and $param["DeviceDataMd5"] !== null) {
+            $this->DeviceDataMd5 = $param["DeviceDataMd5"];
+        }
+
+        if (array_key_exists("SecurityLevel",$param) and $param["SecurityLevel"] !== null) {
+            $this->SecurityLevel = $param["SecurityLevel"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/GenerateReflectSequenceResponse.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GenerateReflectSequence返回参数结构体
+ *
+ * @method string getReflectSequenceUrl() 获取光线序列的资源链接,下载后透传给SDK即可开始核身。
+ * @method void setReflectSequenceUrl(string $ReflectSequenceUrl) 设置光线序列的资源链接,下载后透传给SDK即可开始核身。
+ * @method string getReflectSequenceMd5() 获取光线序列的资源MD5值,用于校验改序列是否被篡改。
+ * @method void setReflectSequenceMd5(string $ReflectSequenceMd5) 设置光线序列的资源MD5值,用于校验改序列是否被篡改。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GenerateReflectSequenceResponse extends AbstractModel
+{
+    /**
+     * @var string 光线序列的资源链接,下载后透传给SDK即可开始核身。
+     */
+    public $ReflectSequenceUrl;
+
+    /**
+     * @var string 光线序列的资源MD5值,用于校验改序列是否被篡改。
+     */
+    public $ReflectSequenceMd5;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $ReflectSequenceUrl 光线序列的资源链接,下载后透传给SDK即可开始核身。
+     * @param string $ReflectSequenceMd5 光线序列的资源MD5值,用于校验改序列是否被篡改。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ReflectSequenceUrl",$param) and $param["ReflectSequenceUrl"] !== null) {
+            $this->ReflectSequenceUrl = $param["ReflectSequenceUrl"];
+        }
+
+        if (array_key_exists("ReflectSequenceMd5",$param) and $param["ReflectSequenceMd5"] !== null) {
+            $this->ReflectSequenceMd5 = $param["ReflectSequenceMd5"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetActionSequenceRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetActionSequence请求参数结构体
+ *
+ * @method string getActionType() 获取默认不需要使用
+ * @method void setActionType(string $ActionType) 设置默认不需要使用
+ */
+class GetActionSequenceRequest extends AbstractModel
+{
+    /**
+     * @var string 默认不需要使用
+     */
+    public $ActionType;
+
+    /**
+     * @param string $ActionType 默认不需要使用
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ActionType",$param) and $param["ActionType"] !== null) {
+            $this->ActionType = $param["ActionType"];
+        }
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetActionSequenceResponse.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetActionSequence返回参数结构体
+ *
+ * @method string getActionSequence() 获取动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
+ * @method void setActionSequence(string $ActionSequence) 设置动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetActionSequenceResponse extends AbstractModel
+{
+    /**
+     * @var string 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
+     */
+    public $ActionSequence;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $ActionSequence 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ActionSequence",$param) and $param["ActionSequence"] !== null) {
+            $this->ActionSequence = $param["ActionSequence"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 146 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoEnhancedRequest.php

@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetDetectInfoEnhanced请求参数结构体
+ *
+ * @method string getBizToken() 获取人脸核身流程的标识,调用DetectAuth接口时生成。
+ * @method void setBizToken(string $BizToken) 设置人脸核身流程的标识,调用DetectAuth接口时生成。
+ * @method string getRuleId() 获取用于细分客户使用场景,由腾讯侧在线下对接时分配。
+ * @method void setRuleId(string $RuleId) 设置用于细分客户使用场景,由腾讯侧在线下对接时分配。
+ * @method string getInfoType() 获取指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:视频最佳截图信息)。
+如 13表示拉取文本类、视频最佳截图信息。
+默认值:0
+ * @method void setInfoType(string $InfoType) 设置指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:视频最佳截图信息)。
+如 13表示拉取文本类、视频最佳截图信息。
+默认值:0
+ * @method integer getBestFramesCount() 获取从活体视频中截取一定张数的最佳帧(仅部分服务支持,若需使用请与慧眼小助手沟通)。默认为0,最大为10,超出10的最多只给10张。(InfoType需要包含3)
+ * @method void setBestFramesCount(integer $BestFramesCount) 设置从活体视频中截取一定张数的最佳帧(仅部分服务支持,若需使用请与慧眼小助手沟通)。默认为0,最大为10,超出10的最多只给10张。(InfoType需要包含3)
+ * @method boolean getIsCutIdCardImage() 获取是否对身份证照片进行裁边。默认为false。(InfoType需要包含2)
+ * @method void setIsCutIdCardImage(boolean $IsCutIdCardImage) 设置是否对身份证照片进行裁边。默认为false。(InfoType需要包含2)
+ * @method boolean getIsNeedIdCardAvatar() 获取是否需要从身份证中抠出头像。默认为false。(InfoType需要包含2)
+ * @method void setIsNeedIdCardAvatar(boolean $IsNeedIdCardAvatar) 设置是否需要从身份证中抠出头像。默认为false。(InfoType需要包含2)
+ * @method boolean getIsEncrypt() 获取已弃用。
+ * @method void setIsEncrypt(boolean $IsEncrypt) 设置已弃用。
+ * @method Encryption getEncryption() 获取是否需要对返回中的敏感信息进行加密。仅指定加密算法Algorithm即可,其余字段传入默认值。其中敏感信息包括:Response.Text.IdCard、Response.Text.Name、Response.Text.OcrIdCard、Response.Text.OcrName
+ * @method void setEncryption(Encryption $Encryption) 设置是否需要对返回中的敏感信息进行加密。仅指定加密算法Algorithm即可,其余字段传入默认值。其中敏感信息包括:Response.Text.IdCard、Response.Text.Name、Response.Text.OcrIdCard、Response.Text.OcrName
+ */
+class GetDetectInfoEnhancedRequest extends AbstractModel
+{
+    /**
+     * @var string 人脸核身流程的标识,调用DetectAuth接口时生成。
+     */
+    public $BizToken;
+
+    /**
+     * @var string 用于细分客户使用场景,由腾讯侧在线下对接时分配。
+     */
+    public $RuleId;
+
+    /**
+     * @var string 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:视频最佳截图信息)。
+如 13表示拉取文本类、视频最佳截图信息。
+默认值:0
+     */
+    public $InfoType;
+
+    /**
+     * @var integer 从活体视频中截取一定张数的最佳帧(仅部分服务支持,若需使用请与慧眼小助手沟通)。默认为0,最大为10,超出10的最多只给10张。(InfoType需要包含3)
+     */
+    public $BestFramesCount;
+
+    /**
+     * @var boolean 是否对身份证照片进行裁边。默认为false。(InfoType需要包含2)
+     */
+    public $IsCutIdCardImage;
+
+    /**
+     * @var boolean 是否需要从身份证中抠出头像。默认为false。(InfoType需要包含2)
+     */
+    public $IsNeedIdCardAvatar;
+
+    /**
+     * @var boolean 已弃用。
+     */
+    public $IsEncrypt;
+
+    /**
+     * @var Encryption 是否需要对返回中的敏感信息进行加密。仅指定加密算法Algorithm即可,其余字段传入默认值。其中敏感信息包括:Response.Text.IdCard、Response.Text.Name、Response.Text.OcrIdCard、Response.Text.OcrName
+     */
+    public $Encryption;
+
+    /**
+     * @param string $BizToken 人脸核身流程的标识,调用DetectAuth接口时生成。
+     * @param string $RuleId 用于细分客户使用场景,由腾讯侧在线下对接时分配。
+     * @param string $InfoType 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:视频最佳截图信息)。
+如 13表示拉取文本类、视频最佳截图信息。
+默认值:0
+     * @param integer $BestFramesCount 从活体视频中截取一定张数的最佳帧(仅部分服务支持,若需使用请与慧眼小助手沟通)。默认为0,最大为10,超出10的最多只给10张。(InfoType需要包含3)
+     * @param boolean $IsCutIdCardImage 是否对身份证照片进行裁边。默认为false。(InfoType需要包含2)
+     * @param boolean $IsNeedIdCardAvatar 是否需要从身份证中抠出头像。默认为false。(InfoType需要包含2)
+     * @param boolean $IsEncrypt 已弃用。
+     * @param Encryption $Encryption 是否需要对返回中的敏感信息进行加密。仅指定加密算法Algorithm即可,其余字段传入默认值。其中敏感信息包括:Response.Text.IdCard、Response.Text.Name、Response.Text.OcrIdCard、Response.Text.OcrName
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
+            $this->BizToken = $param["BizToken"];
+        }
+
+        if (array_key_exists("RuleId",$param) and $param["RuleId"] !== null) {
+            $this->RuleId = $param["RuleId"];
+        }
+
+        if (array_key_exists("InfoType",$param) and $param["InfoType"] !== null) {
+            $this->InfoType = $param["InfoType"];
+        }
+
+        if (array_key_exists("BestFramesCount",$param) and $param["BestFramesCount"] !== null) {
+            $this->BestFramesCount = $param["BestFramesCount"];
+        }
+
+        if (array_key_exists("IsCutIdCardImage",$param) and $param["IsCutIdCardImage"] !== null) {
+            $this->IsCutIdCardImage = $param["IsCutIdCardImage"];
+        }
+
+        if (array_key_exists("IsNeedIdCardAvatar",$param) and $param["IsNeedIdCardAvatar"] !== null) {
+            $this->IsNeedIdCardAvatar = $param["IsNeedIdCardAvatar"];
+        }
+
+        if (array_key_exists("IsEncrypt",$param) and $param["IsEncrypt"] !== null) {
+            $this->IsEncrypt = $param["IsEncrypt"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 172 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoEnhancedResponse.php

@@ -0,0 +1,172 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetDetectInfoEnhanced返回参数结构体
+ *
+ * @method DetectInfoText getText() 获取文本类信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setText(DetectInfoText $Text) 设置文本类信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method DetectInfoIdCardData getIdCardData() 获取身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIdCardData(DetectInfoIdCardData $IdCardData) 设置身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method DetectInfoBestFrame getBestFrame() 获取最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrame(DetectInfoBestFrame $BestFrame) 设置最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method DetectInfoVideoData getVideoData() 获取视频信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoData(DetectInfoVideoData $VideoData) 设置视频信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method IntentionVerifyData getIntentionVerifyData() 获取意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionVerifyData(IntentionVerifyData $IntentionVerifyData) 设置意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method IntentionQuestionResult getIntentionQuestionResult() 获取意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionQuestionResult(IntentionQuestionResult $IntentionQuestionResult) 设置意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetDetectInfoEnhancedResponse extends AbstractModel
+{
+    /**
+     * @var DetectInfoText 文本类信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Text;
+
+    /**
+     * @var DetectInfoIdCardData 身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IdCardData;
+
+    /**
+     * @var DetectInfoBestFrame 最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrame;
+
+    /**
+     * @var DetectInfoVideoData 视频信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoData;
+
+    /**
+     * @var Encryption 敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Encryption;
+
+    /**
+     * @var IntentionVerifyData 意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionVerifyData;
+
+    /**
+     * @var IntentionQuestionResult 意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionQuestionResult;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param DetectInfoText $Text 文本类信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param DetectInfoIdCardData $IdCardData 身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param DetectInfoBestFrame $BestFrame 最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param DetectInfoVideoData $VideoData 视频信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param Encryption $Encryption 敏感数据加密信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param IntentionVerifyData $IntentionVerifyData 意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param IntentionQuestionResult $IntentionQuestionResult 意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Text",$param) and $param["Text"] !== null) {
+            $this->Text = new DetectInfoText();
+            $this->Text->deserialize($param["Text"]);
+        }
+
+        if (array_key_exists("IdCardData",$param) and $param["IdCardData"] !== null) {
+            $this->IdCardData = new DetectInfoIdCardData();
+            $this->IdCardData->deserialize($param["IdCardData"]);
+        }
+
+        if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
+            $this->BestFrame = new DetectInfoBestFrame();
+            $this->BestFrame->deserialize($param["BestFrame"]);
+        }
+
+        if (array_key_exists("VideoData",$param) and $param["VideoData"] !== null) {
+            $this->VideoData = new DetectInfoVideoData();
+            $this->VideoData->deserialize($param["VideoData"]);
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+
+        if (array_key_exists("IntentionVerifyData",$param) and $param["IntentionVerifyData"] !== null) {
+            $this->IntentionVerifyData = new IntentionVerifyData();
+            $this->IntentionVerifyData->deserialize($param["IntentionVerifyData"]);
+        }
+
+        if (array_key_exists("IntentionQuestionResult",$param) and $param["IntentionQuestionResult"] !== null) {
+            $this->IntentionQuestionResult = new IntentionQuestionResult();
+            $this->IntentionQuestionResult->deserialize($param["IntentionQuestionResult"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 85 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoRequest.php

@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetDetectInfo请求参数结构体
+ *
+ * @method string getBizToken() 获取人脸核身流程的标识,调用DetectAuth接口时生成。
+ * @method void setBizToken(string $BizToken) 设置人脸核身流程的标识,调用DetectAuth接口时生成。
+ * @method string getRuleId() 获取用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
+ * @method void setRuleId(string $RuleId) 设置用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
+ * @method string getInfoType() 获取指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
+如 134表示拉取文本类、视频最佳截图照片、视频。
+默认值:0
+ * @method void setInfoType(string $InfoType) 设置指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
+如 134表示拉取文本类、视频最佳截图照片、视频。
+默认值:0
+ */
+class GetDetectInfoRequest extends AbstractModel
+{
+    /**
+     * @var string 人脸核身流程的标识,调用DetectAuth接口时生成。
+     */
+    public $BizToken;
+
+    /**
+     * @var string 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
+     */
+    public $RuleId;
+
+    /**
+     * @var string 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
+如 134表示拉取文本类、视频最佳截图照片、视频。
+默认值:0
+     */
+    public $InfoType;
+
+    /**
+     * @param string $BizToken 人脸核身流程的标识,调用DetectAuth接口时生成。
+     * @param string $RuleId 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
+     * @param string $InfoType 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
+如 134表示拉取文本类、视频最佳截图照片、视频。
+默认值:0
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
+            $this->BizToken = $param["BizToken"];
+        }
+
+        if (array_key_exists("RuleId",$param) and $param["RuleId"] !== null) {
+            $this->RuleId = $param["RuleId"];
+        }
+
+        if (array_key_exists("InfoType",$param) and $param["InfoType"] !== null) {
+            $this->InfoType = $param["InfoType"];
+        }
+    }
+}

+ 257 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetDetectInfoResponse.php

@@ -0,0 +1,257 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetDetectInfo返回参数结构体
+ *
+ * @method string getDetectInfo() 获取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,   // 一比一阶段的错误信息
+    "Sim": null, // 比对相似度
+    "Location": null, // 地理位置信息
+    "Extra": "",          // DetectAuth结果传进来的Extra信息
+    "Detail": {           // 活体一比一信息详情
+      "LivenessData": [
+            {
+              ErrCode: null, // 活体比对验证错误码
+              ErrMsg: null, // 活体比对验证错误描述
+              ReqTime: null, // 活体验证时间戳
+              IdCard: null, // 验证身份证号
+              Name: null // 验证姓名
+            }
+      ]
+    }
+  },
+  // 身份证正反面照片Base64
+  "IdCardData": {
+    "OcrFront": null,
+    "OcrBack": null
+  },
+  // 视频最佳帧截图Base64
+  "BestFrame": {
+    "BestFrame": null
+  },
+  // 活体视频Base64
+  "VideoData": {
+    "LivenessVideo": null
+  }
+}
+ * @method void setDetectInfo(string $DetectInfo) 设置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,   // 一比一阶段的错误信息
+    "Sim": null, // 比对相似度
+    "Location": null, // 地理位置信息
+    "Extra": "",          // DetectAuth结果传进来的Extra信息
+    "Detail": {           // 活体一比一信息详情
+      "LivenessData": [
+            {
+              ErrCode: null, // 活体比对验证错误码
+              ErrMsg: null, // 活体比对验证错误描述
+              ReqTime: null, // 活体验证时间戳
+              IdCard: null, // 验证身份证号
+              Name: null // 验证姓名
+            }
+      ]
+    }
+  },
+  // 身份证正反面照片Base64
+  "IdCardData": {
+    "OcrFront": null,
+    "OcrBack": null
+  },
+  // 视频最佳帧截图Base64
+  "BestFrame": {
+    "BestFrame": null
+  },
+  // 活体视频Base64
+  "VideoData": {
+    "LivenessVideo": null
+  }
+}
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetDetectInfoResponse extends AbstractModel
+{
+    /**
+     * @var string 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,   // 一比一阶段的错误信息
+    "Sim": null, // 比对相似度
+    "Location": null, // 地理位置信息
+    "Extra": "",          // DetectAuth结果传进来的Extra信息
+    "Detail": {           // 活体一比一信息详情
+      "LivenessData": [
+            {
+              ErrCode: null, // 活体比对验证错误码
+              ErrMsg: null, // 活体比对验证错误描述
+              ReqTime: null, // 活体验证时间戳
+              IdCard: null, // 验证身份证号
+              Name: null // 验证姓名
+            }
+      ]
+    }
+  },
+  // 身份证正反面照片Base64
+  "IdCardData": {
+    "OcrFront": null,
+    "OcrBack": null
+  },
+  // 视频最佳帧截图Base64
+  "BestFrame": {
+    "BestFrame": null
+  },
+  // 活体视频Base64
+  "VideoData": {
+    "LivenessVideo": null
+  }
+}
+     */
+    public $DetectInfo;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $DetectInfo 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,   // 一比一阶段的错误信息
+    "Sim": null, // 比对相似度
+    "Location": null, // 地理位置信息
+    "Extra": "",          // DetectAuth结果传进来的Extra信息
+    "Detail": {           // 活体一比一信息详情
+      "LivenessData": [
+            {
+              ErrCode: null, // 活体比对验证错误码
+              ErrMsg: null, // 活体比对验证错误描述
+              ReqTime: null, // 活体验证时间戳
+              IdCard: null, // 验证身份证号
+              Name: null // 验证姓名
+            }
+      ]
+    }
+  },
+  // 身份证正反面照片Base64
+  "IdCardData": {
+    "OcrFront": null,
+    "OcrBack": null
+  },
+  // 视频最佳帧截图Base64
+  "BestFrame": {
+    "BestFrame": null
+  },
+  // 活体视频Base64
+  "VideoData": {
+    "LivenessVideo": null
+  }
+}
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("DetectInfo",$param) and $param["DetectInfo"] !== null) {
+            $this->DetectInfo = $param["DetectInfo"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 85 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetEidResultRequest.php

@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetEidResult请求参数结构体
+ *
+ * @method string getEidToken() 获取E证通流程的唯一标识,调用GetEidToken接口时生成。
+ * @method void setEidToken(string $EidToken) 设置E证通流程的唯一标识,调用GetEidToken接口时生成。
+ * @method string getInfoType() 获取指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息;5:意愿核身朗读模式相关结果;6:意愿核身问答模式相关结果)。
+如 13表示拉取文本类、最佳截图信息。
+默认值:0
+ * @method void setInfoType(string $InfoType) 设置指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息;5:意愿核身朗读模式相关结果;6:意愿核身问答模式相关结果)。
+如 13表示拉取文本类、最佳截图信息。
+默认值:0
+ * @method integer getBestFramesCount() 获取从活体视频中截取一定张数的最佳帧。默认为0,最大为3,超出3的最多只给3张。(InfoType需要包含3)
+ * @method void setBestFramesCount(integer $BestFramesCount) 设置从活体视频中截取一定张数的最佳帧。默认为0,最大为3,超出3的最多只给3张。(InfoType需要包含3)
+ */
+class GetEidResultRequest extends AbstractModel
+{
+    /**
+     * @var string E证通流程的唯一标识,调用GetEidToken接口时生成。
+     */
+    public $EidToken;
+
+    /**
+     * @var string 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息;5:意愿核身朗读模式相关结果;6:意愿核身问答模式相关结果)。
+如 13表示拉取文本类、最佳截图信息。
+默认值:0
+     */
+    public $InfoType;
+
+    /**
+     * @var integer 从活体视频中截取一定张数的最佳帧。默认为0,最大为3,超出3的最多只给3张。(InfoType需要包含3)
+     */
+    public $BestFramesCount;
+
+    /**
+     * @param string $EidToken E证通流程的唯一标识,调用GetEidToken接口时生成。
+     * @param string $InfoType 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息;5:意愿核身朗读模式相关结果;6:意愿核身问答模式相关结果)。
+如 13表示拉取文本类、最佳截图信息。
+默认值:0
+     * @param integer $BestFramesCount 从活体视频中截取一定张数的最佳帧。默认为0,最大为3,超出3的最多只给3张。(InfoType需要包含3)
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("EidToken",$param) and $param["EidToken"] !== null) {
+            $this->EidToken = $param["EidToken"];
+        }
+
+        if (array_key_exists("InfoType",$param) and $param["InfoType"] !== null) {
+            $this->InfoType = $param["InfoType"];
+        }
+
+        if (array_key_exists("BestFramesCount",$param) and $param["BestFramesCount"] !== null) {
+            $this->BestFramesCount = $param["BestFramesCount"];
+        }
+    }
+}

+ 155 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetEidResultResponse.php

@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetEidResult返回参数结构体
+ *
+ * @method DetectInfoText getText() 获取文本类信息。(基于对敏感信息的保护,验证使用的姓名和身份证号统一通过加密后从Eidinfo参数中返回,如需获取请在控制台申请返回身份信息,详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setText(DetectInfoText $Text) 设置文本类信息。(基于对敏感信息的保护,验证使用的姓名和身份证号统一通过加密后从Eidinfo参数中返回,如需获取请在控制台申请返回身份信息,详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method DetectInfoIdCardData getIdCardData() 获取身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIdCardData(DetectInfoIdCardData $IdCardData) 设置身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method DetectInfoBestFrame getBestFrame() 获取最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrame(DetectInfoBestFrame $BestFrame) 设置最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method EidInfo getEidInfo() 获取Eid信息。(包括商户下用户唯一标识以及加密后的姓名、身份证号信息。解密方式详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setEidInfo(EidInfo $EidInfo) 设置Eid信息。(包括商户下用户唯一标识以及加密后的姓名、身份证号信息。解密方式详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method IntentionVerifyData getIntentionVerifyData() 获取意愿核身朗读模式相关信息。若未使用意愿核身朗读功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionVerifyData(IntentionVerifyData $IntentionVerifyData) 设置意愿核身朗读模式相关信息。若未使用意愿核身朗读功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method IntentionQuestionResult getIntentionQuestionResult() 获取意愿核身问答模式相关信息。若未使用意愿核身问答模式功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionQuestionResult(IntentionQuestionResult $IntentionQuestionResult) 设置意愿核身问答模式相关信息。若未使用意愿核身问答模式功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetEidResultResponse extends AbstractModel
+{
+    /**
+     * @var DetectInfoText 文本类信息。(基于对敏感信息的保护,验证使用的姓名和身份证号统一通过加密后从Eidinfo参数中返回,如需获取请在控制台申请返回身份信息,详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Text;
+
+    /**
+     * @var DetectInfoIdCardData 身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IdCardData;
+
+    /**
+     * @var DetectInfoBestFrame 最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrame;
+
+    /**
+     * @var EidInfo Eid信息。(包括商户下用户唯一标识以及加密后的姓名、身份证号信息。解密方式详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $EidInfo;
+
+    /**
+     * @var IntentionVerifyData 意愿核身朗读模式相关信息。若未使用意愿核身朗读功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionVerifyData;
+
+    /**
+     * @var IntentionQuestionResult 意愿核身问答模式相关信息。若未使用意愿核身问答模式功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionQuestionResult;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param DetectInfoText $Text 文本类信息。(基于对敏感信息的保护,验证使用的姓名和身份证号统一通过加密后从Eidinfo参数中返回,如需获取请在控制台申请返回身份信息,详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param DetectInfoIdCardData $IdCardData 身份证照片信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param DetectInfoBestFrame $BestFrame 最佳帧信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param EidInfo $EidInfo Eid信息。(包括商户下用户唯一标识以及加密后的姓名、身份证号信息。解密方式详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param IntentionVerifyData $IntentionVerifyData 意愿核身朗读模式相关信息。若未使用意愿核身朗读功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param IntentionQuestionResult $IntentionQuestionResult 意愿核身问答模式相关信息。若未使用意愿核身问答模式功能,该字段返回值可以不处理。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Text",$param) and $param["Text"] !== null) {
+            $this->Text = new DetectInfoText();
+            $this->Text->deserialize($param["Text"]);
+        }
+
+        if (array_key_exists("IdCardData",$param) and $param["IdCardData"] !== null) {
+            $this->IdCardData = new DetectInfoIdCardData();
+            $this->IdCardData->deserialize($param["IdCardData"]);
+        }
+
+        if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
+            $this->BestFrame = new DetectInfoBestFrame();
+            $this->BestFrame->deserialize($param["BestFrame"]);
+        }
+
+        if (array_key_exists("EidInfo",$param) and $param["EidInfo"] !== null) {
+            $this->EidInfo = new EidInfo();
+            $this->EidInfo->deserialize($param["EidInfo"]);
+        }
+
+        if (array_key_exists("IntentionVerifyData",$param) and $param["IntentionVerifyData"] !== null) {
+            $this->IntentionVerifyData = new IntentionVerifyData();
+            $this->IntentionVerifyData->deserialize($param["IntentionVerifyData"]);
+        }
+
+        if (array_key_exists("IntentionQuestionResult",$param) and $param["IntentionQuestionResult"] !== null) {
+            $this->IntentionQuestionResult = new IntentionQuestionResult();
+            $this->IntentionQuestionResult->deserialize($param["IntentionQuestionResult"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 142 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenConfig.php

@@ -0,0 +1,142 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 获取token时的的配置
+ *
+ * @method string getInputType() 获取姓名身份证输入方式。
+1:传身份证正反面OCR   
+2:传身份证正面OCR  
+3:用户手动输入  
+4:客户后台传入  
+默认1
+注:使用OCR时仅支持用户修改结果中的姓名
+ * @method void setInputType(string $InputType) 设置姓名身份证输入方式。
+1:传身份证正反面OCR   
+2:传身份证正面OCR  
+3:用户手动输入  
+4:客户后台传入  
+默认1
+注:使用OCR时仅支持用户修改结果中的姓名
+ * @method boolean getUseIntentionVerify() 获取是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
+ * @method void setUseIntentionVerify(boolean $UseIntentionVerify) 设置是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
+ * @method string getIntentionMode() 获取意愿核身模式。枚举值:1( 朗读模式),2(问答模式) 。默认值1
+ * @method void setIntentionMode(string $IntentionMode) 设置意愿核身模式。枚举值:1( 朗读模式),2(问答模式) 。默认值1
+ * @method string getIntentionVerifyText() 获取意愿核身朗读模式使用的文案,若未使用意愿核身朗读功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+ * @method void setIntentionVerifyText(string $IntentionVerifyText) 设置意愿核身朗读模式使用的文案,若未使用意愿核身朗读功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+ * @method array getIntentionQuestions() 获取意愿核身问答模式的配置列表。当前仅支持一个问答。
+ * @method void setIntentionQuestions(array $IntentionQuestions) 设置意愿核身问答模式的配置列表。当前仅支持一个问答。
+ * @method boolean getIntentionRecognition() 获取意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
+ * @method void setIntentionRecognition(boolean $IntentionRecognition) 设置意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
+ */
+class GetEidTokenConfig extends AbstractModel
+{
+    /**
+     * @var string 姓名身份证输入方式。
+1:传身份证正反面OCR   
+2:传身份证正面OCR  
+3:用户手动输入  
+4:客户后台传入  
+默认1
+注:使用OCR时仅支持用户修改结果中的姓名
+     */
+    public $InputType;
+
+    /**
+     * @var boolean 是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
+     */
+    public $UseIntentionVerify;
+
+    /**
+     * @var string 意愿核身模式。枚举值:1( 朗读模式),2(问答模式) 。默认值1
+     */
+    public $IntentionMode;
+
+    /**
+     * @var string 意愿核身朗读模式使用的文案,若未使用意愿核身朗读功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+     */
+    public $IntentionVerifyText;
+
+    /**
+     * @var array 意愿核身问答模式的配置列表。当前仅支持一个问答。
+     */
+    public $IntentionQuestions;
+
+    /**
+     * @var boolean 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
+     */
+    public $IntentionRecognition;
+
+    /**
+     * @param string $InputType 姓名身份证输入方式。
+1:传身份证正反面OCR   
+2:传身份证正面OCR  
+3:用户手动输入  
+4:客户后台传入  
+默认1
+注:使用OCR时仅支持用户修改结果中的姓名
+     * @param boolean $UseIntentionVerify 是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
+     * @param string $IntentionMode 意愿核身模式。枚举值:1( 朗读模式),2(问答模式) 。默认值1
+     * @param string $IntentionVerifyText 意愿核身朗读模式使用的文案,若未使用意愿核身朗读功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
+     * @param array $IntentionQuestions 意愿核身问答模式的配置列表。当前仅支持一个问答。
+     * @param boolean $IntentionRecognition 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("InputType",$param) and $param["InputType"] !== null) {
+            $this->InputType = $param["InputType"];
+        }
+
+        if (array_key_exists("UseIntentionVerify",$param) and $param["UseIntentionVerify"] !== null) {
+            $this->UseIntentionVerify = $param["UseIntentionVerify"];
+        }
+
+        if (array_key_exists("IntentionMode",$param) and $param["IntentionMode"] !== null) {
+            $this->IntentionMode = $param["IntentionMode"];
+        }
+
+        if (array_key_exists("IntentionVerifyText",$param) and $param["IntentionVerifyText"] !== null) {
+            $this->IntentionVerifyText = $param["IntentionVerifyText"];
+        }
+
+        if (array_key_exists("IntentionQuestions",$param) and $param["IntentionQuestions"] !== null) {
+            $this->IntentionQuestions = [];
+            foreach ($param["IntentionQuestions"] as $key => $value){
+                $obj = new IntentionQuestion();
+                $obj->deserialize($value);
+                array_push($this->IntentionQuestions, $obj);
+            }
+        }
+
+        if (array_key_exists("IntentionRecognition",$param) and $param["IntentionRecognition"] !== null) {
+            $this->IntentionRecognition = $param["IntentionRecognition"];
+        }
+    }
+}

+ 131 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenRequest.php

@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetEidToken请求参数结构体
+ *
+ * @method string getMerchantId() 获取EID商户id,字段长度最长50位。
+ * @method void setMerchantId(string $MerchantId) 设置EID商户id,字段长度最长50位。
+ * @method string getIdCard() 获取身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+ * @method void setIdCard(string $IdCard) 设置身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+ * @method string getName() 获取姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+ * @method void setName(string $Name) 设置姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+ * @method string getExtra() 获取透传字段,在获取验证结果时返回。最长长度1024位。
+ * @method void setExtra(string $Extra) 设置透传字段,在获取验证结果时返回。最长长度1024位。
+ * @method GetEidTokenConfig getConfig() 获取小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
+ * @method void setConfig(GetEidTokenConfig $Config) 设置小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
+ * @method string getRedirectUrl() 获取最长长度1024位。用户从Url中进入核身认证结束后重定向的回调链接地址。EidToken会在该链接的query参数中。
+ * @method void setRedirectUrl(string $RedirectUrl) 设置最长长度1024位。用户从Url中进入核身认证结束后重定向的回调链接地址。EidToken会在该链接的query参数中。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class GetEidTokenRequest extends AbstractModel
+{
+    /**
+     * @var string EID商户id,字段长度最长50位。
+     */
+    public $MerchantId;
+
+    /**
+     * @var string 身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+     */
+    public $Name;
+
+    /**
+     * @var string 透传字段,在获取验证结果时返回。最长长度1024位。
+     */
+    public $Extra;
+
+    /**
+     * @var GetEidTokenConfig 小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
+     */
+    public $Config;
+
+    /**
+     * @var string 最长长度1024位。用户从Url中进入核身认证结束后重定向的回调链接地址。EidToken会在该链接的query参数中。
+     */
+    public $RedirectUrl;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $MerchantId EID商户id,字段长度最长50位。
+     * @param string $IdCard 身份标识(未使用OCR服务时,必须传入)。
+规则:a-zA-Z0-9组合。最长长度32位。
+     * @param string $Name 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
+     * @param string $Extra 透传字段,在获取验证结果时返回。最长长度1024位。
+     * @param GetEidTokenConfig $Config 小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
+     * @param string $RedirectUrl 最长长度1024位。用户从Url中进入核身认证结束后重定向的回调链接地址。EidToken会在该链接的query参数中。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("MerchantId",$param) and $param["MerchantId"] !== null) {
+            $this->MerchantId = $param["MerchantId"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("Config",$param) and $param["Config"] !== null) {
+            $this->Config = new GetEidTokenConfig();
+            $this->Config->deserialize($param["Config"]);
+        }
+
+        if (array_key_exists("RedirectUrl",$param) and $param["RedirectUrl"] !== null) {
+            $this->RedirectUrl = $param["RedirectUrl"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 81 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetEidTokenResponse.php

@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetEidToken返回参数结构体
+ *
+ * @method string getEidToken() 获取一次核身流程的标识,有效时间为600秒;
+完成核身后,可用该标识获取验证结果信息。
+ * @method void setEidToken(string $EidToken) 设置一次核身流程的标识,有效时间为600秒;
+完成核身后,可用该标识获取验证结果信息。
+ * @method string getUrl() 获取发起核身流程的URL,用于H5场景核身。
+ * @method void setUrl(string $Url) 设置发起核身流程的URL,用于H5场景核身。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetEidTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 一次核身流程的标识,有效时间为600秒;
+完成核身后,可用该标识获取验证结果信息。
+     */
+    public $EidToken;
+
+    /**
+     * @var string 发起核身流程的URL,用于H5场景核身。
+     */
+    public $Url;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $EidToken 一次核身流程的标识,有效时间为600秒;
+完成核身后,可用该标识获取验证结果信息。
+     * @param string $Url 发起核身流程的URL,用于H5场景核身。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("EidToken",$param) and $param["EidToken"] !== null) {
+            $this->EidToken = $param["EidToken"];
+        }
+
+        if (array_key_exists("Url",$param) and $param["Url"] !== null) {
+            $this->Url = $param["Url"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdResultRequest.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetFaceIdResult请求参数结构体
+ *
+ * @method string getFaceIdToken() 获取SDK人脸核身流程的标识,调用GetFaceIdToken接口时生成。
+ * @method void setFaceIdToken(string $FaceIdToken) 设置SDK人脸核身流程的标识,调用GetFaceIdToken接口时生成。
+ * @method boolean getIsNeedVideo() 获取是否需要拉取视频,默认false不需要
+ * @method void setIsNeedVideo(boolean $IsNeedVideo) 设置是否需要拉取视频,默认false不需要
+ * @method boolean getIsNeedBestFrame() 获取是否需要拉取截帧,默认false不需要
+ * @method void setIsNeedBestFrame(boolean $IsNeedBestFrame) 设置是否需要拉取截帧,默认false不需要
+ */
+class GetFaceIdResultRequest extends AbstractModel
+{
+    /**
+     * @var string SDK人脸核身流程的标识,调用GetFaceIdToken接口时生成。
+     */
+    public $FaceIdToken;
+
+    /**
+     * @var boolean 是否需要拉取视频,默认false不需要
+     */
+    public $IsNeedVideo;
+
+    /**
+     * @var boolean 是否需要拉取截帧,默认false不需要
+     */
+    public $IsNeedBestFrame;
+
+    /**
+     * @param string $FaceIdToken SDK人脸核身流程的标识,调用GetFaceIdToken接口时生成。
+     * @param boolean $IsNeedVideo 是否需要拉取视频,默认false不需要
+     * @param boolean $IsNeedBestFrame 是否需要拉取截帧,默认false不需要
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("FaceIdToken",$param) and $param["FaceIdToken"] !== null) {
+            $this->FaceIdToken = $param["FaceIdToken"];
+        }
+
+        if (array_key_exists("IsNeedVideo",$param) and $param["IsNeedVideo"] !== null) {
+            $this->IsNeedVideo = $param["IsNeedVideo"];
+        }
+
+        if (array_key_exists("IsNeedBestFrame",$param) and $param["IsNeedBestFrame"] !== null) {
+            $this->IsNeedBestFrame = $param["IsNeedBestFrame"];
+        }
+    }
+}

+ 221 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdResultResponse.php

@@ -0,0 +1,221 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetFaceIdResult返回参数结构体
+ *
+ * @method string getIdCard() 获取身份证
+ * @method void setIdCard(string $IdCard) 设置身份证
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getResult() 获取业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
+ * @method void setResult(string $Result) 设置业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
+ * @method string getDescription() 获取业务核验描述
+ * @method void setDescription(string $Description) 设置业务核验描述
+ * @method float getSimilarity() 获取相似度,0-100,数值越大相似度越高
+ * @method void setSimilarity(float $Similarity) 设置相似度,0-100,数值越大相似度越高
+ * @method string getVideoBase64() 获取用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoBase64(string $VideoBase64) 设置用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getBestFrameBase64() 获取用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameBase64(string $BestFrameBase64) 设置用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getExtra() 获取获取token时透传的信息
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setExtra(string $Extra) 设置获取token时透传的信息
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getDeviceInfoTag() 获取设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+202、5001:设备疑似被Root
+203、5004:设备疑似被注入
+205:设备疑似被Hook
+206:设备疑似虚拟运行环境
+5007、1005:设备疑似摄像头被劫持
+8000:设备疑似存在异常篡改行为
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setDeviceInfoTag(string $DeviceInfoTag) 设置设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+202、5001:设备疑似被Root
+203、5004:设备疑似被注入
+205:设备疑似被Hook
+206:设备疑似虚拟运行环境
+5007、1005:设备疑似摄像头被劫持
+8000:设备疑似存在异常篡改行为
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRiskInfoTag() 获取行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+02:攻击风险
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setRiskInfoTag(string $RiskInfoTag) 设置行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+02:攻击风险
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetFaceIdResultResponse extends AbstractModel
+{
+    /**
+     * @var string 身份证
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
+     */
+    public $Result;
+
+    /**
+     * @var string 业务核验描述
+     */
+    public $Description;
+
+    /**
+     * @var float 相似度,0-100,数值越大相似度越高
+     */
+    public $Similarity;
+
+    /**
+     * @var string 用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoBase64;
+
+    /**
+     * @var string 用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameBase64;
+
+    /**
+     * @var string 获取token时透传的信息
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Extra;
+
+    /**
+     * @var string 设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+202、5001:设备疑似被Root
+203、5004:设备疑似被注入
+205:设备疑似被Hook
+206:设备疑似虚拟运行环境
+5007、1005:设备疑似摄像头被劫持
+8000:设备疑似存在异常篡改行为
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $DeviceInfoTag;
+
+    /**
+     * @var string 行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+02:攻击风险
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $RiskInfoTag;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $IdCard 身份证
+     * @param string $Name 姓名
+     * @param string $Result 业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
+     * @param string $Description 业务核验描述
+     * @param float $Similarity 相似度,0-100,数值越大相似度越高
+     * @param string $VideoBase64 用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $BestFrameBase64 用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Extra 获取token时透传的信息
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $DeviceInfoTag 设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+202、5001:设备疑似被Root
+203、5004:设备疑似被注入
+205:设备疑似被Hook
+206:设备疑似虚拟运行环境
+5007、1005:设备疑似摄像头被劫持
+8000:设备疑似存在异常篡改行为
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RiskInfoTag 行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
+02:攻击风险
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("Similarity",$param) and $param["Similarity"] !== null) {
+            $this->Similarity = $param["Similarity"];
+        }
+
+        if (array_key_exists("VideoBase64",$param) and $param["VideoBase64"] !== null) {
+            $this->VideoBase64 = $param["VideoBase64"];
+        }
+
+        if (array_key_exists("BestFrameBase64",$param) and $param["BestFrameBase64"] !== null) {
+            $this->BestFrameBase64 = $param["BestFrameBase64"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("DeviceInfoTag",$param) and $param["DeviceInfoTag"] !== null) {
+            $this->DeviceInfoTag = $param["DeviceInfoTag"];
+        }
+
+        if (array_key_exists("RiskInfoTag",$param) and $param["RiskInfoTag"] !== null) {
+            $this->RiskInfoTag = $param["RiskInfoTag"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 133 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdTokenRequest.php

@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetFaceIdToken请求参数结构体
+ *
+ * @method string getCompareLib() 获取本地上传照片(LOCAL)、商业库(BUSINESS)
+ * @method void setCompareLib(string $CompareLib) 设置本地上传照片(LOCAL)、商业库(BUSINESS)
+ * @method string getIdCard() 获取CompareLib为商业库时必传。
+ * @method void setIdCard(string $IdCard) 设置CompareLib为商业库时必传。
+ * @method string getName() 获取CompareLib为商业库库时必传。
+ * @method void setName(string $Name) 设置CompareLib为商业库库时必传。
+ * @method string getImageBase64() 获取CompareLib为上传照片比对时必传,Base64后图片最大8MB。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method void setImageBase64(string $ImageBase64) 设置CompareLib为上传照片比对时必传,Base64后图片最大8MB。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method string getMeta() 获取SDK中生成的Meta字符串
+ * @method void setMeta(string $Meta) 设置SDK中生成的Meta字符串
+ * @method string getExtra() 获取透传参数 1000长度字符串
+ * @method void setExtra(string $Extra) 设置透传参数 1000长度字符串
+ * @method boolean getUseCos() 获取默认为false,设置该参数为true后,核身过程中的视频图片将会存储在人脸核身控制台授权cos的bucket中,拉取结果时会返回对应资源完整cos地址。开通地址见https://console.cloud.tencent.com/faceid/cos
+【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
+ * @method void setUseCos(boolean $UseCos) 设置默认为false,设置该参数为true后,核身过程中的视频图片将会存储在人脸核身控制台授权cos的bucket中,拉取结果时会返回对应资源完整cos地址。开通地址见https://console.cloud.tencent.com/faceid/cos
+【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
+ */
+class GetFaceIdTokenRequest extends AbstractModel
+{
+    /**
+     * @var string 本地上传照片(LOCAL)、商业库(BUSINESS)
+     */
+    public $CompareLib;
+
+    /**
+     * @var string CompareLib为商业库时必传。
+     */
+    public $IdCard;
+
+    /**
+     * @var string CompareLib为商业库库时必传。
+     */
+    public $Name;
+
+    /**
+     * @var string CompareLib为上传照片比对时必传,Base64后图片最大8MB。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var string SDK中生成的Meta字符串
+     */
+    public $Meta;
+
+    /**
+     * @var string 透传参数 1000长度字符串
+     */
+    public $Extra;
+
+    /**
+     * @var boolean 默认为false,设置该参数为true后,核身过程中的视频图片将会存储在人脸核身控制台授权cos的bucket中,拉取结果时会返回对应资源完整cos地址。开通地址见https://console.cloud.tencent.com/faceid/cos
+【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
+     */
+    public $UseCos;
+
+    /**
+     * @param string $CompareLib 本地上传照片(LOCAL)、商业库(BUSINESS)
+     * @param string $IdCard CompareLib为商业库时必传。
+     * @param string $Name CompareLib为商业库库时必传。
+     * @param string $ImageBase64 CompareLib为上传照片比对时必传,Base64后图片最大8MB。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     * @param string $Meta SDK中生成的Meta字符串
+     * @param string $Extra 透传参数 1000长度字符串
+     * @param boolean $UseCos 默认为false,设置该参数为true后,核身过程中的视频图片将会存储在人脸核身控制台授权cos的bucket中,拉取结果时会返回对应资源完整cos地址。开通地址见https://console.cloud.tencent.com/faceid/cos
+【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("CompareLib",$param) and $param["CompareLib"] !== null) {
+            $this->CompareLib = $param["CompareLib"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("Meta",$param) and $param["Meta"] !== null) {
+            $this->Meta = $param["Meta"];
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("UseCos",$param) and $param["UseCos"] !== null) {
+            $this->UseCos = $param["UseCos"];
+        }
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetFaceIdTokenResponse.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetFaceIdToken返回参数结构体
+ *
+ * @method string getFaceIdToken() 获取有效期 10分钟。只能完成1次核身。
+ * @method void setFaceIdToken(string $FaceIdToken) 设置有效期 10分钟。只能完成1次核身。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetFaceIdTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 有效期 10分钟。只能完成1次核身。
+     */
+    public $FaceIdToken;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $FaceIdToken 有效期 10分钟。只能完成1次核身。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("FaceIdToken",$param) and $param["FaceIdToken"] !== null) {
+            $this->FaceIdToken = $param["FaceIdToken"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 47 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetLiveCodeRequest.php

@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetLiveCode请求参数结构体
+ *
+
+ */
+class GetLiveCodeRequest extends AbstractModel
+{
+
+
+    /**
+
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetLiveCodeResponse.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetLiveCode返回参数结构体
+ *
+ * @method string getLiveCode() 获取数字验证码,如:1234
+ * @method void setLiveCode(string $LiveCode) 设置数字验证码,如:1234
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetLiveCodeResponse extends AbstractModel
+{
+    /**
+     * @var string 数字验证码,如:1234
+     */
+    public $LiveCode;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $LiveCode 数字验证码,如:1234
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("LiveCode",$param) and $param["LiveCode"] !== null) {
+            $this->LiveCode = $param["LiveCode"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetLivenessResultRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetLivenessResult请求参数结构体
+ *
+ * @method string getSdkToken() 获取标识一次Sdk核验流程的令牌。
+ * @method void setSdkToken(string $SdkToken) 设置标识一次Sdk核验流程的令牌。
+ */
+class GetLivenessResultRequest extends AbstractModel
+{
+    /**
+     * @var string 标识一次Sdk核验流程的令牌。
+     */
+    public $SdkToken;
+
+    /**
+     * @param string $SdkToken 标识一次Sdk核验流程的令牌。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("SdkToken",$param) and $param["SdkToken"] !== null) {
+            $this->SdkToken = $param["SdkToken"];
+        }
+    }
+}

+ 103 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetLivenessResultResponse.php

@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetLivenessResult返回参数结构体
+ *
+ * @method string getResult() 获取流程的最终结果
+ * @method void setResult(string $Result) 设置流程的最终结果
+ * @method string getDescription() 获取流程的最终结果描述
+ * @method void setDescription(string $Description) 设置流程的最终结果描述
+ * @method FileInfo getBestFrame() 获取人像截图
+ * @method void setBestFrame(FileInfo $BestFrame) 设置人像截图
+ * @method FileInfo getVideo() 获取检测过程视频
+ * @method void setVideo(FileInfo $Video) 设置检测过程视频
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetLivenessResultResponse extends AbstractModel
+{
+    /**
+     * @var string 流程的最终结果
+     */
+    public $Result;
+
+    /**
+     * @var string 流程的最终结果描述
+     */
+    public $Description;
+
+    /**
+     * @var FileInfo 人像截图
+     */
+    public $BestFrame;
+
+    /**
+     * @var FileInfo 检测过程视频
+     */
+    public $Video;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 流程的最终结果
+     * @param string $Description 流程的最终结果描述
+     * @param FileInfo $BestFrame 人像截图
+     * @param FileInfo $Video 检测过程视频
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
+            $this->BestFrame = new FileInfo();
+            $this->BestFrame->deserialize($param["BestFrame"]);
+        }
+
+        if (array_key_exists("Video",$param) and $param["Video"] !== null) {
+            $this->Video = new FileInfo();
+            $this->Video->deserialize($param["Video"]);
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthResultRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetRealNameAuthResult请求参数结构体
+ *
+ * @method string getAuthToken() 获取实名认证凭证
+ * @method void setAuthToken(string $AuthToken) 设置实名认证凭证
+ */
+class GetRealNameAuthResultRequest extends AbstractModel
+{
+    /**
+     * @var string 实名认证凭证
+     */
+    public $AuthToken;
+
+    /**
+     * @param string $AuthToken 实名认证凭证
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("AuthToken",$param) and $param["AuthToken"] !== null) {
+            $this->AuthToken = $param["AuthToken"];
+        }
+    }
+}

+ 97 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthResultResponse.php

@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetRealNameAuthResult返回参数结构体
+ *
+ * @method string getResultType() 获取认证结果码,收费情况如下:
+
+收费码:
+0:  姓名和身份证号一致
+-1: 姓名和身份证号不一致
+-2: 姓名和微信实名姓名不一致
+
+不收费码:
+-3: 微信号未实名
+ * @method void setResultType(string $ResultType) 设置认证结果码,收费情况如下:
+
+收费码:
+0:  姓名和身份证号一致
+-1: 姓名和身份证号不一致
+-2: 姓名和微信实名姓名不一致
+
+不收费码:
+-3: 微信号未实名
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetRealNameAuthResultResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下:
+
+收费码:
+0:  姓名和身份证号一致
+-1: 姓名和身份证号不一致
+-2: 姓名和微信实名姓名不一致
+
+不收费码:
+-3: 微信号未实名
+     */
+    public $ResultType;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $ResultType 认证结果码,收费情况如下:
+
+收费码:
+0:  姓名和身份证号一致
+-1: 姓名和身份证号不一致
+-2: 姓名和微信实名姓名不一致
+
+不收费码:
+-3: 微信号未实名
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ResultType",$param) and $param["ResultType"] !== null) {
+            $this->ResultType = $param["ResultType"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthTokenRequest.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetRealNameAuthToken请求参数结构体
+ *
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getIDCard() 获取身份证号
+ * @method void setIDCard(string $IDCard) 设置身份证号
+ * @method string getCallbackURL() 获取回调地址。实名认证完成后,将会重定向到这个地址通知认证发起方。仅支持http或https协议。
+ * @method void setCallbackURL(string $CallbackURL) 设置回调地址。实名认证完成后,将会重定向到这个地址通知认证发起方。仅支持http或https协议。
+ */
+class GetRealNameAuthTokenRequest extends AbstractModel
+{
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 身份证号
+     */
+    public $IDCard;
+
+    /**
+     * @var string 回调地址。实名认证完成后,将会重定向到这个地址通知认证发起方。仅支持http或https协议。
+     */
+    public $CallbackURL;
+
+    /**
+     * @param string $Name 姓名
+     * @param string $IDCard 身份证号
+     * @param string $CallbackURL 回调地址。实名认证完成后,将会重定向到这个地址通知认证发起方。仅支持http或https协议。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("IDCard",$param) and $param["IDCard"] !== null) {
+            $this->IDCard = $param["IDCard"];
+        }
+
+        if (array_key_exists("CallbackURL",$param) and $param["CallbackURL"] !== null) {
+            $this->CallbackURL = $param["CallbackURL"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetRealNameAuthTokenResponse.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetRealNameAuthToken返回参数结构体
+ *
+ * @method string getAuthToken() 获取查询实名认证结果的唯一凭证
+ * @method void setAuthToken(string $AuthToken) 设置查询实名认证结果的唯一凭证
+ * @method string getRedirectURL() 获取实名认证授权地址,认证发起方需要重定向到这个地址获取认证用户的授权,仅能在微信环境下打开。
+ * @method void setRedirectURL(string $RedirectURL) 设置实名认证授权地址,认证发起方需要重定向到这个地址获取认证用户的授权,仅能在微信环境下打开。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetRealNameAuthTokenResponse extends AbstractModel
+{
+    /**
+     * @var string 查询实名认证结果的唯一凭证
+     */
+    public $AuthToken;
+
+    /**
+     * @var string 实名认证授权地址,认证发起方需要重定向到这个地址获取认证用户的授权,仅能在微信环境下打开。
+     */
+    public $RedirectURL;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $AuthToken 查询实名认证结果的唯一凭证
+     * @param string $RedirectURL 实名认证授权地址,认证发起方需要重定向到这个地址获取认证用户的授权,仅能在微信环境下打开。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("AuthToken",$param) and $param["AuthToken"] !== null) {
+            $this->AuthToken = $param["AuthToken"];
+        }
+
+        if (array_key_exists("RedirectURL",$param) and $param["RedirectURL"] !== null) {
+            $this->RedirectURL = $param["RedirectURL"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetSdkVerificationResultRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetSdkVerificationResult请求参数结构体
+ *
+ * @method string getSdkToken() 获取标识一次Sdk核验流程的令牌。
+ * @method void setSdkToken(string $SdkToken) 设置标识一次Sdk核验流程的令牌。
+ */
+class GetSdkVerificationResultRequest extends AbstractModel
+{
+    /**
+     * @var string 标识一次Sdk核验流程的令牌。
+     */
+    public $SdkToken;
+
+    /**
+     * @param string $SdkToken 标识一次Sdk核验流程的令牌。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("SdkToken",$param) and $param["SdkToken"] !== null) {
+            $this->SdkToken = $param["SdkToken"];
+        }
+    }
+}

+ 135 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetSdkVerificationResultResponse.php

@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetSdkVerificationResult返回参数结构体
+ *
+ * @method string getResult() 获取整个核验结果
+ * @method void setResult(string $Result) 设置整个核验结果
+ * @method string getDescription() 获取结果描述
+ * @method void setDescription(string $Description) 设置结果描述
+ * @method integer getChargeCount() 获取计费次数
+ * @method void setChargeCount(integer $ChargeCount) 设置计费次数
+ * @method array getCardVerifyResults() 获取多次证照识别的结果(有序),取最终一次结果为有效结果
+ * @method void setCardVerifyResults(array $CardVerifyResults) 设置多次证照识别的结果(有序),取最终一次结果为有效结果
+ * @method array getCompareResults() 获取多次活体认证的结果信息(有序),取最终一次结果为有效结果
+ * @method void setCompareResults(array $CompareResults) 设置多次活体认证的结果信息(有序),取最终一次结果为有效结果
+ * @method string getExtra() 获取获取token时传入的
+ * @method void setExtra(string $Extra) 设置获取token时传入的
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetSdkVerificationResultResponse extends AbstractModel
+{
+    /**
+     * @var string 整个核验结果
+     */
+    public $Result;
+
+    /**
+     * @var string 结果描述
+     */
+    public $Description;
+
+    /**
+     * @var integer 计费次数
+     */
+    public $ChargeCount;
+
+    /**
+     * @var array 多次证照识别的结果(有序),取最终一次结果为有效结果
+     */
+    public $CardVerifyResults;
+
+    /**
+     * @var array 多次活体认证的结果信息(有序),取最终一次结果为有效结果
+     */
+    public $CompareResults;
+
+    /**
+     * @var string 获取token时传入的
+     */
+    public $Extra;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 整个核验结果
+     * @param string $Description 结果描述
+     * @param integer $ChargeCount 计费次数
+     * @param array $CardVerifyResults 多次证照识别的结果(有序),取最终一次结果为有效结果
+     * @param array $CompareResults 多次活体认证的结果信息(有序),取最终一次结果为有效结果
+     * @param string $Extra 获取token时传入的
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("ChargeCount",$param) and $param["ChargeCount"] !== null) {
+            $this->ChargeCount = $param["ChargeCount"];
+        }
+
+        if (array_key_exists("CardVerifyResults",$param) and $param["CardVerifyResults"] !== null) {
+            $this->CardVerifyResults = [];
+            foreach ($param["CardVerifyResults"] as $key => $value){
+                $obj = new CardVerifyResult();
+                $obj->deserialize($value);
+                array_push($this->CardVerifyResults, $obj);
+            }
+        }
+
+        if (array_key_exists("CompareResults",$param) and $param["CompareResults"] !== null) {
+            $this->CompareResults = [];
+            foreach ($param["CompareResults"] as $key => $value){
+                $obj = new CompareResult();
+                $obj->deserialize($value);
+                array_push($this->CompareResults, $obj);
+            }
+        }
+
+        if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
+            $this->Extra = $param["Extra"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 77 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetWeChatBillDetailsRequest.php

@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetWeChatBillDetails请求参数结构体
+ *
+ * @method string getDate() 获取拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
+ * @method void setDate(string $Date) 设置拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
+ * @method integer getCursor() 获取游标。用于分页,取第一页时传0,取后续页面时,传入本接口响应中返回的NextCursor字段的值。
+ * @method void setCursor(integer $Cursor) 设置游标。用于分页,取第一页时传0,取后续页面时,传入本接口响应中返回的NextCursor字段的值。
+ * @method string getRuleId() 获取需要拉取账单详情业务对应的RuleId。不传会返回所有RuleId数据。默认为空字符串。
+ * @method void setRuleId(string $RuleId) 设置需要拉取账单详情业务对应的RuleId。不传会返回所有RuleId数据。默认为空字符串。
+ */
+class GetWeChatBillDetailsRequest extends AbstractModel
+{
+    /**
+     * @var string 拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
+     */
+    public $Date;
+
+    /**
+     * @var integer 游标。用于分页,取第一页时传0,取后续页面时,传入本接口响应中返回的NextCursor字段的值。
+     */
+    public $Cursor;
+
+    /**
+     * @var string 需要拉取账单详情业务对应的RuleId。不传会返回所有RuleId数据。默认为空字符串。
+     */
+    public $RuleId;
+
+    /**
+     * @param string $Date 拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
+     * @param integer $Cursor 游标。用于分页,取第一页时传0,取后续页面时,传入本接口响应中返回的NextCursor字段的值。
+     * @param string $RuleId 需要拉取账单详情业务对应的RuleId。不传会返回所有RuleId数据。默认为空字符串。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Date",$param) and $param["Date"] !== null) {
+            $this->Date = $param["Date"];
+        }
+
+        if (array_key_exists("Cursor",$param) and $param["Cursor"] !== null) {
+            $this->Cursor = $param["Cursor"];
+        }
+
+        if (array_key_exists("RuleId",$param) and $param["RuleId"] !== null) {
+            $this->RuleId = $param["RuleId"];
+        }
+    }
+}

+ 94 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetWeChatBillDetailsResponse.php

@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetWeChatBillDetails返回参数结构体
+ *
+ * @method boolean getHasNextPage() 获取是否还有下一页。该字段为true时,需要将NextCursor的值作为入参Cursor继续调用本接口。
+ * @method void setHasNextPage(boolean $HasNextPage) 设置是否还有下一页。该字段为true时,需要将NextCursor的值作为入参Cursor继续调用本接口。
+ * @method integer getNextCursor() 获取下一页的游标。用于分页。
+ * @method void setNextCursor(integer $NextCursor) 设置下一页的游标。用于分页。
+ * @method array getWeChatBillDetails() 获取数据
+ * @method void setWeChatBillDetails(array $WeChatBillDetails) 设置数据
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetWeChatBillDetailsResponse extends AbstractModel
+{
+    /**
+     * @var boolean 是否还有下一页。该字段为true时,需要将NextCursor的值作为入参Cursor继续调用本接口。
+     */
+    public $HasNextPage;
+
+    /**
+     * @var integer 下一页的游标。用于分页。
+     */
+    public $NextCursor;
+
+    /**
+     * @var array 数据
+     */
+    public $WeChatBillDetails;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param boolean $HasNextPage 是否还有下一页。该字段为true时,需要将NextCursor的值作为入参Cursor继续调用本接口。
+     * @param integer $NextCursor 下一页的游标。用于分页。
+     * @param array $WeChatBillDetails 数据
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("HasNextPage",$param) and $param["HasNextPage"] !== null) {
+            $this->HasNextPage = $param["HasNextPage"];
+        }
+
+        if (array_key_exists("NextCursor",$param) and $param["NextCursor"] !== null) {
+            $this->NextCursor = $param["NextCursor"];
+        }
+
+        if (array_key_exists("WeChatBillDetails",$param) and $param["WeChatBillDetails"] !== null) {
+            $this->WeChatBillDetails = [];
+            foreach ($param["WeChatBillDetails"] as $key => $value){
+                $obj = new WeChatBillDetail();
+                $obj->deserialize($value);
+                array_push($this->WeChatBillDetails, $obj);
+            }
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 53 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetWebVerificationResultRequest.php

@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetWebVerificationResult请求参数结构体
+ *
+ * @method string getBizToken() 获取Web核验令牌,由ApplyWebVerificationToken接口生成。
+ * @method void setBizToken(string $BizToken) 设置Web核验令牌,由ApplyWebVerificationToken接口生成。
+ */
+class GetWebVerificationResultRequest extends AbstractModel
+{
+    /**
+     * @var string Web核验令牌,由ApplyWebVerificationToken接口生成。
+     */
+    public $BizToken;
+
+    /**
+     * @param string $BizToken Web核验令牌,由ApplyWebVerificationToken接口生成。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
+            $this->BizToken = $param["BizToken"];
+        }
+    }
+}

+ 170 - 0
extend/TencentCloud/Faceid/V20180301/Models/GetWebVerificationResultResponse.php

@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * GetWebVerificationResult返回参数结构体
+ *
+ * @method integer getErrorCode() 获取本次核验最终结果。0为核验通过,是同一人。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrorCode(integer $ErrorCode) 设置本次核验最终结果。0为核验通过,是同一人。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getErrorMsg() 获取本次核验最终结果描述。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrorMsg(string $ErrorMsg) 设置本次核验最终结果描述。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getVideoBestFrameUrl() 获取视频流中采集的最佳人脸照片临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoBestFrameUrl(string $VideoBestFrameUrl) 设置视频流中采集的最佳人脸照片临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getVideoBestFrameMd5() 获取视频流中采集的最佳人脸照片内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoBestFrameMd5(string $VideoBestFrameMd5) 设置视频流中采集的最佳人脸照片内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getVerificationDetailList() 获取本次核验流程的详细信息列表。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVerificationDetailList(array $VerificationDetailList) 设置本次核验流程的详细信息列表。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getVideoUrl() 获取视频流中采集的视频临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoUrl(string $VideoUrl) 设置视频流中采集的视频临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getVideoMd5() 获取视频流中采集的视频内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideoMd5(string $VideoMd5) 设置视频流中采集的视频内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class GetWebVerificationResultResponse extends AbstractModel
+{
+    /**
+     * @var integer 本次核验最终结果。0为核验通过,是同一人。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrorCode;
+
+    /**
+     * @var string 本次核验最终结果描述。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrorMsg;
+
+    /**
+     * @var string 视频流中采集的最佳人脸照片临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoBestFrameUrl;
+
+    /**
+     * @var string 视频流中采集的最佳人脸照片内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoBestFrameMd5;
+
+    /**
+     * @var array 本次核验流程的详细信息列表。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VerificationDetailList;
+
+    /**
+     * @var string 视频流中采集的视频临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoUrl;
+
+    /**
+     * @var string 视频流中采集的视频内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $VideoMd5;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param integer $ErrorCode 本次核验最终结果。0为核验通过,是同一人。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $ErrorMsg 本次核验最终结果描述。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $VideoBestFrameUrl 视频流中采集的最佳人脸照片临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $VideoBestFrameMd5 视频流中采集的最佳人脸照片内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $VerificationDetailList 本次核验流程的详细信息列表。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $VideoUrl 视频流中采集的视频临时地址,下载有效时间10分钟,如果需要存储请及时下载。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $VideoMd5 视频流中采集的视频内容MD5散列值,可以使用此值校验文件内容是否一致。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("ErrorCode",$param) and $param["ErrorCode"] !== null) {
+            $this->ErrorCode = $param["ErrorCode"];
+        }
+
+        if (array_key_exists("ErrorMsg",$param) and $param["ErrorMsg"] !== null) {
+            $this->ErrorMsg = $param["ErrorMsg"];
+        }
+
+        if (array_key_exists("VideoBestFrameUrl",$param) and $param["VideoBestFrameUrl"] !== null) {
+            $this->VideoBestFrameUrl = $param["VideoBestFrameUrl"];
+        }
+
+        if (array_key_exists("VideoBestFrameMd5",$param) and $param["VideoBestFrameMd5"] !== null) {
+            $this->VideoBestFrameMd5 = $param["VideoBestFrameMd5"];
+        }
+
+        if (array_key_exists("VerificationDetailList",$param) and $param["VerificationDetailList"] !== null) {
+            $this->VerificationDetailList = [];
+            foreach ($param["VerificationDetailList"] as $key => $value){
+                $obj = new VerificationDetail();
+                $obj->deserialize($value);
+                array_push($this->VerificationDetailList, $obj);
+            }
+        }
+
+        if (array_key_exists("VideoUrl",$param) and $param["VideoUrl"] !== null) {
+            $this->VideoUrl = $param["VideoUrl"];
+        }
+
+        if (array_key_exists("VideoMd5",$param) and $param["VideoMd5"] !== null) {
+            $this->VideoMd5 = $param["VideoMd5"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 130 - 0
extend/TencentCloud/Faceid/V20180301/Models/IdCardOCRVerificationRequest.php

@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * IdCardOCRVerification请求参数结构体
+ *
+ * @method string getIdCard() 获取身份证号
+姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
+ * @method void setIdCard(string $IdCard) 设置身份证号
+姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method string getImageBase64() 获取身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method void setImageBase64(string $ImageBase64) 设置身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method string getImageUrl() 获取身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method void setImageUrl(string $ImageUrl) 设置身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class IdCardOCRVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证号
+姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var string 身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    public $ImageUrl;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $IdCard 身份证号
+姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
+     * @param string $Name 姓名
+     * @param string $ImageBase64 身份证人像面的 Base64 值
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     * @param string $ImageUrl 身份证人像面的 Url 地址
+支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
+支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
+非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("ImageUrl",$param) and $param["ImageUrl"] !== null) {
+            $this->ImageUrl = $param["ImageUrl"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 205 - 0
extend/TencentCloud/Faceid/V20180301/Models/IdCardOCRVerificationResponse.php

@@ -0,0 +1,205 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * IdCardOCRVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getName() 获取用于验证的姓名
+ * @method void setName(string $Name) 设置用于验证的姓名
+ * @method string getIdCard() 获取用于验证的身份证号
+ * @method void setIdCard(string $IdCard) 设置用于验证的身份证号
+ * @method string getSex() 获取OCR得到的性别
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setSex(string $Sex) 设置OCR得到的性别
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getNation() 获取OCR得到的民族
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setNation(string $Nation) 设置OCR得到的民族
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getBirth() 获取OCR得到的生日
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBirth(string $Birth) 设置OCR得到的生日
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getAddress() 获取OCR得到的地址
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAddress(string $Address) 设置OCR得到的地址
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class IdCardOCRVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 用于验证的姓名
+     */
+    public $Name;
+
+    /**
+     * @var string 用于验证的身份证号
+     */
+    public $IdCard;
+
+    /**
+     * @var string OCR得到的性别
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Sex;
+
+    /**
+     * @var string OCR得到的民族
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Nation;
+
+    /**
+     * @var string OCR得到的生日
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Birth;
+
+    /**
+     * @var string OCR得到的地址
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Address;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+     * @param string $Description 业务结果描述。
+     * @param string $Name 用于验证的姓名
+     * @param string $IdCard 用于验证的身份证号
+     * @param string $Sex OCR得到的性别
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Nation OCR得到的民族
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Birth OCR得到的生日
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Address OCR得到的地址
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Sex",$param) and $param["Sex"] !== null) {
+            $this->Sex = $param["Sex"];
+        }
+
+        if (array_key_exists("Nation",$param) and $param["Nation"] !== null) {
+            $this->Nation = $param["Nation"];
+        }
+
+        if (array_key_exists("Birth",$param) and $param["Birth"] !== null) {
+            $this->Birth = $param["Birth"];
+        }
+
+        if (array_key_exists("Address",$param) and $param["Address"] !== null) {
+            $this->Address = $param["Address"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 78 - 0
extend/TencentCloud/Faceid/V20180301/Models/IdCardVerificationRequest.php

@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * IdCardVerification请求参数结构体
+ *
+ * @method string getIdCard() 获取身份证号
+ * @method void setIdCard(string $IdCard) 设置身份证号
+ * @method string getName() 获取姓名
+ * @method void setName(string $Name) 设置姓名
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class IdCardVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证号
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名
+     */
+    public $Name;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $IdCard 身份证号
+     * @param string $Name 姓名
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 117 - 0
extend/TencentCloud/Faceid/V20180301/Models/IdCardVerificationResponse.php

@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * IdCardVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class IdCardVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 姓名和身份证号一致
+-1: 姓名和身份证号不一致
+不收费结果码:
+-2: 非法身份证号(长度、校验位等不正确)
+-3: 非法姓名(长度、格式等不正确)
+-4: 证件库服务异常
+-5: 证件库中无此身份证记录
+-6: 权威比对系统升级中,请稍后再试
+-7: 认证次数超过当日限制
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 110 - 0
extend/TencentCloud/Faceid/V20180301/Models/ImageRecognitionRequest.php

@@ -0,0 +1,110 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ImageRecognition请求参数结构体
+ *
+ * @method string getIdCard() 获取身份证号
+ * @method void setIdCard(string $IdCard) 设置身份证号
+ * @method string getName() 获取姓名。中文请使用UTF-8编码。
+ * @method void setName(string $Name) 设置姓名。中文请使用UTF-8编码。
+ * @method string getImageBase64() 获取用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method void setImageBase64(string $ImageBase64) 设置用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+ * @method string getOptional() 获取本接口不需要传递此参数。
+ * @method void setOptional(string $Optional) 设置本接口不需要传递此参数。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class ImageRecognitionRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证号
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名。中文请使用UTF-8编码。
+     */
+    public $Name;
+
+    /**
+     * @var string 用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var string 本接口不需要传递此参数。
+     */
+    public $Optional;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $IdCard 身份证号
+     * @param string $Name 姓名。中文请使用UTF-8编码。
+     * @param string $ImageBase64 用于人脸比对的照片,图片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+     * @param string $Optional 本接口不需要传递此参数。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("Optional",$param) and $param["Optional"] !== null) {
+            $this->Optional = $param["Optional"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 89 - 0
extend/TencentCloud/Faceid/V20180301/Models/ImageRecognitionResponse.php

@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * ImageRecognition返回参数结构体
+ *
+ * @method float getSim() 获取相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method void setSim(float $Sim) 设置相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method string getResult() 获取业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class ImageRecognitionResponse extends AbstractModel
+{
+    /**
+     * @var float 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     */
+    public $Sim;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param float $Sim 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     * @param string $Result 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     * @param string $Description 业务结果描述。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 65 - 0
extend/TencentCloud/Faceid/V20180301/Models/IntentionQuestion.php

@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 意愿核身过程中播报的问题文本、用户回答的标准文本。
+ *
+ * @method string getQuestion() 获取系统播报的问题文本,问题最大长度为150个字符。
+ * @method void setQuestion(string $Question) 设置系统播报的问题文本,问题最大长度为150个字符。
+ * @method array getAnswers() 获取用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。
+ * @method void setAnswers(array $Answers) 设置用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。
+ */
+class IntentionQuestion extends AbstractModel
+{
+    /**
+     * @var string 系统播报的问题文本,问题最大长度为150个字符。
+     */
+    public $Question;
+
+    /**
+     * @var array 用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。
+     */
+    public $Answers;
+
+    /**
+     * @param string $Question 系统播报的问题文本,问题最大长度为150个字符。
+     * @param array $Answers 用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Question",$param) and $param["Question"] !== null) {
+            $this->Question = $param["Question"];
+        }
+
+        if (array_key_exists("Answers",$param) and $param["Answers"] !== null) {
+            $this->Answers = $param["Answers"];
+        }
+    }
+}

+ 145 - 0
extend/TencentCloud/Faceid/V20180301/Models/IntentionQuestionResult.php

@@ -0,0 +1,145 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 意愿核身问答模式结果
+ *
+ * @method string getFinalResultCode() 获取意愿核身最终结果:
+0:认证通过,-1:认证未通过,-2:浏览器内核不兼容,无法进行意愿校验
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setFinalResultCode(string $FinalResultCode) 设置意愿核身最终结果:
+0:认证通过,-1:认证未通过,-2:浏览器内核不兼容,无法进行意愿校验
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getVideo() 获取视频base64(其中包含全程问题和回答音频,mp4格式)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setVideo(string $Video) 设置视频base64(其中包含全程问题和回答音频,mp4格式)
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getScreenShot() 获取屏幕截图base64列表
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setScreenShot(array $ScreenShot) 设置屏幕截图base64列表
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getResultCode() 获取和答案匹配结果列表
+0:成功,-1:不匹配
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setResultCode(array $ResultCode) 设置和答案匹配结果列表
+0:成功,-1:不匹配
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getAsrResult() 获取回答问题语音识别结果列表
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAsrResult(array $AsrResult) 设置回答问题语音识别结果列表
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method array getAudios() 获取答案录音音频
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAudios(array $Audios) 设置答案录音音频
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class IntentionQuestionResult extends AbstractModel
+{
+    /**
+     * @var string 意愿核身最终结果:
+0:认证通过,-1:认证未通过,-2:浏览器内核不兼容,无法进行意愿校验
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $FinalResultCode;
+
+    /**
+     * @var string 视频base64(其中包含全程问题和回答音频,mp4格式)
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Video;
+
+    /**
+     * @var array 屏幕截图base64列表
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ScreenShot;
+
+    /**
+     * @var array 和答案匹配结果列表
+0:成功,-1:不匹配
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ResultCode;
+
+    /**
+     * @var array 回答问题语音识别结果列表
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $AsrResult;
+
+    /**
+     * @var array 答案录音音频
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $Audios;
+
+    /**
+     * @param string $FinalResultCode 意愿核身最终结果:
+0:认证通过,-1:认证未通过,-2:浏览器内核不兼容,无法进行意愿校验
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Video 视频base64(其中包含全程问题和回答音频,mp4格式)
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $ScreenShot 屏幕截图base64列表
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $ResultCode 和答案匹配结果列表
+0:成功,-1:不匹配
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $AsrResult 回答问题语音识别结果列表
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param array $Audios 答案录音音频
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("FinalResultCode",$param) and $param["FinalResultCode"] !== null) {
+            $this->FinalResultCode = $param["FinalResultCode"];
+        }
+
+        if (array_key_exists("Video",$param) and $param["Video"] !== null) {
+            $this->Video = $param["Video"];
+        }
+
+        if (array_key_exists("ScreenShot",$param) and $param["ScreenShot"] !== null) {
+            $this->ScreenShot = $param["ScreenShot"];
+        }
+
+        if (array_key_exists("ResultCode",$param) and $param["ResultCode"] !== null) {
+            $this->ResultCode = $param["ResultCode"];
+        }
+
+        if (array_key_exists("AsrResult",$param) and $param["AsrResult"] !== null) {
+            $this->AsrResult = $param["AsrResult"];
+        }
+
+        if (array_key_exists("Audios",$param) and $param["Audios"] !== null) {
+            $this->Audios = $param["Audios"];
+        }
+    }
+}

+ 137 - 0
extend/TencentCloud/Faceid/V20180301/Models/IntentionVerifyData.php

@@ -0,0 +1,137 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * 意愿核身相关结果
+ *
+ * @method string getIntentionVerifyVideo() 获取意愿确认环节中录制的视频(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionVerifyVideo(string $IntentionVerifyVideo) 设置意愿确认环节中录制的视频(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getAsrResult() 获取意愿确认环节中用户语音转文字的识别结果。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAsrResult(string $AsrResult) 设置意愿确认环节中用户语音转文字的识别结果。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method integer getErrorCode() 获取意愿确认环节的结果码。当该结果码为0时,语音朗读的视频与语音识别结果才会返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrorCode(integer $ErrorCode) 设置意愿确认环节的结果码。当该结果码为0时,语音朗读的视频与语音识别结果才会返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getErrorMessage() 获取意愿确认环节的结果信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setErrorMessage(string $ErrorMessage) 设置意愿确认环节的结果信息。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getIntentionVerifyBestFrame() 获取意愿确认环节中录制视频的最佳帧(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setIntentionVerifyBestFrame(string $IntentionVerifyBestFrame) 设置意愿确认环节中录制视频的最佳帧(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getAsrResultSimilarity() 获取本次流程用户语音与传入文本比对的相似度分值,取值范围 [0.00, 100.00]。只有配置了相似度阈值后才进行语音校验并返回相似度分值。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setAsrResultSimilarity(string $AsrResultSimilarity) 设置本次流程用户语音与传入文本比对的相似度分值,取值范围 [0.00, 100.00]。只有配置了相似度阈值后才进行语音校验并返回相似度分值。
+注意:此字段可能返回 null,表示取不到有效值。
+ */
+class IntentionVerifyData extends AbstractModel
+{
+    /**
+     * @var string 意愿确认环节中录制的视频(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionVerifyVideo;
+
+    /**
+     * @var string 意愿确认环节中用户语音转文字的识别结果。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $AsrResult;
+
+    /**
+     * @var integer 意愿确认环节的结果码。当该结果码为0时,语音朗读的视频与语音识别结果才会返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrorCode;
+
+    /**
+     * @var string 意愿确认环节的结果信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $ErrorMessage;
+
+    /**
+     * @var string 意愿确认环节中录制视频的最佳帧(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $IntentionVerifyBestFrame;
+
+    /**
+     * @var string 本次流程用户语音与传入文本比对的相似度分值,取值范围 [0.00, 100.00]。只有配置了相似度阈值后才进行语音校验并返回相似度分值。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $AsrResultSimilarity;
+
+    /**
+     * @param string $IntentionVerifyVideo 意愿确认环节中录制的视频(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $AsrResult 意愿确认环节中用户语音转文字的识别结果。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param integer $ErrorCode 意愿确认环节的结果码。当该结果码为0时,语音朗读的视频与语音识别结果才会返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $ErrorMessage 意愿确认环节的结果信息。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $IntentionVerifyBestFrame 意愿确认环节中录制视频的最佳帧(base64)。若不存在则为空字符串。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $AsrResultSimilarity 本次流程用户语音与传入文本比对的相似度分值,取值范围 [0.00, 100.00]。只有配置了相似度阈值后才进行语音校验并返回相似度分值。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IntentionVerifyVideo",$param) and $param["IntentionVerifyVideo"] !== null) {
+            $this->IntentionVerifyVideo = $param["IntentionVerifyVideo"];
+        }
+
+        if (array_key_exists("AsrResult",$param) and $param["AsrResult"] !== null) {
+            $this->AsrResult = $param["AsrResult"];
+        }
+
+        if (array_key_exists("ErrorCode",$param) and $param["ErrorCode"] !== null) {
+            $this->ErrorCode = $param["ErrorCode"];
+        }
+
+        if (array_key_exists("ErrorMessage",$param) and $param["ErrorMessage"] !== null) {
+            $this->ErrorMessage = $param["ErrorMessage"];
+        }
+
+        if (array_key_exists("IntentionVerifyBestFrame",$param) and $param["IntentionVerifyBestFrame"] !== null) {
+            $this->IntentionVerifyBestFrame = $param["IntentionVerifyBestFrame"];
+        }
+
+        if (array_key_exists("AsrResultSimilarity",$param) and $param["AsrResultSimilarity"] !== null) {
+            $this->AsrResultSimilarity = $param["AsrResultSimilarity"];
+        }
+    }
+}

+ 213 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessCompareRequest.php

@@ -0,0 +1,213 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * LivenessCompare请求参数结构体
+ *
+ * @method string getLivenessType() 获取活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method void setLivenessType(string $LivenessType) 设置活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method string getImageBase64() 获取用于人脸比对的照片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+ * @method void setImageBase64(string $ImageBase64) 设置用于人脸比对的照片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+ * @method string getImageUrl() 获取用于人脸比对照片的URL地址;图片下载后经Base64编码后的数据大小不超过3M,仅支持jpg、png格式。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method void setImageUrl(string $ImageUrl) 设置用于人脸比对照片的URL地址;图片下载后经Base64编码后的数据大小不超过3M,仅支持jpg、png格式。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method string getValidateData() 获取数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+ * @method void setValidateData(string $ValidateData) 设置数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+ * @method string getOptional() 获取额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+ * @method void setOptional(string $Optional) 设置额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+ * @method string getVideoBase64() 获取用于活体检测的视频,视频的Base64值;
+Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+ * @method void setVideoBase64(string $VideoBase64) 设置用于活体检测的视频,视频的Base64值;
+Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+ * @method string getVideoUrl() 获取用于活体检测的视频Url 地址。视频下载后经Base64编码后不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method void setVideoUrl(string $VideoUrl) 设置用于活体检测的视频Url 地址。视频下载后经Base64编码后不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ */
+class LivenessCompareRequest extends AbstractModel
+{
+    /**
+     * @var string 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     */
+    public $LivenessType;
+
+    /**
+     * @var string 用于人脸比对的照片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+     */
+    public $ImageBase64;
+
+    /**
+     * @var string 用于人脸比对照片的URL地址;图片下载后经Base64编码后的数据大小不超过3M,仅支持jpg、png格式。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    public $ImageUrl;
+
+    /**
+     * @var string 数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+     */
+    public $ValidateData;
+
+    /**
+     * @var string 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+     */
+    public $Optional;
+
+    /**
+     * @var string 用于活体检测的视频,视频的Base64值;
+Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+     */
+    public $VideoBase64;
+
+    /**
+     * @var string 用于活体检测的视频Url 地址。视频下载后经Base64编码后不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    public $VideoUrl;
+
+    /**
+     * @param string $LivenessType 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     * @param string $ImageBase64 用于人脸比对的照片的Base64值;
+Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+     * @param string $ImageUrl 用于人脸比对照片的URL地址;图片下载后经Base64编码后的数据大小不超过3M,仅支持jpg、png格式。
+
+图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageBase64。
+
+图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     * @param string $ValidateData 数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+     * @param string $Optional 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+     * @param string $VideoBase64 用于活体检测的视频,视频的Base64值;
+Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
+请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+     * @param string $VideoUrl 用于活体检测的视频Url 地址。视频下载后经Base64编码后不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("LivenessType",$param) and $param["LivenessType"] !== null) {
+            $this->LivenessType = $param["LivenessType"];
+        }
+
+        if (array_key_exists("ImageBase64",$param) and $param["ImageBase64"] !== null) {
+            $this->ImageBase64 = $param["ImageBase64"];
+        }
+
+        if (array_key_exists("ImageUrl",$param) and $param["ImageUrl"] !== null) {
+            $this->ImageUrl = $param["ImageUrl"];
+        }
+
+        if (array_key_exists("ValidateData",$param) and $param["ValidateData"] !== null) {
+            $this->ValidateData = $param["ValidateData"];
+        }
+
+        if (array_key_exists("Optional",$param) and $param["Optional"] !== null) {
+            $this->Optional = $param["Optional"];
+        }
+
+        if (array_key_exists("VideoBase64",$param) and $param["VideoBase64"] !== null) {
+            $this->VideoBase64 = $param["VideoBase64"];
+        }
+
+        if (array_key_exists("VideoUrl",$param) and $param["VideoUrl"] !== null) {
+            $this->VideoUrl = $param["VideoUrl"];
+        }
+    }
+}

+ 121 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessCompareResponse.php

@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * LivenessCompare返回参数结构体
+ *
+ * @method string getBestFrameBase64() 获取验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameBase64(string $BestFrameBase64) 设置验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method float getSim() 获取相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+ * @method void setSim(float $Sim) 设置相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+ * @method string getResult() 获取业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method array getBestFrameList() 获取最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameList(array $BestFrameList) 设置最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class LivenessCompareResponse extends AbstractModel
+{
+    /**
+     * @var string 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameBase64;
+
+    /**
+     * @var float 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+     */
+    public $Sim;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var array 最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameList;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $BestFrameBase64 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param float $Sim 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
+     * @param string $Result 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     * @param string $Description 业务结果描述。
+     * @param array $BestFrameList 最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BestFrameBase64",$param) and $param["BestFrameBase64"] !== null) {
+            $this->BestFrameBase64 = $param["BestFrameBase64"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("BestFrameList",$param) and $param["BestFrameList"] !== null) {
+            $this->BestFrameList = $param["BestFrameList"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 182 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessRecognitionRequest.php

@@ -0,0 +1,182 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * LivenessRecognition请求参数结构体
+ *
+ * @method string getIdCard() 获取身份证号
+ * @method void setIdCard(string $IdCard) 设置身份证号
+ * @method string getName() 获取姓名。中文请使用UTF-8编码。
+ * @method void setName(string $Name) 设置姓名。中文请使用UTF-8编码。
+ * @method string getLivenessType() 获取活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method void setLivenessType(string $LivenessType) 设置活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method string getVideoBase64() 获取用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+ * @method void setVideoBase64(string $VideoBase64) 设置用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+ * @method string getVideoUrl() 获取用于活体检测的视频Url 地址。视频下载后经Base64编码不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method void setVideoUrl(string $VideoUrl) 设置用于活体检测的视频Url 地址。视频下载后经Base64编码不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+ * @method string getValidateData() 获取数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+ * @method void setValidateData(string $ValidateData) 设置数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+ * @method string getOptional() 获取额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+ * @method void setOptional(string $Optional) 设置额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class LivenessRecognitionRequest extends AbstractModel
+{
+    /**
+     * @var string 身份证号
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名。中文请使用UTF-8编码。
+     */
+    public $Name;
+
+    /**
+     * @var string 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     */
+    public $LivenessType;
+
+    /**
+     * @var string 用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+     */
+    public $VideoBase64;
+
+    /**
+     * @var string 用于活体检测的视频Url 地址。视频下载后经Base64编码不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     */
+    public $VideoUrl;
+
+    /**
+     * @var string 数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+     */
+    public $ValidateData;
+
+    /**
+     * @var string 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+     */
+    public $Optional;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $IdCard 身份证号
+     * @param string $Name 姓名。中文请使用UTF-8编码。
+     * @param string $LivenessType 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     * @param string $VideoBase64 用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+     * @param string $VideoUrl 用于活体检测的视频Url 地址。视频下载后经Base64编码不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
+
+视频的 VideoUrl、VideoBase64 必须提供一个,如果都提供,只使用 VideoBase64。
+
+建议视频存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议视频存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
+     * @param string $ValidateData 数字模式传参:传数字验证码,验证码需先调用<a href="https://cloud.tencent.com/document/product/1007/31821">获取数字验证码接口</a>得到;
+动作模式传参:传动作顺序,动作顺序需先调用<a href="https://cloud.tencent.com/document/product/1007/31822">获取动作顺序接口</a>得到;
+静默模式传参:空。
+     * @param string $Optional 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围2-10
+}
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("LivenessType",$param) and $param["LivenessType"] !== null) {
+            $this->LivenessType = $param["LivenessType"];
+        }
+
+        if (array_key_exists("VideoBase64",$param) and $param["VideoBase64"] !== null) {
+            $this->VideoBase64 = $param["VideoBase64"];
+        }
+
+        if (array_key_exists("VideoUrl",$param) and $param["VideoUrl"] !== null) {
+            $this->VideoUrl = $param["VideoUrl"];
+        }
+
+        if (array_key_exists("ValidateData",$param) and $param["ValidateData"] !== null) {
+            $this->ValidateData = $param["ValidateData"];
+        }
+
+        if (array_key_exists("Optional",$param) and $param["Optional"] !== null) {
+            $this->Optional = $param["Optional"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 121 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessRecognitionResponse.php

@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * LivenessRecognition返回参数结构体
+ *
+ * @method string getBestFrameBase64() 获取验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameBase64(string $BestFrameBase64) 设置验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method float getSim() 获取相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method void setSim(float $Sim) 设置相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+ * @method string getResult() 获取业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method array getBestFrameList() 获取最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameList(array $BestFrameList) 设置最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class LivenessRecognitionResponse extends AbstractModel
+{
+    /**
+     * @var string 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameBase64;
+
+    /**
+     * @var float 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     */
+    public $Sim;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var array 最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameList;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $BestFrameBase64 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param float $Sim 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
+     * @param string $Result 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     * @param string $Description 业务结果描述。
+     * @param array $BestFrameList 最佳截图列表,仅在配置了返回多张最佳截图时返回。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BestFrameBase64",$param) and $param["BestFrameBase64"] !== null) {
+            $this->BestFrameBase64 = $param["BestFrameBase64"];
+        }
+
+        if (array_key_exists("Sim",$param) and $param["Sim"] !== null) {
+            $this->Sim = $param["Sim"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("BestFrameList",$param) and $param["BestFrameList"] !== null) {
+            $this->BestFrameList = $param["BestFrameList"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 117 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessRequest.php

@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * Liveness请求参数结构体
+ *
+ * @method string getVideoBase64() 获取用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+ * @method void setVideoBase64(string $VideoBase64) 设置用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+ * @method string getLivenessType() 获取活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method void setLivenessType(string $LivenessType) 设置活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+ * @method string getValidateData() 获取数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
+动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
+静默模式传参:不需要传递此参数。
+ * @method void setValidateData(string $ValidateData) 设置数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
+动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
+静默模式传参:不需要传递此参数。
+ * @method string getOptional() 获取额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围1-10
+}
+ * @method void setOptional(string $Optional) 设置额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围1-10
+}
+ */
+class LivenessRequest extends AbstractModel
+{
+    /**
+     * @var string 用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+     */
+    public $VideoBase64;
+
+    /**
+     * @var string 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     */
+    public $LivenessType;
+
+    /**
+     * @var string 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
+动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
+静默模式传参:不需要传递此参数。
+     */
+    public $ValidateData;
+
+    /**
+     * @var string 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围1-10
+}
+     */
+    public $Optional;
+
+    /**
+     * @param string $VideoBase64 用于活体检测的视频,视频的BASE64值;
+BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
+     * @param string $LivenessType 活体检测类型,取值:LIP/ACTION/SILENT。
+LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
+     * @param string $ValidateData 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
+动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
+静默模式传参:不需要传递此参数。
+     * @param string $Optional 额外配置,传入JSON字符串。
+{
+"BestFrameNum": 2  //需要返回多张最佳截图,取值范围1-10
+}
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("VideoBase64",$param) and $param["VideoBase64"] !== null) {
+            $this->VideoBase64 = $param["VideoBase64"];
+        }
+
+        if (array_key_exists("LivenessType",$param) and $param["LivenessType"] !== null) {
+            $this->LivenessType = $param["LivenessType"];
+        }
+
+        if (array_key_exists("ValidateData",$param) and $param["ValidateData"] !== null) {
+            $this->ValidateData = $param["ValidateData"];
+        }
+
+        if (array_key_exists("Optional",$param) and $param["Optional"] !== null) {
+            $this->Optional = $param["Optional"];
+        }
+    }
+}

+ 109 - 0
extend/TencentCloud/Faceid/V20180301/Models/LivenessResponse.php

@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * Liveness返回参数结构体
+ *
+ * @method string getBestFrameBase64() 获取验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameBase64(string $BestFrameBase64) 设置验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getResult() 获取业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method void setResult(string $Result) 设置业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method array getBestFrameList() 获取最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method void setBestFrameList(array $BestFrameList) 设置最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
+注意:此字段可能返回 null,表示取不到有效值。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class LivenessResponse extends AbstractModel
+{
+    /**
+     * @var string 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameBase64;
+
+    /**
+     * @var string 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var array 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
+注意:此字段可能返回 null,表示取不到有效值。
+     */
+    public $BestFrameList;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $BestFrameBase64 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $Result 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
+     * @param string $Description 业务结果描述。
+     * @param array $BestFrameList 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
+注意:此字段可能返回 null,表示取不到有效值。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("BestFrameBase64",$param) and $param["BestFrameBase64"] !== null) {
+            $this->BestFrameBase64 = $param["BestFrameBase64"];
+        }
+
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("BestFrameList",$param) and $param["BestFrameList"] !== null) {
+            $this->BestFrameList = $param["BestFrameList"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 118 - 0
extend/TencentCloud/Faceid/V20180301/Models/MinorsVerificationRequest.php

@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * MinorsVerification请求参数结构体
+ *
+ * @method string getType() 获取参与校验的参数类型。
+0:使用手机号进行校验;
+1:使用姓名与身份证号进行校验。
+ * @method void setType(string $Type) 设置参与校验的参数类型。
+0:使用手机号进行校验;
+1:使用姓名与身份证号进行校验。
+ * @method string getMobile() 获取手机号,11位数字,
+特别提示:
+手机号验证只限制在腾讯健康守护可信模型覆盖的数据范围内,与手机号本身在运营商是否实名无关联,不在范围会提示“手机号未实名”,建议客户与传入姓名和身份证号信息组合使用。
+ * @method void setMobile(string $Mobile) 设置手机号,11位数字,
+特别提示:
+手机号验证只限制在腾讯健康守护可信模型覆盖的数据范围内,与手机号本身在运营商是否实名无关联,不在范围会提示“手机号未实名”,建议客户与传入姓名和身份证号信息组合使用。
+ * @method string getIdCard() 获取身份证号码。
+ * @method void setIdCard(string $IdCard) 设置身份证号码。
+ * @method string getName() 获取姓名。
+ * @method void setName(string $Name) 设置姓名。
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class MinorsVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 参与校验的参数类型。
+0:使用手机号进行校验;
+1:使用姓名与身份证号进行校验。
+     */
+    public $Type;
+
+    /**
+     * @var string 手机号,11位数字,
+特别提示:
+手机号验证只限制在腾讯健康守护可信模型覆盖的数据范围内,与手机号本身在运营商是否实名无关联,不在范围会提示“手机号未实名”,建议客户与传入姓名和身份证号信息组合使用。
+     */
+    public $Mobile;
+
+    /**
+     * @var string 身份证号码。
+     */
+    public $IdCard;
+
+    /**
+     * @var string 姓名。
+     */
+    public $Name;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Type 参与校验的参数类型。
+0:使用手机号进行校验;
+1:使用姓名与身份证号进行校验。
+     * @param string $Mobile 手机号,11位数字,
+特别提示:
+手机号验证只限制在腾讯健康守护可信模型覆盖的数据范围内,与手机号本身在运营商是否实名无关联,不在范围会提示“手机号未实名”,建议客户与传入姓名和身份证号信息组合使用。
+     * @param string $IdCard 身份证号码。
+     * @param string $Name 姓名。
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Type",$param) and $param["Type"] !== null) {
+            $this->Type = $param["Type"];
+        }
+
+        if (array_key_exists("Mobile",$param) and $param["Mobile"] !== null) {
+            $this->Mobile = $param["Mobile"];
+        }
+
+        if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
+            $this->IdCard = $param["IdCard"];
+        }
+
+        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
+            $this->Name = $param["Name"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 153 - 0
extend/TencentCloud/Faceid/V20180301/Models/MinorsVerificationResponse.php

@@ -0,0 +1,153 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * MinorsVerification返回参数结构体
+ *
+ * @method string getResult() 获取结果码,收费情况如下。
+收费结果码:
+0: 成年
+-1: 未成年
+-3: 姓名和身份证号不一致
+
+不收费结果码:
+-2: 未查询到手机号信息
+-4: 非法身份证号(长度、校验位等不正确)
+-5: 非法姓名(长度、格式等不正确)
+-6: 权威数据源服务异常
+-7: 未查询到身份信息
+-8: 权威数据源升级中,请稍后再试
+ * @method void setResult(string $Result) 设置结果码,收费情况如下。
+收费结果码:
+0: 成年
+-1: 未成年
+-3: 姓名和身份证号不一致
+
+不收费结果码:
+-2: 未查询到手机号信息
+-4: 非法身份证号(长度、校验位等不正确)
+-5: 非法姓名(长度、格式等不正确)
+-6: 权威数据源服务异常
+-7: 未查询到身份信息
+-8: 权威数据源升级中,请稍后再试
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getAgeRange() 获取该字段的值为年龄区间。格式为[a,b),
+[0,8)表示年龄小于8周岁区间,不包括8岁;
+[8,16)表示年龄8-16周岁区间,不包括16岁;
+[16,18)表示年龄16-18周岁区间,不包括18岁;
+[18,+)表示年龄大于18周岁。
+ * @method void setAgeRange(string $AgeRange) 设置该字段的值为年龄区间。格式为[a,b),
+[0,8)表示年龄小于8周岁区间,不包括8岁;
+[8,16)表示年龄8-16周岁区间,不包括16岁;
+[16,18)表示年龄16-18周岁区间,不包括18岁;
+[18,+)表示年龄大于18周岁。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class MinorsVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 结果码,收费情况如下。
+收费结果码:
+0: 成年
+-1: 未成年
+-3: 姓名和身份证号不一致
+
+不收费结果码:
+-2: 未查询到手机号信息
+-4: 非法身份证号(长度、校验位等不正确)
+-5: 非法姓名(长度、格式等不正确)
+-6: 权威数据源服务异常
+-7: 未查询到身份信息
+-8: 权威数据源升级中,请稍后再试
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 该字段的值为年龄区间。格式为[a,b),
+[0,8)表示年龄小于8周岁区间,不包括8岁;
+[8,16)表示年龄8-16周岁区间,不包括16岁;
+[16,18)表示年龄16-18周岁区间,不包括18岁;
+[18,+)表示年龄大于18周岁。
+     */
+    public $AgeRange;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 结果码,收费情况如下。
+收费结果码:
+0: 成年
+-1: 未成年
+-3: 姓名和身份证号不一致
+
+不收费结果码:
+-2: 未查询到手机号信息
+-4: 非法身份证号(长度、校验位等不正确)
+-5: 非法姓名(长度、格式等不正确)
+-6: 权威数据源服务异常
+-7: 未查询到身份信息
+-8: 权威数据源升级中,请稍后再试
+     * @param string $Description 业务结果描述。
+     * @param string $AgeRange 该字段的值为年龄区间。格式为[a,b),
+[0,8)表示年龄小于8周岁区间,不包括8岁;
+[8,16)表示年龄8-16周岁区间,不包括16岁;
+[16,18)表示年龄16-18周岁区间,不包括18岁;
+[18,+)表示年龄大于18周岁。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("AgeRange",$param) and $param["AgeRange"] !== null) {
+            $this->AgeRange = $param["AgeRange"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

+ 66 - 0
extend/TencentCloud/Faceid/V20180301/Models/MobileNetworkTimeVerificationRequest.php

@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * MobileNetworkTimeVerification请求参数结构体
+ *
+ * @method string getMobile() 获取手机号码
+ * @method void setMobile(string $Mobile) 设置手机号码
+ * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+ */
+class MobileNetworkTimeVerificationRequest extends AbstractModel
+{
+    /**
+     * @var string 手机号码
+     */
+    public $Mobile;
+
+    /**
+     * @var Encryption 敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    public $Encryption;
+
+    /**
+     * @param string $Mobile 手机号码
+     * @param Encryption $Encryption 敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Mobile",$param) and $param["Mobile"] !== null) {
+            $this->Mobile = $param["Mobile"];
+        }
+
+        if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
+            $this->Encryption = new Encryption();
+            $this->Encryption->deserialize($param["Encryption"]);
+        }
+    }
+}

+ 121 - 0
extend/TencentCloud/Faceid/V20180301/Models/MobileNetworkTimeVerificationResponse.php

@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace TencentCloud\Faceid\V20180301\Models;
+use TencentCloud\Common\AbstractModel;
+
+/**
+ * MobileNetworkTimeVerification返回参数结构体
+ *
+ * @method string getResult() 获取认证结果码,收费情况如下。
+收费结果码:
+0: 成功
+-2: 手机号不存在
+-3: 手机号存在,但无法查询到在网时长
+不收费结果码:
+-1: 手机号格式不正确
+-4: 验证中心服务繁忙
+ * @method void setResult(string $Result) 设置认证结果码,收费情况如下。
+收费结果码:
+0: 成功
+-2: 手机号不存在
+-3: 手机号存在,但无法查询到在网时长
+不收费结果码:
+-1: 手机号格式不正确
+-4: 验证中心服务繁忙
+ * @method string getDescription() 获取业务结果描述。
+ * @method void setDescription(string $Description) 设置业务结果描述。
+ * @method string getRange() 获取在网时长区间。
+格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
+ * @method void setRange(string $Range) 设置在网时长区间。
+格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
+ * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+ */
+class MobileNetworkTimeVerificationResponse extends AbstractModel
+{
+    /**
+     * @var string 认证结果码,收费情况如下。
+收费结果码:
+0: 成功
+-2: 手机号不存在
+-3: 手机号存在,但无法查询到在网时长
+不收费结果码:
+-1: 手机号格式不正确
+-4: 验证中心服务繁忙
+     */
+    public $Result;
+
+    /**
+     * @var string 业务结果描述。
+     */
+    public $Description;
+
+    /**
+     * @var string 在网时长区间。
+格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
+     */
+    public $Range;
+
+    /**
+     * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    public $RequestId;
+
+    /**
+     * @param string $Result 认证结果码,收费情况如下。
+收费结果码:
+0: 成功
+-2: 手机号不存在
+-3: 手机号存在,但无法查询到在网时长
+不收费结果码:
+-1: 手机号格式不正确
+-4: 验证中心服务繁忙
+     * @param string $Description 业务结果描述。
+     * @param string $Range 在网时长区间。
+格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
+     * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
+     */
+    function __construct()
+    {
+
+    }
+
+    /**
+     * For internal only. DO NOT USE IT.
+     */
+    public function deserialize($param)
+    {
+        if ($param === null) {
+            return;
+        }
+        if (array_key_exists("Result",$param) and $param["Result"] !== null) {
+            $this->Result = $param["Result"];
+        }
+
+        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
+            $this->Description = $param["Description"];
+        }
+
+        if (array_key_exists("Range",$param) and $param["Range"] !== null) {
+            $this->Range = $param["Range"];
+        }
+
+        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+            $this->RequestId = $param["RequestId"];
+        }
+    }
+}

Some files were not shown because too many files changed in this diff