• File: SuppressionReason.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/woocommerce/src/Internal/PushNotifications/Enums/SuppressionReason.php
  • Date Modified: 10/26/2026 10:38 AM
  • File size: 1.12 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Internal\PushNotifications\Enums;

/**
 * Reasons a notification was not sent to a token.
 */
final class SuppressionReason {

	/**
	 * The user turned this notification type off.
	 *
	 * @var string
	 */
	public const NOTIFICATIONS_OFF = 'notifications_off';

	/**
	 * The user turned off this stock event type.
	 *
	 * @var string
	 */
	public const STOCK_ALERT_OFF = 'stock_alert_off';

	/**
	 * The order could not be loaded.
	 *
	 * @var string
	 */
	public const ORDER_MISSING = 'order_missing';

	/**
	 * The order total is below the amount the user asked to be told about.
	 *
	 * @var string
	 */
	public const BELOW_MIN_AMOUNT = 'below_min_amount';

	/**
	 * The review could not be loaded.
	 *
	 * @var string
	 */
	public const REVIEW_MISSING = 'review_missing';

	/**
	 * The review's rating is above the maximum the user asked to be told about.
	 *
	 * @var string
	 */
	public const ABOVE_MAX_RATING = 'above_max_rating';

	/**
	 * The token has no owning user, so there are no preferences to consult.
	 *
	 * @var string
	 */
	public const NO_ACCOUNT = 'no_account';
}