AlipayMobileCodeCreateRequest.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.mobile.code.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-05-22 09:51:30
  7. */
  8. class AlipayMobileCodeCreateRequest
  9. {
  10. /**
  11. * 业务关联ID。比如订单号,userId,业务连接等
  12. **/
  13. private $bizLinkedId;
  14. /**
  15. * 类似产品名称,根据该值决定码存储类型;新接业务需要找码平台技术配置
  16. **/
  17. private $bizType;
  18. /**
  19. * 业务自定义,码平台不用理解。一定要传json字符串。
  20. **/
  21. private $contextStr;
  22. /**
  23. * 如果是true,则扫一扫下发跳转地址直接取自bizLinkedId
  24. 否则,从路由信息里取跳转地址
  25. **/
  26. private $isDirect;
  27. /**
  28. * 备注信息字段
  29. **/
  30. private $memo;
  31. /**
  32. * 发码来源,业务自定
  33. **/
  34. private $sourceId;
  35. /**
  36. * 编码启动时间(yyy-MM-dd hh:mm:ss),为空表示立即启用
  37. **/
  38. private $startDate;
  39. /**
  40. * 超时时间,单位秒;若不传则为永久。发码超时时间需要找码平台技术评估
  41. **/
  42. private $timeout;
  43. /**
  44. * 支付宝用户id
  45. **/
  46. private $userId;
  47. private $apiParas = array();
  48. private $terminalType;
  49. private $terminalInfo;
  50. private $prodCode;
  51. private $apiVersion="1.0";
  52. private $notifyUrl;
  53. private $returnUrl;
  54. private $needEncrypt=false;
  55. public function setBizLinkedId($bizLinkedId)
  56. {
  57. $this->bizLinkedId = $bizLinkedId;
  58. $this->apiParas["biz_linked_id"] = $bizLinkedId;
  59. }
  60. public function getBizLinkedId()
  61. {
  62. return $this->bizLinkedId;
  63. }
  64. public function setBizType($bizType)
  65. {
  66. $this->bizType = $bizType;
  67. $this->apiParas["biz_type"] = $bizType;
  68. }
  69. public function getBizType()
  70. {
  71. return $this->bizType;
  72. }
  73. public function setContextStr($contextStr)
  74. {
  75. $this->contextStr = $contextStr;
  76. $this->apiParas["context_str"] = $contextStr;
  77. }
  78. public function getContextStr()
  79. {
  80. return $this->contextStr;
  81. }
  82. public function setIsDirect($isDirect)
  83. {
  84. $this->isDirect = $isDirect;
  85. $this->apiParas["is_direct"] = $isDirect;
  86. }
  87. public function getIsDirect()
  88. {
  89. return $this->isDirect;
  90. }
  91. public function setMemo($memo)
  92. {
  93. $this->memo = $memo;
  94. $this->apiParas["memo"] = $memo;
  95. }
  96. public function getMemo()
  97. {
  98. return $this->memo;
  99. }
  100. public function setSourceId($sourceId)
  101. {
  102. $this->sourceId = $sourceId;
  103. $this->apiParas["source_id"] = $sourceId;
  104. }
  105. public function getSourceId()
  106. {
  107. return $this->sourceId;
  108. }
  109. public function setStartDate($startDate)
  110. {
  111. $this->startDate = $startDate;
  112. $this->apiParas["start_date"] = $startDate;
  113. }
  114. public function getStartDate()
  115. {
  116. return $this->startDate;
  117. }
  118. public function setTimeout($timeout)
  119. {
  120. $this->timeout = $timeout;
  121. $this->apiParas["timeout"] = $timeout;
  122. }
  123. public function getTimeout()
  124. {
  125. return $this->timeout;
  126. }
  127. public function setUserId($userId)
  128. {
  129. $this->userId = $userId;
  130. $this->apiParas["user_id"] = $userId;
  131. }
  132. public function getUserId()
  133. {
  134. return $this->userId;
  135. }
  136. public function getApiMethodName()
  137. {
  138. return "alipay.mobile.code.create";
  139. }
  140. public function setNotifyUrl($notifyUrl)
  141. {
  142. $this->notifyUrl=$notifyUrl;
  143. }
  144. public function getNotifyUrl()
  145. {
  146. return $this->notifyUrl;
  147. }
  148. public function setReturnUrl($returnUrl)
  149. {
  150. $this->returnUrl=$returnUrl;
  151. }
  152. public function getReturnUrl()
  153. {
  154. return $this->returnUrl;
  155. }
  156. public function getApiParas()
  157. {
  158. return $this->apiParas;
  159. }
  160. public function getTerminalType()
  161. {
  162. return $this->terminalType;
  163. }
  164. public function setTerminalType($terminalType)
  165. {
  166. $this->terminalType = $terminalType;
  167. }
  168. public function getTerminalInfo()
  169. {
  170. return $this->terminalInfo;
  171. }
  172. public function setTerminalInfo($terminalInfo)
  173. {
  174. $this->terminalInfo = $terminalInfo;
  175. }
  176. public function getProdCode()
  177. {
  178. return $this->prodCode;
  179. }
  180. public function setProdCode($prodCode)
  181. {
  182. $this->prodCode = $prodCode;
  183. }
  184. public function setApiVersion($apiVersion)
  185. {
  186. $this->apiVersion=$apiVersion;
  187. }
  188. public function getApiVersion()
  189. {
  190. return $this->apiVersion;
  191. }
  192. public function setNeedEncrypt($needEncrypt)
  193. {
  194. $this->needEncrypt=$needEncrypt;
  195. }
  196. public function getNeedEncrypt()
  197. {
  198. return $this->needEncrypt;
  199. }
  200. }