AlipayMobilePublicMessageCustomSendRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.mobile.public.message.custom.send request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-12-02 14:41:01
  7. */
  8. class AlipayMobilePublicMessageCustomSendRequest
  9. {
  10. /**
  11. * 业务内容,其中包括消息类型msgType、消息体和消息接受人toUserId三大块,在toUserId这一层级新加eventType参数,该字段取值为follow:表示关注事件,click:表示菜单点击事件,enter_ppchat:代表进入事件。具体参见“表1-2 服务窗单发客服消息的biz_content参数说明”。
  12. <a href="https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7386797.0.0.eZqycg&treeId=53&articleId=103448&docType=1">详情请见</a>
  13. **/
  14. private $bizContent;
  15. private $apiParas = array();
  16. private $terminalType;
  17. private $terminalInfo;
  18. private $prodCode;
  19. private $apiVersion="1.0";
  20. private $notifyUrl;
  21. private $returnUrl;
  22. private $needEncrypt=false;
  23. public function setBizContent($bizContent)
  24. {
  25. $this->bizContent = $bizContent;
  26. $this->apiParas["biz_content"] = $bizContent;
  27. }
  28. public function getBizContent()
  29. {
  30. return $this->bizContent;
  31. }
  32. public function getApiMethodName()
  33. {
  34. return "alipay.mobile.public.message.custom.send";
  35. }
  36. public function setNotifyUrl($notifyUrl)
  37. {
  38. $this->notifyUrl=$notifyUrl;
  39. }
  40. public function getNotifyUrl()
  41. {
  42. return $this->notifyUrl;
  43. }
  44. public function setReturnUrl($returnUrl)
  45. {
  46. $this->returnUrl=$returnUrl;
  47. }
  48. public function getReturnUrl()
  49. {
  50. return $this->returnUrl;
  51. }
  52. public function getApiParas()
  53. {
  54. return $this->apiParas;
  55. }
  56. public function getTerminalType()
  57. {
  58. return $this->terminalType;
  59. }
  60. public function setTerminalType($terminalType)
  61. {
  62. $this->terminalType = $terminalType;
  63. }
  64. public function getTerminalInfo()
  65. {
  66. return $this->terminalInfo;
  67. }
  68. public function setTerminalInfo($terminalInfo)
  69. {
  70. $this->terminalInfo = $terminalInfo;
  71. }
  72. public function getProdCode()
  73. {
  74. return $this->prodCode;
  75. }
  76. public function setProdCode($prodCode)
  77. {
  78. $this->prodCode = $prodCode;
  79. }
  80. public function setApiVersion($apiVersion)
  81. {
  82. $this->apiVersion=$apiVersion;
  83. }
  84. public function getApiVersion()
  85. {
  86. return $this->apiVersion;
  87. }
  88. public function setNeedEncrypt($needEncrypt)
  89. {
  90. $this->needEncrypt=$needEncrypt;
  91. }
  92. public function getNeedEncrypt()
  93. {
  94. return $this->needEncrypt;
  95. }
  96. }