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