<?php

declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Patch;
use App\State\EmployeeRttPaymentProcessor;
use App\State\EmployeeRttPaymentProvider;

#[ApiResource(
    operations: [
        new Patch(
            uriTemplate: '/employees/{id}/rtt-payments',
            security: "is_granted('ROLE_ADMIN')",
            provider: EmployeeRttPaymentProvider::class,
            processor: EmployeeRttPaymentProcessor::class
        ),
    ],
    paginationEnabled: false
)]
final class EmployeeRttPaymentInput
{
    public int $month          = 0;
    public int $base25Minutes  = 0;
    public int $bonus25Minutes = 0;
    public int $base50Minutes  = 0;
    public int $bonus50Minutes = 0;
    public ?int $year          = null;
}
