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