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/DisputeReason.php
<?php
/**
 * DisputeReason enum file.
 */

declare( strict_types=1 );

namespace Automattic\WooCommerce\FraudProtection\Schemas;

defined( 'ABSPATH' ) || exit;

/**
 * Normalized cause of a dispute event, part of the `reason` vocabulary of a report context.
 *
 * Public surface: callers reference these when building a dispute context via
 * `ReportContextData::from_array()`. A dispute draws its reason from this set; a declined or
 * blocked payment draws from `PaymentRefusalReason` instead, and a refund carries no reason.
 */
enum DisputeReason: string {

	case Fraud                 = 'fraud';
	case Unrecognized          = 'unrecognized';
	case SubscriptionCanceled  = 'subscription_canceled';
	case CanceledOrReturned    = 'canceled_or_returned';
	case ProductNotReceived    = 'product_not_received';
	case ProductNotAsDescribed = 'product_not_as_described';
	case CreditNotProcessed    = 'credit_not_processed';
	case Duplicate             = 'duplicate';
	case Bank                  = 'bank';
	case Other                 = 'other';
}