Passed
Push — main ( 33cb0c...67dbd0 )
by Abbotton
10:38
created

CrossBorder::orderOperate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
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 CrossBorder extends BaseRequest
9
{
10
    /**
11
     * 查询跨境商家资金信息接口.
12
     *
13
     * @param array $params
14
     *
15
     * @throws RequestException
16
     * @throws InvalidArgumentException
17
     *
18
     * @return array
19
     */
20
    public function queryBalance(array $params): array
21
    {
22
        return $this->httpPost('crossBorder/queryBalance', $params);
23
    }
24
25
    /**
26
     * 银行信息校验.
27
     *
28
     * @param array $params
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     *
33
     * @return array
34
     */
35
    public function bankAccountVerify(array $params): array
36
    {
37
        return $this->httpPost('crossBorder/bankAccountVerify', $params);
38
    }
39
40
    /**
41
     * 查询跨境订单列表.
42
     *
43
     * @param array $params
44
     *
45
     * @throws InvalidArgumentException
46
     * @throws RequestException
47
     *
48
     * @return array
49
     */
50
    public function orderList(array $params): array
51
    {
52
        return $this->httpPost('crossBorder/orderList', $params);
53
    }
54
55
    /**
56
     * 入库和提货出库回告.
57
     *
58
     * @param array $params
59
     *
60
     * @throws InvalidArgumentException
61
     * @throws RequestException
62
     *
63
     * @return array
64
     */
65
    public function warehouseInOutboundEvent(array $params): array
66
    {
67
        return $this->httpPost('crossborder/warehouseInOutboundEvent', $params);
68
    }
69
70
    /**
71
     * 库存盘点回告.
72
     *
73
     * @param array $params
74
     *
75
     * @throws InvalidArgumentException
76
     * @throws RequestException
77
     *
78
     * @return array
79
     */
80
    public function stockTaking(array $params): array
81
    {
82
        return $this->httpPost('crossborder/stockTaking', $params);
83
    }
84
85
    /**
86
     * 库存类型变动回告.
87
     *
88
     * @param array $params
89
     *
90
     * @throws InvalidArgumentException
91
     * @throws RequestException
92
     *
93
     * @return array
94
     */
95
    public function stockTransform(array $params): array
96
    {
97
        return $this->httpPost('crossborder/stockTransform', $params);
98
    }
99
100
    /**
101
     * 服务商锁单结果回告.
102
     *
103
     * @param array $params
104
     *
105
     * @throws InvalidArgumentException
106
     * @throws RequestException
107
     *
108
     * @return array
109
     */
110
    public function OrderInterception(array $params): array
111
    {
112
        return $this->httpPost('crossborder/OrderInterception', $params);
113
    }
114
115
    /**
116
     * 运单信息回告.
117
     *
118
     * @param array $params
119
     *
120
     * @throws InvalidArgumentException
121
     * @throws RequestException
122
     *
123
     * @return array
124
     */
125
    public function takingLogisticsInfo(array $params): array
126
    {
127
        return $this->httpPost('crossborder/takingLogisticsInfo', $params);
128
    }
129
130
    /**
131
     * 服务商回传仓储.
132
     *
133
     * @param array $params
134
     *
135
     * @throws InvalidArgumentException
136
     * @throws RequestException
137
     *
138
     * @return array
139
     */
140
    public function orderOperate(array $params): array
141
    {
142
        return $this->httpPost('crossBorder/orderOperate', $params);
143
    }
144
145
    /**
146
     * 服务商回告清关状态.
147
     *
148
     * @param array $params
149
     *
150
     * @throws InvalidArgumentException
151
     * @throws RequestException
152
     *
153
     * @return array
154
     */
155
    public function orderCustomClearance(array $params): array
156
    {
157
        return $this->httpPost('crossborder/orderCustomClearance', $params);
158
    }
159
160
    /**
161
     * 服务商回传国际干线作业节点.
162
     *
163
     * @param array $params
164
     *
165
     * @throws InvalidArgumentException
166
     * @throws RequestException
167
     *
168
     * @return array
169
     */
170
    public function orderLogisticsTrace(array $params): array
171
    {
172
        return $this->httpPost('crossborder/orderLogisticsTrace', $params);
173
    }
174
}
175