Skip to content

Commit 6ff1745

Browse files
authored
Merge pull request #3 from botgun/fix/issue-2-cast-error
fix/issue #2 cast error
2 parents ae0f237 + eb28283 commit 6ff1745

File tree

3 files changed

+62
-11
lines changed

3 files changed

+62
-11
lines changed

src/Objects/Organization/Ru/Founder.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,26 @@
88
* @property string|null $ogrn
99
* @property string|null $inn
1010
* @property string|null $name
11-
* @property string|null $fio
11+
* @property Fio|null $fio
1212
* @property string|null $hid
1313
* @property string|null $type
14-
* @property Share $share
15-
* @property Invalidity $invalidity
14+
* @property string|null $start_date
15+
* @property Share|null $share
16+
* @property Invalidity|null $invalidity
17+
* @property Decision|null $decision
1618
*/
1719
class Founder extends BaseObject
1820
{
1921
protected array $attributes = [
2022
'ogrn' => 'string|null',
2123
'inn' => 'string|null',
2224
'name' => 'string|null',
23-
'fio' => 'string|null',
25+
'fio' => 'Organization\\Ru\\Fio',
2426
'hid' => 'string|null',
2527
'type' => 'string|null',
28+
'start_date' => 'string|null',
2629
'share' => 'Organization\\Ru\\Share',
2730
'invalidity' => 'Organization\\Ru\\Invalidity',
31+
'decision' => 'Organization\\Ru\\Decision',
2832
];
2933
}

src/Objects/Organization/Ru/Management.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,31 @@
55
use BotGun\DaData\Objects\BaseObject;
66

77
/**
8+
* @property string|null $ogrn
9+
* @property string|null $inn
810
* @property string|null $name
11+
* @property Fio|null $fio
912
* @property string|null $post
10-
* @property string|null $disqualified
13+
* @property string|null $hid
14+
* @property string|null $type
15+
* @property string|null $start_date
16+
* @property Share|null $share
17+
* @property Invalidity|null $invalidity
18+
* @property Decision|null $decision
1119
*/
1220
class Management extends BaseObject
1321
{
1422
protected array $attributes = [
23+
'ogrn' => 'string|null',
24+
'inn' => 'string|null',
1525
'name' => 'string|null',
26+
'fio' => 'Organization\\Ru\\Fio',
1627
'post' => 'string|null',
17-
'disqualified' => 'string|null',
28+
'hid' => 'string|null',
29+
'type' => 'string|null',
30+
'start_date' => 'string|null',
31+
'share' => 'Organization\\Ru\\Share',
32+
'invalidity' => 'Organization\\Ru\\Invalidity',
33+
'decision' => 'Organization\\Ru\\Decision',
1834
];
1935
}

src/Objects/Organization/Ru/Organization.php

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,42 @@
55
use BotGun\DaData\Objects\BaseObject;
66

77
/**
8-
* @property int|null $kpp
9-
* @property Capital $capital
10-
* @property string $invalid
11-
* @property Management $management
12-
* @property Citizenship $citizenship
8+
* @property integer $inn
9+
* @property integer|null $kpp
10+
* @property integer|null $ogrn
11+
* @property string|null $ogrn_date
12+
* @property string|null $hid
13+
* @property string $type
14+
* @property Name|null $name
15+
* @property Fio|null $fio
16+
* @property string|null $okato
17+
* @property string|null $oktmo
18+
* @property string|null $okpo
19+
* @property string|null $okogu
20+
* @property string|null $okfs
21+
* @property string|null $okved
22+
* @property string|null $okved_type
23+
* @property Opf|null $opf
24+
* @property Okveds|null $okveds
25+
* @property Management[] $management
26+
* @property integer|null $branch_count
27+
* @property string|null $branch_type
28+
* @property Address|null $address
29+
* @property State|null $state
30+
* @property integer|null $employee_count
31+
* @property Finance|null $finance
32+
* @property Authorities|null $authorities
33+
* @property Citizenship|null $citizenship
34+
* @property Founder[]|null $founders
35+
* @property Manager[]|null $managers
36+
* @property Predecessor|null $predecessors
37+
* @property Successor[]|null $successors
38+
* @property Capital|null $capital
39+
* @property boolean|null $invalid
40+
* @property Document|null $documents
41+
* @property License|null $licenses
42+
* @property OrganizationPhone[]|null $phones
43+
* @property OrganizationEmail[]|null $emails
1344
*/
1445
class Organization extends BaseObject
1546
{

0 commit comments

Comments
 (0)