123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?php
- /**
- * ALIPAY API: alipay.pass.sync.update request
- *
- * @author auto create
- * @since 1.0, 2019-03-08 15:29:11
- */
- class AlipayPassSyncUpdateRequest
- {
- /**
- * 代理商代替商户发放卡券后,再代替商户更新卡券时,此值为商户的pid/appid;商户自己发券时,此值为空或者商户appId
- **/
- private $channelId;
-
- /**
- * 用来传递外部交易号等扩展参数信息,格式为json
- **/
- private $extInfo;
-
- /**
- * 需要修改的pass信息,可以更新全部pass信息,也可以斤更新某一节点。pass信息中的pass.json中的数据格式,如果不需要更新该属性值,设置为null即可。
- **/
- private $pass;
-
- /**
- * Alipass唯一标识
- **/
- private $serialNumber;
-
- /**
- * Alipass状态,目前仅支持CLOSED及USED两种数据。status为USED时,verify_type即为核销时的核销方式。
- **/
- private $status;
-
- /**
- * 核销码串值【当状态变更为USED时,建议传入】
- **/
- private $verifyCode;
-
- /**
- * 核销方式,目前支持:wave(声波方式)、qrcode(二维码方式)、barcode(条码方式)、input(文本方式,即手工输入方式)。pass和verify_type不能同时为空
- **/
- private $verifyType;
- private $apiParas = array();
- private $terminalType;
- private $terminalInfo;
- private $prodCode;
- private $apiVersion="1.0";
- private $notifyUrl;
- private $returnUrl;
- private $needEncrypt=false;
-
- public function setChannelId($channelId)
- {
- $this->channelId = $channelId;
- $this->apiParas["channel_id"] = $channelId;
- }
- public function getChannelId()
- {
- return $this->channelId;
- }
- public function setExtInfo($extInfo)
- {
- $this->extInfo = $extInfo;
- $this->apiParas["ext_info"] = $extInfo;
- }
- public function getExtInfo()
- {
- return $this->extInfo;
- }
- public function setPass($pass)
- {
- $this->pass = $pass;
- $this->apiParas["pass"] = $pass;
- }
- public function getPass()
- {
- return $this->pass;
- }
- public function setSerialNumber($serialNumber)
- {
- $this->serialNumber = $serialNumber;
- $this->apiParas["serial_number"] = $serialNumber;
- }
- public function getSerialNumber()
- {
- return $this->serialNumber;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- $this->apiParas["status"] = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setVerifyCode($verifyCode)
- {
- $this->verifyCode = $verifyCode;
- $this->apiParas["verify_code"] = $verifyCode;
- }
- public function getVerifyCode()
- {
- return $this->verifyCode;
- }
- public function setVerifyType($verifyType)
- {
- $this->verifyType = $verifyType;
- $this->apiParas["verify_type"] = $verifyType;
- }
- public function getVerifyType()
- {
- return $this->verifyType;
- }
- public function getApiMethodName()
- {
- return "alipay.pass.sync.update";
- }
- public function setNotifyUrl($notifyUrl)
- {
- $this->notifyUrl=$notifyUrl;
- }
- public function getNotifyUrl()
- {
- return $this->notifyUrl;
- }
- public function setReturnUrl($returnUrl)
- {
- $this->returnUrl=$returnUrl;
- }
- public function getReturnUrl()
- {
- return $this->returnUrl;
- }
- public function getApiParas()
- {
- return $this->apiParas;
- }
- public function getTerminalType()
- {
- return $this->terminalType;
- }
- public function setTerminalType($terminalType)
- {
- $this->terminalType = $terminalType;
- }
- public function getTerminalInfo()
- {
- return $this->terminalInfo;
- }
- public function setTerminalInfo($terminalInfo)
- {
- $this->terminalInfo = $terminalInfo;
- }
- public function getProdCode()
- {
- return $this->prodCode;
- }
- public function setProdCode($prodCode)
- {
- $this->prodCode = $prodCode;
- }
- public function setApiVersion($apiVersion)
- {
- $this->apiVersion=$apiVersion;
- }
- public function getApiVersion()
- {
- return $this->apiVersion;
- }
- public function setNeedEncrypt($needEncrypt)
- {
- $this->needEncrypt=$needEncrypt;
- }
- public function getNeedEncrypt()
- {
- return $this->needEncrypt;
- }
- }
|