<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

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

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

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

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

    /** @param array<string, mixed> $adjustment */
    public function update(string $id, array $adjustment): void;

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

    public function deleteLines(string $adjustmentId): void;

    public function delete(string $id): void;

    public function nextDocumentNumber(string $companyId, string $type): string;

    public function updateStatus(string $id, string $status, ?string $journalEntryId): void;
}
