AfterSale::submitEvidence()   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 AfterSale 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 addOrderRemark(array $params): array
21
    {
22
        return $this->httpPost('afterSale/addOrderRemark', $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 buyerExchange(array $params): array
36
    {
37
        return $this->httpPost('afterSale/buyerExchange', $params);
38
    }
39
40
    /**
41
     * 商家确认是否收到换货.
42
     *
43
     * @param array $params
44
     *
45
     * @throws RequestException
46
     * @throws InvalidArgumentException
47
     *
48
     * @return array
49
     */
50
    public function buyerExchangeConfirm(array $params): array
51
    {
52
        return $this->httpPost('afterSale/buyerExchangeConfirm', $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 submitEvidence(array $params = []): array
66
    {
67
        return $this->httpPost('afterSale/submitEvidence', $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 timeExtend(array $params): array
81
    {
82
        return $this->httpPost('afterSale/timeExtend', $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 refundListSearch(array $params = []): array
96
    {
97
        return $this->httpPost('trade/refundListSearch', $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 detail(array $params = []): array
111
    {
112
        return $this->httpPost('afterSale/Detail', $params);
113
    }
114
115
    /**
116
     * 打开售后通道,使用户可以发起超级售后.
117
     *
118
     * @param array $params
119
     *
120
     * @throws RequestException
121
     * @throws InvalidArgumentException
122
     *
123
     * @return array
124
     */
125
    public function openAfterSaleChannel(array $params = []): array
126
    {
127
        return $this->httpPost('afterSale/OpenAfterSaleChannel', $params);
128
    }
129
130
    /**
131
     * 售后列表接口.
132
     *
133
     * @param array $params
134
     *
135
     * @throws RequestException
136
     * @throws InvalidArgumentException
137
     *
138
     * @return array
139
     */
140
    public function List(array $params = []): array
141
    {
142
        return $this->httpPost('afterSale/List', $params);
143
    }
144
145
    /**
146
     * 商家经过质检确认用户退货入仓无误后,售后小助手自动同意退款.
147
     *
148
     * @param array $params
149
     *
150
     * @throws RequestException
151
     * @throws InvalidArgumentException
152
     *
153
     * @return array
154
     */
155
    public function returnGoodsToWareHouseSuccess(array $params = []): array
156
    {
157
        return $this->httpPost('afterSale/returnGoodsToWareHouseSuccess', $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 cancelSendGoodsSuccess(array $params = []): array
171
    {
172
        return $this->httpPost('afterSale/CancelSendGoodsSuccess', $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 applyLogisticsIntercept(array $params = []): array
186
    {
187
        return $this->httpPost('afterSale/applyLogisticsIntercept', $params);
188
    }
189
190
    /**
191
     * 售后审核处理原因列表查询接口.
192
     *
193
     * @param array $params
194
     *
195
     * @throws RequestException
196
     * @throws InvalidArgumentException
197
     *
198
     * @return array
199
     */
200
    public function rejectReasonCodeList(array $params = []): array
201
    {
202
        return $this->httpPost('afterSale/rejectReasonCodeList', $params);
203
    }
204
205
    /**
206
     * 售后审核接口聚合版.
207
     *
208
     * @param  array  $params
209
     *
210
     * @return array
211
     * @throws InvalidArgumentException
212
     *
213
     * @throws RequestException
214
     */
215
    public function operate(array $params = []): array
216
    {
217
        return $this->httpPost('afterSale/operate', $params);
218
    }
219
}
220