<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum MarketplaceFeeValueType: string
{
    use ProvidesEnumOptions;

    case FLAT = 'flat';
    case PERCENT = 'percent';

    public function label(): string
    {
        return match ($this) {
            self::FLAT => 'Flat (Rp)',
            self::PERCENT => 'Persentase (%)',
        };
    }
}
