9
9
10
10
/**
11
11
* Interface StockStateProviderInterface
12
- *
12
+ *
13
13
* @deprecated 2.3.0 Replaced with Multi Source Inventory
14
14
* @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
15
15
* @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
16
16
*/
17
17
interface StockStateProviderInterface
18
18
{
19
19
/**
20
+ * Verify stock.
21
+ *
20
22
* @param StockItemInterface $stockItem
21
23
* @return bool
22
24
*/
23
25
public function verifyStock (StockItemInterface $ stockItem );
24
26
25
27
/**
28
+ * Verify notification.
29
+ *
26
30
* @param StockItemInterface $stockItem
27
31
* @return bool
28
32
*/
29
33
public function verifyNotification (StockItemInterface $ stockItem );
30
34
31
35
/**
36
+ * Validate quote qty.
37
+ *
32
38
* @param StockItemInterface $stockItem
33
39
* @param int|float $itemQty
34
40
* @param int|float $qtyToCheck
@@ -48,8 +54,9 @@ public function checkQuoteItemQty(StockItemInterface $stockItem, $itemQty, $qtyT
48
54
public function checkQty (StockItemInterface $ stockItem , $ qty );
49
55
50
56
/**
51
- * Returns suggested qty that satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions
52
- * or original qty if such value does not exist
57
+ * Returns suggested qty or original qty if such value does not exist.
58
+ *
59
+ * Suggested qty satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions.
53
60
*
54
61
* @param StockItemInterface $stockItem
55
62
* @param int|float $qty
@@ -58,6 +65,8 @@ public function checkQty(StockItemInterface $stockItem, $qty);
58
65
public function suggestQty (StockItemInterface $ stockItem , $ qty );
59
66
60
67
/**
68
+ * Check qty increments.
69
+ *
61
70
* @param StockItemInterface $stockItem
62
71
* @param int|float $qty
63
72
* @return \Magento\Framework\DataObject
0 commit comments