AlipayOpenPublicLifeCreateRequest.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.public.life.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-01-07 20:51:15
  7. */
  8. class AlipayOpenPublicLifeCreateRequest
  9. {
  10. /**
  11. * 背景图片,需上传图片原始二进制流,此图片显示在支付宝客户端生活号主页上方背景图位置,后缀是jpg或者jpeg,图片大小限制1mb
  12. **/
  13. private $background;
  14. /**
  15. * 联系人邮箱
  16. **/
  17. private $contactEmail;
  18. /**
  19. * 联系人姓名
  20. **/
  21. private $contactName;
  22. /**
  23. * 联系人电话
  24. **/
  25. private $contactTel;
  26. /**
  27. * 客服电话,可以是电话号码,手机号码,400电话
  28. **/
  29. private $customerTel;
  30. /**
  31. * 生活号简介,此内容显示在支付宝客户端生活号主页简介区块
  32. **/
  33. private $description;
  34. /**
  35. * 扩展数据JSON串
  36. **/
  37. private $extendData;
  38. /**
  39. * 生活号名称
  40. **/
  41. private $lifeName;
  42. /**
  43. * logo图片,需上传图片原始二进制流,此图片显示在支付宝客户端生活号主页上方位置,后缀是jpg或者jpeg,图片大小限制1mb,图片最小150px ,图片建议为是正方形
  44. **/
  45. private $logo;
  46. /**
  47. * mcc code
  48. **/
  49. private $mccCode;
  50. /**
  51. * 目前只支持 LIFE_APP:应用号
  52. **/
  53. private $publicBizType;
  54. /**
  55. * 生活号前端展示类型
  56. **/
  57. private $showStyle;
  58. /**
  59. * 支付宝用户id,由支付宝同学提供用户id,为该生活号对应pid
  60. **/
  61. private $userId;
  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 setBackground($background)
  71. {
  72. $this->background = $background;
  73. $this->apiParas["background"] = $background;
  74. }
  75. public function getBackground()
  76. {
  77. return $this->background;
  78. }
  79. public function setContactEmail($contactEmail)
  80. {
  81. $this->contactEmail = $contactEmail;
  82. $this->apiParas["contact_email"] = $contactEmail;
  83. }
  84. public function getContactEmail()
  85. {
  86. return $this->contactEmail;
  87. }
  88. public function setContactName($contactName)
  89. {
  90. $this->contactName = $contactName;
  91. $this->apiParas["contact_name"] = $contactName;
  92. }
  93. public function getContactName()
  94. {
  95. return $this->contactName;
  96. }
  97. public function setContactTel($contactTel)
  98. {
  99. $this->contactTel = $contactTel;
  100. $this->apiParas["contact_tel"] = $contactTel;
  101. }
  102. public function getContactTel()
  103. {
  104. return $this->contactTel;
  105. }
  106. public function setCustomerTel($customerTel)
  107. {
  108. $this->customerTel = $customerTel;
  109. $this->apiParas["customer_tel"] = $customerTel;
  110. }
  111. public function getCustomerTel()
  112. {
  113. return $this->customerTel;
  114. }
  115. public function setDescription($description)
  116. {
  117. $this->description = $description;
  118. $this->apiParas["description"] = $description;
  119. }
  120. public function getDescription()
  121. {
  122. return $this->description;
  123. }
  124. public function setExtendData($extendData)
  125. {
  126. $this->extendData = $extendData;
  127. $this->apiParas["extend_data"] = $extendData;
  128. }
  129. public function getExtendData()
  130. {
  131. return $this->extendData;
  132. }
  133. public function setLifeName($lifeName)
  134. {
  135. $this->lifeName = $lifeName;
  136. $this->apiParas["life_name"] = $lifeName;
  137. }
  138. public function getLifeName()
  139. {
  140. return $this->lifeName;
  141. }
  142. public function setLogo($logo)
  143. {
  144. $this->logo = $logo;
  145. $this->apiParas["logo"] = $logo;
  146. }
  147. public function getLogo()
  148. {
  149. return $this->logo;
  150. }
  151. public function setMccCode($mccCode)
  152. {
  153. $this->mccCode = $mccCode;
  154. $this->apiParas["mcc_code"] = $mccCode;
  155. }
  156. public function getMccCode()
  157. {
  158. return $this->mccCode;
  159. }
  160. public function setPublicBizType($publicBizType)
  161. {
  162. $this->publicBizType = $publicBizType;
  163. $this->apiParas["public_biz_type"] = $publicBizType;
  164. }
  165. public function getPublicBizType()
  166. {
  167. return $this->publicBizType;
  168. }
  169. public function setShowStyle($showStyle)
  170. {
  171. $this->showStyle = $showStyle;
  172. $this->apiParas["show_style"] = $showStyle;
  173. }
  174. public function getShowStyle()
  175. {
  176. return $this->showStyle;
  177. }
  178. public function setUserId($userId)
  179. {
  180. $this->userId = $userId;
  181. $this->apiParas["user_id"] = $userId;
  182. }
  183. public function getUserId()
  184. {
  185. return $this->userId;
  186. }
  187. public function getApiMethodName()
  188. {
  189. return "alipay.open.public.life.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. }