Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StockItemConfigurationInterface.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 {
15  const BACKORDERS_NO = 0;
18 
19  const IS_QTY_DECIMAL = 'is_qty_decimal';
20  const SHOW_DEFAULT_NOTIFICATION_MESSAGE = 'show_default_notification_message';
21 
22  /*
23  * Safety stock threshold, not to confuse with the one used to show the "Only X left" label on frontend
24  */
25  const USE_CONFIG_MIN_QTY = 'use_config_min_qty';
26  const MIN_QTY = 'min_qty';
27 
28  /*
29  * Threshold intended to show the "Only X left" label on frontend
30  */
31  const USE_CONFIG_STOCK_THRESHOLD_QTY = 'use_config_stock_threshold_qty';
32  const STOCK_THRESHOLD_QTY = 'stock_threshold_qty';
33 
34  /*
35  * Used to prevent to buy less than a certain qty of a product, not to confuse with the safety stock threshold
36  */
37  const USE_CONFIG_MIN_SALE_QTY = 'use_config_min_sale_qty';
38  const MIN_SALE_QTY = 'min_sale_qty';
39 
40  const USE_CONFIG_MAX_SALE_QTY = 'use_config_max_sale_qty';
41  const MAX_SALE_QTY = 'max_sale_qty';
42 
43  const USE_CONFIG_BACKORDERS = 'use_config_backorders';
44  const BACKORDERS = 'backorders';
45 
46  const USE_CONFIG_NOTIFY_STOCK_QTY = 'use_config_notify_stock_qty';
47  const NOTIFY_STOCK_QTY = 'notify_stock_qty';
48 
49  const USE_CONFIG_QTY_INCREMENTS = 'use_config_qty_increments';
50  const QTY_INCREMENTS = 'qty_increments';
51 
52  const USE_CONFIG_ENABLE_QTY_INC = 'use_config_enable_qty_inc';
53  const ENABLE_QTY_INCREMENTS = 'enable_qty_increments';
54 
55  const USE_CONFIG_MANAGE_STOCK = 'use_config_manage_stock';
56  const MANAGE_STOCK = 'manage_stock';
57 
58  const LOW_STOCK_DATE = 'low_stock_date';
59  const IS_DECIMAL_DIVIDED = 'is_decimal_divided';
60  const STOCK_STATUS_CHANGED_AUTO = 'stock_status_changed_auto';
61 
65  public function isQtyDecimal(): bool;
66 
71  public function setIsQtyDecimal(bool $isQtyDecimal): void;
72 
76  public function isShowDefaultNotificationMessage(): bool;
77 
81  public function isUseConfigMinQty(): bool;
82 
87  public function setUseConfigMinQty(bool $useConfigMinQty): void;
88 
92  public function getMinQty(): float;
93 
98  public function setMinQty(float $minQty): void;
99 
103  public function isUseConfigMinSaleQty(): bool;
104 
109  public function setUseConfigMinSaleQty(bool $useConfigMinSaleQty): void;
110 
114  public function getMinSaleQty(): float;
115 
120  public function setMinSaleQty(float $minSaleQty): void;
121 
125  public function isUseConfigMaxSaleQty(): bool;
126 
131  public function setUseConfigMaxSaleQty(bool $useConfigMaxSaleQty): void;
132 
136  public function getMaxSaleQty(): float;
137 
142  public function setMaxSaleQty(float $maxSaleQty): void;
143 
147  public function isUseConfigBackorders(): bool;
148 
153  public function setUseConfigBackorders(bool $useConfigBackorders): void;
154 
160  public function getBackorders(): int;
161 
166  public function setBackorders(int $backOrders): void;
167 
171  public function isUseConfigNotifyStockQty(): bool;
172 
177  public function setUseConfigNotifyStockQty(bool $useConfigNotifyStockQty): void;
178 
182  public function getNotifyStockQty(): float;
183 
188  public function setNotifyStockQty(float $notifyStockQty): void;
189 
193  public function isUseConfigQtyIncrements(): bool;
194 
199  public function setUseConfigQtyIncrements(bool $useConfigQtyIncrements): void;
200 
206  public function getQtyIncrements(): float;
207 
212  public function setQtyIncrements(float $qtyIncrements): void;
213 
217  public function isUseConfigEnableQtyInc(): bool;
218 
223  public function setUseConfigEnableQtyInc(bool $useConfigEnableQtyInc): void;
224 
228  public function isEnableQtyIncrements(): bool;
229 
234  public function setEnableQtyIncrements(bool $enableQtyIncrements): void;
235 
239  public function isUseConfigManageStock(): bool;
240 
245  public function setUseConfigManageStock(bool $useConfigManageStock): void;
246 
250  public function isManageStock(): bool;
251 
256  public function setManageStock(bool $manageStock): void;
257 
261  public function getLowStockDate(): string;
262 
267  public function setLowStockDate(string $lowStockDate): void;
268 
272  public function isDecimalDivided(): bool;
273 
278  public function setIsDecimalDivided(bool $isDecimalDivided): void;
279 
283  public function getStockStatusChangedAuto(): bool;
284 
289  public function setStockStatusChangedAuto(int $stockStatusChangedAuto): void;
290 
294  public function getStockThresholdQty(): float;
295 
301  public function getExtensionAttributes(): ?StockItemConfigurationExtensionInterface;
302 
309  public function setExtensionAttributes(
310  \Magento\InventoryConfigurationApi\Api\Data\StockItemConfigurationExtensionInterface $extensionAttributes
311  ): void;
312 }
$extensionAttributes
Definition: payment.php:22
setExtensionAttributes(\Magento\InventoryConfigurationApi\Api\Data\StockItemConfigurationExtensionInterface $extensionAttributes)