AlipayPassSyncUpdateRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.sync.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-12-07 20:19:03
  7. */
  8. class AlipayPassSyncUpdateRequest
  9. {
  10. /**
  11. * 代理商代替商户发放卡券后,再代替商户更新卡券时,此值为商户的pid/appid;商户自己发券时,此值为空或者商户appId
  12. **/
  13. private $channelId;
  14. /**
  15. * 用来传递外部交易号等扩展参数信息,格式为json
  16. **/
  17. private $extInfo;
  18. /**
  19. * 需要修改的pass信息,可以更新全部pass信息,也可以斤更新某一节点。pass信息中的pass.json中的数据格式,如果不需要更新该属性值,设置为null即可。
  20. **/
  21. private $pass;
  22. /**
  23. * Alipass唯一标识
  24. **/
  25. private $serialNumber;
  26. /**
  27. * Alipass状态,目前仅支持CLOSED及USED两种数据。status为USED时,verify_type即为核销时的核销方式。
  28. **/
  29. private $status;
  30. /**
  31. * 核销码串值【当状态变更为USED时,建议传入】
  32. **/
  33. private $verifyCode;
  34. /**
  35. * 核销方式,目前支持:wave(声波方式)、qrcode(二维码方式)、barcode(条码方式)、input(文本方式,即手工输入方式)。pass和verify_type不能同时为空
  36. **/
  37. private $verifyType;
  38. private $apiParas = array();
  39. private $terminalType;
  40. private $terminalInfo;
  41. private $prodCode;
  42. private $apiVersion="1.0";
  43. private $notifyUrl;
  44. private $returnUrl;
  45. private $needEncrypt=false;
  46. public function setChannelId($channelId)
  47. {
  48. $this->channelId = $channelId;
  49. $this->apiParas["channel_id"] = $channelId;
  50. }
  51. public function getChannelId()
  52. {
  53. return $this->channelId;
  54. }
  55. public function setExtInfo($extInfo)
  56. {
  57. $this->extInfo = $extInfo;
  58. $this->apiParas["ext_info"] = $extInfo;
  59. }
  60. public function getExtInfo()
  61. {
  62. return $this->extInfo;
  63. }
  64. public function setPass($pass)
  65. {
  66. $this->pass = $pass;
  67. $this->apiParas["pass"] = $pass;
  68. }
  69. public function getPass()
  70. {
  71. return $this->pass;
  72. }
  73. public function setSerialNumber($serialNumber)
  74. {
  75. $this->serialNumber = $serialNumber;
  76. $this->apiParas["serial_number"] = $serialNumber;
  77. }
  78. public function getSerialNumber()
  79. {
  80. return $this->serialNumber;
  81. }
  82. public function setStatus($status)
  83. {
  84. $this->status = $status;
  85. $this->apiParas["status"] = $status;
  86. }
  87. public function getStatus()
  88. {
  89. return $this->status;
  90. }
  91. public function setVerifyCode($verifyCode)
  92. {
  93. $this->verifyCode = $verifyCode;
  94. $this->apiParas["verify_code"] = $verifyCode;
  95. }
  96. public function getVerifyCode()
  97. {
  98. return $this->verifyCode;
  99. }
  100. public function setVerifyType($verifyType)
  101. {
  102. $this->verifyType = $verifyType;
  103. $this->apiParas["verify_type"] = $verifyType;
  104. }
  105. public function getVerifyType()
  106. {
  107. return $this->verifyType;
  108. }
  109. public function getApiMethodName()
  110. {
  111. return "alipay.pass.sync.update";
  112. }
  113. public function setNotifyUrl($notifyUrl)
  114. {
  115. $this->notifyUrl=$notifyUrl;
  116. }
  117. public function getNotifyUrl()
  118. {
  119. return $this->notifyUrl;
  120. }
  121. public function setReturnUrl($returnUrl)
  122. {
  123. $this->returnUrl=$returnUrl;
  124. }
  125. public function getReturnUrl()
  126. {
  127. return $this->returnUrl;
  128. }
  129. public function getApiParas()
  130. {
  131. return $this->apiParas;
  132. }
  133. public function getTerminalType()
  134. {
  135. return $this->terminalType;
  136. }
  137. public function setTerminalType($terminalType)
  138. {
  139. $this->terminalType = $terminalType;
  140. }
  141. public function getTerminalInfo()
  142. {
  143. return $this->terminalInfo;
  144. }
  145. public function setTerminalInfo($terminalInfo)
  146. {
  147. $this->terminalInfo = $terminalInfo;
  148. }
  149. public function getProdCode()
  150. {
  151. return $this->prodCode;
  152. }
  153. public function setProdCode($prodCode)
  154. {
  155. $this->prodCode = $prodCode;
  156. }
  157. public function setApiVersion($apiVersion)
  158. {
  159. $this->apiVersion=$apiVersion;
  160. }
  161. public function getApiVersion()
  162. {
  163. return $this->apiVersion;
  164. }
  165. public function setNeedEncrypt($needEncrypt)
  166. {
  167. $this->needEncrypt=$needEncrypt;
  168. }
  169. public function getNeedEncrypt()
  170. {
  171. return $this->needEncrypt;
  172. }
  173. }