EncryptedPhoneVerificationRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. * EncryptedPhoneVerification请求参数结构体
  21. *
  22. * @method string getIdCard() 获取身份证号,加密方式以EncryptionMode为准
  23. * @method void setIdCard(string $IdCard) 设置身份证号,加密方式以EncryptionMode为准
  24. * @method string getName() 获取姓名,加密方式以EncryptionMode为准
  25. * @method void setName(string $Name) 设置姓名,加密方式以EncryptionMode为准
  26. * @method string getPhone() 获取手机号,加密方式以EncryptionMode为准
  27. * @method void setPhone(string $Phone) 设置手机号,加密方式以EncryptionMode为准
  28. * @method string getEncryptionMode() 获取敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
  29. 0:明文,不加密
  30. 1: 使用MD5加密
  31. 2: 使用SHA256
  32. * @method void setEncryptionMode(string $EncryptionMode) 设置敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
  33. 0:明文,不加密
  34. 1: 使用MD5加密
  35. 2: 使用SHA256
  36. */
  37. class EncryptedPhoneVerificationRequest extends AbstractModel
  38. {
  39. /**
  40. * @var string 身份证号,加密方式以EncryptionMode为准
  41. */
  42. public $IdCard;
  43. /**
  44. * @var string 姓名,加密方式以EncryptionMode为准
  45. */
  46. public $Name;
  47. /**
  48. * @var string 手机号,加密方式以EncryptionMode为准
  49. */
  50. public $Phone;
  51. /**
  52. * @var string 敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
  53. 0:明文,不加密
  54. 1: 使用MD5加密
  55. 2: 使用SHA256
  56. */
  57. public $EncryptionMode;
  58. /**
  59. * @param string $IdCard 身份证号,加密方式以EncryptionMode为准
  60. * @param string $Name 姓名,加密方式以EncryptionMode为准
  61. * @param string $Phone 手机号,加密方式以EncryptionMode为准
  62. * @param string $EncryptionMode 敏感信息的加密方式,目前支持明文、MD5和SHA256加密传输,参数取值:
  63. 0:明文,不加密
  64. 1: 使用MD5加密
  65. 2: 使用SHA256
  66. */
  67. function __construct()
  68. {
  69. }
  70. /**
  71. * For internal only. DO NOT USE IT.
  72. */
  73. public function deserialize($param)
  74. {
  75. if ($param === null) {
  76. return;
  77. }
  78. if (array_key_exists("IdCard",$param) and $param["IdCard"] !== null) {
  79. $this->IdCard = $param["IdCard"];
  80. }
  81. if (array_key_exists("Name",$param) and $param["Name"] !== null) {
  82. $this->Name = $param["Name"];
  83. }
  84. if (array_key_exists("Phone",$param) and $param["Phone"] !== null) {
  85. $this->Phone = $param["Phone"];
  86. }
  87. if (array_key_exists("EncryptionMode",$param) and $param["EncryptionMode"] !== null) {
  88. $this->EncryptionMode = $param["EncryptionMode"];
  89. }
  90. }
  91. }