gillbus 0.17.6 → 0.22.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile +0 -4
- data/gillbus.gemspec +1 -1
- data/lib/gillbus/base_request.rb +2 -0
- data/lib/gillbus/base_response.rb +8 -4
- data/lib/gillbus/get_carriers.rb +13 -0
- data/lib/gillbus/get_required_fields.rb +1 -0
- data/lib/gillbus/get_trip_seats.rb +7 -0
- data/lib/gillbus/helpers/parser.rb +45 -11
- data/lib/gillbus/return_position.rb +2 -0
- data/lib/gillbus/return_position_forced.rb +16 -0
- data/lib/gillbus/search_nearby_trips.rb +39 -0
- data/lib/gillbus/search_trips.rb +20 -13
- data/lib/gillbus/structs/carrier.rb +11 -0
- data/lib/gillbus/structs/luggage.rb +19 -0
- data/lib/gillbus/structs/nearby_cities_trip.rb +61 -0
- data/lib/gillbus/structs/point.rb +2 -0
- data/lib/gillbus/structs/return_cause.rb +1 -1
- data/lib/gillbus/structs/seat.rb +1 -0
- data/lib/gillbus/structs/segment.rb +27 -0
- data/lib/gillbus/structs/tariff/return_cause.rb +8 -3
- data/lib/gillbus/structs/ticket.rb +29 -12
- data/lib/gillbus/structs/tickets_option.rb +29 -0
- data/lib/gillbus/structs/trip.rb +35 -0
- data/lib/gillbus/structs/trip_options.rb +82 -24
- data/lib/gillbus/structs/trip_service.rb +16 -1
- data/lib/gillbus/tickets_booking.rb +34 -0
- data/lib/gillbus/version.rb +1 -1
- data/lib/gillbus.rb +31 -3
- data/test/error_test.rb +1 -1
- data/test/find_order_test.rb +16 -0
- data/test/get_required_fields_test.rb +77 -0
- data/test/get_trip_seats_test.rb +36 -0
- data/test/get_trip_segments_test.rb +1 -0
- data/test/parse_trip_options_test.rb +92 -0
- data/test/parse_trip_test.rb +25 -0
- data/test/responses/findOrder.xml +8 -0
- data/test/responses/getRequiredFieldsWithOneLuggage.xml +28 -0
- data/test/responses/getRequiredFieldsWithTwoLuggageSegments.xml +40 -0
- data/test/responses/getRequiredFieldsWithoutLuggage.xml +23 -0
- data/test/responses/getTripSeats-back-seats.xml +1192 -0
- data/test/responses/getTripSeats-two-floors.xml +1122 -0
- data/test/responses/getTripSeats.xml +70 -0
- data/test/responses/legacy_trip.yml +120 -0
- data/test/responses/legacy_trip_2.yml +217 -0
- data/test/responses/searchTrips-full-carriers-info.xml +231 -0
- data/test/responses/searchTrips-new-options-format.xml +244 -0
- data/test/responses/searchTrips-prod.xml +5 -0
- data/test/responses/searchTrips-round-trip-offers.xml +2016 -0
- data/test/responses/searchTripsNearby.xml +707 -0
- data/test/responses/ticketsBooking.xml +1 -0
- data/test/search_nearby_trips_test.rb +18 -0
- data/test/search_trips_test.rb +93 -0
- data/test/tickets_booking_test.rb +63 -0
- metadata +49 -13
@@ -113,6 +113,7 @@
|
|
113
113
|
<APPROXIMATE_AMOUNT>20.46</APPROXIMATE_AMOUNT>
|
114
114
|
<CAUSE>Принудительно. Отмена рейса</CAUSE>
|
115
115
|
</RETURN_CAUSE>
|
116
|
+
<IS_ONLINE_REFUND>true</IS_ONLINE_REFUND>
|
116
117
|
<COMMISSION>
|
117
118
|
<TYPE>2</TYPE>
|
118
119
|
<CODE>YS</CODE>
|
@@ -146,6 +147,9 @@
|
|
146
147
|
<VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
|
147
148
|
<VAT_IN_CURRENCY>0.01</VAT_IN_CURRENCY>
|
148
149
|
</COMMISSION>
|
150
|
+
<SUPPLIER_INN>3257025789</SUPPLIER_INN>
|
151
|
+
<SUPPLIER_NAME>"Клен 2" ООО</SUPPLIER_NAME>
|
152
|
+
<SUPPLIER_PHONE>+79065002926</SUPPLIER_PHONE>
|
149
153
|
</TICKET>
|
150
154
|
<TICKET>
|
151
155
|
<TICKET_NUMBER>14483</TICKET_NUMBER>
|
@@ -260,6 +264,7 @@
|
|
260
264
|
<APPROXIMATE_AMOUNT>20.46</APPROXIMATE_AMOUNT>
|
261
265
|
<CAUSE>Принудительно. Отмена рейса</CAUSE>
|
262
266
|
</RETURN_CAUSE>
|
267
|
+
<IS_ONLINE_REFUND>false</IS_ONLINE_REFUND>
|
263
268
|
<COMMISSION>
|
264
269
|
<TYPE>2</TYPE>
|
265
270
|
<CODE>YS</CODE>
|
@@ -296,5 +301,8 @@
|
|
296
301
|
<VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
|
297
302
|
<VAT_IN_CURRENCY>0.01</VAT_IN_CURRENCY>
|
298
303
|
</COMMISSION>
|
304
|
+
<SUPPLIER_INN>3257025789</SUPPLIER_INN>
|
305
|
+
<SUPPLIER_NAME>"Клен 2" ООО</SUPPLIER_NAME>
|
306
|
+
<SUPPLIER_PHONE>+79065002926</SUPPLIER_PHONE>
|
299
307
|
</TICKET>
|
300
308
|
</DATA>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<DATA>
|
2
|
+
<TIME_LIMIT>0</TIME_LIMIT>
|
3
|
+
<DICTIONARY>
|
4
|
+
<STUDENT_TICKET>false</STUDENT_TICKET>
|
5
|
+
<ISIC>false</ISIC>
|
6
|
+
<TARIFF_SHORT_NAME>false</TARIFF_SHORT_NAME>
|
7
|
+
<TARIFF_COST>false</TARIFF_COST>
|
8
|
+
<DOCUMENT_TYPE>true</DOCUMENT_TYPE>
|
9
|
+
<BAGGAGE_COUNT>true</BAGGAGE_COUNT>
|
10
|
+
<PHONE>true</PHONE>
|
11
|
+
<MAIL>true</MAIL>
|
12
|
+
<FIRSTNAME>true</FIRSTNAME>
|
13
|
+
<LASTNAME>true</LASTNAME>
|
14
|
+
<SECONDNAME>true</SECONDNAME>
|
15
|
+
<BIRTHDAY>true</BIRTHDAY>
|
16
|
+
<PASSPORT>true</PASSPORT>
|
17
|
+
<CITIZENSHIP>true</CITIZENSHIP>
|
18
|
+
<GENDER>true</GENDER>
|
19
|
+
<VISA>true</VISA>
|
20
|
+
<PASSDATE>true</PASSDATE>
|
21
|
+
<ONLY_LATIN_SYMBOLS>true</ONLY_LATIN_SYMBOLS>
|
22
|
+
</DICTIONARY>
|
23
|
+
<BAGGAGE>
|
24
|
+
<IS_BUY>true</IS_BUY>
|
25
|
+
<BAGGAGE_TARIFF>50.5</BAGGAGE_TARIFF>
|
26
|
+
<BAGGAGE_LIMIT>2</BAGGAGE_LIMIT>
|
27
|
+
</BAGGAGE>
|
28
|
+
</DATA>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<DATA>
|
2
|
+
<TIME_LIMIT>0</TIME_LIMIT>
|
3
|
+
<DICTIONARY>
|
4
|
+
<STUDENT_TICKET>false</STUDENT_TICKET>
|
5
|
+
<ISIC>false</ISIC>
|
6
|
+
<TARIFF_SHORT_NAME>false</TARIFF_SHORT_NAME>
|
7
|
+
<TARIFF_COST>false</TARIFF_COST>
|
8
|
+
<DOCUMENT_TYPE>true</DOCUMENT_TYPE>
|
9
|
+
<BAGGAGE_COUNT>true</BAGGAGE_COUNT>
|
10
|
+
<PHONE>true</PHONE>
|
11
|
+
<MAIL>true</MAIL>
|
12
|
+
<FIRSTNAME>true</FIRSTNAME>
|
13
|
+
<LASTNAME>true</LASTNAME>
|
14
|
+
<SECONDNAME>true</SECONDNAME>
|
15
|
+
<BIRTHDAY>true</BIRTHDAY>
|
16
|
+
<PASSPORT>true</PASSPORT>
|
17
|
+
<CITIZENSHIP>true</CITIZENSHIP>
|
18
|
+
<GENDER>true</GENDER>
|
19
|
+
<VISA>true</VISA>
|
20
|
+
<PASSDATE>true</PASSDATE>
|
21
|
+
<ONLY_LATIN_SYMBOLS>true</ONLY_LATIN_SYMBOLS>
|
22
|
+
</DICTIONARY>
|
23
|
+
<BAGGAGE>
|
24
|
+
<IS_BUY></IS_BUY>
|
25
|
+
<BAGGAGE_TARIFF></BAGGAGE_TARIFF>
|
26
|
+
<BAGGAGE_LIMIT></BAGGAGE_LIMIT>
|
27
|
+
<SEGMENT>
|
28
|
+
<SEGMENT_NUMBER>0</SEGMENT_NUMBER>
|
29
|
+
<IS_BUY>true</IS_BUY>
|
30
|
+
<BAGGAGE_TARIFF>70.7</BAGGAGE_TARIFF>
|
31
|
+
<BAGGAGE_LIMIT>2</BAGGAGE_LIMIT>
|
32
|
+
</SEGMENT>
|
33
|
+
<SEGMENT>
|
34
|
+
<SEGMENT_NUMBER>1</SEGMENT_NUMBER>
|
35
|
+
<IS_BUY>false</IS_BUY>
|
36
|
+
<BAGGAGE_TARIFF></BAGGAGE_TARIFF>
|
37
|
+
<BAGGAGE_LIMIT></BAGGAGE_LIMIT>
|
38
|
+
</SEGMENT>
|
39
|
+
</BAGGAGE>
|
40
|
+
</DATA>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<DATA>
|
2
|
+
<TIME_LIMIT>0</TIME_LIMIT>
|
3
|
+
<DICTIONARY>
|
4
|
+
<STUDENT_TICKET>false</STUDENT_TICKET>
|
5
|
+
<ISIC>false</ISIC>
|
6
|
+
<TARIFF_SHORT_NAME>false</TARIFF_SHORT_NAME>
|
7
|
+
<TARIFF_COST>false</TARIFF_COST>
|
8
|
+
<DOCUMENT_TYPE>true</DOCUMENT_TYPE>
|
9
|
+
<BAGGAGE_COUNT>true</BAGGAGE_COUNT>
|
10
|
+
<PHONE>true</PHONE>
|
11
|
+
<MAIL>true</MAIL>
|
12
|
+
<FIRSTNAME>true</FIRSTNAME>
|
13
|
+
<LASTNAME>true</LASTNAME>
|
14
|
+
<SECONDNAME>true</SECONDNAME>
|
15
|
+
<BIRTHDAY>true</BIRTHDAY>
|
16
|
+
<PASSPORT>true</PASSPORT>
|
17
|
+
<CITIZENSHIP>true</CITIZENSHIP>
|
18
|
+
<GENDER>true</GENDER>
|
19
|
+
<VISA>true</VISA>
|
20
|
+
<PASSDATE>true</PASSDATE>
|
21
|
+
<ONLY_LATIN_SYMBOLS>true</ONLY_LATIN_SYMBOLS>
|
22
|
+
</DICTIONARY>
|
23
|
+
</DATA>
|