AlipayOpenServicemarketOrderCreateRequest.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.servicemarket.order.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-09-26 15:13:28
  7. */
  8. class AlipayOpenServicemarketOrderCreateRequest
  9. {
  10. /**
  11. * 11_12;12_13。小程序类目,格式为 第一个一级类目_第一个二级类目;第二个一级类目_第二个二级类目,详细类目可以参考https://docs.alipay.com/isv/10325
  12. **/
  13. private $appCategoryIds;
  14. /**
  15. * 小程序官方示例Demo,展示已支持的接口能力及组件。
  16. **/
  17. private $appDesc;
  18. /**
  19. * 小程序应用英文名称
  20. **/
  21. private $appEnglishName;
  22. /**
  23. * 小程序应用logo图标,图片格式必须为:png、jpeg、jpg,建议上传像素为180*180
  24. **/
  25. private $appLogo;
  26. /**
  27. * 小程序应用名称
  28. **/
  29. private $appName;
  30. /**
  31. * 来源的业务方
  32. **/
  33. private $appOrigin;
  34. /**
  35. * 小程序应用简介,一句话描述小程序功能
  36. **/
  37. private $appSlogan;
  38. /**
  39. * 订购的服务商品ID
  40. **/
  41. private $merchandiseId;
  42. /**
  43. * 商户PID
  44. **/
  45. private $merchantPid;
  46. /**
  47. * 一二方支持传入appId
  48. **/
  49. private $miniAppId;
  50. /**
  51. * 比如某种业务标准外部订单号,比如交易外部订单号,代表商户端自己订单号
  52. **/
  53. private $outBizNo;
  54. /**
  55. * 小程序客服邮箱
  56. **/
  57. private $serviceEmail;
  58. /**
  59. * 小程序客服电话
  60. **/
  61. private $servicePhone;
  62. private $apiParas = array();
  63. private $terminalType;
  64. private $terminalInfo;
  65. private $prodCode;
  66. private $apiVersion="1.0";
  67. private $notifyUrl;
  68. private $returnUrl;
  69. private $needEncrypt=false;
  70. public function setAppCategoryIds($appCategoryIds)
  71. {
  72. $this->appCategoryIds = $appCategoryIds;
  73. $this->apiParas["app_category_ids"] = $appCategoryIds;
  74. }
  75. public function getAppCategoryIds()
  76. {
  77. return $this->appCategoryIds;
  78. }
  79. public function setAppDesc($appDesc)
  80. {
  81. $this->appDesc = $appDesc;
  82. $this->apiParas["app_desc"] = $appDesc;
  83. }
  84. public function getAppDesc()
  85. {
  86. return $this->appDesc;
  87. }
  88. public function setAppEnglishName($appEnglishName)
  89. {
  90. $this->appEnglishName = $appEnglishName;
  91. $this->apiParas["app_english_name"] = $appEnglishName;
  92. }
  93. public function getAppEnglishName()
  94. {
  95. return $this->appEnglishName;
  96. }
  97. public function setAppLogo($appLogo)
  98. {
  99. $this->appLogo = $appLogo;
  100. $this->apiParas["app_logo"] = $appLogo;
  101. }
  102. public function getAppLogo()
  103. {
  104. return $this->appLogo;
  105. }
  106. public function setAppName($appName)
  107. {
  108. $this->appName = $appName;
  109. $this->apiParas["app_name"] = $appName;
  110. }
  111. public function getAppName()
  112. {
  113. return $this->appName;
  114. }
  115. public function setAppOrigin($appOrigin)
  116. {
  117. $this->appOrigin = $appOrigin;
  118. $this->apiParas["app_origin"] = $appOrigin;
  119. }
  120. public function getAppOrigin()
  121. {
  122. return $this->appOrigin;
  123. }
  124. public function setAppSlogan($appSlogan)
  125. {
  126. $this->appSlogan = $appSlogan;
  127. $this->apiParas["app_slogan"] = $appSlogan;
  128. }
  129. public function getAppSlogan()
  130. {
  131. return $this->appSlogan;
  132. }
  133. public function setMerchandiseId($merchandiseId)
  134. {
  135. $this->merchandiseId = $merchandiseId;
  136. $this->apiParas["merchandise_id"] = $merchandiseId;
  137. }
  138. public function getMerchandiseId()
  139. {
  140. return $this->merchandiseId;
  141. }
  142. public function setMerchantPid($merchantPid)
  143. {
  144. $this->merchantPid = $merchantPid;
  145. $this->apiParas["merchant_pid"] = $merchantPid;
  146. }
  147. public function getMerchantPid()
  148. {
  149. return $this->merchantPid;
  150. }
  151. public function setMiniAppId($miniAppId)
  152. {
  153. $this->miniAppId = $miniAppId;
  154. $this->apiParas["mini_app_id"] = $miniAppId;
  155. }
  156. public function getMiniAppId()
  157. {
  158. return $this->miniAppId;
  159. }
  160. public function setOutBizNo($outBizNo)
  161. {
  162. $this->outBizNo = $outBizNo;
  163. $this->apiParas["out_biz_no"] = $outBizNo;
  164. }
  165. public function getOutBizNo()
  166. {
  167. return $this->outBizNo;
  168. }
  169. public function setServiceEmail($serviceEmail)
  170. {
  171. $this->serviceEmail = $serviceEmail;
  172. $this->apiParas["service_email"] = $serviceEmail;
  173. }
  174. public function getServiceEmail()
  175. {
  176. return $this->serviceEmail;
  177. }
  178. public function setServicePhone($servicePhone)
  179. {
  180. $this->servicePhone = $servicePhone;
  181. $this->apiParas["service_phone"] = $servicePhone;
  182. }
  183. public function getServicePhone()
  184. {
  185. return $this->servicePhone;
  186. }
  187. public function getApiMethodName()
  188. {
  189. return "alipay.open.servicemarket.order.create";
  190. }
  191. public function setNotifyUrl($notifyUrl)
  192. {
  193. $this->notifyUrl=$notifyUrl;
  194. }
  195. public function getNotifyUrl()
  196. {
  197. return $this->notifyUrl;
  198. }
  199. public function setReturnUrl($returnUrl)
  200. {
  201. $this->returnUrl=$returnUrl;
  202. }
  203. public function getReturnUrl()
  204. {
  205. return $this->returnUrl;
  206. }
  207. public function getApiParas()
  208. {
  209. return $this->apiParas;
  210. }
  211. public function getTerminalType()
  212. {
  213. return $this->terminalType;
  214. }
  215. public function setTerminalType($terminalType)
  216. {
  217. $this->terminalType = $terminalType;
  218. }
  219. public function getTerminalInfo()
  220. {
  221. return $this->terminalInfo;
  222. }
  223. public function setTerminalInfo($terminalInfo)
  224. {
  225. $this->terminalInfo = $terminalInfo;
  226. }
  227. public function getProdCode()
  228. {
  229. return $this->prodCode;
  230. }
  231. public function setProdCode($prodCode)
  232. {
  233. $this->prodCode = $prodCode;
  234. }
  235. public function setApiVersion($apiVersion)
  236. {
  237. $this->apiVersion=$apiVersion;
  238. }
  239. public function getApiVersion()
  240. {
  241. return $this->apiVersion;
  242. }
  243. public function setNeedEncrypt($needEncrypt)
  244. {
  245. $this->needEncrypt=$needEncrypt;
  246. }
  247. public function getNeedEncrypt()
  248. {
  249. return $this->needEncrypt;
  250. }
  251. }