StockStatus.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Api\Enums\Products; |
| 6 | |
| 7 | use Automattic\WooCommerce\Api\Attributes\Description; |
| 8 | |
| 9 | #[Description( 'The stock status of a product.' )] |
| 10 | enum StockStatus: int { |
| 11 | #[Description( 'The product is in stock.' )] |
| 12 | case InStock = 1; |
| 13 | |
| 14 | #[Description( 'The product is out of stock.' )] |
| 15 | case OutOfStock = 2; |
| 16 | |
| 17 | #[Description( 'The product is on backorder.' )] |
| 18 | case OnBackorder = 3; |
| 19 | |
| 20 | #[Description( 'The stock status is not one of the standard WooCommerce values (e.g. added by a plugin). Inspect raw_stock_status for the underlying value.' )] |
| 21 | case Other = 4; |
| 22 | } |
| 23 |