Passed
Push — main ( 27e66b...25b76e )
by Abbotton
12:06
created

Order::getSettleBillDetail()   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
c 0
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 Order extends BaseRequest
9
{
10
    /**
11
     * 添加订单备注.
12
     *
13
     * @param  array  $params
14
     * @return array
15
     *
16
     * @throws RequestException
17
     * @throws InvalidArgumentException
18
     */
19
    public function addOrderRemark(array $params): array
20
    {
21
        return $this->httpPost('order/addOrderRemark', $params);
22
    }
23
24
    /**
25
     * 设置店铺支持地址变更审核.
26
     *
27
     * @param  array  $params
28
     * @return array
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     */
33
    public function addressAppliedSwitch(array $params): array
34
    {
35
        return $this->httpPost('order/AddressAppliedSwitch', $params);
36
    }
37
38
    /**
39
     * 买家地址变更确认.
40
     *
41
     * @param  array  $params
42
     * @return array
43
     *
44
     * @throws RequestException
45
     * @throws InvalidArgumentException
46
     */
47
    public function addressConfirm(array $params): array
48
    {
49
        return $this->httpPost('order/addressConfirm', $params);
50
    }
51
52
    /**
53
     * 卖家主动修改收货地址
54
     *
55
     * @param  array  $params
56
     * @return array
57
     *
58
     * @throws RequestException
59
     * @throws InvalidArgumentException
60
     */
61
    public function addressModify(array $params): array
62
    {
63
        return $this->httpPost('order/addressModify', $params);
64
    }
65
66
    /**
67
     * 获取服务单列表.
68
     *
69
     * @param  array  $params
70
     * @return array
71
     *
72
     * @throws RequestException
73
     * @throws InvalidArgumentException
74
     */
75
    public function getServiceList(array $params): array
76
    {
77
        return $this->httpPost('order/getServiceList', $params);
78
    }
79
80
    /**
81
     * 回复服务请求
82
     *
83
     * @param  array  $params
84
     * @return array
85
     *
86
     * @throws RequestException
87
     * @throws InvalidArgumentException
88
     */
89
    public function replyService(array $params): array
90
    {
91
        return $this->httpPost('order/replyService', $params);
92
    }
93
94
    /**
95
     * 查询商家服务单详情请求
96
     *
97
     * @param  array  $params
98
     * @return array
99
     *
100
     * @throws RequestException
101
     * @throws InvalidArgumentException
102
     */
103
    public function serviceDetail(array $params): array
104
    {
105
        return $this->httpPost('order/serviceDetail', $params);
106
    }
107
108
    /**
109
     * 未支付订单改货款.
110
     *
111
     * @param  array  $params
112
     * @return array
113
     *
114
     * @throws RequestException
115
     * @throws InvalidArgumentException
116
     */
117
    public function updateOrderAmount(array $params): array
118
    {
119
        return $this->httpPost('order/updateOrderAmount', $params);
120
    }
121
122
    /**
123
     * 未支付订单邮费修改.
124
     *
125
     * @param  array  $params
126
     * @return array
127
     *
128
     * @throws RequestException
129
     * @throws InvalidArgumentException
130
     */
131
    public function updatePostAmount(array $params): array
132
    {
133
        return $this->httpPost('order/updatePostAmount', $params);
134
    }
135
136
    /**
137
     * 查询订单账单明细.
138
     *
139
     * @param  array  $params
140
     * @return array
141
     *
142
     * @throws RequestException
143
     * @throws InvalidArgumentException
144
     */
145
    public function settle(array $params): array
146
    {
147
        return $this->httpPost('order/settle', $params);
148
    }
149
150
    /**
151
     * 获取运费险保单详情.
152
     *
153
     * @param  array  $params
154
     * @return array
155
     *
156
     * @throws RequestException
157
     * @throws InvalidArgumentException
158
     */
159
    public function insurance(array $params): array
160
    {
161
        return $this->httpPost('order/insurance', $params);
162
    }
163
164
    /**
165
     * 新版查询订单的详细信息.
166
     *
167
     * @param  array  $params
168
     * @return array
169
     *
170
     * @throws InvalidArgumentException
171
     * @throws RequestException
172
     */
173
    public function orderDetail(array $params): array
174
    {
175
        return $this->httpPost('order/orderDetail', $params);
176
    }
177
178
    /**
179
     * 订单列表查询.
180
     *
181
     * @param  array  $params
182
     * @return array
183
     *
184
     * @throws InvalidArgumentException
185
     * @throws RequestException
186
     */
187
    public function searchList(array $params): array
188
    {
189
        return $this->httpPost('order/searchList', $params);
190
    }
191
192
    /**
193
     * 获取跨境承运单信息.
194
     *
195
     * @param  array  $params
196
     * @return array
197
     *
198
     * @throws InvalidArgumentException
199
     * @throws RequestException
200
     */
201
    public function getCrossBorderFulfillInfo(array $params): array
202
    {
203
        return $this->httpPost('order/getCrossBorderFulfillInfo', $params);
204
    }
205
206
    /**
207
     * 获取App对于商家订单修改地址的审核权限.
208
     *
209
     * @return array
210
     *
211
     * @throws InvalidArgumentException
212
     * @throws RequestException
213
     */
214
    public function addresSwitchConfig(): array
215
    {
216
        return $this->httpPost('order/addresSwitchConfig');
217
    }
218
219
    /**
220
     * 查询账单明细.
221
     *
222
     * @param  array  $params
223
     * @return array
224
     *
225
     * @throws InvalidArgumentException
226
     * @throws RequestException
227
     */
228
    public function getSettleBillDetail(array $params): array
229
    {
230
        return $this->httpPost('order/getSettleBillDetail', $params);
231
    }
232
233
    /**
234
     * 批量加密接口.
235
     *
236
     * @param  array  $params
237
     * @return array
238
     *
239
     * @throws InvalidArgumentException
240
     * @throws RequestException
241
     */
242
    public function batchEncrypt(array $params): array
243
    {
244
        return $this->httpPost('order/batchEncrypt', $params);
245
    }
246
247
    /**
248
     * 批量脱敏接口.
249
     *
250
     * @param  array  $params
251
     * @return array
252
     *
253
     * @throws InvalidArgumentException
254
     * @throws RequestException
255
     */
256
    public function batchSensitive(array $params): array
257
    {
258
        return $this->httpPost('order/batchSensitive', $params);
259
    }
260
261
    /**
262
     * 批量解密接口.
263
     *
264
     * @param  array  $params
265
     * @return array
266
     *
267
     * @throws InvalidArgumentException
268
     * @throws RequestException
269
     */
270
    public function batchDecrypt(array $params): array
271
    {
272
        return $this->httpPost('order/batchDecrypt', $params);
273
    }
274
275
    /**
276
     * 批量获取索引串接口.
277
     *
278
     * @param  array  $params
279
     * @return array
280
     *
281
     * @throws InvalidArgumentException
282
     * @throws RequestException
283
     */
284
    public function batchSearchIndex(array $params): array
285
    {
286
        return $this->httpPost('order/BatchSearchIndex', $params);
287
    }
288
289
    /**
290
     * 查看商家开票列表.
291
     *
292
     * @param  array  $params
293
     * @return array
294
     *
295
     * @throws InvalidArgumentException
296
     * @throws RequestException
297
     */
298
    public function invoiceList(array $params): array
299
    {
300
        return $this->httpPost('order/invoiceList', $params);
301
    }
302
303
    /**
304
     * 订单商品的序列号上传.
305
     *
306
     * @param  array  $params
307
     * @return array
308
     *
309
     * @throws InvalidArgumentException
310
     * @throws RequestException
311
     */
312
    public function addSerialNumber(array $params): array
313
    {
314
        return $this->httpPost('order/addSerialNumber', $params);
315
    }
316
317
    /**
318
     * 发票信息回传API.
319
     *
320
     * @param  array  $params
321
     * @return array
322
     *
323
     * @throws InvalidArgumentException
324
     * @throws RequestException
325
     */
326
    public function invoiceUpload(array $params): array
327
    {
328
        return $this->httpPost('order/invoiceUpload', $params);
329
    }
330
331
    /**
332
     * 查保单详情.
333
     *
334
     * @param  array  $params
335
     * @return array
336
     *
337
     * @throws InvalidArgumentException
338
     * @throws RequestException
339
     */
340
    public function policy(array $params): array
341
    {
342
        return $this->httpPost('order/policy', $params);
343
    }
344
345
    /**
346
     * 下载账单,生成downloadId.
347
     *
348
     * @param  array  $params
349
     * @return array
350
     *
351
     * @throws InvalidArgumentException
352
     * @throws RequestException
353
     */
354
    public function downloadSettleItemToShop(array $params): array
355
    {
356
        return $this->httpPost('order/downloadSettleItemToShop', $params);
357
    }
358
}
359