CatalogVisibility.php
4 weeks ago
DefaultCustomerAddress.php
2 months ago
FeaturePluginCompatibility.php
4 weeks ago
OrderInternalStatus.php
4 weeks ago
OrderItemType.php
2 months ago
OrderStatus.php
4 weeks ago
PaymentGatewayFeature.php
7 months ago
ProductStatus.php
4 weeks ago
ProductStockStatus.php
4 weeks ago
ProductTaxStatus.php
1 year ago
ProductType.php
4 weeks ago
TaxBasedOn.php
2 months ago
OrderItemType.php
48 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for all the order item types. |
| 9 | * |
| 10 | * @since 10.8.0 |
| 11 | */ |
| 12 | final class OrderItemType { |
| 13 | /** |
| 14 | * Product line item type. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | public const LINE_ITEM = 'line_item'; |
| 19 | |
| 20 | /** |
| 21 | * Fee line item type. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | public const FEE = 'fee'; |
| 26 | |
| 27 | /** |
| 28 | * Shipping line item type. |
| 29 | * |
| 30 | * @var string |
| 31 | */ |
| 32 | public const SHIPPING = 'shipping'; |
| 33 | |
| 34 | /** |
| 35 | * Tax line item type. |
| 36 | * |
| 37 | * @var string |
| 38 | */ |
| 39 | public const TAX = 'tax'; |
| 40 | |
| 41 | /** |
| 42 | * Coupon (discount) line item type. |
| 43 | * |
| 44 | * @var string |
| 45 | */ |
| 46 | public const COUPON = 'coupon'; |
| 47 | } |
| 48 |