Recycle::confirmReceive()   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 Recycle 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 createPrice(array $params): array
21
    {
22
        return $this->httpPost('recycle/createPrice', $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 confirmReceive(array $params): array
36
    {
37
        return $this->httpPost('recycle/confirmReceive', $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 qualityTestingResult(array $params): array
51
    {
52
        return $this->httpPost('recycle/qualityTestingResult', $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 changePrice(array $params): array
66
    {
67
        return $this->httpPost('recycle/changePrice', $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 applyChangePrice(array $params): array
81
    {
82
        return $this->httpPost('recycle/applyChangePrice', $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 sellSucceed(array $params): array
96
    {
97
        return $this->httpPost('recycle/sellSucceed', $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 logisticsBack(array $params): array
111
    {
112
        return $this->httpPost('recycle/logisticsBack', $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 buyerGetOrderList(array $params): array
126
    {
127
        return $this->httpPost('recycle/buyerGetOrderList', $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 buyerGetOrderDetail(array $params): array
141
    {
142
        return $this->httpPost('recycle/buyerGetOrderDetail', $params);
143
    }
144
}
145