<?php

namespace App\Enums;

enum PaymentStatus: string
{
    case Draft = 'draft';
    case Ready = 'ready';
    case Sent = 'sent';
    case Viewed = 'viewed';
    case Paid = 'paid';
    case Failed = 'failed';
    case Canceled = 'canceled';
    case ManuallyConfirmed = 'manually_confirmed';

    public function isCollected(): bool
    {
        return in_array($this, [self::Paid, self::ManuallyConfirmed], true);
    }
}
