123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.finance.faceVerification.init request
- *
- * @author auto create
- * @since 1.0, 2022.04.28
- */
- class OapiFinanceFaceVerificationInitRequest
- {
- /**
- * 生物信息(通过jsapi获取)
- **/
- private $bioInfo;
-
- /**
- * 证件姓名
- **/
- private $certName;
-
- /**
- * 身份证号
- **/
- private $idCardNo;
-
- /**
- * 业务场景
- **/
- private $scene;
-
- /**
- * 手机号
- **/
- private $userMobile;
-
- private $apiParas = array();
-
- public function setBioInfo($bioInfo)
- {
- $this->bioInfo = $bioInfo;
- $this->apiParas["bio_info"] = $bioInfo;
- }
- public function getBioInfo()
- {
- return $this->bioInfo;
- }
- public function setCertName($certName)
- {
- $this->certName = $certName;
- $this->apiParas["cert_name"] = $certName;
- }
- public function getCertName()
- {
- return $this->certName;
- }
- public function setIdCardNo($idCardNo)
- {
- $this->idCardNo = $idCardNo;
- $this->apiParas["id_card_no"] = $idCardNo;
- }
- public function getIdCardNo()
- {
- return $this->idCardNo;
- }
- public function setScene($scene)
- {
- $this->scene = $scene;
- $this->apiParas["scene"] = $scene;
- }
- public function getScene()
- {
- return $this->scene;
- }
- public function setUserMobile($userMobile)
- {
- $this->userMobile = $userMobile;
- $this->apiParas["user_mobile"] = $userMobile;
- }
- public function getUserMobile()
- {
- return $this->userMobile;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.finance.faceVerification.init";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->bioInfo,"bioInfo");
- RequestCheckUtil::checkNotNull($this->certName,"certName");
- RequestCheckUtil::checkNotNull($this->idCardNo,"idCardNo");
- RequestCheckUtil::checkNotNull($this->scene,"scene");
- RequestCheckUtil::checkNotNull($this->userMobile,"userMobile");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|