CatalogVisibility.php
1 year ago
OrderInternalStatus.php
1 year ago
OrderStatus.php
1 year ago
ProductStatus.php
1 year ago
ProductStockStatus.php
1 year ago
ProductTaxStatus.php
1 year ago
ProductType.php
1 year ago
OrderInternalStatus.php
61 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for all the internal order statuses. |
| 9 | * These statuses are used internally by WooCommerce to query database directly. |
| 10 | */ |
| 11 | final class OrderInternalStatus { |
| 12 | /** |
| 13 | * The order is pending payment. |
| 14 | * |
| 15 | * @var string |
| 16 | */ |
| 17 | const PENDING = 'wc-pending'; |
| 18 | |
| 19 | /** |
| 20 | * The order is processing. |
| 21 | * |
| 22 | * @var string |
| 23 | */ |
| 24 | const PROCESSING = 'wc-processing'; |
| 25 | |
| 26 | /** |
| 27 | * The order is on hold. |
| 28 | * |
| 29 | * @var string |
| 30 | */ |
| 31 | const ON_HOLD = 'wc-on-hold'; |
| 32 | |
| 33 | /** |
| 34 | * The order is completed. |
| 35 | * |
| 36 | * @var string |
| 37 | */ |
| 38 | const COMPLETED = 'wc-completed'; |
| 39 | |
| 40 | /** |
| 41 | * The order is cancelled. |
| 42 | * |
| 43 | * @var string |
| 44 | */ |
| 45 | const CANCELLED = 'wc-cancelled'; |
| 46 | |
| 47 | /** |
| 48 | * The order is refunded. |
| 49 | * |
| 50 | * @var string |
| 51 | */ |
| 52 | const REFUNDED = 'wc-refunded'; |
| 53 | |
| 54 | /** |
| 55 | * The order is failed. |
| 56 | * |
| 57 | * @var string |
| 58 | */ |
| 59 | const FAILED = 'wc-failed'; |
| 60 | } |
| 61 |