AlipayOpenPublicLifeModifyRequest.php 4.8 KB

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