AlipayOpenPublicLifeAccountCreateRequest.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.public.life.account.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-01-07 20:51:15
  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. * 支付宝用户id,由支付宝同学提供用户id,为该生活号对应pid
  45. **/
  46. private $userId;
  47. private $apiParas = array();
  48. private $terminalType;
  49. private $terminalInfo;
  50. private $prodCode;
  51. private $apiVersion="1.0";
  52. private $notifyUrl;
  53. private $returnUrl;
  54. private $needEncrypt=false;
  55. public function setBackground($background)
  56. {
  57. $this->background = $background;
  58. $this->apiParas["background"] = $background;
  59. }
  60. public function getBackground()
  61. {
  62. return $this->background;
  63. }
  64. public function setCatagoryId($catagoryId)
  65. {
  66. $this->catagoryId = $catagoryId;
  67. $this->apiParas["catagory_id"] = $catagoryId;
  68. }
  69. public function getCatagoryId()
  70. {
  71. return $this->catagoryId;
  72. }
  73. public function setContactEmail($contactEmail)
  74. {
  75. $this->contactEmail = $contactEmail;
  76. $this->apiParas["contact_email"] = $contactEmail;
  77. }
  78. public function getContactEmail()
  79. {
  80. return $this->contactEmail;
  81. }
  82. public function setContactTel($contactTel)
  83. {
  84. $this->contactTel = $contactTel;
  85. $this->apiParas["contact_tel"] = $contactTel;
  86. }
  87. public function getContactTel()
  88. {
  89. return $this->contactTel;
  90. }
  91. public function setContent($content)
  92. {
  93. $this->content = $content;
  94. $this->apiParas["content"] = $content;
  95. }
  96. public function getContent()
  97. {
  98. return $this->content;
  99. }
  100. public function setCustomerTel($customerTel)
  101. {
  102. $this->customerTel = $customerTel;
  103. $this->apiParas["customer_tel"] = $customerTel;
  104. }
  105. public function getCustomerTel()
  106. {
  107. return $this->customerTel;
  108. }
  109. public function setLifeName($lifeName)
  110. {
  111. $this->lifeName = $lifeName;
  112. $this->apiParas["life_name"] = $lifeName;
  113. }
  114. public function getLifeName()
  115. {
  116. return $this->lifeName;
  117. }
  118. public function setLogo($logo)
  119. {
  120. $this->logo = $logo;
  121. $this->apiParas["logo"] = $logo;
  122. }
  123. public function getLogo()
  124. {
  125. return $this->logo;
  126. }
  127. public function setUserId($userId)
  128. {
  129. $this->userId = $userId;
  130. $this->apiParas["user_id"] = $userId;
  131. }
  132. public function getUserId()
  133. {
  134. return $this->userId;
  135. }
  136. public function getApiMethodName()
  137. {
  138. return "alipay.open.public.life.account.create";
  139. }
  140. public function setNotifyUrl($notifyUrl)
  141. {
  142. $this->notifyUrl=$notifyUrl;
  143. }
  144. public function getNotifyUrl()
  145. {
  146. return $this->notifyUrl;
  147. }
  148. public function setReturnUrl($returnUrl)
  149. {
  150. $this->returnUrl=$returnUrl;
  151. }
  152. public function getReturnUrl()
  153. {
  154. return $this->returnUrl;
  155. }
  156. public function getApiParas()
  157. {
  158. return $this->apiParas;
  159. }
  160. public function getTerminalType()
  161. {
  162. return $this->terminalType;
  163. }
  164. public function setTerminalType($terminalType)
  165. {
  166. $this->terminalType = $terminalType;
  167. }
  168. public function getTerminalInfo()
  169. {
  170. return $this->terminalInfo;
  171. }
  172. public function setTerminalInfo($terminalInfo)
  173. {
  174. $this->terminalInfo = $terminalInfo;
  175. }
  176. public function getProdCode()
  177. {
  178. return $this->prodCode;
  179. }
  180. public function setProdCode($prodCode)
  181. {
  182. $this->prodCode = $prodCode;
  183. }
  184. public function setApiVersion($apiVersion)
  185. {
  186. $this->apiVersion=$apiVersion;
  187. }
  188. public function getApiVersion()
  189. {
  190. return $this->apiVersion;
  191. }
  192. public function setNeedEncrypt($needEncrypt)
  193. {
  194. $this->needEncrypt=$needEncrypt;
  195. }
  196. public function getNeedEncrypt()
  197. {
  198. return $this->needEncrypt;
  199. }
  200. }