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