Passed
Push — main ( c2314c...1a7704 )
by Abbotton
10:22
created

Yunc::deliveryInfoNotify()   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 Yunc extends BaseRequest
9
{
10
    /**
11
     * toB场景取消出库单.
12
     *
13
     * @param array $params
14
     *
15
     * @throws RequestException
16
     * @throws InvalidArgumentException
17
     *
18
     * @return array
19
     */
20
    public function cancelOutboundOrderToB(array $params): array
21
    {
22
        return $this->httpPost('yunc/cancelOutboundOrderToB', $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 shopWarehouseRefQuery(array $params): array
36
    {
37
        return $this->httpPost('yunc/shopWarehouseRefQuery', $params);
38
    }
39
40
    /**
41
     * 创建出库单ToC.
42
     *
43
     * @param array $params
44
     *
45
     * @throws RequestException
46
     * @throws InvalidArgumentException
47
     *
48
     * @return array
49
     * @deprecated
50
     */
51
    public function pushCloudWarehouseOutboundOrderToC(array $params): array
52
    {
53
        return $this->httpPost('yunc/createOutboundOrderToC', $params);
54
    }
55
56
    /**
57
     * wms入库单回告.
58
     *
59
     * @param array $params
60
     *
61
     * @throws RequestException
62
     * @throws InvalidArgumentException
63
     *
64
     * @return array
65
     */
66
    public function wmsInboundCallback(array $params): array
67
    {
68
        return $this->httpPost('yunc/wmsInboundCallback', $params);
69
    }
70
71
    /**
72
     * 云仓出库接单.
73
     *
74
     * @param array $params
75
     *
76
     * @throws RequestException
77
     * @throws InvalidArgumentException
78
     *
79
     * @return array
80
     */
81
    public function cloudCreateOutboundOrder(array $params): array
82
    {
83
        return $this->httpPost('yunc/cloudCreateOutboundOrder', $params);
84
    }
85
86
    /**
87
     * 销退入库取消.
88
     *
89
     * @param array $params
90
     *
91
     * @throws RequestException
92
     * @throws InvalidArgumentException
93
     *
94
     * @return array
95
     */
96
    public function cloudCancelInboundOrder(array $params): array
97
    {
98
        return $this->httpPost('yunc/cloudCancelInboundOrder', $params);
99
    }
100
101
    /**
102
     * 销退单入库.
103
     *
104
     * @param array $params
105
     *
106
     * @throws RequestException
107
     * @throws InvalidArgumentException
108
     *
109
     * @return array
110
     */
111
    public function cloudCreateInboundOrder(array $params): array
112
    {
113
        return $this->httpPost('yunc/cloudCreateInboundOrder', $params);
114
    }
115
116
    /**
117
     * 云仓出库取消.
118
     *
119
     * @param array $params
120
     *
121
     * @throws RequestException
122
     * @throws InvalidArgumentException
123
     *
124
     * @return array
125
     */
126
    public function cloudCancelOutboundOrder(array $params): array
127
    {
128
        return $this->httpPost('yunc/cloudCancelOutboundOrder', $params);
129
    }
130
131
    /**
132
     * toC场景取消出库单.
133
     *
134
     * @param array $params
135
     *
136
     * @throws RequestException
137
     * @throws InvalidArgumentException
138
     *
139
     * @return array
140
     * @deprecated
141
     */
142
    public function cancelOutboundOrderToC(array $params): array
143
    {
144
        return $this->httpPost('yunc/cancelOutboundOrderToC', $params);
145
    }
146
147
    /**
148
     * 给外部WMS调用的推送出库信息回传.
149
     *
150
     * @param array $params
151
     *
152
     * @throws RequestException
153
     * @throws InvalidArgumentException
154
     *
155
     * @return array
156
     */
157
    public function pushOutboundFeedback(array $params): array
158
    {
159
        return $this->httpPost('yunc/pushOutboundFeedback', $params);
160
    }
161
162
    /**
163
     * 货品推送接口-ERP(单个).
164
     *
165
     * @param array $params
166
     *
167
     * @throws RequestException
168
     * @throws InvalidArgumentException
169
     *
170
     * @return array
171
     */
172
    public function erpCargoSinglePush(array $params): array
173
    {
174
        return $this->httpPost('yunc/erpCargoSinglePush', $params);
175
    }
176
177
    /**
178
     * erp创建入库单.
179
     *
180
     * @param array $params
181
     *
182
     * @throws RequestException
183
     * @throws InvalidArgumentException
184
     *
185
     * @return array
186
     */
187
    public function erpInboundCreate(array $params): array
188
    {
189
        return $this->httpPost('yunc/erpInboundCreate', $params);
190
    }
191
192
    /**
193
     * 设置指定地址下的仓的优先级.
194
     *
195
     * @param array $params
196
     *
197
     * @throws RequestException
198
     * @throws InvalidArgumentException
199
     *
200
     * @return array
201
     */
202
    public function erpInboundCancel(array $params): array
203
    {
204
        return $this->httpPost('yunc/erpInboundCancel', $params);
205
    }
206
207
    /**
208
     * 库存调整(盘点和转移).
209
     *
210
     * @param array $params
211
     *
212
     * @throws RequestException
213
     * @throws InvalidArgumentException
214
     *
215
     * @return array
216
     */
217
    public function adjustInventory(array $params): array
218
    {
219
        return $this->httpPost('yunc/adjustInventory', $params);
220
    }
221
222
    /**
223
     * toB出库单.
224
     *
225
     * @param array $params
226
     *
227
     * @throws RequestException
228
     * @throws InvalidArgumentException
229
     *
230
     * @return array
231
     */
232
    public function createOutboundOrderToB(array $params): array
233
    {
234
        return $this->httpPost('yunc/createOutboundOrderToB', $params);
235
    }
236
237
    /**
238
     * 仓储系统回传发货信息.
239
     *
240
     * @param array $params
241
     *
242
     * @throws RequestException
243
     * @throws InvalidArgumentException
244
     *
245
     * @return array
246
     */
247
    public function deliveryInfoNotify(array $params): array
248
    {
249
        return $this->httpPost('wms/deliveryInfoNotify', $params);
250
    }
251
}
252