AlipayUserTradeSearchRequest.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.user.trade.search request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018-03-14 11:11:45
  7. */
  8. class AlipayUserTradeSearchRequest
  9. {
  10. /**
  11. * 支付宝订单号,为空查询所有记录
  12. **/
  13. private $alipayOrderNo;
  14. /**
  15. * 结束时间。与开始时间间隔在七天之内
  16. **/
  17. private $endTime;
  18. /**
  19. * 商户订单号,为空查询所有记录
  20. **/
  21. private $merchantOrderNo;
  22. /**
  23. * 订单来源,为空查询所有来源。淘宝(TAOBAO),支付宝(ALIPAY),其它(OTHER)
  24. **/
  25. private $orderFrom;
  26. /**
  27. * 订单状态,为空查询所有状态订单。例如:等待买家付款(WAIT_BUYER_PAY),等待卖家发货(WAIT_SELLER_SEND_GOODS),等待买家确认收货(WAIT_BUYER_CONFIRM_GOODS),交易完成(TRADE_FINISHED),交易关闭(TRADE_CLOSED),交易成功(TRADE_SUCCESS)
  28. **/
  29. private $orderStatus;
  30. /**
  31. * 订单类型,为空查询所有类型订单。例如:交易(TRADE),CAE代扣(CAE),代付(PEERPAY),转账到卡(TRANSFER)
  32. **/
  33. private $orderType;
  34. /**
  35. * 页码。取值范围:大于零的整数; 默认值1
  36. **/
  37. private $pageNo;
  38. /**
  39. * 每页获取条数。最大值500。
  40. **/
  41. private $pageSize;
  42. /**
  43. * 开始时间,时间必须是今天范围之内。格式为yyyy-MM-dd HH:mm:ss,精确到秒(升级后的api 1.1版本)
  44. **/
  45. private $startTime;
  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 setAlipayOrderNo($alipayOrderNo)
  55. {
  56. $this->alipayOrderNo = $alipayOrderNo;
  57. $this->apiParas["alipay_order_no"] = $alipayOrderNo;
  58. }
  59. public function getAlipayOrderNo()
  60. {
  61. return $this->alipayOrderNo;
  62. }
  63. public function setEndTime($endTime)
  64. {
  65. $this->endTime = $endTime;
  66. $this->apiParas["end_time"] = $endTime;
  67. }
  68. public function getEndTime()
  69. {
  70. return $this->endTime;
  71. }
  72. public function setMerchantOrderNo($merchantOrderNo)
  73. {
  74. $this->merchantOrderNo = $merchantOrderNo;
  75. $this->apiParas["merchant_order_no"] = $merchantOrderNo;
  76. }
  77. public function getMerchantOrderNo()
  78. {
  79. return $this->merchantOrderNo;
  80. }
  81. public function setOrderFrom($orderFrom)
  82. {
  83. $this->orderFrom = $orderFrom;
  84. $this->apiParas["order_from"] = $orderFrom;
  85. }
  86. public function getOrderFrom()
  87. {
  88. return $this->orderFrom;
  89. }
  90. public function setOrderStatus($orderStatus)
  91. {
  92. $this->orderStatus = $orderStatus;
  93. $this->apiParas["order_status"] = $orderStatus;
  94. }
  95. public function getOrderStatus()
  96. {
  97. return $this->orderStatus;
  98. }
  99. public function setOrderType($orderType)
  100. {
  101. $this->orderType = $orderType;
  102. $this->apiParas["order_type"] = $orderType;
  103. }
  104. public function getOrderType()
  105. {
  106. return $this->orderType;
  107. }
  108. public function setPageNo($pageNo)
  109. {
  110. $this->pageNo = $pageNo;
  111. $this->apiParas["page_no"] = $pageNo;
  112. }
  113. public function getPageNo()
  114. {
  115. return $this->pageNo;
  116. }
  117. public function setPageSize($pageSize)
  118. {
  119. $this->pageSize = $pageSize;
  120. $this->apiParas["page_size"] = $pageSize;
  121. }
  122. public function getPageSize()
  123. {
  124. return $this->pageSize;
  125. }
  126. public function setStartTime($startTime)
  127. {
  128. $this->startTime = $startTime;
  129. $this->apiParas["start_time"] = $startTime;
  130. }
  131. public function getStartTime()
  132. {
  133. return $this->startTime;
  134. }
  135. public function getApiMethodName()
  136. {
  137. return "alipay.user.trade.search";
  138. }
  139. public function setNotifyUrl($notifyUrl)
  140. {
  141. $this->notifyUrl=$notifyUrl;
  142. }
  143. public function getNotifyUrl()
  144. {
  145. return $this->notifyUrl;
  146. }
  147. public function setReturnUrl($returnUrl)
  148. {
  149. $this->returnUrl=$returnUrl;
  150. }
  151. public function getReturnUrl()
  152. {
  153. return $this->returnUrl;
  154. }
  155. public function getApiParas()
  156. {
  157. return $this->apiParas;
  158. }
  159. public function getTerminalType()
  160. {
  161. return $this->terminalType;
  162. }
  163. public function setTerminalType($terminalType)
  164. {
  165. $this->terminalType = $terminalType;
  166. }
  167. public function getTerminalInfo()
  168. {
  169. return $this->terminalInfo;
  170. }
  171. public function setTerminalInfo($terminalInfo)
  172. {
  173. $this->terminalInfo = $terminalInfo;
  174. }
  175. public function getProdCode()
  176. {
  177. return $this->prodCode;
  178. }
  179. public function setProdCode($prodCode)
  180. {
  181. $this->prodCode = $prodCode;
  182. }
  183. public function setApiVersion($apiVersion)
  184. {
  185. $this->apiVersion=$apiVersion;
  186. }
  187. public function getApiVersion()
  188. {
  189. return $this->apiVersion;
  190. }
  191. public function setNeedEncrypt($needEncrypt)
  192. {
  193. $this->needEncrypt=$needEncrypt;
  194. }
  195. public function getNeedEncrypt()
  196. {
  197. return $this->needEncrypt;
  198. }
  199. }