AlipayOpenAgentCommonSignRequest.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.agent.common.sign request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-05-30 19:56:48
  7. */
  8. class AlipayOpenAgentCommonSignRequest
  9. {
  10. /**
  11. * 支付宝生活号(原服务窗)名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
  12. **/
  13. private $alipayLifeName;
  14. /**
  15. * APP demo,格式为.apk;或者应用说明文档, 格式为.doc .docx .pdf格式(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
  16. **/
  17. private $appDemo;
  18. /**
  19. * 商户的APP应用名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
  20. **/
  21. private $appName;
  22. /**
  23. * 代商户操作事务编号,通过alipay.open.agent.create接口进行创建。
  24. **/
  25. private $batchNo;
  26. /**
  27. * 营业执照授权函图片,个体工商户如果使用总公司或其他公司的营业执照认证需上传该授权函图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
  28. **/
  29. private $businessLicenseAuthPic;
  30. /**
  31. * 营业执照号码
  32. **/
  33. private $businessLicenseNo;
  34. /**
  35. * 营业执照图片。被代创建商户运营主体为个人账户必填,企业账户无需填写。图片最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
  36. **/
  37. private $businessLicensePic;
  38. /**
  39. * 营业期限
  40. **/
  41. private $dateLimitation;
  42. /**
  43. * 请输入被签约商户的支付宝生活号ID编号
  44. **/
  45. private $lifeAppId;
  46. /**
  47. * 营业期限是否长期有效
  48. **/
  49. private $longTerm;
  50. /**
  51. * <a href="https://opendocs.alipay.com/common/02khjv">商家经营类目</a> 中的“经营类目编码”
  52. **/
  53. private $mccCode;
  54. /**
  55. * 请输入被签约商家下任意小程序APPID ID编号
  56. **/
  57. private $miniAppId;
  58. /**
  59. * 请上传商家小程序截图信息,最小5KB ,最大5M(暂不限制图片宽高),图片格式必须为:png、bmp、gif、jpg、jpeg
  60. **/
  61. private $miniAppScreenshot;
  62. /**
  63. * isv要代商户签约产品码,产品码是支付宝内部对产品的唯一标识
  64. **/
  65. private $productCode;
  66. /**
  67. * 服务费率(%),例如:请输入0.38~0.6 之间(小数点后两位,可取0.38%及0.6%),直播买卖通涉及JSAPI支付产品,交易手续费为 0.38%-0.6%,后续费率变化可参考支付宝标准服务费。
  68. 当签约且授权标识 sign_and_auth=true 时,该费率信息必填。
  69. **/
  70. private $rate;
  71. /**
  72. * 店铺内景图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
  73. **/
  74. private $shopScenePic;
  75. /**
  76. * 店铺门头照图片,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
  77. **/
  78. private $shopSignBoardPic;
  79. /**
  80. * 企业特殊资质图片,可参考
  81. <a href="https://opendocs.alipay.com/common/02khjv">商家经营类目</a> 中的“需要的特殊资质证书”。文件最小为 5KB,最大为5M,图片格式必须为:png、bmp、gif、jpg、jpeg。
  82. **/
  83. private $specialLicensePic;
  84. /**
  85. * 合约特殊资质的类型,不传默认99
  86. **/
  87. private $specialLicenseType;
  88. /**
  89. * 网站首页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
  90. **/
  91. private $webHomeScreenshot;
  92. /**
  93. * 网站商品页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
  94. **/
  95. private $webItemScreenshot;
  96. /**
  97. * 网站支付页截图,最小5KB,最大5M,图片格式必须为:png、bmp、gif、jpg、jpeg
  98. **/
  99. private $webPayScreenshot;
  100. /**
  101. * 接入网址信息(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
  102. **/
  103. private $webSites;
  104. /**
  105. * 接入网址的授权涵,格式为.doc .docx .pdf格式
  106. **/
  107. private $webSitesLoa;
  108. /**
  109. * 网站状态,枚举值为:已上线,未上线
  110. **/
  111. private $webStatus;
  112. /**
  113. * 可以登录此网站的测试账户
  114. **/
  115. private $webTestAccount;
  116. /**
  117. * 可以登录此网站的账户的密码。对应web_test_account的登录密码
  118. **/
  119. private $webTestAccountPassword;
  120. /**
  121. * 微信公众号名称(1 app_name、app_demo;2 web_sites;3 alipay_life_name;4 wechat_official_account_name。1、2、3、4至少选择一个填写)
  122. **/
  123. private $wechatOfficialAccountName;
  124. private $apiParas = array();
  125. private $terminalType;
  126. private $terminalInfo;
  127. private $prodCode;
  128. private $apiVersion="1.0";
  129. private $notifyUrl;
  130. private $returnUrl;
  131. private $needEncrypt=false;
  132. public function setAlipayLifeName($alipayLifeName)
  133. {
  134. $this->alipayLifeName = $alipayLifeName;
  135. $this->apiParas["alipay_life_name"] = $alipayLifeName;
  136. }
  137. public function getAlipayLifeName()
  138. {
  139. return $this->alipayLifeName;
  140. }
  141. public function setAppDemo($appDemo)
  142. {
  143. $this->appDemo = $appDemo;
  144. $this->apiParas["app_demo"] = $appDemo;
  145. }
  146. public function getAppDemo()
  147. {
  148. return $this->appDemo;
  149. }
  150. public function setAppName($appName)
  151. {
  152. $this->appName = $appName;
  153. $this->apiParas["app_name"] = $appName;
  154. }
  155. public function getAppName()
  156. {
  157. return $this->appName;
  158. }
  159. public function setBatchNo($batchNo)
  160. {
  161. $this->batchNo = $batchNo;
  162. $this->apiParas["batch_no"] = $batchNo;
  163. }
  164. public function getBatchNo()
  165. {
  166. return $this->batchNo;
  167. }
  168. public function setBusinessLicenseAuthPic($businessLicenseAuthPic)
  169. {
  170. $this->businessLicenseAuthPic = $businessLicenseAuthPic;
  171. $this->apiParas["business_license_auth_pic"] = $businessLicenseAuthPic;
  172. }
  173. public function getBusinessLicenseAuthPic()
  174. {
  175. return $this->businessLicenseAuthPic;
  176. }
  177. public function setBusinessLicenseNo($businessLicenseNo)
  178. {
  179. $this->businessLicenseNo = $businessLicenseNo;
  180. $this->apiParas["business_license_no"] = $businessLicenseNo;
  181. }
  182. public function getBusinessLicenseNo()
  183. {
  184. return $this->businessLicenseNo;
  185. }
  186. public function setBusinessLicensePic($businessLicensePic)
  187. {
  188. $this->businessLicensePic = $businessLicensePic;
  189. $this->apiParas["business_license_pic"] = $businessLicensePic;
  190. }
  191. public function getBusinessLicensePic()
  192. {
  193. return $this->businessLicensePic;
  194. }
  195. public function setDateLimitation($dateLimitation)
  196. {
  197. $this->dateLimitation = $dateLimitation;
  198. $this->apiParas["date_limitation"] = $dateLimitation;
  199. }
  200. public function getDateLimitation()
  201. {
  202. return $this->dateLimitation;
  203. }
  204. public function setLifeAppId($lifeAppId)
  205. {
  206. $this->lifeAppId = $lifeAppId;
  207. $this->apiParas["life_app_id"] = $lifeAppId;
  208. }
  209. public function getLifeAppId()
  210. {
  211. return $this->lifeAppId;
  212. }
  213. public function setLongTerm($longTerm)
  214. {
  215. $this->longTerm = $longTerm;
  216. $this->apiParas["long_term"] = $longTerm;
  217. }
  218. public function getLongTerm()
  219. {
  220. return $this->longTerm;
  221. }
  222. public function setMccCode($mccCode)
  223. {
  224. $this->mccCode = $mccCode;
  225. $this->apiParas["mcc_code"] = $mccCode;
  226. }
  227. public function getMccCode()
  228. {
  229. return $this->mccCode;
  230. }
  231. public function setMiniAppId($miniAppId)
  232. {
  233. $this->miniAppId = $miniAppId;
  234. $this->apiParas["mini_app_id"] = $miniAppId;
  235. }
  236. public function getMiniAppId()
  237. {
  238. return $this->miniAppId;
  239. }
  240. public function setMiniAppScreenshot($miniAppScreenshot)
  241. {
  242. $this->miniAppScreenshot = $miniAppScreenshot;
  243. $this->apiParas["mini_app_screenshot"] = $miniAppScreenshot;
  244. }
  245. public function getMiniAppScreenshot()
  246. {
  247. return $this->miniAppScreenshot;
  248. }
  249. public function setProductCode($productCode)
  250. {
  251. $this->productCode = $productCode;
  252. $this->apiParas["product_code"] = $productCode;
  253. }
  254. public function getProductCode()
  255. {
  256. return $this->productCode;
  257. }
  258. public function setRate($rate)
  259. {
  260. $this->rate = $rate;
  261. $this->apiParas["rate"] = $rate;
  262. }
  263. public function getRate()
  264. {
  265. return $this->rate;
  266. }
  267. public function setShopScenePic($shopScenePic)
  268. {
  269. $this->shopScenePic = $shopScenePic;
  270. $this->apiParas["shop_scene_pic"] = $shopScenePic;
  271. }
  272. public function getShopScenePic()
  273. {
  274. return $this->shopScenePic;
  275. }
  276. public function setShopSignBoardPic($shopSignBoardPic)
  277. {
  278. $this->shopSignBoardPic = $shopSignBoardPic;
  279. $this->apiParas["shop_sign_board_pic"] = $shopSignBoardPic;
  280. }
  281. public function getShopSignBoardPic()
  282. {
  283. return $this->shopSignBoardPic;
  284. }
  285. public function setSpecialLicensePic($specialLicensePic)
  286. {
  287. $this->specialLicensePic = $specialLicensePic;
  288. $this->apiParas["special_license_pic"] = $specialLicensePic;
  289. }
  290. public function getSpecialLicensePic()
  291. {
  292. return $this->specialLicensePic;
  293. }
  294. public function setSpecialLicenseType($specialLicenseType)
  295. {
  296. $this->specialLicenseType = $specialLicenseType;
  297. $this->apiParas["special_license_type"] = $specialLicenseType;
  298. }
  299. public function getSpecialLicenseType()
  300. {
  301. return $this->specialLicenseType;
  302. }
  303. public function setWebHomeScreenshot($webHomeScreenshot)
  304. {
  305. $this->webHomeScreenshot = $webHomeScreenshot;
  306. $this->apiParas["web_home_screenshot"] = $webHomeScreenshot;
  307. }
  308. public function getWebHomeScreenshot()
  309. {
  310. return $this->webHomeScreenshot;
  311. }
  312. public function setWebItemScreenshot($webItemScreenshot)
  313. {
  314. $this->webItemScreenshot = $webItemScreenshot;
  315. $this->apiParas["web_item_screenshot"] = $webItemScreenshot;
  316. }
  317. public function getWebItemScreenshot()
  318. {
  319. return $this->webItemScreenshot;
  320. }
  321. public function setWebPayScreenshot($webPayScreenshot)
  322. {
  323. $this->webPayScreenshot = $webPayScreenshot;
  324. $this->apiParas["web_pay_screenshot"] = $webPayScreenshot;
  325. }
  326. public function getWebPayScreenshot()
  327. {
  328. return $this->webPayScreenshot;
  329. }
  330. public function setWebSites($webSites)
  331. {
  332. $this->webSites = $webSites;
  333. $this->apiParas["web_sites"] = $webSites;
  334. }
  335. public function getWebSites()
  336. {
  337. return $this->webSites;
  338. }
  339. public function setWebSitesLoa($webSitesLoa)
  340. {
  341. $this->webSitesLoa = $webSitesLoa;
  342. $this->apiParas["web_sites_loa"] = $webSitesLoa;
  343. }
  344. public function getWebSitesLoa()
  345. {
  346. return $this->webSitesLoa;
  347. }
  348. public function setWebStatus($webStatus)
  349. {
  350. $this->webStatus = $webStatus;
  351. $this->apiParas["web_status"] = $webStatus;
  352. }
  353. public function getWebStatus()
  354. {
  355. return $this->webStatus;
  356. }
  357. public function setWebTestAccount($webTestAccount)
  358. {
  359. $this->webTestAccount = $webTestAccount;
  360. $this->apiParas["web_test_account"] = $webTestAccount;
  361. }
  362. public function getWebTestAccount()
  363. {
  364. return $this->webTestAccount;
  365. }
  366. public function setWebTestAccountPassword($webTestAccountPassword)
  367. {
  368. $this->webTestAccountPassword = $webTestAccountPassword;
  369. $this->apiParas["web_test_account_password"] = $webTestAccountPassword;
  370. }
  371. public function getWebTestAccountPassword()
  372. {
  373. return $this->webTestAccountPassword;
  374. }
  375. public function setWechatOfficialAccountName($wechatOfficialAccountName)
  376. {
  377. $this->wechatOfficialAccountName = $wechatOfficialAccountName;
  378. $this->apiParas["wechat_official_account_name"] = $wechatOfficialAccountName;
  379. }
  380. public function getWechatOfficialAccountName()
  381. {
  382. return $this->wechatOfficialAccountName;
  383. }
  384. public function getApiMethodName()
  385. {
  386. return "alipay.open.agent.common.sign";
  387. }
  388. public function setNotifyUrl($notifyUrl)
  389. {
  390. $this->notifyUrl=$notifyUrl;
  391. }
  392. public function getNotifyUrl()
  393. {
  394. return $this->notifyUrl;
  395. }
  396. public function setReturnUrl($returnUrl)
  397. {
  398. $this->returnUrl=$returnUrl;
  399. }
  400. public function getReturnUrl()
  401. {
  402. return $this->returnUrl;
  403. }
  404. public function getApiParas()
  405. {
  406. return $this->apiParas;
  407. }
  408. public function getTerminalType()
  409. {
  410. return $this->terminalType;
  411. }
  412. public function setTerminalType($terminalType)
  413. {
  414. $this->terminalType = $terminalType;
  415. }
  416. public function getTerminalInfo()
  417. {
  418. return $this->terminalInfo;
  419. }
  420. public function setTerminalInfo($terminalInfo)
  421. {
  422. $this->terminalInfo = $terminalInfo;
  423. }
  424. public function getProdCode()
  425. {
  426. return $this->prodCode;
  427. }
  428. public function setProdCode($prodCode)
  429. {
  430. $this->prodCode = $prodCode;
  431. }
  432. public function setApiVersion($apiVersion)
  433. {
  434. $this->apiVersion=$apiVersion;
  435. }
  436. public function getApiVersion()
  437. {
  438. return $this->apiVersion;
  439. }
  440. public function setNeedEncrypt($needEncrypt)
  441. {
  442. $this->needEncrypt=$needEncrypt;
  443. }
  444. public function getNeedEncrypt()
  445. {
  446. return $this->needEncrypt;
  447. }
  448. }