-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added oktmo, update party, update address (#6)
* update PartyRequest and PartyResponse * update Address (added new properties) * added OKTMO * fix test
- Loading branch information
Showing
11 changed files
with
217 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Velhron\DadataBundle\Model\Request\Find; | ||
|
||
class OktmoRequest extends FindRequest | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Velhron\DadataBundle\Model\Request\Suggest; | ||
|
||
class OktmoRequest extends SuggestRequest | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Velhron\DadataBundle\Model\Response\Suggest; | ||
|
||
class OktmoResponse extends SuggestResponse | ||
{ | ||
/** | ||
* @var string Код ОКТМО | ||
*/ | ||
public $oktmo; | ||
|
||
/** | ||
* @var string Тип муниципального района | ||
*/ | ||
public $areaType; | ||
|
||
/** | ||
* @var string Код муниципального района | ||
*/ | ||
public $areaCode; | ||
|
||
/** | ||
* @var string Название муниципального района | ||
*/ | ||
public $area; | ||
|
||
/** | ||
* @var string Тип муниципального поселения | ||
* | ||
* 1 — городское поселение | ||
* 2 — сельское поселение | ||
* 3 — межселенная территория в составе муниципального района | ||
* 4 — внутригородской район городского округа | ||
*/ | ||
public $subareaType; | ||
|
||
/** | ||
* @var string Код муниципального поселения | ||
*/ | ||
public $subareaCode; | ||
|
||
/** | ||
* @var string Название муниципального поселения | ||
*/ | ||
public $subarea; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"suggestions": [ | ||
{ | ||
"value": "54623425", | ||
"unrestricted_value": "54623425", | ||
"data": { | ||
"oktmo": "54623425", | ||
"area_type": "1", | ||
"area_code": "54623000", | ||
"area": "Колпнянский", | ||
"subarea_type": "2", | ||
"subarea_code": "54623425", | ||
"subarea": "Ярищенское" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"suggestions": [ | ||
{ | ||
"value": "54623422", | ||
"unrestricted_value": "54623422", | ||
"data": { | ||
"oktmo": "54623422", | ||
"area_type": "1", | ||
"area_code": "54623000", | ||
"area": "Колпнянский", | ||
"subarea_type": "2", | ||
"subarea_code": "54623422", | ||
"subarea": "Ушаковское" | ||
} | ||
}, | ||
{ | ||
"value": "54623425", | ||
"unrestricted_value": "54623425", | ||
"data": { | ||
"oktmo": "54623425", | ||
"area_type": "1", | ||
"area_code": "54623000", | ||
"area": "Колпнянский", | ||
"subarea_type": "2", | ||
"subarea_code": "54623425", | ||
"subarea": "Ярищенское" | ||
} | ||
} | ||
] | ||
} |