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