AlipayOpenAgentMiniCreateRequest.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.agent.mini.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018-01-31 17:53:02
  7. */
  8. class AlipayOpenAgentMiniCreateRequest
  9. {
  10. /**
  11. * 小程序应用类目,参数格式:一级类目_二级类目。
  12. 应用类目参考文档:https://docs.alipay.com/isv/10325
  13. **/
  14. private $appCategoryIds;
  15. /**
  16. * 商户小程序描述信息,简要描述小程序主要功能(20-500个字),例:xx小程序提供了xx功能,主要解决了XX问题。
  17. **/
  18. private $appDesc;
  19. /**
  20. * 小程序英文名称,长度3~20个字符
  21. **/
  22. private $appEnglishName;
  23. /**
  24. * 商户小程序应用图标,最大256KB,LOGO不允许涉及政治敏感与色情;图片格式必须为:png、jpeg、jpg,建议上传像素为180*180,LOGO核心图形建议在白色160PX范围内
  25. **/
  26. private $appLogo;
  27. /**
  28. * 代商户创建的小程序应用名称。名称可以由中文、数字、英文及下划线组成,长度在3-20个字符之间,一个中文字等于2个字符,更多名称规则见:https://docs.alipay.com/mini/operation/name
  29. **/
  30. private $appName;
  31. /**
  32. * 代商户创建的小程序的简介,请用一句话简要描述小程序提供的服务;应用上架后一个自然月可修改5次(10~32个字符)
  33. **/
  34. private $appSlogan;
  35. /**
  36. * ISV 代商户操作事务编号,通过事务开启接口alipay.open.agent.create调用返回。
  37. **/
  38. private $batchNo;
  39. /**
  40. * 商户小程序客服邮箱
  41. 商户小程序客服电话和邮箱,可以二选一填写,但不能同时为空
  42. **/
  43. private $serviceEmail;
  44. /**
  45. * 商户小程序的客服电话,推荐填写
  46. 商户小程序客服电话和邮箱,可以二选一填写,但不能同时为空
  47. **/
  48. private $servicePhone;
  49. private $apiParas = array();
  50. private $terminalType;
  51. private $terminalInfo;
  52. private $prodCode;
  53. private $apiVersion="1.0";
  54. private $notifyUrl;
  55. private $returnUrl;
  56. private $needEncrypt=false;
  57. public function setAppCategoryIds($appCategoryIds)
  58. {
  59. $this->appCategoryIds = $appCategoryIds;
  60. $this->apiParas["app_category_ids"] = $appCategoryIds;
  61. }
  62. public function getAppCategoryIds()
  63. {
  64. return $this->appCategoryIds;
  65. }
  66. public function setAppDesc($appDesc)
  67. {
  68. $this->appDesc = $appDesc;
  69. $this->apiParas["app_desc"] = $appDesc;
  70. }
  71. public function getAppDesc()
  72. {
  73. return $this->appDesc;
  74. }
  75. public function setAppEnglishName($appEnglishName)
  76. {
  77. $this->appEnglishName = $appEnglishName;
  78. $this->apiParas["app_english_name"] = $appEnglishName;
  79. }
  80. public function getAppEnglishName()
  81. {
  82. return $this->appEnglishName;
  83. }
  84. public function setAppLogo($appLogo)
  85. {
  86. $this->appLogo = $appLogo;
  87. $this->apiParas["app_logo"] = $appLogo;
  88. }
  89. public function getAppLogo()
  90. {
  91. return $this->appLogo;
  92. }
  93. public function setAppName($appName)
  94. {
  95. $this->appName = $appName;
  96. $this->apiParas["app_name"] = $appName;
  97. }
  98. public function getAppName()
  99. {
  100. return $this->appName;
  101. }
  102. public function setAppSlogan($appSlogan)
  103. {
  104. $this->appSlogan = $appSlogan;
  105. $this->apiParas["app_slogan"] = $appSlogan;
  106. }
  107. public function getAppSlogan()
  108. {
  109. return $this->appSlogan;
  110. }
  111. public function setBatchNo($batchNo)
  112. {
  113. $this->batchNo = $batchNo;
  114. $this->apiParas["batch_no"] = $batchNo;
  115. }
  116. public function getBatchNo()
  117. {
  118. return $this->batchNo;
  119. }
  120. public function setServiceEmail($serviceEmail)
  121. {
  122. $this->serviceEmail = $serviceEmail;
  123. $this->apiParas["service_email"] = $serviceEmail;
  124. }
  125. public function getServiceEmail()
  126. {
  127. return $this->serviceEmail;
  128. }
  129. public function setServicePhone($servicePhone)
  130. {
  131. $this->servicePhone = $servicePhone;
  132. $this->apiParas["service_phone"] = $servicePhone;
  133. }
  134. public function getServicePhone()
  135. {
  136. return $this->servicePhone;
  137. }
  138. public function getApiMethodName()
  139. {
  140. return "alipay.open.agent.mini.create";
  141. }
  142. public function setNotifyUrl($notifyUrl)
  143. {
  144. $this->notifyUrl=$notifyUrl;
  145. }
  146. public function getNotifyUrl()
  147. {
  148. return $this->notifyUrl;
  149. }
  150. public function setReturnUrl($returnUrl)
  151. {
  152. $this->returnUrl=$returnUrl;
  153. }
  154. public function getReturnUrl()
  155. {
  156. return $this->returnUrl;
  157. }
  158. public function getApiParas()
  159. {
  160. return $this->apiParas;
  161. }
  162. public function getTerminalType()
  163. {
  164. return $this->terminalType;
  165. }
  166. public function setTerminalType($terminalType)
  167. {
  168. $this->terminalType = $terminalType;
  169. }
  170. public function getTerminalInfo()
  171. {
  172. return $this->terminalInfo;
  173. }
  174. public function setTerminalInfo($terminalInfo)
  175. {
  176. $this->terminalInfo = $terminalInfo;
  177. }
  178. public function getProdCode()
  179. {
  180. return $this->prodCode;
  181. }
  182. public function setProdCode($prodCode)
  183. {
  184. $this->prodCode = $prodCode;
  185. }
  186. public function setApiVersion($apiVersion)
  187. {
  188. $this->apiVersion=$apiVersion;
  189. }
  190. public function getApiVersion()
  191. {
  192. return $this->apiVersion;
  193. }
  194. public function setNeedEncrypt($needEncrypt)
  195. {
  196. $this->needEncrypt=$needEncrypt;
  197. }
  198. public function getNeedEncrypt()
  199. {
  200. return $this->needEncrypt;
  201. }
  202. }