CheckIdNameDateRequest.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Faceid\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * CheckIdNameDate请求参数结构体
  21. *
  22. * @method string getName() 获取姓名
  23. * @method void setName(string $Name) 设置姓名
  24. * @method string getIdCard() 获取身份证号
  25. * @method void setIdCard(string $IdCard) 设置身份证号
  26. * @method string getValidityBegin() 获取身份证有效期开始时间,格式:YYYYMMDD。如:20210701
  27. * @method void setValidityBegin(string $ValidityBegin) 设置身份证有效期开始时间,格式:YYYYMMDD。如:20210701
  28. * @method string getValidityEnd() 获取身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
  29. * @method void setValidityEnd(string $ValidityEnd) 设置身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
  30. * @method Encryption getEncryption() 获取敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
  31. * @method void setEncryption(Encryption $Encryption) 设置敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
  32. */
  33. class CheckIdNameDateRequest extends AbstractModel
  34. {
  35. /**
  36. * @var string 姓名
  37. */
  38. public $Name;
  39. /**
  40. * @var string 身份证号
  41. */
  42. public $IdCard;
  43. /**
  44. * @var string 身份证有效期开始时间,格式:YYYYMMDD。如:20210701
  45. */
  46. public $ValidityBegin;
  47. /**
  48. * @var string 身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
  49. */
  50. public $ValidityEnd;
  51. /**
  52. * @var Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
  53. */
  54. public $Encryption;
  55. /**
  56. * @param string $Name 姓名
  57. * @param string $IdCard 身份证号
  58. * @param string $ValidityBegin 身份证有效期开始时间,格式:YYYYMMDD。如:20210701
  59. * @param string $ValidityEnd 身份证有效期到期时间,格式:YYYYMMDD,长期用“00000000”代替;如:20210701
  60. * @param Encryption $Encryption 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
  61. */
  62. function __construct()
  63. {
  64. }
  65. /**
  66. * For internal only. DO NOT USE IT.
  67. */
  68. public function deserialize($param)
  69. {
  70. if ($param === null) {
  71. return;
  72. }
  73. if (array_key_exists("Name",$param) and $param["Name"] !== null) {
  74. $this->Name = $param["Name"];
  75. }
  76. if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
  77. $this->IdCard = $param["IdCard"];
  78. }
  79. if (array_key_exists("ValidityBegin",$param) and $param["ValidityBegin"] !== null) {
  80. $this->ValidityBegin = $param["ValidityBegin"];
  81. }
  82. if (array_key_exists("ValidityEnd",$param) and $param["ValidityEnd"] !== null) {
  83. $this->ValidityEnd = $param["ValidityEnd"];
  84. }
  85. if (array_key_exists("Encryption",$param) and $param["Encryption"] !== null) {
  86. $this->Encryption = new Encryption();
  87. $this->Encryption->deserialize($param["Encryption"]);
  88. }
  89. }
  90. }