<?php

declare(strict_types=1);

namespace App\Services\DaData\Dto;

final class PartyLookupResult
{
    /** @param  array<string,mixed>  $raw */
    public function __construct(
        public readonly string $legalName,
        public readonly ?string $kpp,
        public readonly ?string $ogrn,
        public readonly ?string $address,
        public readonly string $type,   // 'LEGAL' | 'INDIVIDUAL' | ''
        public readonly array $raw,
    ) {}
}
