AlipayEbppPdeductSignAddRequest.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.sign.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 02:51:48
  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. *IND:保险缴费。
  30. **/
  31. private $bizType;
  32. /**
  33. * 支付宝缴费系统中的出账机构ID
  34. **/
  35. private $chargeInst;
  36. /**
  37. * 代扣产品码。 缴费业务场景中,传入INST_DIRECT_DEDUCT。保险业务场景中, 传入INSURANCE_MERCHANT_DEDUCT。
  38. **/
  39. private $deductProdCode;
  40. /**
  41. * 签约类型可为空
  42. **/
  43. private $deductType;
  44. /**
  45. * 外部用户实名认证相关信息, 用于做签约时的实名校验。
  46. 注:
  47. name: 姓名
  48. cert_type: 身份证:IDENTITY_CARD、护照:PASSPORT、军官证:OFFICER_CARD、士兵证:SOLDIER_CARD、户口本:HOKOU等
  49. cert_no: 证件号码
  50. need_check_info取值 T/F,只有为T时才做强制校验。
  51. mobile:手机号,目前暂不使用此字段做校验
  52. min_age: 允许的最小买家年龄,min_age为整数,必须大于等于0.
  53. **/
  54. private $extUserInfo;
  55. /**
  56. * 扩展字段
  57. **/
  58. private $extendField;
  59. /**
  60. * 通知方式设置,可为空
  61. **/
  62. private $notifyConfig;
  63. /**
  64. * 用户UserId在应用AppId下的唯一用户标识
  65. **/
  66. private $openId;
  67. /**
  68. * 外部产生的协议ID
  69. **/
  70. private $outAgreementId;
  71. /**
  72. * 户名,户主真实姓名
  73. **/
  74. private $ownerName;
  75. /**
  76. * 支付工具设置,目前可为空
  77. **/
  78. private $payConfig;
  79. /**
  80. * 支付密码鉴权token,需要用户首先处于登陆态,然后访问https://ebppprod.alipay.com/deduct/enterMobileicPayPassword.htm?cb=自己指定的回跳连接地址,访问页面后会进到独立密码校验页,用户输入密码校验成功后,会生成token回调到指定的回跳地址,如果设置cb=www.alipay.com则最后回调的内容是www.alipay.com?token=312314ADFDSFAS,然后签约时直接取得地址后token的值即可。
  81. **/
  82. private $payPasswordToken;
  83. /**
  84. * 商户id,商户在支付宝的唯一标识,以 2088 开头的 16 位纯数字组成。
  85. **/
  86. private $pid;
  87. /**
  88. * 签约到期时间。空表示无限期,一期固定传空。
  89. **/
  90. private $signExpireDate;
  91. /**
  92. * 业务子类型。业务子类型是业务类型的下一级概念。枚举支持:
  93. *WATER:缴水费。
  94. *ELECTRIC:缴电费。
  95. *GAS:缴燃气费。
  96. *COMMUN:缴固话宽带费。
  97. *CATV:缴有线电视费。
  98. *TRAFFIC:缴交通罚款。
  99. *WUYE:缴物业费。
  100. *RC:定期还车贷代扣。
  101. *RH:定期还房贷代扣。
  102. *RR:定期还房租代扣。
  103. *RN:定期还网贷代扣。
  104. *CZ:手机充值代扣。
  105. *CAR:车险。
  106. *LIFE:寿险。
  107. *HEALTH:健康险。
  108. 例如:WATER表示JF下面的水费。
  109. **/
  110. private $subBizType;
  111. /**
  112. * 用户 id,用户在支付宝的唯一标识,以 2088 开头的 16 位纯数字组成。
  113. **/
  114. private $userId;
  115. private $apiParas = array();
  116. private $terminalType;
  117. private $terminalInfo;
  118. private $prodCode;
  119. private $apiVersion="1.0";
  120. private $notifyUrl;
  121. private $returnUrl;
  122. private $needEncrypt=false;
  123. public function setAgentChannel($agentChannel)
  124. {
  125. $this->agentChannel = $agentChannel;
  126. $this->apiParas["agent_channel"] = $agentChannel;
  127. }
  128. public function getAgentChannel()
  129. {
  130. return $this->agentChannel;
  131. }
  132. public function setAgentCode($agentCode)
  133. {
  134. $this->agentCode = $agentCode;
  135. $this->apiParas["agent_code"] = $agentCode;
  136. }
  137. public function getAgentCode()
  138. {
  139. return $this->agentCode;
  140. }
  141. public function setBillKey($billKey)
  142. {
  143. $this->billKey = $billKey;
  144. $this->apiParas["bill_key"] = $billKey;
  145. }
  146. public function getBillKey()
  147. {
  148. return $this->billKey;
  149. }
  150. public function setBizType($bizType)
  151. {
  152. $this->bizType = $bizType;
  153. $this->apiParas["biz_type"] = $bizType;
  154. }
  155. public function getBizType()
  156. {
  157. return $this->bizType;
  158. }
  159. public function setChargeInst($chargeInst)
  160. {
  161. $this->chargeInst = $chargeInst;
  162. $this->apiParas["charge_inst"] = $chargeInst;
  163. }
  164. public function getChargeInst()
  165. {
  166. return $this->chargeInst;
  167. }
  168. public function setDeductProdCode($deductProdCode)
  169. {
  170. $this->deductProdCode = $deductProdCode;
  171. $this->apiParas["deduct_prod_code"] = $deductProdCode;
  172. }
  173. public function getDeductProdCode()
  174. {
  175. return $this->deductProdCode;
  176. }
  177. public function setDeductType($deductType)
  178. {
  179. $this->deductType = $deductType;
  180. $this->apiParas["deduct_type"] = $deductType;
  181. }
  182. public function getDeductType()
  183. {
  184. return $this->deductType;
  185. }
  186. public function setExtUserInfo($extUserInfo)
  187. {
  188. $this->extUserInfo = $extUserInfo;
  189. $this->apiParas["ext_user_info"] = $extUserInfo;
  190. }
  191. public function getExtUserInfo()
  192. {
  193. return $this->extUserInfo;
  194. }
  195. public function setExtendField($extendField)
  196. {
  197. $this->extendField = $extendField;
  198. $this->apiParas["extend_field"] = $extendField;
  199. }
  200. public function getExtendField()
  201. {
  202. return $this->extendField;
  203. }
  204. public function setNotifyConfig($notifyConfig)
  205. {
  206. $this->notifyConfig = $notifyConfig;
  207. $this->apiParas["notify_config"] = $notifyConfig;
  208. }
  209. public function getNotifyConfig()
  210. {
  211. return $this->notifyConfig;
  212. }
  213. public function setOpenId($openId)
  214. {
  215. $this->openId = $openId;
  216. $this->apiParas["open_id"] = $openId;
  217. }
  218. public function getOpenId()
  219. {
  220. return $this->openId;
  221. }
  222. public function setOutAgreementId($outAgreementId)
  223. {
  224. $this->outAgreementId = $outAgreementId;
  225. $this->apiParas["out_agreement_id"] = $outAgreementId;
  226. }
  227. public function getOutAgreementId()
  228. {
  229. return $this->outAgreementId;
  230. }
  231. public function setOwnerName($ownerName)
  232. {
  233. $this->ownerName = $ownerName;
  234. $this->apiParas["owner_name"] = $ownerName;
  235. }
  236. public function getOwnerName()
  237. {
  238. return $this->ownerName;
  239. }
  240. public function setPayConfig($payConfig)
  241. {
  242. $this->payConfig = $payConfig;
  243. $this->apiParas["pay_config"] = $payConfig;
  244. }
  245. public function getPayConfig()
  246. {
  247. return $this->payConfig;
  248. }
  249. public function setPayPasswordToken($payPasswordToken)
  250. {
  251. $this->payPasswordToken = $payPasswordToken;
  252. $this->apiParas["pay_password_token"] = $payPasswordToken;
  253. }
  254. public function getPayPasswordToken()
  255. {
  256. return $this->payPasswordToken;
  257. }
  258. public function setPid($pid)
  259. {
  260. $this->pid = $pid;
  261. $this->apiParas["pid"] = $pid;
  262. }
  263. public function getPid()
  264. {
  265. return $this->pid;
  266. }
  267. public function setSignExpireDate($signExpireDate)
  268. {
  269. $this->signExpireDate = $signExpireDate;
  270. $this->apiParas["sign_expire_date"] = $signExpireDate;
  271. }
  272. public function getSignExpireDate()
  273. {
  274. return $this->signExpireDate;
  275. }
  276. public function setSubBizType($subBizType)
  277. {
  278. $this->subBizType = $subBizType;
  279. $this->apiParas["sub_biz_type"] = $subBizType;
  280. }
  281. public function getSubBizType()
  282. {
  283. return $this->subBizType;
  284. }
  285. public function setUserId($userId)
  286. {
  287. $this->userId = $userId;
  288. $this->apiParas["user_id"] = $userId;
  289. }
  290. public function getUserId()
  291. {
  292. return $this->userId;
  293. }
  294. public function getApiMethodName()
  295. {
  296. return "alipay.ebpp.pdeduct.sign.add";
  297. }
  298. public function setNotifyUrl($notifyUrl)
  299. {
  300. $this->notifyUrl=$notifyUrl;
  301. }
  302. public function getNotifyUrl()
  303. {
  304. return $this->notifyUrl;
  305. }
  306. public function setReturnUrl($returnUrl)
  307. {
  308. $this->returnUrl=$returnUrl;
  309. }
  310. public function getReturnUrl()
  311. {
  312. return $this->returnUrl;
  313. }
  314. public function getApiParas()
  315. {
  316. return $this->apiParas;
  317. }
  318. public function getTerminalType()
  319. {
  320. return $this->terminalType;
  321. }
  322. public function setTerminalType($terminalType)
  323. {
  324. $this->terminalType = $terminalType;
  325. }
  326. public function getTerminalInfo()
  327. {
  328. return $this->terminalInfo;
  329. }
  330. public function setTerminalInfo($terminalInfo)
  331. {
  332. $this->terminalInfo = $terminalInfo;
  333. }
  334. public function getProdCode()
  335. {
  336. return $this->prodCode;
  337. }
  338. public function setProdCode($prodCode)
  339. {
  340. $this->prodCode = $prodCode;
  341. }
  342. public function setApiVersion($apiVersion)
  343. {
  344. $this->apiVersion=$apiVersion;
  345. }
  346. public function getApiVersion()
  347. {
  348. return $this->apiVersion;
  349. }
  350. public function setNeedEncrypt($needEncrypt)
  351. {
  352. $this->needEncrypt=$needEncrypt;
  353. }
  354. public function getNeedEncrypt()
  355. {
  356. return $this->needEncrypt;
  357. }
  358. }