OapiFinanceFaceVerificationInitRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.finance.faceVerification.init request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.04.28
  7. */
  8. class OapiFinanceFaceVerificationInitRequest
  9. {
  10. /**
  11. * 生物信息(通过jsapi获取)
  12. **/
  13. private $bioInfo;
  14. /**
  15. * 证件姓名
  16. **/
  17. private $certName;
  18. /**
  19. * 身份证号
  20. **/
  21. private $idCardNo;
  22. /**
  23. * 业务场景
  24. **/
  25. private $scene;
  26. /**
  27. * 手机号
  28. **/
  29. private $userMobile;
  30. private $apiParas = array();
  31. public function setBioInfo($bioInfo)
  32. {
  33. $this->bioInfo = $bioInfo;
  34. $this->apiParas["bio_info"] = $bioInfo;
  35. }
  36. public function getBioInfo()
  37. {
  38. return $this->bioInfo;
  39. }
  40. public function setCertName($certName)
  41. {
  42. $this->certName = $certName;
  43. $this->apiParas["cert_name"] = $certName;
  44. }
  45. public function getCertName()
  46. {
  47. return $this->certName;
  48. }
  49. public function setIdCardNo($idCardNo)
  50. {
  51. $this->idCardNo = $idCardNo;
  52. $this->apiParas["id_card_no"] = $idCardNo;
  53. }
  54. public function getIdCardNo()
  55. {
  56. return $this->idCardNo;
  57. }
  58. public function setScene($scene)
  59. {
  60. $this->scene = $scene;
  61. $this->apiParas["scene"] = $scene;
  62. }
  63. public function getScene()
  64. {
  65. return $this->scene;
  66. }
  67. public function setUserMobile($userMobile)
  68. {
  69. $this->userMobile = $userMobile;
  70. $this->apiParas["user_mobile"] = $userMobile;
  71. }
  72. public function getUserMobile()
  73. {
  74. return $this->userMobile;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.finance.faceVerification.init";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->bioInfo,"bioInfo");
  87. RequestCheckUtil::checkNotNull($this->certName,"certName");
  88. RequestCheckUtil::checkNotNull($this->idCardNo,"idCardNo");
  89. RequestCheckUtil::checkNotNull($this->scene,"scene");
  90. RequestCheckUtil::checkNotNull($this->userMobile,"userMobile");
  91. }
  92. public function putOtherTextParam($key, $value) {
  93. $this->apiParas[$key] = $value;
  94. $this->$key = $value;
  95. }
  96. }