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