DutyFree::orderOperate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Abbotton\DouDian\Api;
4
5
use Illuminate\Http\Client\RequestException;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class DutyFree extends BaseRequest
9
{
10
    /**
11
     * 商家接单.
12
     *
13
     * @param  array  $params
14
     *
15
     * @return array
16
     * @throws RequestException
17
     *
18
     * @throws InvalidArgumentException
19
     */
20
    public function orderConfirm(array $params): array
21
    {
22
        return $this->httpPost('dutyFree/orderConfirm', $params);
23
    }
24
25
    /**
26
     * 海南项目服务商回传实操节点.
27
     *
28
     * @param  array  $params
29
     *
30
     * @return array
31
     * @throws RequestException
32
     *
33
     * @throws InvalidArgumentException
34
     */
35
    public function orderOperate(array $params): array
36
    {
37
        return $this->httpPost('dutyFree/orderOperate', $params);
38
    }
39
40
    /**
41
     * 商家拉单.
42
     *
43
     * @param  array  $params
44
     *
45
     * @return array
46
     * @throws RequestException
47
     *
48
     * @throws InvalidArgumentException
49
     */
50
    public function orderList(array $params): array
51
    {
52
        return $this->httpPost('dutyFree/orderList', $params);
53
    }
54
}
55