137 lines
4.0 KiB
PHP
137 lines
4.0 KiB
PHP
|
<?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\Ocr\V20181119\Models;
|
|||
|
|
|||
|
use TencentCloud\Common\AbstractModel;
|
|||
|
|
|||
|
/**
|
|||
|
* @method string getID() 获取身份证号
|
|||
|
* @method void setID(string $ID) 设置身份证号
|
|||
|
* @method string getName() 获取姓名
|
|||
|
* @method void setName(string $Name) 设置姓名
|
|||
|
* @method string getAddress() 获取地址
|
|||
|
* @method void setAddress(string $Address) 设置地址
|
|||
|
* @method string getSex() 获取性别
|
|||
|
* @method void setSex(string $Sex) 设置性别
|
|||
|
* @method array getWarn() 获取告警码
|
|||
|
* -9103 证照翻拍告警
|
|||
|
* -9102 证照复印件告警
|
|||
|
* @method void setWarn(array $Warn) 设置告警码
|
|||
|
* -9103 证照翻拍告警
|
|||
|
* -9102 证照复印件告警
|
|||
|
* @method string getImage() 获取证件图片
|
|||
|
* @method void setImage(string $Image) 设置证件图片
|
|||
|
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|||
|
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|||
|
*/
|
|||
|
|
|||
|
/**
|
|||
|
*MLIDCardOCR返回参数结构体
|
|||
|
*/
|
|||
|
class MLIDCardOCRResponse extends AbstractModel
|
|||
|
{
|
|||
|
/**
|
|||
|
* @var string 身份证号
|
|||
|
*/
|
|||
|
public $ID;
|
|||
|
|
|||
|
/**
|
|||
|
* @var string 姓名
|
|||
|
*/
|
|||
|
public $Name;
|
|||
|
|
|||
|
/**
|
|||
|
* @var string 地址
|
|||
|
*/
|
|||
|
public $Address;
|
|||
|
|
|||
|
/**
|
|||
|
* @var string 性别
|
|||
|
*/
|
|||
|
public $Sex;
|
|||
|
|
|||
|
/**
|
|||
|
* @var array 告警码
|
|||
|
* -9103 证照翻拍告警
|
|||
|
* -9102 证照复印件告警
|
|||
|
*/
|
|||
|
public $Warn;
|
|||
|
|
|||
|
/**
|
|||
|
* @var string 证件图片
|
|||
|
*/
|
|||
|
public $Image;
|
|||
|
|
|||
|
/**
|
|||
|
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|||
|
*/
|
|||
|
public $RequestId;
|
|||
|
|
|||
|
/**
|
|||
|
* @param string $ID 身份证号
|
|||
|
* @param string $Name 姓名
|
|||
|
* @param string $Address 地址
|
|||
|
* @param string $Sex 性别
|
|||
|
* @param array $Warn 告警码
|
|||
|
* -9103 证照翻拍告警
|
|||
|
* -9102 证照复印件告警
|
|||
|
* @param string $Image 证件图片
|
|||
|
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|||
|
*/
|
|||
|
public function __construct()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* 内部实现,用户禁止调用
|
|||
|
*/
|
|||
|
public function deserialize($param)
|
|||
|
{
|
|||
|
if ($param === null) {
|
|||
|
return;
|
|||
|
}
|
|||
|
if (array_key_exists("ID", $param) and $param["ID"] !== null) {
|
|||
|
$this->ID = $param["ID"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("Name", $param) and $param["Name"] !== null) {
|
|||
|
$this->Name = $param["Name"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("Address", $param) and $param["Address"] !== null) {
|
|||
|
$this->Address = $param["Address"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("Sex", $param) and $param["Sex"] !== null) {
|
|||
|
$this->Sex = $param["Sex"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("Warn", $param) and $param["Warn"] !== null) {
|
|||
|
$this->Warn = $param["Warn"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("Image", $param) and $param["Image"] !== null) {
|
|||
|
$this->Image = $param["Image"];
|
|||
|
}
|
|||
|
|
|||
|
if (array_key_exists("RequestId", $param) and $param["RequestId"] !== null) {
|
|||
|
$this->RequestId = $param["RequestId"];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|