123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?php
- class UserAuthMiniappTicketRequest extends SdkRequest {
- const REQUEST_URL = "/v2/personalauth/miniappexchange";
- private $mode; // 认证模式
- private $user; // 用户信息
- private $username; // 指定用户姓名
- private $idCardNo; // 指定用户身份证号码
- private $bankNo; // 指定银行卡号
- private $bankMobile; // 指定银行卡预留手机号
- private $callbackUrl; // 指定回调地址
- private $paperType;
- private $otherModes; // 降级认证方式可选项
- private $modifyFields; //认证可修改项
- public function getUrl() {
- return self::REQUEST_URL;
- }
- public function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('mode', $this->mode);
- $paramSwitcher->addParam('user', $this->user);
- $paramSwitcher->addParam('username', $this->username);
- $paramSwitcher->addParam('idCardNo', $this->idCardNo);
- $paramSwitcher->addParam('bankNo', $this->bankNo);
- $paramSwitcher->addParam('bankMobile', $this->bankMobile);
- $paramSwitcher->addParam('callbackUrl', $this->callbackUrl);
- $paramSwitcher->addParam('paperType', $this->paperType);
- $paramSwitcher->addParam('otherModes', $this->otherModes);
- $paramSwitcher->addParam('modifyFields', $this->modifyFields);
- $httpParameter = HttpParameter::httpPostParamer();
- $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams()));
- return $httpParameter;
- }
- /**
- * @return mixed
- */
- public function getMode()
- {
- return $this->mode;
- }
- /**
- * @param mixed $mode
- */
- public function setMode($mode)
- {
- $this->mode = $mode;
- }
- /**
- * @return mixed
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * @param mixed $mode
- */
- public function setUser($user)
- {
- $this->user = $user;
- }
- /**
- * @return mixed
- */
- public function getUsername()
- {
- return $this->username;
- }
- /**
- * @param mixed $mode
- */
- public function setUsername($username)
- {
- $this->username = $username;
- }
- /**
- * @return mixed
- */
- public function getIdCardNo()
- {
- return $this->idCardNo;
- }
- /**
- * @param mixed $mode
- */
- public function setIdCardNo($idCardNo)
- {
- $this->idCardNo = $idCardNo;
- }
- /**
- * @return mixed
- */
- public function getBankNo()
- {
- return $this->bankNo;
- }
- /**
- * @param mixed $mode
- */
- public function setBankNo($bankNo)
- {
- $this->bankNo = $bankNo;
- }
- /**
- * @return mixed
- */
- public function getBankMobile()
- {
- return $this->bankMobile;
- }
- /**
- * @param mixed $mode
- */
- public function setBankMobile($bankMobile)
- {
- $this->bankMobile = $bankMobile;
- }
- /**
- * @return mixed
- */
- public function getCallbackUrl()
- {
- return $this->callbackUrl;
- }
- /**
- * @param mixed $mode
- */
- public function setCallbackUrl($callbackUrl)
- {
- $this->callbackUrl = $callbackUrl;
- }
- /**
- * @return mixed
- */
- public function getPaperType()
- {
- return $this->paperType;
- }
- /**
- * @param mixed $paperType
- */
- public function setPaperType($paperType)
- {
- $this->paperType = $paperType;
- }
- /**
- * @return mixed
- */
- public function getOtherModes()
- {
- return $this->otherModes;
- }
- /**
- * @param mixed $otherModes
- */
- public function setOtherModes($otherModes)
- {
- $this->otherModes = $otherModes;
- }
- /**
- * @return mixed
- */
- public function getModifyFields()
- {
- return $this->modifyFields;
- }
- /**
- * @param mixed $modifyFields
- */
- public function setModifyFields($modifyFields)
- {
- $this->modifyFields = $modifyFields;
- }
- }
|