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