1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of PHP CS Fixer. |
||
5 | * |
||
6 | * (c) Fabien Potencier <[email protected]> |
||
7 | * Dariusz RumiĆski <[email protected]> |
||
8 | * |
||
9 | * This source file is subject to the MIT license that is bundled |
||
10 | * with this source code in the file LICENSE. |
||
11 | */ |
||
12 | |||
13 | namespace Etrias\EwarehousingConnector\Services; |
||
14 | |||
15 | use DateTime; |
||
16 | use Etrias\EwarehousingConnector\Response\StockResponse; |
||
17 | use Etrias\EwarehousingConnector\Response\SuccessResponse; |
||
18 | use Etrias\EwarehousingConnector\Types\StockProduct; |
||
19 | |||
20 | interface StockServiceInterface |
||
21 | { |
||
22 | /** |
||
23 | * @param string[]|null $articleCodes |
||
24 | * @param string|null $articleDescription |
||
25 | * @param DateTime|null $updatedAfter |
||
26 | * @param int $page |
||
27 | * @param int $limit |
||
28 | * @param null $sort |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
29 | * @param null $direction |
||
0 ignored issues
–
show
|
|||
30 | * |
||
31 | * @return StockResponse[] |
||
32 | */ |
||
33 | public function getListing( |
||
34 | array $articleCodes = null, |
||
35 | $articleDescription = null, |
||
36 | DateTime $updatedAfter = null, |
||
37 | $page = 1, |
||
38 | $limit = 1000, |
||
39 | $sort = null, |
||
40 | $direction = null |
||
41 | ); |
||
42 | |||
43 | /** |
||
44 | * @param string[]|null $articleCodes |
||
45 | * @param string|null $articleDescription |
||
46 | * @param DateTime|null $updatedAfter |
||
47 | * @param int $page |
||
48 | * @param int $limit |
||
49 | * @param null $sort |
||
0 ignored issues
–
show
|
|||
50 | * @param null $direction |
||
0 ignored issues
–
show
|
|||
51 | * |
||
52 | * @return StockResponse[] |
||
53 | */ |
||
54 | public function listVariants( |
||
55 | array $articleCodes = null, |
||
56 | $articleDescription = null, |
||
57 | DateTime $updatedAfter = null, |
||
58 | $page = 1, |
||
59 | $limit = 1000, |
||
60 | $sort = null, |
||
61 | $direction = null |
||
62 | ); |
||
63 | |||
64 | /** |
||
65 | * @param string $articleCode |
||
66 | * @param int $minStock |
||
67 | * @param int $margin |
||
68 | * |
||
69 | * @return SuccessResponse |
||
70 | */ |
||
71 | public function updateStock($articleCode, $minStock, $margin); |
||
72 | |||
73 | /** |
||
74 | * @param StockProduct[] $products |
||
75 | * |
||
76 | * @return SuccessResponse |
||
77 | */ |
||
78 | public function createStock(array $products = []); |
||
79 | } |
||
80 |