@@ -106,6 +106,98 @@ public function testDeliveryAddress()
106106        );
107107    }
108108
109+     /** 
110+      * @test  
111+      */ 
112+     public  function  testFiasAddress ()
113+     {
114+         $ this  ->assertSame (
115+             DaDataAddress::fias ('9120b43f-2fae-4838-a144-85e43c2bfb29 ' ),
116+             $ this  ->FiasAddressProvider ()
117+         );
118+     }
119+ 
120+     /** 
121+      * @return array|\array[][] 
122+      */ 
123+     public  function  FiasAddressProvider () : array 
124+     {
125+         return  [
126+             "suggestions "  => [
127+                 [
128+                     "value "  => "г Москва, ул Снежная " ,
129+                     "unrestricted_value "  => "129323, г Москва, ул Снежная " ,
130+                     "data "  => [
131+                         "postal_code "  => "129323 " ,
132+                         "region_fias_id "  => "0c5b2444-70a0-4932-980c-b4dc0d3f02b5 " ,
133+                         "region_kladr_id "  => "7700000000000 " ,
134+                         "region_with_type "  => "г Москва " ,
135+                         "region_type "  => "г " ,
136+                         "region_type_full "  => "город " ,
137+                         "region "  => "Москва " ,
138+                         "area_fias_id "  => null ,
139+                         "area_kladr_id "  => null ,
140+                         "area_with_type "  => null ,
141+                         "area_type "  => null ,
142+                         "area_type_full "  => null ,
143+                         "area "  => null ,
144+                         "city_fias_id "  => null ,
145+                         "city_kladr_id "  => null ,
146+                         "city_with_type "  => null ,
147+                         "city_type "  => null ,
148+                         "city_type_full "  => null ,
149+                         "city "  => null ,
150+                         "city_district_fias_id "  => null ,
151+                         "city_district_kladr_id "  => null ,
152+                         "city_district_with_type "  => null ,
153+                         "city_district_type "  => null ,
154+                         "city_district_type_full "  => null ,
155+                         "city_district "  => null ,
156+                         "settlement_fias_id "  => null ,
157+                         "settlement_kladr_id "  => null ,
158+                         "settlement_with_type "  => null ,
159+                         "settlement_type "  => null ,
160+                         "settlement_type_full "  => null ,
161+                         "settlement "  => null ,
162+                         "planning_structure_fias_id "  => null ,
163+                         "planning_structure_kladr_id "  => null ,
164+                         "planning_structure_with_type "  => null ,
165+                         "planning_structure_type "  => null ,
166+                         "planning_structure_type_full "  => null ,
167+                         "planning_structure "  => null ,
168+                         "street_fias_id "  => "9120b43f-2fae-4838-a144-85e43c2bfb29 " ,
169+                         "street_kladr_id "  => "77000000000268400 " ,
170+                         "street_with_type "  => "ул Снежная " ,
171+                         "street_type "  => "ул " ,
172+                         "street_type_full "  => "улица " ,
173+                         "street "  => "Снежная " ,
174+                         "house_fias_id "  => null ,
175+                         "house_kladr_id "  => null ,
176+                         "house_type "  => null ,
177+                         "house "  => null ,
178+                         "block "  => null ,
179+                         "building_type "  => null ,
180+                         "building "  => null ,
181+                         "fias_id "  => "9120b43f-2fae-4838-a144-85e43c2bfb29 " ,
182+                         "fias_code "  => "7700000000000002684 " ,
183+                         "fias_level "  => "7 " ,
184+                         "fias_actuality_state "  => "0 " ,
185+                         "kladr_id "  => "77000000000268400 " ,
186+                         "capital_marker "  => "0 " ,
187+                         "okato "  => "45280580000 " ,
188+                         "oktmo "  => "45361000 " ,
189+                         "cadastral_number "  => null ,
190+                         "tax_office "  => "7716 " ,
191+                         "tax_office_legal "  => "7716 " ,
192+                         "history_values "  => null ,
193+                         "source "  => null ,
194+                         "qc "  => null ,
195+                     ]
196+                 ]
197+             ]
198+         ];
199+     }
200+ 
109201    /** 
110202     * @return array 
111203     */ 
0 commit comments