👁 查看:DiscountType.php
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce/src/Api/Enums/Coupons/DiscountType.php
大小:702 B · 修改:2026-07-15 13:50:33 · 权限:0644 · 可写
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Enums\Coupons;

use Automattic\WooCommerce\Api\Attributes\Description;

#[Description( 'The type of discount for a coupon.' )]
enum DiscountType: string {
	#[Description( 'A percentage discount.' )]
	case Percent = 'percent';

	#[Description( 'A fixed amount discount applied to the cart.' )]
	case FixedCart = 'fixed_cart';

	#[Description( 'A fixed amount discount applied to each eligible product.' )]
	case FixedProduct = 'fixed_product';

	#[Description( 'The discount type is not one of the standard WooCommerce values (e.g. added by a plugin). Inspect raw_discount_type for the underlying value.' )]
	case Other = 'other';
}