HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: /wordpress/plugins/woocommerce-fraud-protection/0.1.5/src/FraudProtection/Schemas/FraudDecision.php
<?php
/**
 * FraudDecision enum file.
 */

declare( strict_types=1 );

namespace Automattic\WooCommerce\FraudProtection\Schemas;

defined( 'ABSPATH' ) || exit;

/**
 * Fraud decision returned by the Blackbox verify API and applied to a session.
 *
 * Fail-open: any unrecognized or non-actionable verify response is treated as `Allow`.
 */
enum FraudDecision: string {

	/** Allow the session. */
	case Allow = 'allow';

	/** Block the session. */
	case Block = 'block';

	/** Challenge the session (defined but not acted on; falls open to Allow). */
	case Challenge = 'challenge';

	/**
	 * Decisions the plugin acts on. A verify response outside this set fails open to Allow.
	 *
	 * @var array<int, self>
	 */
	public const ACTIONABLE = array( self::Allow, self::Block );
}