LivenessFaceVerifyRequest.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class LivenessFaceVerifyRequest extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $certifyId;
  11. /**
  12. * @var string
  13. */
  14. public $crop;
  15. /**
  16. * @var string
  17. */
  18. public $deviceToken;
  19. /**
  20. * @var string
  21. */
  22. public $faceContrastPicture;
  23. /**
  24. * @var string
  25. */
  26. public $faceContrastPictureUrl;
  27. /**
  28. * @var string
  29. */
  30. public $ip;
  31. /**
  32. * @var string
  33. */
  34. public $mobile;
  35. /**
  36. * @var string
  37. */
  38. public $model;
  39. /**
  40. * @var string
  41. */
  42. public $ossBucketName;
  43. /**
  44. * @var string
  45. */
  46. public $ossObjectName;
  47. /**
  48. * @var string
  49. */
  50. public $outerOrderNo;
  51. /**
  52. * @var string
  53. */
  54. public $productCode;
  55. /**
  56. * @var int
  57. */
  58. public $sceneId;
  59. /**
  60. * @var string
  61. */
  62. public $userId;
  63. protected $_name = [
  64. 'certifyId' => 'CertifyId',
  65. 'crop' => 'Crop',
  66. 'deviceToken' => 'DeviceToken',
  67. 'faceContrastPicture' => 'FaceContrastPicture',
  68. 'faceContrastPictureUrl' => 'FaceContrastPictureUrl',
  69. 'ip' => 'Ip',
  70. 'mobile' => 'Mobile',
  71. 'model' => 'Model',
  72. 'ossBucketName' => 'OssBucketName',
  73. 'ossObjectName' => 'OssObjectName',
  74. 'outerOrderNo' => 'OuterOrderNo',
  75. 'productCode' => 'ProductCode',
  76. 'sceneId' => 'SceneId',
  77. 'userId' => 'UserId',
  78. ];
  79. public function validate()
  80. {
  81. }
  82. public function toMap()
  83. {
  84. $res = [];
  85. if (null !== $this->certifyId) {
  86. $res['CertifyId'] = $this->certifyId;
  87. }
  88. if (null !== $this->crop) {
  89. $res['Crop'] = $this->crop;
  90. }
  91. if (null !== $this->deviceToken) {
  92. $res['DeviceToken'] = $this->deviceToken;
  93. }
  94. if (null !== $this->faceContrastPicture) {
  95. $res['FaceContrastPicture'] = $this->faceContrastPicture;
  96. }
  97. if (null !== $this->faceContrastPictureUrl) {
  98. $res['FaceContrastPictureUrl'] = $this->faceContrastPictureUrl;
  99. }
  100. if (null !== $this->ip) {
  101. $res['Ip'] = $this->ip;
  102. }
  103. if (null !== $this->mobile) {
  104. $res['Mobile'] = $this->mobile;
  105. }
  106. if (null !== $this->model) {
  107. $res['Model'] = $this->model;
  108. }
  109. if (null !== $this->ossBucketName) {
  110. $res['OssBucketName'] = $this->ossBucketName;
  111. }
  112. if (null !== $this->ossObjectName) {
  113. $res['OssObjectName'] = $this->ossObjectName;
  114. }
  115. if (null !== $this->outerOrderNo) {
  116. $res['OuterOrderNo'] = $this->outerOrderNo;
  117. }
  118. if (null !== $this->productCode) {
  119. $res['ProductCode'] = $this->productCode;
  120. }
  121. if (null !== $this->sceneId) {
  122. $res['SceneId'] = $this->sceneId;
  123. }
  124. if (null !== $this->userId) {
  125. $res['UserId'] = $this->userId;
  126. }
  127. return $res;
  128. }
  129. /**
  130. * @param array $map
  131. *
  132. * @return LivenessFaceVerifyRequest
  133. */
  134. public static function fromMap($map = [])
  135. {
  136. $model = new self();
  137. if (isset($map['CertifyId'])) {
  138. $model->certifyId = $map['CertifyId'];
  139. }
  140. if (isset($map['Crop'])) {
  141. $model->crop = $map['Crop'];
  142. }
  143. if (isset($map['DeviceToken'])) {
  144. $model->deviceToken = $map['DeviceToken'];
  145. }
  146. if (isset($map['FaceContrastPicture'])) {
  147. $model->faceContrastPicture = $map['FaceContrastPicture'];
  148. }
  149. if (isset($map['FaceContrastPictureUrl'])) {
  150. $model->faceContrastPictureUrl = $map['FaceContrastPictureUrl'];
  151. }
  152. if (isset($map['Ip'])) {
  153. $model->ip = $map['Ip'];
  154. }
  155. if (isset($map['Mobile'])) {
  156. $model->mobile = $map['Mobile'];
  157. }
  158. if (isset($map['Model'])) {
  159. $model->model = $map['Model'];
  160. }
  161. if (isset($map['OssBucketName'])) {
  162. $model->ossBucketName = $map['OssBucketName'];
  163. }
  164. if (isset($map['OssObjectName'])) {
  165. $model->ossObjectName = $map['OssObjectName'];
  166. }
  167. if (isset($map['OuterOrderNo'])) {
  168. $model->outerOrderNo = $map['OuterOrderNo'];
  169. }
  170. if (isset($map['ProductCode'])) {
  171. $model->productCode = $map['ProductCode'];
  172. }
  173. if (isset($map['SceneId'])) {
  174. $model->sceneId = $map['SceneId'];
  175. }
  176. if (isset($map['UserId'])) {
  177. $model->userId = $map['UserId'];
  178. }
  179. return $model;
  180. }
  181. }