ProductStatus.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Api\Enums\Products; |
| 6 | |
| 7 | use Automattic\WooCommerce\Api\Attributes\Deprecated; |
| 8 | use Automattic\WooCommerce\Api\Attributes\Description; |
| 9 | use Automattic\WooCommerce\Api\Attributes\Name; |
| 10 | |
| 11 | #[Description( 'The publication status of a product.' )] |
| 12 | enum ProductStatus: string { |
| 13 | #[Description( 'The product is a draft.' )] |
| 14 | case Draft = 'draft'; |
| 15 | |
| 16 | #[Description( 'The product is pending review.' )] |
| 17 | case Pending = 'pending'; |
| 18 | |
| 19 | #[Name( 'ACTIVE' )] |
| 20 | #[Description( 'The product is published and visible.' )] |
| 21 | case Published = 'publish'; |
| 22 | |
| 23 | #[Description( 'The product is privately published.' )] |
| 24 | case Private = 'private'; |
| 25 | |
| 26 | #[Description( 'The product is scheduled to be published in the future.' )] |
| 27 | case Future = 'future'; |
| 28 | |
| 29 | #[Deprecated( 'Trashed products should be excluded via status filter.' )] |
| 30 | #[Description( 'The product is in the trash.' )] |
| 31 | case Trash = 'trash'; |
| 32 | |
| 33 | #[Description( 'The product status is not one of the standard WordPress values (e.g. added by a plugin). Inspect raw_status for the underlying value.' )] |
| 34 | case Other = 'other'; |
| 35 | } |
| 36 |