-
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.
- Loading branch information
1 parent
228d7e0
commit e452be4
Showing
6 changed files
with
167 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
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,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Velhron\DadataBundle\Model\Response\Suggest; | ||
|
||
use Velhron\DadataBundle\Traits\Phone; | ||
|
||
class PhoneResponse extends SuggestResponse | ||
{ | ||
use Phone; | ||
} |
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,58 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Velhron\DadataBundle\Traits; | ||
|
||
trait Phone | ||
{ | ||
/** | ||
* @var string телефон одной строкой как в ЕГРЮЛ | ||
*/ | ||
public $source; | ||
|
||
/** | ||
* @var string тип телефона (мобильный, стационарный, ...) | ||
*/ | ||
public $type; | ||
|
||
/** | ||
* @var string код страны | ||
*/ | ||
public $countryCode; | ||
|
||
/** | ||
* @var string код города / DEF-код | ||
*/ | ||
public $cityCode; | ||
|
||
/** | ||
* @var string локальный номер телефона | ||
*/ | ||
public $number; | ||
|
||
/** | ||
* @var string оператор связи | ||
*/ | ||
public $provider; | ||
|
||
/** | ||
* @var string регион | ||
*/ | ||
public $region; | ||
|
||
/** | ||
* @var string город (только для стационарных телефонов) | ||
*/ | ||
public $city; | ||
|
||
/** | ||
* @var string часовой пояс | ||
*/ | ||
public $timezone; | ||
|
||
/** | ||
* @var string контактное лицо | ||
*/ | ||
public $contact; | ||
} |
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 |
---|---|---|
|
@@ -150,8 +150,41 @@ | |
"qc": "0" | ||
} | ||
}, | ||
"phones": null, | ||
"emails": null, | ||
"phones": [ | ||
{ | ||
"value": "+7 911 1000000", | ||
"unrestricted_value": "+7 911 1000000", | ||
"data": { | ||
"contact": null, | ||
"source": "+7 911 1000000", | ||
"qc": null, | ||
"type": "Мобильный", | ||
"number": "1000000", | ||
"extension": null, | ||
"provider": "ПАО \"Мобильные ТелеСистемы\"", | ||
"country": null, | ||
"region": "Санкт-Петербург и Ленинградская область", | ||
"city": null, | ||
"timezone": "UTC+3", | ||
"country_code": "7", | ||
"city_code": "911", | ||
"qc_conflict": null | ||
} | ||
} | ||
], | ||
"emails": [ | ||
{ | ||
"value": "[email protected]", | ||
"unrestricted_value": "[email protected]", | ||
"data": { | ||
"local": "test", | ||
"domain": "example.com", | ||
"type": null, | ||
"source": "[email protected]", | ||
"qc": null | ||
} | ||
} | ||
], | ||
"ogrn_date": 1029456000000, | ||
"okved_type": "2014", | ||
"employee_count": null | ||
|
@@ -287,8 +320,41 @@ | |
"qc": "0" | ||
} | ||
}, | ||
"phones": null, | ||
"emails": null, | ||
"phones": [ | ||
{ | ||
"value": "+7 911 2000000", | ||
"unrestricted_value": "+7 911 2000000", | ||
"data": { | ||
"contact": null, | ||
"source": "+7 911 2000000", | ||
"qc": null, | ||
"type": "Мобильный", | ||
"number": "2000000", | ||
"extension": null, | ||
"provider": "ПАО \"Мобильные ТелеСистемы\"", | ||
"country": null, | ||
"region": "Санкт-Петербург и Ленинградская область", | ||
"city": null, | ||
"timezone": "UTC+3", | ||
"country_code": "7", | ||
"city_code": "911", | ||
"qc_conflict": null | ||
} | ||
} | ||
], | ||
"emails": [ | ||
{ | ||
"value": "[email protected]", | ||
"unrestricted_value": "[email protected]", | ||
"data": { | ||
"local": "test", | ||
"domain": "example.com", | ||
"type": null, | ||
"source": "[email protected]", | ||
"qc": null | ||
} | ||
} | ||
], | ||
"ogrn_date": null, | ||
"okved_type": null, | ||
"employee_count": null | ||
|