| @@ 125-132 (lines=8) @@ | ||
| 122 | * |
|
| 123 | * @return \EasyWeChat\Support\Collection |
|
| 124 | */ |
|
| 125 | public function query($orderNo, $type = self::OUT_TRADE_NO) |
|
| 126 | { |
|
| 127 | $params = [ |
|
| 128 | $type => $orderNo, |
|
| 129 | ]; |
|
| 130 | ||
| 131 | return $this->request(self::API_ENDPOINT.$this->prefix.self::API_QUERY, $params); |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * Query order by transaction_id. |
|
| @@ 255-262 (lines=8) @@ | ||
| 252 | * |
|
| 253 | * @return \EasyWeChat\Support\Collection |
|
| 254 | */ |
|
| 255 | public function queryRefund($orderNo, $type = self::OUT_TRADE_NO) |
|
| 256 | { |
|
| 257 | $params = [ |
|
| 258 | $type => $orderNo, |
|
| 259 | ]; |
|
| 260 | ||
| 261 | return $this->request(self::API_ENDPOINT.$this->prefix.self::API_QUERY_REFUND, $params); |
|
| 262 | } |
|
| 263 | ||
| 264 | /** |
|
| 265 | * Query refund status by out_refund_no. |
|