gillbus 0.22.3 → 0.22.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/structs/segment.rb +18 -0
- data/lib/gillbus/structs/trip.rb +27 -0
- data/lib/gillbus/tickets_booking.rb +2 -0
- data/lib/gillbus/version.rb +1 -1
- data/test/responses/searchTrips-full-carriers-info.xml +231 -0
- data/test/search_trips_test.rb +15 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec10541c6f01af4749c7ab7f7a03792a3ace7e3311a93ec0e4c8a1e0f8d5830d
|
4
|
+
data.tar.gz: ef174f531fdf5a98d0b0643f616b67466d25936c15d24386f4691229ef7b64fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69eac0a96f60a1dc180dedc84cc23559dce13e92924c2fcce9475fc315699a888685ea588f7d860ac1b6dd448718e414af31754802cc779f736bf11424410e97
|
7
|
+
data.tar.gz: 4000a5038917e7efee353b68289a71a417dbc19d95b5b91c3b52a087c5693ab539183db1728a034857a019bc8c969ef372b77d7b25db3faa4566f0e906a63909
|
@@ -67,6 +67,24 @@ class Gillbus
|
|
67
67
|
# => "RU \"ПЕТРОКОМ - АВТО ПЛЮС\" ООО"
|
68
68
|
field :carrier_name
|
69
69
|
|
70
|
+
# => "RU \"Еременчук Е.А.\" ИП"
|
71
|
+
field :carrier_legal_name
|
72
|
+
|
73
|
+
# => "260802027265"
|
74
|
+
field :carrier_inn
|
75
|
+
|
76
|
+
# => "г СНТ Лилия, Московская, Наро-фоминский"
|
77
|
+
field :carrier_address_fact
|
78
|
+
|
79
|
+
# => "г СНТ Лилия, Московская, Наро-фоминский"
|
80
|
+
field :carrier_address_leg
|
81
|
+
|
82
|
+
# => "316265100057314"
|
83
|
+
field :carrier_egrul_egis
|
84
|
+
|
85
|
+
# => "2514411332"
|
86
|
+
field :carrier_ogrn
|
87
|
+
|
70
88
|
# => "09:10"
|
71
89
|
field :time_in_road, :time
|
72
90
|
|
data/lib/gillbus/structs/trip.rb
CHANGED
@@ -71,6 +71,24 @@ class Gillbus
|
|
71
71
|
# => "RU \"ПЕТРОКОМ - АВТО ПЛЮС\" ООО"
|
72
72
|
field :carrier_name
|
73
73
|
|
74
|
+
# => "RU \"Еременчук Е.А.\" ИП"
|
75
|
+
field :carrier_legal_name
|
76
|
+
|
77
|
+
# => "260802027265"
|
78
|
+
field :carrier_inn
|
79
|
+
|
80
|
+
# => "г СНТ Лилия, Московская, Наро-фоминский"
|
81
|
+
field :carrier_address_fact
|
82
|
+
|
83
|
+
# => "г СНТ Лилия, Московская, Наро-фоминский"
|
84
|
+
field :carrier_address_leg
|
85
|
+
|
86
|
+
# => "316265100057314"
|
87
|
+
field :carrier_egrul_egis
|
88
|
+
|
89
|
+
# => "2514411332"
|
90
|
+
field :carrier_ogrn
|
91
|
+
|
74
92
|
# => "09:10"
|
75
93
|
field :time_in_road, :time
|
76
94
|
|
@@ -143,6 +161,15 @@ class Gillbus
|
|
143
161
|
# => "1100"
|
144
162
|
field :total_cost, :money
|
145
163
|
|
164
|
+
# => "1300"
|
165
|
+
field :original_amount, :money
|
166
|
+
|
167
|
+
# => "200"
|
168
|
+
field :discount_value, :money
|
169
|
+
|
170
|
+
# => "13.57"
|
171
|
+
field :discount_percentage
|
172
|
+
|
146
173
|
# => "false"
|
147
174
|
field :fake_time_in_road, :bool
|
148
175
|
|
@@ -137,6 +137,7 @@ class Gillbus
|
|
137
137
|
# :seaman_passport 6 - паспорт моряка
|
138
138
|
# :birth_certificate 7 - свидетельство о рождении
|
139
139
|
# :ussr_passport 8 - паспорт формы СССР
|
140
|
+
# :tax_id 9 - CPF для WL Бразилии
|
140
141
|
attr_accessor :document_type
|
141
142
|
|
142
143
|
# passenger0passport... passengerNpassport (обязательный для авиаперевозки)
|
@@ -212,6 +213,7 @@ class Gillbus
|
|
212
213
|
seaman_passport: 6,
|
213
214
|
birth_certificate: 7,
|
214
215
|
ussr_passport: 8,
|
216
|
+
tax_id: 9,
|
215
217
|
}[value.try(:to_sym)]
|
216
218
|
end
|
217
219
|
end
|
data/lib/gillbus/version.rb
CHANGED
@@ -0,0 +1,231 @@
|
|
1
|
+
<DATA>
|
2
|
+
<COMPLETED>true</COMPLETED>
|
3
|
+
<TRIP>
|
4
|
+
<ID>-340796927707233606</ID>
|
5
|
+
<STATIC_TRIP_ID>5cdc47e62392904e080f164fa2698b43</STATIC_TRIP_ID>
|
6
|
+
<TRIP_ROUTE_ID>A016E31EC8C61A35E053E41C0CB99E98</TRIP_ROUTE_ID>
|
7
|
+
<RES_ID>0</RES_ID>
|
8
|
+
<NUMBER>MD_TEST - Москва - Краснодар Москва - Краснодар</NUMBER>
|
9
|
+
<START_CITY_NAME>Москва</START_CITY_NAME>
|
10
|
+
<END_CITY_NAME>Ростов-на-Дону</END_CITY_NAME>
|
11
|
+
<START_TIMEZONE>Europe/Moscow</START_TIMEZONE>
|
12
|
+
<END_TIMEZONE>Europe/Moscow</END_TIMEZONE>
|
13
|
+
<START_DATE>24.07.2020</START_DATE>
|
14
|
+
<END_DATE>25.07.2020</END_DATE>
|
15
|
+
<START_TIME>11:40</START_TIME>
|
16
|
+
<END_TIME>03:30</END_TIME>
|
17
|
+
<BUS_MODEL>Mercedes BENZ 0404 CARRUS</BUS_MODEL>
|
18
|
+
<BUS_CLASS/>
|
19
|
+
<BUS_ID/>
|
20
|
+
<BUS_FLOORS_NUMBER>1</BUS_FLOORS_NUMBER>
|
21
|
+
<PLATFORM/>
|
22
|
+
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
23
|
+
<SHOW_PICKUP_DROPOFF>false</SHOW_PICKUP_DROPOFF>
|
24
|
+
<BRANDED>false</BRANDED>
|
25
|
+
<HAS_TRANSFER>false</HAS_TRANSFER>
|
26
|
+
<PLACES_COUNT>60</PLACES_COUNT>
|
27
|
+
<FREE_PLACES_COUNT>53</FREE_PLACES_COUNT>
|
28
|
+
<FAKE_FREE_SEAT_COUNT>false</FAKE_FREE_SEAT_COUNT>
|
29
|
+
<FREE_BUSY_PLACES>53/60</FREE_BUSY_PLACES>
|
30
|
+
<CARRIER_ID>6C552CE3DBDC34E2E0530300F00AEA7B</CARRIER_ID>
|
31
|
+
<CARRIER_NAME>"Еременчук Е.А." ИП</CARRIER_NAME>
|
32
|
+
<CARRIER_LEGAL_NAME>RU "Еременчук Е.А." ИП</CARRIER_LEGAL_NAME>
|
33
|
+
<CARRIER_INN>260802027265</CARRIER_INN>
|
34
|
+
<CARRIER_ADDRESS_FACT>г СНТ Лилия, Московская, Наро-фоминский</CARRIER_ADDRESS_FACT>
|
35
|
+
<CARRIER_ADDRESS_LEG>г СНТ Лилия, Московская, Наро-фоминский</CARRIER_ADDRESS_LEG>
|
36
|
+
<CARRIER_EGRUL_EGIS>316265100057314</CARRIER_EGRUL_EGIS>
|
37
|
+
<TIME_IN_ROAD>15:50</TIME_IN_ROAD>
|
38
|
+
<FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
|
39
|
+
<RES_POINT_BEGIN_ID>9DD3E329EC8A3EE2E0530300F00A4CBA</RES_POINT_BEGIN_ID>
|
40
|
+
<POINT_BEGIN_ID>1409820</POINT_BEGIN_ID>
|
41
|
+
<STATION_BEGIN_ID>9DD3E329EC8A3EE2E0530300F00A4CBA</STATION_BEGIN_ID>
|
42
|
+
<STATION_BEGIN_NAME>Автовокзал Битца (ТРЦ "Шелковый Путь")</STATION_BEGIN_NAME>
|
43
|
+
<STATION_BEGIN_ADDRESS>Варшавское шоссе, 21 км, уч. 26</STATION_BEGIN_ADDRESS>
|
44
|
+
<RES_POINT_END_ID>4557C0CAC2CC3C79E0530300F00A06C8</RES_POINT_END_ID>
|
45
|
+
<POINT_END_ID>87348</POINT_END_ID>
|
46
|
+
<STATION_END_ID>4557C0CAC2CC3C79E0530300F00A06C8</STATION_END_ID>
|
47
|
+
<STATION_END_NAME>Автовокзал "Главный"</STATION_END_NAME>
|
48
|
+
<STATION_END_ADDRESS>проспект Сиверса; дом 1</STATION_END_ADDRESS>
|
49
|
+
<RESERVATION_ENABLED>true</RESERVATION_ENABLED>
|
50
|
+
<SALE_ENABLED>true</SALE_ENABLED>
|
51
|
+
<RETURN_ENABLED>true</RETURN_ENABLED>
|
52
|
+
<TIME_FOR_CANCEL>25</TIME_FOR_CANCEL>
|
53
|
+
<TRIP_FULL_SALE>false</TRIP_FULL_SALE>
|
54
|
+
<CAN_DISCOUNT>true</CAN_DISCOUNT>
|
55
|
+
<INTERNATIONAL>false</INTERNATIONAL>
|
56
|
+
<JOIN_BOOK_BUY>true</JOIN_BOOK_BUY>
|
57
|
+
<TRIP_MODE>1</TRIP_MODE>
|
58
|
+
<CUSTOM_STATUS>1</CUSTOM_STATUS>
|
59
|
+
<SPECIAL_CONDITIONS/>
|
60
|
+
<REDIRECT_URL/>
|
61
|
+
<TOTAL_COST>800</TOTAL_COST>
|
62
|
+
<CURRENCY>RUB</CURRENCY>
|
63
|
+
<CURRENCY_CODE>643</CURRENCY_CODE>
|
64
|
+
<TECH_AGREEMENT>false</TECH_AGREEMENT>
|
65
|
+
<CARRIER_CODE/>
|
66
|
+
<TARIFF>
|
67
|
+
<SHORT_NAME>Y</SHORT_NAME>
|
68
|
+
<IS_BASE>true</IS_BASE>
|
69
|
+
<FULL_NAME>Базовый тариф</FULL_NAME>
|
70
|
+
<START_DATE/>
|
71
|
+
<END_DATE/>
|
72
|
+
<DESCRIPTION>Базовый тариф стоимости проезда одного пассажира в одном направлении
|
73
|
+
</DESCRIPTION>
|
74
|
+
<TIME_TO_BUY_RESERVED>2</TIME_TO_BUY_RESERVED>
|
75
|
+
<TIME_TO_STOP_BOOKING>2</TIME_TO_STOP_BOOKING>
|
76
|
+
<TIME_TO_PAY_RESERVATION>22.07.2020 12:51:03</TIME_TO_PAY_RESERVATION>
|
77
|
+
<COST>800</COST>
|
78
|
+
<INSURANCE_COST>0</INSURANCE_COST>
|
79
|
+
<INSURANCE_ID/>
|
80
|
+
<INSURANCE_SUM>0</INSURANCE_SUM>
|
81
|
+
<INSURANCE_CUR/>
|
82
|
+
<AFTER_DISPATCH_NO_RETURN>true</AFTER_DISPATCH_NO_RETURN>
|
83
|
+
<PASSENGER_BIRTHDAY/>
|
84
|
+
<PASSENGER_ISIC_NUMBER/>
|
85
|
+
<PASSENGER_STUDENT_TICKET/>
|
86
|
+
<NOTE/>
|
87
|
+
<WITHOUT_SEAT>N</WITHOUT_SEAT>
|
88
|
+
<RETURN_CAUSE>Возврат маршрутной квитанции более чем за 2 часа до отправления Удерживается при возврате: 5% тарифа. Ориентировочная сумма возврата 760 RUB</RETURN_CAUSE>
|
89
|
+
<RETURN_CAUSE>Возврат маршрутной квитанции в течение 2 часов до отправления Удерживается при возврате: 15% тарифа. Ориентировочная сумма возврата 680 RUB</RETURN_CAUSE>
|
90
|
+
<RETURN_CAUSE>Возврат маршрутной квитанции в случае опоздания к отправлению транспортного средства в течение 3 суток после отправления, при наличии справки из медицинского учреждения (по причине болезни) или акта о несчастном случае Удерживается при возврате: 25% тарифа. Ориентировочная сумма возврата 600 RUB</RETURN_CAUSE>
|
91
|
+
<RETURN_CAUSE>Возврат маршрутной квитанции в случае опоздания к отправлению транспортного средства в течение 3 часов Удерживается при возврате: 25% тарифа. Ориентировочная сумма возврата 600 RUB</RETURN_CAUSE>
|
92
|
+
<RETURN_CAUSE>Принудительно, при отмене рейса, при непредоставлении места, при т/с более низкого класса, задержка отправления т/с более чем на час. Возвращается 100% стоимости билета. Ориентировочная сумма возврата 800 RUB</RETURN_CAUSE>
|
93
|
+
<PROMOTE>false</PROMOTE>
|
94
|
+
<IS_EXCLUSIVE_PRICE>false</IS_EXCLUSIVE_PRICE>
|
95
|
+
<FREE_BOOKING>false</FREE_BOOKING>
|
96
|
+
</TARIFF>
|
97
|
+
<POINT>
|
98
|
+
<NUMBER>0</NUMBER>
|
99
|
+
<ID>1409820</ID>
|
100
|
+
<LOCATION_ID>244430</LOCATION_ID>
|
101
|
+
<GEOGRAPHY_NAME>Москва</GEOGRAPHY_NAME>
|
102
|
+
<NAME>Автовокзал Битца (ТРЦ "Шелковый Путь")</NAME>
|
103
|
+
<ADDRESS>Варшавское шоссе, 21 км, уч. 26</ADDRESS>
|
104
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
105
|
+
<ARRIVAL_DATE>24.07.2020</ARRIVAL_DATE>
|
106
|
+
<ARRIVAL_TIME/>
|
107
|
+
<DISPATCH_DATE>24.07.2020</DISPATCH_DATE>
|
108
|
+
<DISPATCH_TIME>11:40</DISPATCH_TIME>
|
109
|
+
<CHECK_POINT>false</CHECK_POINT>
|
110
|
+
<DISTANCE>0</DISTANCE>
|
111
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
112
|
+
<PLATFORM/>
|
113
|
+
<BUSMODEL/>
|
114
|
+
<AGREED>true</AGREED>
|
115
|
+
</POINT>
|
116
|
+
<POINT>
|
117
|
+
<NUMBER>1</NUMBER>
|
118
|
+
<ID>1647236</ID>
|
119
|
+
<LOCATION_ID>55903</LOCATION_ID>
|
120
|
+
<GEOGRAPHY_NAME>Тула</GEOGRAPHY_NAME>
|
121
|
+
<NAME>Остановка "Памятник Три штыка"</NAME>
|
122
|
+
<ADDRESS>улица Ленина; дом 94</ADDRESS>
|
123
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
124
|
+
<ARRIVAL_DATE>24.07.2020</ARRIVAL_DATE>
|
125
|
+
<ARRIVAL_TIME>14:30</ARRIVAL_TIME>
|
126
|
+
<DISPATCH_DATE>24.07.2020</DISPATCH_DATE>
|
127
|
+
<DISPATCH_TIME>14:35</DISPATCH_TIME>
|
128
|
+
<CHECK_POINT>false</CHECK_POINT>
|
129
|
+
<DISTANCE>182</DISTANCE>
|
130
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
131
|
+
<PLATFORM/>
|
132
|
+
<BUSMODEL/>
|
133
|
+
<AGREED>true</AGREED>
|
134
|
+
</POINT>
|
135
|
+
<POINT>
|
136
|
+
<NUMBER>2</NUMBER>
|
137
|
+
<ID>87015</ID>
|
138
|
+
<LOCATION_ID>41236</LOCATION_ID>
|
139
|
+
<GEOGRAPHY_NAME>Воронеж</GEOGRAPHY_NAME>
|
140
|
+
<NAME>Железнодорожный вокзал "Воронеж-1"</NAME>
|
141
|
+
<ADDRESS>площадь Генерала Черняховского; дом 1</ADDRESS>
|
142
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
143
|
+
<ARRIVAL_DATE>24.07.2020</ARRIVAL_DATE>
|
144
|
+
<ARRIVAL_TIME>19:30</ARRIVAL_TIME>
|
145
|
+
<DISPATCH_DATE>24.07.2020</DISPATCH_DATE>
|
146
|
+
<DISPATCH_TIME>19:35</DISPATCH_TIME>
|
147
|
+
<CHECK_POINT>false</CHECK_POINT>
|
148
|
+
<DISTANCE>523</DISTANCE>
|
149
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
150
|
+
<PLATFORM/>
|
151
|
+
<BUSMODEL/>
|
152
|
+
<AGREED>true</AGREED>
|
153
|
+
</POINT>
|
154
|
+
<POINT>
|
155
|
+
<NUMBER>3</NUMBER>
|
156
|
+
<ID>924816</ID>
|
157
|
+
<LOCATION_ID>91587</LOCATION_ID>
|
158
|
+
<GEOGRAPHY_NAME>Богучар</GEOGRAPHY_NAME>
|
159
|
+
<NAME>Автовокзал Богучар</NAME>
|
160
|
+
<ADDRESS>улица Дзержинского; дом 239</ADDRESS>
|
161
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
162
|
+
<ARRIVAL_DATE>24.07.2020</ARRIVAL_DATE>
|
163
|
+
<ARRIVAL_TIME>23:00</ARRIVAL_TIME>
|
164
|
+
<DISPATCH_DATE>24.07.2020</DISPATCH_DATE>
|
165
|
+
<DISPATCH_TIME>23:05</DISPATCH_TIME>
|
166
|
+
<CHECK_POINT>false</CHECK_POINT>
|
167
|
+
<DISTANCE>746</DISTANCE>
|
168
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
169
|
+
<PLATFORM/>
|
170
|
+
<BUSMODEL/>
|
171
|
+
<AGREED>true</AGREED>
|
172
|
+
</POINT>
|
173
|
+
<POINT>
|
174
|
+
<NUMBER>4</NUMBER>
|
175
|
+
<ID>1647237</ID>
|
176
|
+
<LOCATION_ID>52524</LOCATION_ID>
|
177
|
+
<GEOGRAPHY_NAME>Каменск-Шахтинский</GEOGRAPHY_NAME>
|
178
|
+
<NAME>Остановка Каменск-Шахтинский (трасса)</NAME>
|
179
|
+
<ADDRESS>трасса М-4 Дон, 932 км</ADDRESS>
|
180
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
181
|
+
<ARRIVAL_DATE>25.07.2020</ARRIVAL_DATE>
|
182
|
+
<ARRIVAL_TIME>01:30</ARRIVAL_TIME>
|
183
|
+
<DISPATCH_DATE>25.07.2020</DISPATCH_DATE>
|
184
|
+
<DISPATCH_TIME>01:35</DISPATCH_TIME>
|
185
|
+
<CHECK_POINT>false</CHECK_POINT>
|
186
|
+
<DISTANCE>946</DISTANCE>
|
187
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
188
|
+
<PLATFORM/>
|
189
|
+
<BUSMODEL/>
|
190
|
+
<AGREED>true</AGREED>
|
191
|
+
</POINT>
|
192
|
+
<POINT>
|
193
|
+
<NUMBER>5</NUMBER>
|
194
|
+
<ID>1647238</ID>
|
195
|
+
<LOCATION_ID>243086</LOCATION_ID>
|
196
|
+
<GEOGRAPHY_NAME>Шахты</GEOGRAPHY_NAME>
|
197
|
+
<NAME>Остановка Шахты (трасса)</NAME>
|
198
|
+
<ADDRESS>трасса М-4 Дон, 994 км</ADDRESS>
|
199
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
200
|
+
<ARRIVAL_DATE>25.07.2020</ARRIVAL_DATE>
|
201
|
+
<ARRIVAL_TIME>02:30</ARRIVAL_TIME>
|
202
|
+
<DISPATCH_DATE>25.07.2020</DISPATCH_DATE>
|
203
|
+
<DISPATCH_TIME>02:35</DISPATCH_TIME>
|
204
|
+
<CHECK_POINT>false</CHECK_POINT>
|
205
|
+
<DISTANCE>1022</DISTANCE>
|
206
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
207
|
+
<PLATFORM/>
|
208
|
+
<BUSMODEL/>
|
209
|
+
<AGREED>true</AGREED>
|
210
|
+
</POINT>
|
211
|
+
<POINT>
|
212
|
+
<NUMBER>6</NUMBER>
|
213
|
+
<ID>87348</ID>
|
214
|
+
<LOCATION_ID>52516</LOCATION_ID>
|
215
|
+
<GEOGRAPHY_NAME>Ростов-на-Дону</GEOGRAPHY_NAME>
|
216
|
+
<NAME>Автовокзал "Главный"</NAME>
|
217
|
+
<ADDRESS>проспект Сиверса; дом 1</ADDRESS>
|
218
|
+
<TIMEZONE>Europe/Moscow</TIMEZONE>
|
219
|
+
<ARRIVAL_DATE>25.07.2020</ARRIVAL_DATE>
|
220
|
+
<ARRIVAL_TIME>03:30</ARRIVAL_TIME>
|
221
|
+
<DISPATCH_DATE>25.07.2020</DISPATCH_DATE>
|
222
|
+
<DISPATCH_TIME>03:40</DISPATCH_TIME>
|
223
|
+
<CHECK_POINT>false</CHECK_POINT>
|
224
|
+
<DISTANCE>1075</DISTANCE>
|
225
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
226
|
+
<PLATFORM>26 </PLATFORM>
|
227
|
+
<BUSMODEL/>
|
228
|
+
<AGREED>true</AGREED>
|
229
|
+
</POINT>
|
230
|
+
</TRIP>
|
231
|
+
</DATA>
|
data/test/search_trips_test.rb
CHANGED
@@ -75,6 +75,10 @@ class SearchTripsResponseTest < Minitest::Test
|
|
75
75
|
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-round-trip-offers.xml'))
|
76
76
|
end
|
77
77
|
|
78
|
+
def get_trips_with_full_carriers_info
|
79
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-full-carriers-info.xml'))
|
80
|
+
end
|
81
|
+
|
78
82
|
def test_empty_completed
|
79
83
|
response = get_empty_search_trips
|
80
84
|
assert response.completed
|
@@ -312,4 +316,15 @@ class SearchTripsResponseTest < Minitest::Test
|
|
312
316
|
assert_equal 3, response.trips.count
|
313
317
|
assert_equal response.back_trips.first.id, response.trips.first.id
|
314
318
|
end
|
319
|
+
|
320
|
+
def test_trips_with_full_carriers_info
|
321
|
+
response = get_trips_with_full_carriers_info
|
322
|
+
trip = response.trips.first
|
323
|
+
|
324
|
+
assert_equal "RU \"Еременчук Е.А.\" ИП", trip.carrier_legal_name
|
325
|
+
assert_equal "260802027265", trip.carrier_inn
|
326
|
+
assert_equal "г СНТ Лилия, Московская, Наро-фоминский", trip.carrier_address_fact
|
327
|
+
assert_equal "г СНТ Лилия, Московская, Наро-фоминский", trip.carrier_address_leg
|
328
|
+
assert_equal "316265100057314", trip.carrier_egrul_egis
|
329
|
+
end
|
315
330
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.
|
4
|
+
version: 0.22.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
8
8
|
- Kirill Platonov
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 0.51.0
|
154
|
-
description:
|
154
|
+
description:
|
155
155
|
email:
|
156
156
|
- aronaxis@gmail.com
|
157
157
|
- mail@kirillplatonov.com
|
@@ -276,6 +276,7 @@ files:
|
|
276
276
|
- test/responses/returnPositionFailure.xml
|
277
277
|
- test/responses/returnPositionSuccess.xml
|
278
278
|
- test/responses/searchTrips-empty.xml
|
279
|
+
- test/responses/searchTrips-full-carriers-info.xml
|
279
280
|
- test/responses/searchTrips-insurance.xml
|
280
281
|
- test/responses/searchTrips-new-options-format.xml
|
281
282
|
- test/responses/searchTrips-prod-invalid.xml
|
@@ -298,7 +299,7 @@ homepage: http://gillbus.com/
|
|
298
299
|
licenses:
|
299
300
|
- MIT
|
300
301
|
metadata: {}
|
301
|
-
post_install_message:
|
302
|
+
post_install_message:
|
302
303
|
rdoc_options: []
|
303
304
|
require_paths:
|
304
305
|
- lib
|
@@ -314,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
315
|
version: '0'
|
315
316
|
requirements: []
|
316
317
|
rubygems_version: 3.0.3
|
317
|
-
signing_key:
|
318
|
+
signing_key:
|
318
319
|
specification_version: 4
|
319
320
|
summary: Driver for Gillbus IDS API
|
320
321
|
test_files:
|
@@ -365,6 +366,7 @@ test_files:
|
|
365
366
|
- test/responses/returnPositionFailure.xml
|
366
367
|
- test/responses/returnPositionSuccess.xml
|
367
368
|
- test/responses/searchTrips-empty.xml
|
369
|
+
- test/responses/searchTrips-full-carriers-info.xml
|
368
370
|
- test/responses/searchTrips-insurance.xml
|
369
371
|
- test/responses/searchTrips-new-options-format.xml
|
370
372
|
- test/responses/searchTrips-prod-invalid.xml
|