| @@ 133-140 (lines=8) @@ | ||
| 130 | * |
|
| 131 | * @return \EasyWeChat\Support\Collection |
|
| 132 | */ |
|
| 133 | public function query($orderNo, $type = self::OUT_TRADE_NO) |
|
| 134 | { |
|
| 135 | $params = [ |
|
| 136 | $type => $orderNo, |
|
| 137 | ]; |
|
| 138 | ||
| 139 | return $this->request($this->wrapApi(self::API_QUERY), $params); |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Query order by transaction_id. |
|
| @@ 263-270 (lines=8) @@ | ||
| 260 | * |
|
| 261 | * @return \EasyWeChat\Support\Collection |
|
| 262 | */ |
|
| 263 | public function queryRefund($orderNo, $type = self::OUT_TRADE_NO) |
|
| 264 | { |
|
| 265 | $params = [ |
|
| 266 | $type => $orderNo, |
|
| 267 | ]; |
|
| 268 | ||
| 269 | return $this->request($this->wrapApi(self::API_QUERY_REFUND), $params); |
|
| 270 | } |
|
| 271 | ||
| 272 | /** |
|
| 273 | * Query refund status by out_refund_no. |
|