OapiFinanceFaceVerificationUpdateRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.finance.faceVerification.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.01.26
  7. */
  8. class OapiFinanceFaceVerificationUpdateRequest
  9. {
  10. /**
  11. * 人脸识别业务编码,初始化返回值中获取
  12. **/
  13. private $businessId;
  14. /**
  15. * 错误原因,jsapi调用返回错误原因
  16. **/
  17. private $failReason;
  18. /**
  19. * 身份证号
  20. **/
  21. private $idCardNo;
  22. /**
  23. * 人脸识别请求编码,初始化返回值中获取
  24. **/
  25. private $requestCode;
  26. /**
  27. * 错误码,jsapi调用返回错误码
  28. **/
  29. private $resultCode;
  30. /**
  31. * 手机号
  32. **/
  33. private $userMobile;
  34. /**
  35. * 校验结果
  36. **/
  37. private $verifyResult;
  38. private $apiParas = array();
  39. public function setBusinessId($businessId)
  40. {
  41. $this->businessId = $businessId;
  42. $this->apiParas["business_id"] = $businessId;
  43. }
  44. public function getBusinessId()
  45. {
  46. return $this->businessId;
  47. }
  48. public function setFailReason($failReason)
  49. {
  50. $this->failReason = $failReason;
  51. $this->apiParas["fail_reason"] = $failReason;
  52. }
  53. public function getFailReason()
  54. {
  55. return $this->failReason;
  56. }
  57. public function setIdCardNo($idCardNo)
  58. {
  59. $this->idCardNo = $idCardNo;
  60. $this->apiParas["id_card_no"] = $idCardNo;
  61. }
  62. public function getIdCardNo()
  63. {
  64. return $this->idCardNo;
  65. }
  66. public function setRequestCode($requestCode)
  67. {
  68. $this->requestCode = $requestCode;
  69. $this->apiParas["request_code"] = $requestCode;
  70. }
  71. public function getRequestCode()
  72. {
  73. return $this->requestCode;
  74. }
  75. public function setResultCode($resultCode)
  76. {
  77. $this->resultCode = $resultCode;
  78. $this->apiParas["result_code"] = $resultCode;
  79. }
  80. public function getResultCode()
  81. {
  82. return $this->resultCode;
  83. }
  84. public function setUserMobile($userMobile)
  85. {
  86. $this->userMobile = $userMobile;
  87. $this->apiParas["user_mobile"] = $userMobile;
  88. }
  89. public function getUserMobile()
  90. {
  91. return $this->userMobile;
  92. }
  93. public function setVerifyResult($verifyResult)
  94. {
  95. $this->verifyResult = $verifyResult;
  96. $this->apiParas["verify_result"] = $verifyResult;
  97. }
  98. public function getVerifyResult()
  99. {
  100. return $this->verifyResult;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "dingtalk.oapi.finance.faceVerification.update";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->businessId,"businessId");
  113. RequestCheckUtil::checkNotNull($this->idCardNo,"idCardNo");
  114. RequestCheckUtil::checkNotNull($this->requestCode,"requestCode");
  115. RequestCheckUtil::checkNotNull($this->userMobile,"userMobile");
  116. RequestCheckUtil::checkNotNull($this->verifyResult,"verifyResult");
  117. }
  118. public function putOtherTextParam($key, $value) {
  119. $this->apiParas[$key] = $value;
  120. $this->$key = $value;
  121. }
  122. }