AlipayMemberCouponQuerylistRequest.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.member.coupon.querylist request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayMemberCouponQuerylistRequest
  9. {
  10. /**
  11. * 红包发放者商户信息,json格式。商户可以传自己的PID,平台商可以传其它商户的PID用于查询指定商户的信息
  12. 目前仅支持如下key:
  13. unique:商户唯一标识
  14. unique_type:支持以下1种取值。
  15. PID:商户所在平台商的partner id[唯一]
  16. **/
  17. private $merchantInfo;
  18. /**
  19. * 翻页页码:翻页查询时使用,表明当前要查询第几页,若page_size为0,则此字段不生效
  20. **/
  21. private $pageNo;
  22. /**
  23. * 翻页每页条数:翻页查询时使用,表明每页返回的记录数量,范围为1至20;为空或者为0时表示不使用翻页查询,返回所有数量
  24. **/
  25. private $pageSize;
  26. /**
  27. * 优惠券状态列表,如果指定则只返回指定状态的优惠券.
  28. 目前状态主要有以下几种:
  29. VALID:可使用
  30. WRITED_OFF:已核销,
  31. EXPIRED:已过期
  32. CLOSED:已关闭
  33. 注意:
  34. 多个状态以逗号隔开
  35. **/
  36. private $status;
  37. /**
  38. * 劵所有者买家用户信息,必须是支付宝的用户,json格式。
  39. 目前仅支持如下key:
  40. unique:用户唯一标识
  41. unique_type:支持以下1种取值。
  42. UID:用户支付宝账户的唯一ID
  43. OPENID:用户支付宝账户在某商户下的唯一ID
  44. **/
  45. private $userInfo;
  46. private $apiParas = array();
  47. private $terminalType;
  48. private $terminalInfo;
  49. private $prodCode;
  50. private $apiVersion="1.0";
  51. private $notifyUrl;
  52. private $returnUrl;
  53. private $needEncrypt=false;
  54. public function setMerchantInfo($merchantInfo)
  55. {
  56. $this->merchantInfo = $merchantInfo;
  57. $this->apiParas["merchant_info"] = $merchantInfo;
  58. }
  59. public function getMerchantInfo()
  60. {
  61. return $this->merchantInfo;
  62. }
  63. public function setPageNo($pageNo)
  64. {
  65. $this->pageNo = $pageNo;
  66. $this->apiParas["page_no"] = $pageNo;
  67. }
  68. public function getPageNo()
  69. {
  70. return $this->pageNo;
  71. }
  72. public function setPageSize($pageSize)
  73. {
  74. $this->pageSize = $pageSize;
  75. $this->apiParas["page_size"] = $pageSize;
  76. }
  77. public function getPageSize()
  78. {
  79. return $this->pageSize;
  80. }
  81. public function setStatus($status)
  82. {
  83. $this->status = $status;
  84. $this->apiParas["status"] = $status;
  85. }
  86. public function getStatus()
  87. {
  88. return $this->status;
  89. }
  90. public function setUserInfo($userInfo)
  91. {
  92. $this->userInfo = $userInfo;
  93. $this->apiParas["user_info"] = $userInfo;
  94. }
  95. public function getUserInfo()
  96. {
  97. return $this->userInfo;
  98. }
  99. public function getApiMethodName()
  100. {
  101. return "alipay.member.coupon.querylist";
  102. }
  103. public function setNotifyUrl($notifyUrl)
  104. {
  105. $this->notifyUrl=$notifyUrl;
  106. }
  107. public function getNotifyUrl()
  108. {
  109. return $this->notifyUrl;
  110. }
  111. public function setReturnUrl($returnUrl)
  112. {
  113. $this->returnUrl=$returnUrl;
  114. }
  115. public function getReturnUrl()
  116. {
  117. return $this->returnUrl;
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function getTerminalType()
  124. {
  125. return $this->terminalType;
  126. }
  127. public function setTerminalType($terminalType)
  128. {
  129. $this->terminalType = $terminalType;
  130. }
  131. public function getTerminalInfo()
  132. {
  133. return $this->terminalInfo;
  134. }
  135. public function setTerminalInfo($terminalInfo)
  136. {
  137. $this->terminalInfo = $terminalInfo;
  138. }
  139. public function getProdCode()
  140. {
  141. return $this->prodCode;
  142. }
  143. public function setProdCode($prodCode)
  144. {
  145. $this->prodCode = $prodCode;
  146. }
  147. public function setApiVersion($apiVersion)
  148. {
  149. $this->apiVersion=$apiVersion;
  150. }
  151. public function getApiVersion()
  152. {
  153. return $this->apiVersion;
  154. }
  155. public function setNeedEncrypt($needEncrypt)
  156. {
  157. $this->needEncrypt=$needEncrypt;
  158. }
  159. public function getNeedEncrypt()
  160. {
  161. return $this->needEncrypt;
  162. }
  163. }