<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

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

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

    public function insert(
        string $id,
        string $companyId,
        string $name,
        ?string $code,
        ?string $address,
        ?string $phone,
        bool $isMain,
        string $operatingCurrency
    ): void;

    public function update(
        string $id,
        string $name,
        ?string $code,
        ?string $address,
        ?string $phone,
        bool $isMain,
        bool $isActive,
        string $operatingCurrency
    ): void;

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

