AlipayEbppPdeductSignAddRequest.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.sign.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  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. * 外部产生的协议ID
  65. **/
  66. private $outAgreementId;
  67. /**
  68. * 户名,户主真实姓名
  69. **/
  70. private $ownerName;
  71. /**
  72. * 支付工具设置,目前可为空
  73. **/
  74. private $payConfig;
  75. /**
  76. * 用户签约时,跳转到支付宝独立密码校验页面,校验成功后会将token和对应的用户ID缓存下来,然后跳回到机构页面生成token带回给机构,机构签约时必须传入token
  77. **/
  78. private $payPasswordToken;
  79. /**
  80. * 商户ID
  81. **/
  82. private $pid;
  83. /**
  84. * 签约到期时间。空表示无限期,一期固定传空。
  85. **/
  86. private $signExpireDate;
  87. /**
  88. * 业务子类型。
  89. WATER:缴水费
  90. ELECTRIC:缴电费
  91. GAS:缴燃气费
  92. COMMUN:缴固话宽带
  93. CATV:缴有线电视费
  94. TRAFFIC:缴交通罚款
  95. WUYE:缴物业费
  96. HK:信用卡还款
  97. CZ:手机充值
  98. CAR:车险
  99. LIFE:寿险
  100. HEALTH:健康险
  101. **/
  102. private $subBizType;
  103. /**
  104. * 用户ID
  105. **/
  106. private $userId;
  107. private $apiParas = array();
  108. private $terminalType;
  109. private $terminalInfo;
  110. private $prodCode;
  111. private $apiVersion="1.0";
  112. private $notifyUrl;
  113. private $returnUrl;
  114. private $needEncrypt=false;
  115. public function setAgentChannel($agentChannel)
  116. {
  117. $this->agentChannel = $agentChannel;
  118. $this->apiParas["agent_channel"] = $agentChannel;
  119. }
  120. public function getAgentChannel()
  121. {
  122. return $this->agentChannel;
  123. }
  124. public function setAgentCode($agentCode)
  125. {
  126. $this->agentCode = $agentCode;
  127. $this->apiParas["agent_code"] = $agentCode;
  128. }
  129. public function getAgentCode()
  130. {
  131. return $this->agentCode;
  132. }
  133. public function setBillKey($billKey)
  134. {
  135. $this->billKey = $billKey;
  136. $this->apiParas["bill_key"] = $billKey;
  137. }
  138. public function getBillKey()
  139. {
  140. return $this->billKey;
  141. }
  142. public function setBizType($bizType)
  143. {
  144. $this->bizType = $bizType;
  145. $this->apiParas["biz_type"] = $bizType;
  146. }
  147. public function getBizType()
  148. {
  149. return $this->bizType;
  150. }
  151. public function setChargeInst($chargeInst)
  152. {
  153. $this->chargeInst = $chargeInst;
  154. $this->apiParas["charge_inst"] = $chargeInst;
  155. }
  156. public function getChargeInst()
  157. {
  158. return $this->chargeInst;
  159. }
  160. public function setDeductProdCode($deductProdCode)
  161. {
  162. $this->deductProdCode = $deductProdCode;
  163. $this->apiParas["deduct_prod_code"] = $deductProdCode;
  164. }
  165. public function getDeductProdCode()
  166. {
  167. return $this->deductProdCode;
  168. }
  169. public function setDeductType($deductType)
  170. {
  171. $this->deductType = $deductType;
  172. $this->apiParas["deduct_type"] = $deductType;
  173. }
  174. public function getDeductType()
  175. {
  176. return $this->deductType;
  177. }
  178. public function setExtUserInfo($extUserInfo)
  179. {
  180. $this->extUserInfo = $extUserInfo;
  181. $this->apiParas["ext_user_info"] = $extUserInfo;
  182. }
  183. public function getExtUserInfo()
  184. {
  185. return $this->extUserInfo;
  186. }
  187. public function setExtendField($extendField)
  188. {
  189. $this->extendField = $extendField;
  190. $this->apiParas["extend_field"] = $extendField;
  191. }
  192. public function getExtendField()
  193. {
  194. return $this->extendField;
  195. }
  196. public function setNotifyConfig($notifyConfig)
  197. {
  198. $this->notifyConfig = $notifyConfig;
  199. $this->apiParas["notify_config"] = $notifyConfig;
  200. }
  201. public function getNotifyConfig()
  202. {
  203. return $this->notifyConfig;
  204. }
  205. public function setOutAgreementId($outAgreementId)
  206. {
  207. $this->outAgreementId = $outAgreementId;
  208. $this->apiParas["out_agreement_id"] = $outAgreementId;
  209. }
  210. public function getOutAgreementId()
  211. {
  212. return $this->outAgreementId;
  213. }
  214. public function setOwnerName($ownerName)
  215. {
  216. $this->ownerName = $ownerName;
  217. $this->apiParas["owner_name"] = $ownerName;
  218. }
  219. public function getOwnerName()
  220. {
  221. return $this->ownerName;
  222. }
  223. public function setPayConfig($payConfig)
  224. {
  225. $this->payConfig = $payConfig;
  226. $this->apiParas["pay_config"] = $payConfig;
  227. }
  228. public function getPayConfig()
  229. {
  230. return $this->payConfig;
  231. }
  232. public function setPayPasswordToken($payPasswordToken)
  233. {
  234. $this->payPasswordToken = $payPasswordToken;
  235. $this->apiParas["pay_password_token"] = $payPasswordToken;
  236. }
  237. public function getPayPasswordToken()
  238. {
  239. return $this->payPasswordToken;
  240. }
  241. public function setPid($pid)
  242. {
  243. $this->pid = $pid;
  244. $this->apiParas["pid"] = $pid;
  245. }
  246. public function getPid()
  247. {
  248. return $this->pid;
  249. }
  250. public function setSignExpireDate($signExpireDate)
  251. {
  252. $this->signExpireDate = $signExpireDate;
  253. $this->apiParas["sign_expire_date"] = $signExpireDate;
  254. }
  255. public function getSignExpireDate()
  256. {
  257. return $this->signExpireDate;
  258. }
  259. public function setSubBizType($subBizType)
  260. {
  261. $this->subBizType = $subBizType;
  262. $this->apiParas["sub_biz_type"] = $subBizType;
  263. }
  264. public function getSubBizType()
  265. {
  266. return $this->subBizType;
  267. }
  268. public function setUserId($userId)
  269. {
  270. $this->userId = $userId;
  271. $this->apiParas["user_id"] = $userId;
  272. }
  273. public function getUserId()
  274. {
  275. return $this->userId;
  276. }
  277. public function getApiMethodName()
  278. {
  279. return "alipay.ebpp.pdeduct.sign.add";
  280. }
  281. public function setNotifyUrl($notifyUrl)
  282. {
  283. $this->notifyUrl=$notifyUrl;
  284. }
  285. public function getNotifyUrl()
  286. {
  287. return $this->notifyUrl;
  288. }
  289. public function setReturnUrl($returnUrl)
  290. {
  291. $this->returnUrl=$returnUrl;
  292. }
  293. public function getReturnUrl()
  294. {
  295. return $this->returnUrl;
  296. }
  297. public function getApiParas()
  298. {
  299. return $this->apiParas;
  300. }
  301. public function getTerminalType()
  302. {
  303. return $this->terminalType;
  304. }
  305. public function setTerminalType($terminalType)
  306. {
  307. $this->terminalType = $terminalType;
  308. }
  309. public function getTerminalInfo()
  310. {
  311. return $this->terminalInfo;
  312. }
  313. public function setTerminalInfo($terminalInfo)
  314. {
  315. $this->terminalInfo = $terminalInfo;
  316. }
  317. public function getProdCode()
  318. {
  319. return $this->prodCode;
  320. }
  321. public function setProdCode($prodCode)
  322. {
  323. $this->prodCode = $prodCode;
  324. }
  325. public function setApiVersion($apiVersion)
  326. {
  327. $this->apiVersion=$apiVersion;
  328. }
  329. public function getApiVersion()
  330. {
  331. return $this->apiVersion;
  332. }
  333. public function setNeedEncrypt($needEncrypt)
  334. {
  335. $this->needEncrypt=$needEncrypt;
  336. }
  337. public function getNeedEncrypt()
  338. {
  339. return $this->needEncrypt;
  340. }
  341. }