AlipayEbppPdeductSignAddRequest.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.sign.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-04-07 17:02:15
  7. */
  8. class AlipayEbppPdeductSignAddRequest
  9. {
  10. /**
  11. * 机构签约代扣来源渠道
  12. PUBLICPLATFORM:服务窗
  13. **/
  14. private $agentChannel;
  15. /**
  16. * 从服务窗发起则为publicId的值
  17. **/
  18. private $agentCode;
  19. /**
  20. * 户号,机构针对于每户的水、电都会有唯一的标识户号
  21. **/
  22. private $billKey;
  23. /**
  24. * 业务类型。
  25. JF:缴水、电、燃气、固话宽带、有线电视、交通罚款费用
  26. WUYE:缴物业费
  27. HK:信用卡还款
  28. TX:手机充值
  29. **/
  30. private $bizType;
  31. /**
  32. * 支付宝缴费系统中的出账机构ID
  33. **/
  34. private $chargeInst;
  35. /**
  36. * 签约类型可为空
  37. **/
  38. private $deductType;
  39. /**
  40. * 扩展字段
  41. **/
  42. private $extendField;
  43. /**
  44. * 通知方式设置,可为空
  45. **/
  46. private $notifyConfig;
  47. /**
  48. * 外部产生的协议ID
  49. **/
  50. private $outAgreementId;
  51. /**
  52. * 户名,户主真实姓名
  53. **/
  54. private $ownerName;
  55. /**
  56. * 支付工具设置,目前可为空
  57. **/
  58. private $payConfig;
  59. /**
  60. * 用户签约时,跳转到支付宝独立密码校验页面,校验成功后会将token和对应的用户ID缓存下来,然后跳回到机构页面生成token带回给机构,机构签约时必须传入token
  61. **/
  62. private $payPasswordToken;
  63. /**
  64. * 商户ID
  65. **/
  66. private $pid;
  67. /**
  68. * 签约到期时间。空表示无限期,一期固定传空。
  69. **/
  70. private $signExpireDate;
  71. /**
  72. * 业务子类型。
  73. WATER:缴水费
  74. ELECTRIC:缴电费
  75. GAS:缴燃气费
  76. COMMUN:缴固话宽带
  77. CATV:缴有线电视费
  78. TRAFFIC:缴交通罚款
  79. WUYE:缴物业费
  80. HK:信用卡还款
  81. CZ:手机充值
  82. **/
  83. private $subBizType;
  84. /**
  85. * 用户ID
  86. **/
  87. private $userId;
  88. private $apiParas = array();
  89. private $terminalType;
  90. private $terminalInfo;
  91. private $prodCode;
  92. private $apiVersion="1.0";
  93. private $notifyUrl;
  94. private $returnUrl;
  95. private $needEncrypt=false;
  96. public function setAgentChannel($agentChannel)
  97. {
  98. $this->agentChannel = $agentChannel;
  99. $this->apiParas["agent_channel"] = $agentChannel;
  100. }
  101. public function getAgentChannel()
  102. {
  103. return $this->agentChannel;
  104. }
  105. public function setAgentCode($agentCode)
  106. {
  107. $this->agentCode = $agentCode;
  108. $this->apiParas["agent_code"] = $agentCode;
  109. }
  110. public function getAgentCode()
  111. {
  112. return $this->agentCode;
  113. }
  114. public function setBillKey($billKey)
  115. {
  116. $this->billKey = $billKey;
  117. $this->apiParas["bill_key"] = $billKey;
  118. }
  119. public function getBillKey()
  120. {
  121. return $this->billKey;
  122. }
  123. public function setBizType($bizType)
  124. {
  125. $this->bizType = $bizType;
  126. $this->apiParas["biz_type"] = $bizType;
  127. }
  128. public function getBizType()
  129. {
  130. return $this->bizType;
  131. }
  132. public function setChargeInst($chargeInst)
  133. {
  134. $this->chargeInst = $chargeInst;
  135. $this->apiParas["charge_inst"] = $chargeInst;
  136. }
  137. public function getChargeInst()
  138. {
  139. return $this->chargeInst;
  140. }
  141. public function setDeductType($deductType)
  142. {
  143. $this->deductType = $deductType;
  144. $this->apiParas["deduct_type"] = $deductType;
  145. }
  146. public function getDeductType()
  147. {
  148. return $this->deductType;
  149. }
  150. public function setExtendField($extendField)
  151. {
  152. $this->extendField = $extendField;
  153. $this->apiParas["extend_field"] = $extendField;
  154. }
  155. public function getExtendField()
  156. {
  157. return $this->extendField;
  158. }
  159. public function setNotifyConfig($notifyConfig)
  160. {
  161. $this->notifyConfig = $notifyConfig;
  162. $this->apiParas["notify_config"] = $notifyConfig;
  163. }
  164. public function getNotifyConfig()
  165. {
  166. return $this->notifyConfig;
  167. }
  168. public function setOutAgreementId($outAgreementId)
  169. {
  170. $this->outAgreementId = $outAgreementId;
  171. $this->apiParas["out_agreement_id"] = $outAgreementId;
  172. }
  173. public function getOutAgreementId()
  174. {
  175. return $this->outAgreementId;
  176. }
  177. public function setOwnerName($ownerName)
  178. {
  179. $this->ownerName = $ownerName;
  180. $this->apiParas["owner_name"] = $ownerName;
  181. }
  182. public function getOwnerName()
  183. {
  184. return $this->ownerName;
  185. }
  186. public function setPayConfig($payConfig)
  187. {
  188. $this->payConfig = $payConfig;
  189. $this->apiParas["pay_config"] = $payConfig;
  190. }
  191. public function getPayConfig()
  192. {
  193. return $this->payConfig;
  194. }
  195. public function setPayPasswordToken($payPasswordToken)
  196. {
  197. $this->payPasswordToken = $payPasswordToken;
  198. $this->apiParas["pay_password_token"] = $payPasswordToken;
  199. }
  200. public function getPayPasswordToken()
  201. {
  202. return $this->payPasswordToken;
  203. }
  204. public function setPid($pid)
  205. {
  206. $this->pid = $pid;
  207. $this->apiParas["pid"] = $pid;
  208. }
  209. public function getPid()
  210. {
  211. return $this->pid;
  212. }
  213. public function setSignExpireDate($signExpireDate)
  214. {
  215. $this->signExpireDate = $signExpireDate;
  216. $this->apiParas["sign_expire_date"] = $signExpireDate;
  217. }
  218. public function getSignExpireDate()
  219. {
  220. return $this->signExpireDate;
  221. }
  222. public function setSubBizType($subBizType)
  223. {
  224. $this->subBizType = $subBizType;
  225. $this->apiParas["sub_biz_type"] = $subBizType;
  226. }
  227. public function getSubBizType()
  228. {
  229. return $this->subBizType;
  230. }
  231. public function setUserId($userId)
  232. {
  233. $this->userId = $userId;
  234. $this->apiParas["user_id"] = $userId;
  235. }
  236. public function getUserId()
  237. {
  238. return $this->userId;
  239. }
  240. public function getApiMethodName()
  241. {
  242. return "alipay.ebpp.pdeduct.sign.add";
  243. }
  244. public function setNotifyUrl($notifyUrl)
  245. {
  246. $this->notifyUrl=$notifyUrl;
  247. }
  248. public function getNotifyUrl()
  249. {
  250. return $this->notifyUrl;
  251. }
  252. public function setReturnUrl($returnUrl)
  253. {
  254. $this->returnUrl=$returnUrl;
  255. }
  256. public function getReturnUrl()
  257. {
  258. return $this->returnUrl;
  259. }
  260. public function getApiParas()
  261. {
  262. return $this->apiParas;
  263. }
  264. public function getTerminalType()
  265. {
  266. return $this->terminalType;
  267. }
  268. public function setTerminalType($terminalType)
  269. {
  270. $this->terminalType = $terminalType;
  271. }
  272. public function getTerminalInfo()
  273. {
  274. return $this->terminalInfo;
  275. }
  276. public function setTerminalInfo($terminalInfo)
  277. {
  278. $this->terminalInfo = $terminalInfo;
  279. }
  280. public function getProdCode()
  281. {
  282. return $this->prodCode;
  283. }
  284. public function setProdCode($prodCode)
  285. {
  286. $this->prodCode = $prodCode;
  287. }
  288. public function setApiVersion($apiVersion)
  289. {
  290. $this->apiVersion=$apiVersion;
  291. }
  292. public function getApiVersion()
  293. {
  294. return $this->apiVersion;
  295. }
  296. public function setNeedEncrypt($needEncrypt)
  297. {
  298. $this->needEncrypt=$needEncrypt;
  299. }
  300. public function getNeedEncrypt()
  301. {
  302. return $this->needEncrypt;
  303. }
  304. }