<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface PaymentRepositoryInterface
{
    /** @return list<array<string, mixed>> */
    public function listByCompany(string $companyId, ?string $branchId = null): array;

    /** @return array<string, mixed>|null */
    public function findById(string $id): ?array;

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

    /** @param array<string, mixed> $payment */
    public function insert(array $payment): void;

    /** @param list<array<string, mixed>> $lines */
    public function insertLines(string $paymentId, array $lines): void;

    public function delete(string $id): void;

    public function nextPaymentNumber(string $companyId): string;
}
