<?php

declare(strict_types=1);

namespace ImovelZapAi\Financial\Domain\Enums;

enum TransactionStatus: string
{
    case Pending = 'pending';
    case Partial = 'partial';
    case Paid = 'paid';
    case Overdue = 'overdue';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::Pending => 'Pendente',
            self::Partial => 'Parcial',
            self::Paid => 'Pago',
            self::Overdue => 'Em atraso',
            self::Cancelled => 'Cancelado',
        };
    }
}
