AlipayOpenPublicLifeAccountCreateRequest.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.public.life.account.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 12:41:44
  7. */
  8. class AlipayOpenPublicLifeAccountCreateRequest
  9. {
  10. /**
  11. * 背景图片,需上传图片原始二进制流,此图片显示在支付宝客户端生活号主页上方背景图位置,后缀是jpg或者jpeg,图片大小限制1mb
  12. **/
  13. private $background;
  14. /**
  15. * 生活号二级分类id,请按照以下分类进行填写,非以下分类账号请联系相应人员添加类别
  16. 综合媒体(INTEG),新闻(NEWS),科技(SCIENCE),养生(WELLNESS),财经(FINANCE),情感(EMOTION),美食(DELICACY),搞笑(FUNNY),娱乐(ENTERTM),摄影(SHOOT),影视(MOVIES),教育(EDUCATE),文艺(LITER),时尚(FASHION),动漫(COMIC),美妆(COSMETIC),体育(SPOTRS),旅行(TRIP),健身(BODYB),星座(CONSTT),音乐(ONGAKU),母婴(MUNBABY),公益(PUBLICW),汽车(CARS),地产(LAND),数码(NUMERAL),游戏(GAMES),电视剧(TVPLAY),宠物(PET),其他(OTHERS)
  17. **/
  18. private $catagoryId;
  19. /**
  20. * 联系人邮箱,可以是调用者的联系人邮箱
  21. **/
  22. private $contactEmail;
  23. /**
  24. * 联系人电话,可以是调用者的联系人电话
  25. **/
  26. private $contactTel;
  27. /**
  28. * 生活号简介,此内容显示在支付宝客户端生活号主页简介区块
  29. **/
  30. private $content;
  31. /**
  32. * 客服电话,可以是电话号码,手机号码,400电话
  33. **/
  34. private $customerTel;
  35. /**
  36. * 生活号名称,该名称会显示在支付宝客户端生活号主页上方
  37. **/
  38. private $lifeName;
  39. /**
  40. * logo图片,需上传图片原始二进制流,此图片显示在支付宝客户端生活号主页上方位置,后缀是jpg或者jpeg,图片大小限制1mb
  41. **/
  42. private $logo;
  43. /**
  44. * 支付宝用户唯一标识
  45. **/
  46. private $openId;
  47. /**
  48. * 支付宝用户id,由支付宝同学提供用户id,为该生活号对应pid
  49. **/
  50. private $userId;
  51. private $apiParas = array();
  52. private $terminalType;
  53. private $terminalInfo;
  54. private $prodCode;
  55. private $apiVersion="1.0";
  56. private $notifyUrl;
  57. private $returnUrl;
  58. private $needEncrypt=false;
  59. public function setBackground($background)
  60. {
  61. $this->background = $background;
  62. $this->apiParas["background"] = $background;
  63. }
  64. public function getBackground()
  65. {
  66. return $this->background;
  67. }
  68. public function setCatagoryId($catagoryId)
  69. {
  70. $this->catagoryId = $catagoryId;
  71. $this->apiParas["catagory_id"] = $catagoryId;
  72. }
  73. public function getCatagoryId()
  74. {
  75. return $this->catagoryId;
  76. }
  77. public function setContactEmail($contactEmail)
  78. {
  79. $this->contactEmail = $contactEmail;
  80. $this->apiParas["contact_email"] = $contactEmail;
  81. }
  82. public function getContactEmail()
  83. {
  84. return $this->contactEmail;
  85. }
  86. public function setContactTel($contactTel)
  87. {
  88. $this->contactTel = $contactTel;
  89. $this->apiParas["contact_tel"] = $contactTel;
  90. }
  91. public function getContactTel()
  92. {
  93. return $this->contactTel;
  94. }
  95. public function setContent($content)
  96. {
  97. $this->content = $content;
  98. $this->apiParas["content"] = $content;
  99. }
  100. public function getContent()
  101. {
  102. return $this->content;
  103. }
  104. public function setCustomerTel($customerTel)
  105. {
  106. $this->customerTel = $customerTel;
  107. $this->apiParas["customer_tel"] = $customerTel;
  108. }
  109. public function getCustomerTel()
  110. {
  111. return $this->customerTel;
  112. }
  113. public function setLifeName($lifeName)
  114. {
  115. $this->lifeName = $lifeName;
  116. $this->apiParas["life_name"] = $lifeName;
  117. }
  118. public function getLifeName()
  119. {
  120. return $this->lifeName;
  121. }
  122. public function setLogo($logo)
  123. {
  124. $this->logo = $logo;
  125. $this->apiParas["logo"] = $logo;
  126. }
  127. public function getLogo()
  128. {
  129. return $this->logo;
  130. }
  131. public function setOpenId($openId)
  132. {
  133. $this->openId = $openId;
  134. $this->apiParas["open_id"] = $openId;
  135. }
  136. public function getOpenId()
  137. {
  138. return $this->openId;
  139. }
  140. public function setUserId($userId)
  141. {
  142. $this->userId = $userId;
  143. $this->apiParas["user_id"] = $userId;
  144. }
  145. public function getUserId()
  146. {
  147. return $this->userId;
  148. }
  149. public function getApiMethodName()
  150. {
  151. return "alipay.open.public.life.account.create";
  152. }
  153. public function setNotifyUrl($notifyUrl)
  154. {
  155. $this->notifyUrl=$notifyUrl;
  156. }
  157. public function getNotifyUrl()
  158. {
  159. return $this->notifyUrl;
  160. }
  161. public function setReturnUrl($returnUrl)
  162. {
  163. $this->returnUrl=$returnUrl;
  164. }
  165. public function getReturnUrl()
  166. {
  167. return $this->returnUrl;
  168. }
  169. public function getApiParas()
  170. {
  171. return $this->apiParas;
  172. }
  173. public function getTerminalType()
  174. {
  175. return $this->terminalType;
  176. }
  177. public function setTerminalType($terminalType)
  178. {
  179. $this->terminalType = $terminalType;
  180. }
  181. public function getTerminalInfo()
  182. {
  183. return $this->terminalInfo;
  184. }
  185. public function setTerminalInfo($terminalInfo)
  186. {
  187. $this->terminalInfo = $terminalInfo;
  188. }
  189. public function getProdCode()
  190. {
  191. return $this->prodCode;
  192. }
  193. public function setProdCode($prodCode)
  194. {
  195. $this->prodCode = $prodCode;
  196. }
  197. public function setApiVersion($apiVersion)
  198. {
  199. $this->apiVersion=$apiVersion;
  200. }
  201. public function getApiVersion()
  202. {
  203. return $this->apiVersion;
  204. }
  205. public function setNeedEncrypt($needEncrypt)
  206. {
  207. $this->needEncrypt=$needEncrypt;
  208. }
  209. public function getNeedEncrypt()
  210. {
  211. return $this->needEncrypt;
  212. }
  213. }