<?php

namespace App\Domain\Financial\Enums;

enum PaymentStatus: string
{
    case Pending = 'pending';
    case Confirmed = 'confirmed';
    case Failed = 'failed';
    case Cancelled = 'cancelled';
    case Refunded = 'refunded';

    public function label(): string
    {
        return match ($this) {
            self::Pending => 'معلق',
            self::Confirmed => 'مؤكد',
            self::Failed => 'فشل',
            self::Cancelled => 'ملغى',
            self::Refunded => 'مسترد',
        };
    }
}
