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