gillbus 0.16.10 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/search_trips.rb +3 -0
- data/lib/gillbus/structs/tariff.rb +10 -0
- data/lib/gillbus/tickets_booking.rb +7 -0
- data/lib/gillbus/version.rb +1 -1
- data/test/responses/searchTrips-insurance.xml +633 -0
- data/test/search_trips_test.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5a6cb038ad9fe570ef699438a7a91405a53d3f
|
4
|
+
data.tar.gz: 2e4a1be94f52db9cb4dba62d279dbf1272a721d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070b85b2fc0566c0c093860ccced6e1d499491ac65ba8c5992073d3ec3ea4ffe5b1584204329950479348d1ceb926ecbc517cc89440f8f562270d2a211cec1af
|
7
|
+
data.tar.gz: 40eec3620c868a59316945791e810289b07be7f71445c89c9a2e0597cd58d7d66f8f80632f4ebb807589839ef79b8f314e08ee9b59848e6dd5d05978cd523cf3
|
data/lib/gillbus/search_trips.rb
CHANGED
@@ -89,6 +89,8 @@ class Gillbus
|
|
89
89
|
# По умолчанию услуги не возвращаются.
|
90
90
|
attr_accessor :trip_options
|
91
91
|
|
92
|
+
attr_accessor :insurance_id
|
93
|
+
|
92
94
|
def params
|
93
95
|
compact(
|
94
96
|
selectedModes: modes(selected_modes),
|
@@ -104,6 +106,7 @@ class Gillbus
|
|
104
106
|
waitTimeout: wait_timeout,
|
105
107
|
onlyBranded: bool(only_branded),
|
106
108
|
tripOptions: bool(trip_options),
|
109
|
+
insuranceId: insurance_id,
|
107
110
|
**passengers_data,
|
108
111
|
)
|
109
112
|
end
|
@@ -50,11 +50,21 @@ class Gillbus
|
|
50
50
|
|
51
51
|
field :is_exclusive_price, :bool
|
52
52
|
|
53
|
+
field :insurance_id, :int
|
54
|
+
|
55
|
+
field :insurance_cost, :insurance_money
|
56
|
+
|
57
|
+
field :insurance_sum, :insurance_money
|
58
|
+
|
53
59
|
parser do
|
54
60
|
def money(val)
|
55
61
|
Monetize.parse(val, doc[:_currency])
|
56
62
|
end
|
57
63
|
|
64
|
+
def insurance_money(val)
|
65
|
+
Monetize.parse(val, doc['INSURANCE_CUR'])
|
66
|
+
end
|
67
|
+
|
58
68
|
def string_with_possible_attributes(val)
|
59
69
|
[val].flatten.map do |value|
|
60
70
|
if value.is_a? Hash
|
@@ -147,6 +147,11 @@ class Gillbus
|
|
147
147
|
# Величина скидки в валюте продажи для пассажира с порядковым номером 0…N.
|
148
148
|
attr_accessor :discount
|
149
149
|
|
150
|
+
|
151
|
+
attr_accessor :insurance
|
152
|
+
|
153
|
+
attr_accessor :insurance_id
|
154
|
+
|
150
155
|
def params(prefix = '')
|
151
156
|
compact(
|
152
157
|
birthday: date(birthday),
|
@@ -162,6 +167,8 @@ class Gillbus
|
|
162
167
|
citizenship: citizenship,
|
163
168
|
gender: gender,
|
164
169
|
discountValue: discount.to_f.to_s,
|
170
|
+
insurance: insurance,
|
171
|
+
insuranceId: insurance_id,
|
165
172
|
).map { |k, v| [:"#{prefix}#{k}", v] }.to_h
|
166
173
|
end
|
167
174
|
|
data/lib/gillbus/version.rb
CHANGED
@@ -0,0 +1,633 @@
|
|
1
|
+
<DATA>
|
2
|
+
<COMPLETED>true</COMPLETED>
|
3
|
+
<TRIP>
|
4
|
+
<ID>6299289524871907719</ID>
|
5
|
+
<RES_ID>0</RES_ID>
|
6
|
+
<NUMBER>ЗНМ002/01 Киев - Херсон</NUMBER>
|
7
|
+
<START_CITY_NAME>Киев</START_CITY_NAME>
|
8
|
+
<END_CITY_NAME>Николаев</END_CITY_NAME>
|
9
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
10
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
11
|
+
<START_DATE>07.02.2018</START_DATE>
|
12
|
+
<END_DATE>07.02.2018</END_DATE>
|
13
|
+
<START_TIME>12:00</START_TIME>
|
14
|
+
<END_TIME>19:00</END_TIME>
|
15
|
+
<BUS_MODEL>Mercedes Sprinter(CB)</BUS_MODEL>
|
16
|
+
<BUS_CLASS/>
|
17
|
+
<BUS_ID/>
|
18
|
+
<BUS_FLOORS_NUMBER>1</BUS_FLOORS_NUMBER>
|
19
|
+
<PLATFORM/>
|
20
|
+
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
21
|
+
<SHOW_PICKUP_DROPOFF>false</SHOW_PICKUP_DROPOFF>
|
22
|
+
<BRANDED>false</BRANDED>
|
23
|
+
<HAS_TRANSFER>false</HAS_TRANSFER>
|
24
|
+
<PLACES_COUNT>18</PLACES_COUNT>
|
25
|
+
<FREE_PLACES_COUNT>9</FREE_PLACES_COUNT>
|
26
|
+
<FREE_BUSY_PLACES>9/18</FREE_BUSY_PLACES>
|
27
|
+
<CARRIER_ID>44A40567B7C20165E0530300F00AE0C5</CARRIER_ID>
|
28
|
+
<CARRIER_NAME>"Заброцька Н.Н." ФЛП</CARRIER_NAME>
|
29
|
+
<TIME_IN_ROAD>07:00</TIME_IN_ROAD>
|
30
|
+
<FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
|
31
|
+
<STATION_BEGIN_ID>34C23D90432478D2E0530300F00A43D5</STATION_BEGIN_ID>
|
32
|
+
<STATION_BEGIN_NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</STATION_BEGIN_NAME>
|
33
|
+
<STATION_BEGIN_ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</STATION_BEGIN_ADDRESS>
|
34
|
+
<STATION_END_ID>44CEBC33E73F38F4E0530300F00A636E</STATION_END_ID>
|
35
|
+
<STATION_END_NAME>Остановка Николаев</STATION_END_NAME>
|
36
|
+
<STATION_END_ADDRESS>улица Садовая</STATION_END_ADDRESS>
|
37
|
+
<RESERVATION_ENABLED>true</RESERVATION_ENABLED>
|
38
|
+
<SALE_ENABLED>true</SALE_ENABLED>
|
39
|
+
<RETURN_ENABLED>false</RETURN_ENABLED>
|
40
|
+
<TIME_FOR_CANCEL>40</TIME_FOR_CANCEL>
|
41
|
+
<TRIP_FULL_SALE>false</TRIP_FULL_SALE>
|
42
|
+
<CAN_DISCOUNT>true</CAN_DISCOUNT>
|
43
|
+
<INTERNATIONAL>false</INTERNATIONAL>
|
44
|
+
<JOIN_BOOK_BUY>true</JOIN_BOOK_BUY>
|
45
|
+
<TRIP_MODE>1</TRIP_MODE>
|
46
|
+
<CUSTOM_STATUS>0</CUSTOM_STATUS>
|
47
|
+
<SPECIAL_CONDITIONS/>
|
48
|
+
<REDIRECT_URL/>
|
49
|
+
<IMAGE_URL>null</IMAGE_URL>
|
50
|
+
<START_POINT_TYPE>null</START_POINT_TYPE>
|
51
|
+
<VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
|
52
|
+
<VEHICLE_FEATURES>null</VEHICLE_FEATURES>
|
53
|
+
<TOTAL_COST>963.39</TOTAL_COST>
|
54
|
+
<CURRENCY>RUB</CURRENCY>
|
55
|
+
<CURRENCY_CODE>643</CURRENCY_CODE>
|
56
|
+
<TARIFF>
|
57
|
+
<SHORT_NAME>Y1</SHORT_NAME>
|
58
|
+
<FULL_NAME>Базовый тариф </FULL_NAME>
|
59
|
+
<START_DATE>01.12.2017</START_DATE>
|
60
|
+
<END_DATE/>
|
61
|
+
<DESCRIPTION>Базовый тариф в одном направлении
|
62
|
+
</DESCRIPTION>
|
63
|
+
<TIME_TO_BUY_RESERVED>24</TIME_TO_BUY_RESERVED>
|
64
|
+
<TIME_TO_STOP_BOOKING>10</TIME_TO_STOP_BOOKING>
|
65
|
+
<TIME_TO_PAY_RESERVATION>06.02.2018 13:21:52</TIME_TO_PAY_RESERVATION>
|
66
|
+
<COST>963.39</COST>
|
67
|
+
<INSURANCE_COST>100</INSURANCE_COST>
|
68
|
+
<INSURANCE_ID>1</INSURANCE_ID>
|
69
|
+
<INSURANCE_SUM>100000</INSURANCE_SUM>
|
70
|
+
<INSURANCE_CUR>RUB</INSURANCE_CUR>
|
71
|
+
<AFTER_DISPATCH_NO_RETURN>true</AFTER_DISPATCH_NO_RETURN>
|
72
|
+
<PASSENGER_BIRTHDAY/>
|
73
|
+
<PASSENGER_ISIC_NUMBER/>
|
74
|
+
<PASSENGER_STUDENT_TICKET/>
|
75
|
+
<NOTE/>
|
76
|
+
<RETURN_CAUSE>Добровольно, более чем за 2 ч., до отправления рейса. Возвращается 100% стоимости тарифа. Ориентировочная сумма возврата 802.82</RETURN_CAUSE>
|
77
|
+
<RETURN_CAUSE>Добровольно, более чем за 10 мин., менее чем за 2 ч., до отправления рейса. Удерживается при возврате: 15% тарифа. Ориентировочная сумма возврата 661.15</RETURN_CAUSE>
|
78
|
+
<RETURN_CAUSE>Добровольно, менее чем за 10 мин., до отправления рейса. Удерживается при возврате: 25% тарифа. Ориентировочная сумма возврата 566.7</RETURN_CAUSE>
|
79
|
+
<RETURN_CAUSE>Принудительно, при отмене рейса, при непредоставлении места, при т/с более низкого класса. Возвращается 100% стоимости билета. Ориентировочная сумма возврата 963.39</RETURN_CAUSE>
|
80
|
+
<PROMOTE>false</PROMOTE>
|
81
|
+
<IS_EXCLUSIVE_PRICE>false</IS_EXCLUSIVE_PRICE>
|
82
|
+
</TARIFF>
|
83
|
+
<POINT>
|
84
|
+
<NUMBER>0</NUMBER>
|
85
|
+
<GEOGRAPHY_NAME>Киев</GEOGRAPHY_NAME>
|
86
|
+
<NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</NAME>
|
87
|
+
<ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</ADDRESS>
|
88
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
89
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
90
|
+
<ARRIVAL_TIME/>
|
91
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
92
|
+
<DISPATCH_TIME>12:00</DISPATCH_TIME>
|
93
|
+
<CHECK_POINT>false</CHECK_POINT>
|
94
|
+
<DISTANCE>0</DISTANCE>
|
95
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
96
|
+
<PLATFORM/>
|
97
|
+
<BUSMODEL>Mercedes Sprinter(CB)</BUSMODEL>
|
98
|
+
<AGREED>true</AGREED>
|
99
|
+
</POINT>
|
100
|
+
<POINT>
|
101
|
+
<NUMBER>1</NUMBER>
|
102
|
+
<GEOGRAPHY_NAME>Первомайск</GEOGRAPHY_NAME>
|
103
|
+
<NAME>Первомайск, Автостанция</NAME>
|
104
|
+
<ADDRESS/>
|
105
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
106
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
107
|
+
<ARRIVAL_TIME>16:20</ARRIVAL_TIME>
|
108
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
109
|
+
<DISPATCH_TIME>16:25</DISPATCH_TIME>
|
110
|
+
<CHECK_POINT>false</CHECK_POINT>
|
111
|
+
<DISTANCE>0.3</DISTANCE>
|
112
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
113
|
+
<PLATFORM/>
|
114
|
+
<BUSMODEL/>
|
115
|
+
<AGREED>true</AGREED>
|
116
|
+
</POINT>
|
117
|
+
<POINT>
|
118
|
+
<NUMBER>2</NUMBER>
|
119
|
+
<GEOGRAPHY_NAME>Вознесенск</GEOGRAPHY_NAME>
|
120
|
+
<NAME>ВОЗНЕСЕНСК_АС</NAME>
|
121
|
+
<ADDRESS/>
|
122
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
123
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
124
|
+
<ARRIVAL_TIME>17:20</ARRIVAL_TIME>
|
125
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
126
|
+
<DISPATCH_TIME>17:25</DISPATCH_TIME>
|
127
|
+
<CHECK_POINT>false</CHECK_POINT>
|
128
|
+
<DISTANCE>0.7</DISTANCE>
|
129
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
130
|
+
<PLATFORM/>
|
131
|
+
<BUSMODEL>Mercedes Sprinter(CB)</BUSMODEL>
|
132
|
+
<AGREED>true</AGREED>
|
133
|
+
</POINT>
|
134
|
+
<POINT>
|
135
|
+
<NUMBER>3</NUMBER>
|
136
|
+
<GEOGRAPHY_NAME>Николаев</GEOGRAPHY_NAME>
|
137
|
+
<NAME>Остановка Николаев</NAME>
|
138
|
+
<ADDRESS>улица Садовая</ADDRESS>
|
139
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
140
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
141
|
+
<ARRIVAL_TIME>19:00</ARRIVAL_TIME>
|
142
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
143
|
+
<DISPATCH_TIME>19:05</DISPATCH_TIME>
|
144
|
+
<CHECK_POINT>false</CHECK_POINT>
|
145
|
+
<DISTANCE>1</DISTANCE>
|
146
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
147
|
+
<PLATFORM/>
|
148
|
+
<BUSMODEL>Mercedes Sprinter(CB)</BUSMODEL>
|
149
|
+
<AGREED>true</AGREED>
|
150
|
+
</POINT>
|
151
|
+
</TRIP>
|
152
|
+
<TRIP>
|
153
|
+
<ID>-5328757668125522911</ID>
|
154
|
+
<RES_ID>0</RES_ID>
|
155
|
+
<NUMBER>ЗНМ002/02 Киев - Херсон</NUMBER>
|
156
|
+
<START_CITY_NAME>Киев</START_CITY_NAME>
|
157
|
+
<END_CITY_NAME>Николаев</END_CITY_NAME>
|
158
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
159
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
160
|
+
<START_DATE>07.02.2018</START_DATE>
|
161
|
+
<END_DATE>07.02.2018</END_DATE>
|
162
|
+
<START_TIME>15:00</START_TIME>
|
163
|
+
<END_TIME>21:55</END_TIME>
|
164
|
+
<BUS_MODEL>Mercedes Sprinter(CB)</BUS_MODEL>
|
165
|
+
<BUS_CLASS/>
|
166
|
+
<BUS_ID/>
|
167
|
+
<BUS_FLOORS_NUMBER>1</BUS_FLOORS_NUMBER>
|
168
|
+
<PLATFORM/>
|
169
|
+
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
170
|
+
<SHOW_PICKUP_DROPOFF>false</SHOW_PICKUP_DROPOFF>
|
171
|
+
<BRANDED>false</BRANDED>
|
172
|
+
<HAS_TRANSFER>false</HAS_TRANSFER>
|
173
|
+
<PLACES_COUNT>18</PLACES_COUNT>
|
174
|
+
<FREE_PLACES_COUNT>10</FREE_PLACES_COUNT>
|
175
|
+
<FREE_BUSY_PLACES>10/18</FREE_BUSY_PLACES>
|
176
|
+
<CARRIER_ID>44A40567B7C20165E0530300F00AE0C5</CARRIER_ID>
|
177
|
+
<CARRIER_NAME>"Заброцька Н.Н." ФЛП</CARRIER_NAME>
|
178
|
+
<TIME_IN_ROAD>06:55</TIME_IN_ROAD>
|
179
|
+
<FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
|
180
|
+
<STATION_BEGIN_ID>34C23D90432478D2E0530300F00A43D5</STATION_BEGIN_ID>
|
181
|
+
<STATION_BEGIN_NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</STATION_BEGIN_NAME>
|
182
|
+
<STATION_BEGIN_ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</STATION_BEGIN_ADDRESS>
|
183
|
+
<STATION_END_ID>44CEBC33E73F38F4E0530300F00A636E</STATION_END_ID>
|
184
|
+
<STATION_END_NAME>Остановка Николаев</STATION_END_NAME>
|
185
|
+
<STATION_END_ADDRESS>улица Садовая</STATION_END_ADDRESS>
|
186
|
+
<RESERVATION_ENABLED>true</RESERVATION_ENABLED>
|
187
|
+
<SALE_ENABLED>true</SALE_ENABLED>
|
188
|
+
<RETURN_ENABLED>false</RETURN_ENABLED>
|
189
|
+
<TIME_FOR_CANCEL>40</TIME_FOR_CANCEL>
|
190
|
+
<TRIP_FULL_SALE>false</TRIP_FULL_SALE>
|
191
|
+
<CAN_DISCOUNT>true</CAN_DISCOUNT>
|
192
|
+
<INTERNATIONAL>false</INTERNATIONAL>
|
193
|
+
<JOIN_BOOK_BUY>true</JOIN_BOOK_BUY>
|
194
|
+
<TRIP_MODE>1</TRIP_MODE>
|
195
|
+
<CUSTOM_STATUS>0</CUSTOM_STATUS>
|
196
|
+
<SPECIAL_CONDITIONS/>
|
197
|
+
<REDIRECT_URL/>
|
198
|
+
<IMAGE_URL>null</IMAGE_URL>
|
199
|
+
<START_POINT_TYPE>null</START_POINT_TYPE>
|
200
|
+
<VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
|
201
|
+
<VEHICLE_FEATURES>null</VEHICLE_FEATURES>
|
202
|
+
<TOTAL_COST>963.39</TOTAL_COST>
|
203
|
+
<CURRENCY>RUB</CURRENCY>
|
204
|
+
<CURRENCY_CODE>643</CURRENCY_CODE>
|
205
|
+
<TARIFF>
|
206
|
+
<SHORT_NAME>Y1</SHORT_NAME>
|
207
|
+
<FULL_NAME>Базовый тариф </FULL_NAME>
|
208
|
+
<START_DATE>01.12.2017</START_DATE>
|
209
|
+
<END_DATE/>
|
210
|
+
<DESCRIPTION>Базовый тариф в одном направлении
|
211
|
+
</DESCRIPTION>
|
212
|
+
<TIME_TO_BUY_RESERVED>24</TIME_TO_BUY_RESERVED>
|
213
|
+
<TIME_TO_STOP_BOOKING>10</TIME_TO_STOP_BOOKING>
|
214
|
+
<TIME_TO_PAY_RESERVATION>06.02.2018 13:21:52</TIME_TO_PAY_RESERVATION>
|
215
|
+
<COST>963.39</COST>
|
216
|
+
<INSURANCE_COST>100</INSURANCE_COST>
|
217
|
+
<INSURANCE_ID>1</INSURANCE_ID>
|
218
|
+
<INSURANCE_SUM>100000</INSURANCE_SUM>
|
219
|
+
<INSURANCE_CUR>RUB</INSURANCE_CUR>
|
220
|
+
<AFTER_DISPATCH_NO_RETURN>true</AFTER_DISPATCH_NO_RETURN>
|
221
|
+
<PASSENGER_BIRTHDAY/>
|
222
|
+
<PASSENGER_ISIC_NUMBER/>
|
223
|
+
<PASSENGER_STUDENT_TICKET/>
|
224
|
+
<NOTE/>
|
225
|
+
<RETURN_CAUSE>Добровольно, более чем за 2 ч., до отправления рейса. Возвращается 100% стоимости тарифа. Ориентировочная сумма возврата 802.82</RETURN_CAUSE>
|
226
|
+
<RETURN_CAUSE>Добровольно, более чем за 10 мин., менее чем за 2 ч., до отправления рейса. Удерживается при возврате: 15% тарифа. Ориентировочная сумма возврата 661.15</RETURN_CAUSE>
|
227
|
+
<RETURN_CAUSE>Добровольно, менее чем за 10 мин., до отправления рейса. Удерживается при возврате: 25% тарифа. Ориентировочная сумма возврата 566.7</RETURN_CAUSE>
|
228
|
+
<RETURN_CAUSE>Принудительно, при отмене рейса, при непредоставлении места, при т/с более низкого класса. Возвращается 100% стоимости билета. Ориентировочная сумма возврата 963.39</RETURN_CAUSE>
|
229
|
+
<PROMOTE>false</PROMOTE>
|
230
|
+
<IS_EXCLUSIVE_PRICE>false</IS_EXCLUSIVE_PRICE>
|
231
|
+
</TARIFF>
|
232
|
+
<POINT>
|
233
|
+
<NUMBER>0</NUMBER>
|
234
|
+
<GEOGRAPHY_NAME>Киев</GEOGRAPHY_NAME>
|
235
|
+
<NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</NAME>
|
236
|
+
<ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</ADDRESS>
|
237
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
238
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
239
|
+
<ARRIVAL_TIME/>
|
240
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
241
|
+
<DISPATCH_TIME>15:00</DISPATCH_TIME>
|
242
|
+
<CHECK_POINT>false</CHECK_POINT>
|
243
|
+
<DISTANCE>0</DISTANCE>
|
244
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
245
|
+
<PLATFORM/>
|
246
|
+
<BUSMODEL/>
|
247
|
+
<AGREED>true</AGREED>
|
248
|
+
</POINT>
|
249
|
+
<POINT>
|
250
|
+
<NUMBER>1</NUMBER>
|
251
|
+
<GEOGRAPHY_NAME>Первомайск</GEOGRAPHY_NAME>
|
252
|
+
<NAME>Первомайск, Автостанция</NAME>
|
253
|
+
<ADDRESS/>
|
254
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
255
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
256
|
+
<ARRIVAL_TIME>19:20</ARRIVAL_TIME>
|
257
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
258
|
+
<DISPATCH_TIME>19:25</DISPATCH_TIME>
|
259
|
+
<CHECK_POINT>false</CHECK_POINT>
|
260
|
+
<DISTANCE>0.3</DISTANCE>
|
261
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
262
|
+
<PLATFORM/>
|
263
|
+
<BUSMODEL>Mercedes Sprinter(CB)</BUSMODEL>
|
264
|
+
<AGREED>true</AGREED>
|
265
|
+
</POINT>
|
266
|
+
<POINT>
|
267
|
+
<NUMBER>2</NUMBER>
|
268
|
+
<GEOGRAPHY_NAME>Вознесенск</GEOGRAPHY_NAME>
|
269
|
+
<NAME>ВОЗНЕСЕНСК_АС</NAME>
|
270
|
+
<ADDRESS/>
|
271
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
272
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
273
|
+
<ARRIVAL_TIME>20:20</ARRIVAL_TIME>
|
274
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
275
|
+
<DISPATCH_TIME>20:25</DISPATCH_TIME>
|
276
|
+
<CHECK_POINT>false</CHECK_POINT>
|
277
|
+
<DISTANCE>0.7</DISTANCE>
|
278
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
279
|
+
<PLATFORM/>
|
280
|
+
<BUSMODEL/>
|
281
|
+
<AGREED>true</AGREED>
|
282
|
+
</POINT>
|
283
|
+
<POINT>
|
284
|
+
<NUMBER>3</NUMBER>
|
285
|
+
<GEOGRAPHY_NAME>Николаев</GEOGRAPHY_NAME>
|
286
|
+
<NAME>Остановка Николаев</NAME>
|
287
|
+
<ADDRESS>улица Садовая</ADDRESS>
|
288
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
289
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
290
|
+
<ARRIVAL_TIME>21:55</ARRIVAL_TIME>
|
291
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
292
|
+
<DISPATCH_TIME>22:00</DISPATCH_TIME>
|
293
|
+
<CHECK_POINT>false</CHECK_POINT>
|
294
|
+
<DISTANCE>1</DISTANCE>
|
295
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
296
|
+
<PLATFORM/>
|
297
|
+
<BUSMODEL/>
|
298
|
+
<AGREED>true</AGREED>
|
299
|
+
</POINT>
|
300
|
+
</TRIP>
|
301
|
+
<TRIP>
|
302
|
+
<ID>8879332125090923201</ID>
|
303
|
+
<RES_ID>0</RES_ID>
|
304
|
+
<NUMBER>ЗНМ004/2200 Киев - Херсон</NUMBER>
|
305
|
+
<START_CITY_NAME>Киев</START_CITY_NAME>
|
306
|
+
<END_CITY_NAME>Николаев</END_CITY_NAME>
|
307
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
308
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
309
|
+
<START_DATE>07.02.2018</START_DATE>
|
310
|
+
<END_DATE>08.02.2018</END_DATE>
|
311
|
+
<START_TIME>22:00</START_TIME>
|
312
|
+
<END_TIME>04:55</END_TIME>
|
313
|
+
<BUS_MODEL>Mercedes Sprinter(CB)</BUS_MODEL>
|
314
|
+
<BUS_CLASS/>
|
315
|
+
<BUS_ID/>
|
316
|
+
<BUS_FLOORS_NUMBER>1</BUS_FLOORS_NUMBER>
|
317
|
+
<PLATFORM/>
|
318
|
+
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
319
|
+
<SHOW_PICKUP_DROPOFF>false</SHOW_PICKUP_DROPOFF>
|
320
|
+
<BRANDED>false</BRANDED>
|
321
|
+
<HAS_TRANSFER>false</HAS_TRANSFER>
|
322
|
+
<PLACES_COUNT>18</PLACES_COUNT>
|
323
|
+
<FREE_PLACES_COUNT>10</FREE_PLACES_COUNT>
|
324
|
+
<FREE_BUSY_PLACES>10/18</FREE_BUSY_PLACES>
|
325
|
+
<CARRIER_ID>44A40567B7C20165E0530300F00AE0C5</CARRIER_ID>
|
326
|
+
<CARRIER_NAME>"Заброцька Н.Н." ФЛП</CARRIER_NAME>
|
327
|
+
<TIME_IN_ROAD>06:55</TIME_IN_ROAD>
|
328
|
+
<FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
|
329
|
+
<STATION_BEGIN_ID>34C23D90432478D2E0530300F00A43D5</STATION_BEGIN_ID>
|
330
|
+
<STATION_BEGIN_NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</STATION_BEGIN_NAME>
|
331
|
+
<STATION_BEGIN_ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</STATION_BEGIN_ADDRESS>
|
332
|
+
<STATION_END_ID>44CEBC33E73F38F4E0530300F00A636E</STATION_END_ID>
|
333
|
+
<STATION_END_NAME>Остановка Николаев</STATION_END_NAME>
|
334
|
+
<STATION_END_ADDRESS>улица Садовая</STATION_END_ADDRESS>
|
335
|
+
<RESERVATION_ENABLED>true</RESERVATION_ENABLED>
|
336
|
+
<SALE_ENABLED>true</SALE_ENABLED>
|
337
|
+
<RETURN_ENABLED>false</RETURN_ENABLED>
|
338
|
+
<TIME_FOR_CANCEL>40</TIME_FOR_CANCEL>
|
339
|
+
<TRIP_FULL_SALE>false</TRIP_FULL_SALE>
|
340
|
+
<CAN_DISCOUNT>true</CAN_DISCOUNT>
|
341
|
+
<INTERNATIONAL>false</INTERNATIONAL>
|
342
|
+
<JOIN_BOOK_BUY>true</JOIN_BOOK_BUY>
|
343
|
+
<TRIP_MODE>1</TRIP_MODE>
|
344
|
+
<CUSTOM_STATUS>0</CUSTOM_STATUS>
|
345
|
+
<SPECIAL_CONDITIONS/>
|
346
|
+
<REDIRECT_URL/>
|
347
|
+
<IMAGE_URL>null</IMAGE_URL>
|
348
|
+
<START_POINT_TYPE>null</START_POINT_TYPE>
|
349
|
+
<VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
|
350
|
+
<VEHICLE_FEATURES>null</VEHICLE_FEATURES>
|
351
|
+
<TOTAL_COST>963.39</TOTAL_COST>
|
352
|
+
<CURRENCY>RUB</CURRENCY>
|
353
|
+
<CURRENCY_CODE>643</CURRENCY_CODE>
|
354
|
+
<TARIFF>
|
355
|
+
<SHORT_NAME>Y1</SHORT_NAME>
|
356
|
+
<FULL_NAME>Базовый тариф </FULL_NAME>
|
357
|
+
<START_DATE>01.12.2017</START_DATE>
|
358
|
+
<END_DATE/>
|
359
|
+
<DESCRIPTION>Базовый тариф в одном направлении
|
360
|
+
</DESCRIPTION>
|
361
|
+
<TIME_TO_BUY_RESERVED>24</TIME_TO_BUY_RESERVED>
|
362
|
+
<TIME_TO_STOP_BOOKING>10</TIME_TO_STOP_BOOKING>
|
363
|
+
<TIME_TO_PAY_RESERVATION>06.02.2018 13:21:52</TIME_TO_PAY_RESERVATION>
|
364
|
+
<COST>963.39</COST>
|
365
|
+
<INSURANCE_COST>100</INSURANCE_COST>
|
366
|
+
<INSURANCE_ID>1</INSURANCE_ID>
|
367
|
+
<INSURANCE_SUM>100000</INSURANCE_SUM>
|
368
|
+
<INSURANCE_CUR>RUB</INSURANCE_CUR>
|
369
|
+
<AFTER_DISPATCH_NO_RETURN>true</AFTER_DISPATCH_NO_RETURN>
|
370
|
+
<PASSENGER_BIRTHDAY/>
|
371
|
+
<PASSENGER_ISIC_NUMBER/>
|
372
|
+
<PASSENGER_STUDENT_TICKET/>
|
373
|
+
<NOTE/>
|
374
|
+
<RETURN_CAUSE>Добровольно, более чем за 2 ч., до отправления рейса. Возвращается 100% стоимости тарифа. Ориентировочная сумма возврата 802.82</RETURN_CAUSE>
|
375
|
+
<RETURN_CAUSE>Добровольно, более чем за 10 мин., менее чем за 2 ч., до отправления рейса. Удерживается при возврате: 15% тарифа. Ориентировочная сумма возврата 661.15</RETURN_CAUSE>
|
376
|
+
<RETURN_CAUSE>Добровольно, менее чем за 10 мин., до отправления рейса. Удерживается при возврате: 25% тарифа. Ориентировочная сумма возврата 566.7</RETURN_CAUSE>
|
377
|
+
<RETURN_CAUSE>Принудительно, при отмене рейса, при непредоставлении места, при т/с более низкого класса. Возвращается 100% стоимости билета. Ориентировочная сумма возврата 963.39</RETURN_CAUSE>
|
378
|
+
<PROMOTE>false</PROMOTE>
|
379
|
+
<IS_EXCLUSIVE_PRICE>false</IS_EXCLUSIVE_PRICE>
|
380
|
+
</TARIFF>
|
381
|
+
<POINT>
|
382
|
+
<NUMBER>0</NUMBER>
|
383
|
+
<GEOGRAPHY_NAME>Киев</GEOGRAPHY_NAME>
|
384
|
+
<NAME>Автостанция "Киев" (Центральный железнодорожный вокзал)</NAME>
|
385
|
+
<ADDRESS>метро Вокзальная; улица Симона Петлюры; дом 32</ADDRESS>
|
386
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
387
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
388
|
+
<ARRIVAL_TIME/>
|
389
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
390
|
+
<DISPATCH_TIME>22:00</DISPATCH_TIME>
|
391
|
+
<CHECK_POINT>false</CHECK_POINT>
|
392
|
+
<DISTANCE>0</DISTANCE>
|
393
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
394
|
+
<PLATFORM/>
|
395
|
+
<BUSMODEL/>
|
396
|
+
<AGREED>true</AGREED>
|
397
|
+
</POINT>
|
398
|
+
<POINT>
|
399
|
+
<NUMBER>1</NUMBER>
|
400
|
+
<GEOGRAPHY_NAME>Первомайск</GEOGRAPHY_NAME>
|
401
|
+
<NAME>Первомайск, Автостанция</NAME>
|
402
|
+
<ADDRESS/>
|
403
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
404
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
405
|
+
<ARRIVAL_TIME>02:20</ARRIVAL_TIME>
|
406
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
407
|
+
<DISPATCH_TIME>02:25</DISPATCH_TIME>
|
408
|
+
<CHECK_POINT>false</CHECK_POINT>
|
409
|
+
<DISTANCE>0.3</DISTANCE>
|
410
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
411
|
+
<PLATFORM/>
|
412
|
+
<BUSMODEL/>
|
413
|
+
<AGREED>true</AGREED>
|
414
|
+
</POINT>
|
415
|
+
<POINT>
|
416
|
+
<NUMBER>2</NUMBER>
|
417
|
+
<GEOGRAPHY_NAME>Вознесенск</GEOGRAPHY_NAME>
|
418
|
+
<NAME>ВОЗНЕСЕНСК_АС</NAME>
|
419
|
+
<ADDRESS/>
|
420
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
421
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
422
|
+
<ARRIVAL_TIME>03:20</ARRIVAL_TIME>
|
423
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
424
|
+
<DISPATCH_TIME>03:25</DISPATCH_TIME>
|
425
|
+
<CHECK_POINT>false</CHECK_POINT>
|
426
|
+
<DISTANCE>0.7</DISTANCE>
|
427
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
428
|
+
<PLATFORM/>
|
429
|
+
<BUSMODEL/>
|
430
|
+
<AGREED>true</AGREED>
|
431
|
+
</POINT>
|
432
|
+
<POINT>
|
433
|
+
<NUMBER>3</NUMBER>
|
434
|
+
<GEOGRAPHY_NAME>Николаев</GEOGRAPHY_NAME>
|
435
|
+
<NAME>Остановка Николаев</NAME>
|
436
|
+
<ADDRESS>улица Садовая</ADDRESS>
|
437
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
438
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
439
|
+
<ARRIVAL_TIME>04:55</ARRIVAL_TIME>
|
440
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
441
|
+
<DISPATCH_TIME>05:00</DISPATCH_TIME>
|
442
|
+
<CHECK_POINT>false</CHECK_POINT>
|
443
|
+
<DISTANCE>1</DISTANCE>
|
444
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
445
|
+
<PLATFORM/>
|
446
|
+
<BUSMODEL/>
|
447
|
+
<AGREED>true</AGREED>
|
448
|
+
</POINT>
|
449
|
+
</TRIP>
|
450
|
+
<TRIP>
|
451
|
+
<ID>-5501158095088564811</ID>
|
452
|
+
<RES_ID>0</RES_ID>
|
453
|
+
<NUMBER>ГФС798 Киев - Коблево</NUMBER>
|
454
|
+
<START_CITY_NAME>Киев</START_CITY_NAME>
|
455
|
+
<END_CITY_NAME>Николаев</END_CITY_NAME>
|
456
|
+
<START_TIMEZONE>Europe/Kiev</START_TIMEZONE>
|
457
|
+
<END_TIMEZONE>Europe/Kiev</END_TIMEZONE>
|
458
|
+
<START_DATE>07.02.2018</START_DATE>
|
459
|
+
<END_DATE>08.02.2018</END_DATE>
|
460
|
+
<START_TIME>22:05</START_TIME>
|
461
|
+
<END_TIME>06:35</END_TIME>
|
462
|
+
<BUS_MODEL>Neoplan(Free)</BUS_MODEL>
|
463
|
+
<BUS_CLASS/>
|
464
|
+
<BUS_ID/>
|
465
|
+
<BUS_FLOORS_NUMBER>1</BUS_FLOORS_NUMBER>
|
466
|
+
<PLATFORM/>
|
467
|
+
<TRIP_SEATS_MAP>true</TRIP_SEATS_MAP>
|
468
|
+
<SHOW_PICKUP_DROPOFF>false</SHOW_PICKUP_DROPOFF>
|
469
|
+
<BRANDED>false</BRANDED>
|
470
|
+
<HAS_TRANSFER>false</HAS_TRANSFER>
|
471
|
+
<PLACES_COUNT>49</PLACES_COUNT>
|
472
|
+
<FREE_PLACES_COUNT>2</FREE_PLACES_COUNT>
|
473
|
+
<FREE_BUSY_PLACES>2/49</FREE_BUSY_PLACES>
|
474
|
+
<CARRIER_ID>BC60941886E44FF4E040A8C063030BC9</CARRIER_ID>
|
475
|
+
<CARRIER_NAME>"Гаджиєв Ф.С." ООО</CARRIER_NAME>
|
476
|
+
<TIME_IN_ROAD>08:30</TIME_IN_ROAD>
|
477
|
+
<FAKE_TIME_IN_ROAD>false</FAKE_TIME_IN_ROAD>
|
478
|
+
<STATION_BEGIN_ID>340BDB5553BD51BCE0530300F00A4622</STATION_BEGIN_ID>
|
479
|
+
<STATION_BEGIN_NAME>Автовокзал "Центральный"</STATION_BEGIN_NAME>
|
480
|
+
<STATION_BEGIN_ADDRESS>площадь Демеевская; дом 3</STATION_BEGIN_ADDRESS>
|
481
|
+
<STATION_END_ID>928F32EDA50D026FE040A8C01E02395E</STATION_END_ID>
|
482
|
+
<STATION_END_NAME>Автовокзал "Центральный"</STATION_END_NAME>
|
483
|
+
<STATION_END_ADDRESS>проспект Богоявленский; дом 21</STATION_END_ADDRESS>
|
484
|
+
<RESERVATION_ENABLED>true</RESERVATION_ENABLED>
|
485
|
+
<SALE_ENABLED>true</SALE_ENABLED>
|
486
|
+
<RETURN_ENABLED>false</RETURN_ENABLED>
|
487
|
+
<TIME_FOR_CANCEL>40</TIME_FOR_CANCEL>
|
488
|
+
<TRIP_FULL_SALE>false</TRIP_FULL_SALE>
|
489
|
+
<CAN_DISCOUNT>true</CAN_DISCOUNT>
|
490
|
+
<INTERNATIONAL>false</INTERNATIONAL>
|
491
|
+
<JOIN_BOOK_BUY>true</JOIN_BOOK_BUY>
|
492
|
+
<TRIP_MODE>1</TRIP_MODE>
|
493
|
+
<CUSTOM_STATUS>0</CUSTOM_STATUS>
|
494
|
+
<SPECIAL_CONDITIONS/>
|
495
|
+
<REDIRECT_URL/>
|
496
|
+
<IMAGE_URL>null</IMAGE_URL>
|
497
|
+
<START_POINT_TYPE>null</START_POINT_TYPE>
|
498
|
+
<VEHICLE_DESCRIPTION>null</VEHICLE_DESCRIPTION>
|
499
|
+
<VEHICLE_FEATURES>null</VEHICLE_FEATURES>
|
500
|
+
<TOTAL_COST>698.12</TOTAL_COST>
|
501
|
+
<CURRENCY>RUB</CURRENCY>
|
502
|
+
<CURRENCY_CODE>643</CURRENCY_CODE>
|
503
|
+
<TARIFF>
|
504
|
+
<SHORT_NAME>Y</SHORT_NAME>
|
505
|
+
<FULL_NAME>Базовый тариф</FULL_NAME>
|
506
|
+
<START_DATE/>
|
507
|
+
<END_DATE/>
|
508
|
+
<DESCRIPTION>Базовый тариф стоимости проезда одного пассажиров в одном направлении
|
509
|
+
До вартості квитка входить вартість провозу двух місць багажу розміром 60*40*40 см та вагою до 25 кг. Додатковий багаж перевозиться при наявності вільного місця в багажному відділенні автобуса, вартість провозу додаткового багажу 10% від вартості проїзду</DESCRIPTION>
|
510
|
+
<TIME_TO_BUY_RESERVED>48</TIME_TO_BUY_RESERVED>
|
511
|
+
<TIME_TO_STOP_BOOKING>12</TIME_TO_STOP_BOOKING>
|
512
|
+
<TIME_TO_PAY_RESERVATION>07.02.2018 11:05:00</TIME_TO_PAY_RESERVATION>
|
513
|
+
<COST>698.12</COST>
|
514
|
+
<INSURANCE_COST>70</INSURANCE_COST>
|
515
|
+
<INSURANCE_ID>1</INSURANCE_ID>
|
516
|
+
<INSURANCE_SUM>70000</INSURANCE_SUM>
|
517
|
+
<INSURANCE_CUR>RUB</INSURANCE_CUR>
|
518
|
+
<AFTER_DISPATCH_NO_RETURN>true</AFTER_DISPATCH_NO_RETURN>
|
519
|
+
<PASSENGER_BIRTHDAY/>
|
520
|
+
<PASSENGER_ISIC_NUMBER/>
|
521
|
+
<PASSENGER_STUDENT_TICKET/>
|
522
|
+
<NOTE/>
|
523
|
+
<RETURN_CAUSE>Добровольно, более чем за 2 ч., до отправления рейса. Возвращается 100% стоимости тарифа. Ориентировочная сумма возврата 628.3</RETURN_CAUSE>
|
524
|
+
<RETURN_CAUSE>Добровольно, более чем за 10 мин., до отправления рейса. Удерживается при возврате: 15% тарифа. Ориентировочная сумма возврата 523.59</RETURN_CAUSE>
|
525
|
+
<RETURN_CAUSE>В стоимость билета не входит оплата за провоз багажа! Оплачивается дополнительно 10% от тарифа. Удерживается при возврате: 100% тарифа. Ориентировочная сумма возврата -61.2</RETURN_CAUSE>
|
526
|
+
<RETURN_CAUSE>Принудительно, при отмене рейса, при непредоставлении места, при т/с более низкого класса. Возвращается 100% стоимости билета. Ориентировочная сумма возврата 698.12</RETURN_CAUSE>
|
527
|
+
<PROMOTE>false</PROMOTE>
|
528
|
+
<IS_EXCLUSIVE_PRICE>false</IS_EXCLUSIVE_PRICE>
|
529
|
+
</TARIFF>
|
530
|
+
<POINT>
|
531
|
+
<NUMBER>0</NUMBER>
|
532
|
+
<GEOGRAPHY_NAME>Киев</GEOGRAPHY_NAME>
|
533
|
+
<NAME>Автовокзал "Центральный"</NAME>
|
534
|
+
<ADDRESS>площадь Демеевская; дом 3</ADDRESS>
|
535
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
536
|
+
<ARRIVAL_DATE>07.02.2018</ARRIVAL_DATE>
|
537
|
+
<ARRIVAL_TIME/>
|
538
|
+
<DISPATCH_DATE>07.02.2018</DISPATCH_DATE>
|
539
|
+
<DISPATCH_TIME>22:05</DISPATCH_TIME>
|
540
|
+
<CHECK_POINT>false</CHECK_POINT>
|
541
|
+
<DISTANCE>0</DISTANCE>
|
542
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
543
|
+
<PLATFORM/>
|
544
|
+
<BUSMODEL/>
|
545
|
+
<AGREED>true</AGREED>
|
546
|
+
</POINT>
|
547
|
+
<POINT>
|
548
|
+
<NUMBER>1</NUMBER>
|
549
|
+
<GEOGRAPHY_NAME>Умань</GEOGRAPHY_NAME>
|
550
|
+
<NAME>Автовокзал "Умань"</NAME>
|
551
|
+
<ADDRESS>улица Киевская; дом 1</ADDRESS>
|
552
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
553
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
554
|
+
<ARRIVAL_TIME>01:20</ARRIVAL_TIME>
|
555
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
556
|
+
<DISPATCH_TIME>01:30</DISPATCH_TIME>
|
557
|
+
<CHECK_POINT>false</CHECK_POINT>
|
558
|
+
<DISTANCE>2</DISTANCE>
|
559
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
560
|
+
<PLATFORM/>
|
561
|
+
<BUSMODEL/>
|
562
|
+
<AGREED>true</AGREED>
|
563
|
+
</POINT>
|
564
|
+
<POINT>
|
565
|
+
<NUMBER>2</NUMBER>
|
566
|
+
<GEOGRAPHY_NAME>Первомайск</GEOGRAPHY_NAME>
|
567
|
+
<NAME>Автовокзал Первомайск</NAME>
|
568
|
+
<ADDRESS>улица Советская; дом 8</ADDRESS>
|
569
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
570
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
571
|
+
<ARRIVAL_TIME>03:35</ARRIVAL_TIME>
|
572
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
573
|
+
<DISPATCH_TIME>03:36</DISPATCH_TIME>
|
574
|
+
<CHECK_POINT>false</CHECK_POINT>
|
575
|
+
<DISTANCE>3</DISTANCE>
|
576
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
577
|
+
<PLATFORM/>
|
578
|
+
<BUSMODEL/>
|
579
|
+
<AGREED>true</AGREED>
|
580
|
+
</POINT>
|
581
|
+
<POINT>
|
582
|
+
<NUMBER>3</NUMBER>
|
583
|
+
<GEOGRAPHY_NAME>Южноукраинск</GEOGRAPHY_NAME>
|
584
|
+
<NAME>Южноукраїнськ АС</NAME>
|
585
|
+
<ADDRESS>Вул. Дружби народів,27</ADDRESS>
|
586
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
587
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
588
|
+
<ARRIVAL_TIME>04:25</ARRIVAL_TIME>
|
589
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
590
|
+
<DISPATCH_TIME>04:26</DISPATCH_TIME>
|
591
|
+
<CHECK_POINT>false</CHECK_POINT>
|
592
|
+
<DISTANCE>4</DISTANCE>
|
593
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
594
|
+
<PLATFORM/>
|
595
|
+
<BUSMODEL/>
|
596
|
+
<AGREED>true</AGREED>
|
597
|
+
</POINT>
|
598
|
+
<POINT>
|
599
|
+
<NUMBER>4</NUMBER>
|
600
|
+
<GEOGRAPHY_NAME>Вознесенск</GEOGRAPHY_NAME>
|
601
|
+
<NAME>Вознесенськ АС</NAME>
|
602
|
+
<ADDRESS>Вул. Жовтневої Революції, 148</ADDRESS>
|
603
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
604
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
605
|
+
<ARRIVAL_TIME>04:55</ARRIVAL_TIME>
|
606
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
607
|
+
<DISPATCH_TIME>05:05</DISPATCH_TIME>
|
608
|
+
<CHECK_POINT>false</CHECK_POINT>
|
609
|
+
<DISTANCE>5</DISTANCE>
|
610
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
611
|
+
<PLATFORM/>
|
612
|
+
<BUSMODEL/>
|
613
|
+
<AGREED>true</AGREED>
|
614
|
+
</POINT>
|
615
|
+
<POINT>
|
616
|
+
<NUMBER>5</NUMBER>
|
617
|
+
<GEOGRAPHY_NAME>Николаев</GEOGRAPHY_NAME>
|
618
|
+
<NAME>Автовокзал "Центральный"</NAME>
|
619
|
+
<ADDRESS>проспект Богоявленский; дом 21</ADDRESS>
|
620
|
+
<TIMEZONE>Europe/Kiev</TIMEZONE>
|
621
|
+
<ARRIVAL_DATE>08.02.2018</ARRIVAL_DATE>
|
622
|
+
<ARRIVAL_TIME>06:35</ARRIVAL_TIME>
|
623
|
+
<DISPATCH_DATE>08.02.2018</DISPATCH_DATE>
|
624
|
+
<DISPATCH_TIME/>
|
625
|
+
<CHECK_POINT>false</CHECK_POINT>
|
626
|
+
<DISTANCE>6</DISTANCE>
|
627
|
+
<TRANSFER_POINT>false</TRANSFER_POINT>
|
628
|
+
<PLATFORM/>
|
629
|
+
<BUSMODEL/>
|
630
|
+
<AGREED>true</AGREED>
|
631
|
+
</POINT>
|
632
|
+
</TRIP>
|
633
|
+
</DATA>
|
data/test/search_trips_test.rb
CHANGED
@@ -61,6 +61,10 @@ class SearchTripsResponseTest < Minitest::Test
|
|
61
61
|
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-segments.xml'))
|
62
62
|
end
|
63
63
|
|
64
|
+
def get_trips_with_insurance
|
65
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-insurance.xml'))
|
66
|
+
end
|
67
|
+
|
64
68
|
def test_empty_completed
|
65
69
|
response = get_empty_search_trips
|
66
70
|
assert response.completed
|
@@ -185,4 +189,16 @@ class SearchTripsResponseTest < Minitest::Test
|
|
185
189
|
assert_equal true, response.trips.first.fake_time_in_road
|
186
190
|
assert_equal 2, response.trips.first.segments.size
|
187
191
|
end
|
192
|
+
|
193
|
+
def test_trips_with_insurance
|
194
|
+
response = get_trips_with_insurance
|
195
|
+
assert response.completed
|
196
|
+
assert_equal 4, response.trips.size
|
197
|
+
|
198
|
+
tariff = response.trips.first.tariffs.first
|
199
|
+
|
200
|
+
assert_equal '100 RUB'.to_money, tariff.insurance_cost
|
201
|
+
assert_equal 1, tariff.insurance_id
|
202
|
+
assert_equal '100000 RUB'.to_money, tariff.insurance_sum
|
203
|
+
end
|
188
204
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -258,6 +258,7 @@ files:
|
|
258
258
|
- test/responses/returnPositionFailure.xml
|
259
259
|
- test/responses/returnPositionSuccess.xml
|
260
260
|
- test/responses/searchTrips-empty.xml
|
261
|
+
- test/responses/searchTrips-insurance.xml
|
261
262
|
- test/responses/searchTrips-prod-invalid.xml
|
262
263
|
- test/responses/searchTrips-prod.xml
|
263
264
|
- test/responses/searchTrips-segments-roundtrip.xml
|
@@ -333,6 +334,7 @@ test_files:
|
|
333
334
|
- test/responses/returnPositionFailure.xml
|
334
335
|
- test/responses/returnPositionSuccess.xml
|
335
336
|
- test/responses/searchTrips-empty.xml
|
337
|
+
- test/responses/searchTrips-insurance.xml
|
336
338
|
- test/responses/searchTrips-prod-invalid.xml
|
337
339
|
- test/responses/searchTrips-prod.xml
|
338
340
|
- test/responses/searchTrips-segments-roundtrip.xml
|