Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class Client extends BaseClient |
||
22 | { |
||
23 | /** |
||
24 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
25 | */ |
||
26 | 1 | public function getAllExpress() |
|
27 | { |
||
28 | 1 | return $this->httpGet('cgi-bin/express/business/delivery/getall'); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param array $data |
||
33 | * |
||
34 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
35 | */ |
||
36 | 1 | public function addOrder(array $data = []) |
|
37 | { |
||
38 | 1 | return $this->httpPostJson('cgi-bin/express/business/order/add', $data); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param array $data |
||
43 | * |
||
44 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
45 | */ |
||
46 | 1 | public function cancelOrder(array $data = []) |
|
47 | { |
||
48 | 1 | return $this->httpPostJson('cgi-bin/express/business/order/cancel', $data); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param array $data |
||
53 | * |
||
54 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
55 | */ |
||
56 | 1 | public function getOrder(array $data = []) |
|
59 | } |
||
60 | } |
||
61 |