AlipayMobilePublicMessageMatcherSendRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.mobile.public.message.matcher.send request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayMobilePublicMessageMatcherSendRequest
  9. {
  10. /**
  11. * 业务内容json,其中包括匹配器matcher和模板template两大块,注意这里的userId仅接受2088开头,样例如下
  12. {
  13. "matcher": {
  14. "mobileNo": "15869106831",
  15. "userId": "2088102118109919"
  16. },
  17. "template": {
  18. "context": {
  19. "amount": "20.00元",
  20. "balance": "5000",
  21. "cardNo": "1855",
  22. "date": "04年10月18:06",
  23. "tradeType": "支付宝消费"
  24. },
  25. "templateId": "1ff2840464c4463187f5451119de8fea"
  26. }
  27. }
  28. **/
  29. private $bizContent;
  30. private $apiParas = array();
  31. private $terminalType;
  32. private $terminalInfo;
  33. private $prodCode;
  34. private $apiVersion="1.0";
  35. private $notifyUrl;
  36. private $returnUrl;
  37. private $needEncrypt=false;
  38. public function setBizContent($bizContent)
  39. {
  40. $this->bizContent = $bizContent;
  41. $this->apiParas["biz_content"] = $bizContent;
  42. }
  43. public function getBizContent()
  44. {
  45. return $this->bizContent;
  46. }
  47. public function getApiMethodName()
  48. {
  49. return "alipay.mobile.public.message.matcher.send";
  50. }
  51. public function setNotifyUrl($notifyUrl)
  52. {
  53. $this->notifyUrl=$notifyUrl;
  54. }
  55. public function getNotifyUrl()
  56. {
  57. return $this->notifyUrl;
  58. }
  59. public function setReturnUrl($returnUrl)
  60. {
  61. $this->returnUrl=$returnUrl;
  62. }
  63. public function getReturnUrl()
  64. {
  65. return $this->returnUrl;
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function getTerminalType()
  72. {
  73. return $this->terminalType;
  74. }
  75. public function setTerminalType($terminalType)
  76. {
  77. $this->terminalType = $terminalType;
  78. }
  79. public function getTerminalInfo()
  80. {
  81. return $this->terminalInfo;
  82. }
  83. public function setTerminalInfo($terminalInfo)
  84. {
  85. $this->terminalInfo = $terminalInfo;
  86. }
  87. public function getProdCode()
  88. {
  89. return $this->prodCode;
  90. }
  91. public function setProdCode($prodCode)
  92. {
  93. $this->prodCode = $prodCode;
  94. }
  95. public function setApiVersion($apiVersion)
  96. {
  97. $this->apiVersion=$apiVersion;
  98. }
  99. public function getApiVersion()
  100. {
  101. return $this->apiVersion;
  102. }
  103. public function setNeedEncrypt($needEncrypt)
  104. {
  105. $this->needEncrypt=$needEncrypt;
  106. }
  107. public function getNeedEncrypt()
  108. {
  109. return $this->needEncrypt;
  110. }
  111. }