<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface TaxRateRepositoryInterface
{
    public function findById(string $id): ?array;

    public function findByName(string $companyId, string $name): ?array;

    /** @return list<array<string, mixed>> */
    public function listByCompany(string $companyId): array;

    public function insert(
        string $id,
        string $companyId,
        string $name,
        float $rate,
        string $type
    ): void;

    public function update(
        string $id,
        string $name,
        float $rate,
        string $type,
        bool $isActive
    ): void;

    public function delete(string $id): void;
}
