gillbus 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.ruby-version +1 -0
- data/Gemfile +10 -0
- data/Guardfile +29 -0
- data/LICENSE.txt +22 -0
- data/README.md +140 -0
- data/Rakefile +9 -0
- data/gillbus.gemspec +31 -0
- data/lib/gillbus/base_request.rb +99 -0
- data/lib/gillbus/base_response.rb +43 -0
- data/lib/gillbus/buy_booking.rb +74 -0
- data/lib/gillbus/buy_tickets.rb +36 -0
- data/lib/gillbus/cancel_order.rb +55 -0
- data/lib/gillbus/drivers/faraday_response_file_logger.rb +19 -0
- data/lib/gillbus/find_order.rb +37 -0
- data/lib/gillbus/get_all_cities.rb +24 -0
- data/lib/gillbus/get_cities.rb +34 -0
- data/lib/gillbus/get_countries.rb +24 -0
- data/lib/gillbus/get_dates_new.rb +35 -0
- data/lib/gillbus/get_order_status.rb +28 -0
- data/lib/gillbus/get_order_ticket.rb +62 -0
- data/lib/gillbus/get_required_fields.rb +32 -0
- data/lib/gillbus/get_time_table.rb +33 -0
- data/lib/gillbus/get_trip_seats.rb +61 -0
- data/lib/gillbus/get_trips.rb +13 -0
- data/lib/gillbus/helpers/fields.rb +47 -0
- data/lib/gillbus/helpers/parser.rb +100 -0
- data/lib/gillbus/helpers/update_attrs.rb +15 -0
- data/lib/gillbus/lock_seats.rb +82 -0
- data/lib/gillbus/logout.rb +19 -0
- data/lib/gillbus/parse_error.rb +11 -0
- data/lib/gillbus/reserve_tickets.rb +13 -0
- data/lib/gillbus/search_trips.rb +96 -0
- data/lib/gillbus/session_login.rb +32 -0
- data/lib/gillbus/structs/commission.rb +54 -0
- data/lib/gillbus/structs/item.rb +14 -0
- data/lib/gillbus/structs/passenger_discount.rb +37 -0
- data/lib/gillbus/structs/point.rb +38 -0
- data/lib/gillbus/structs/return_cause.rb +23 -0
- data/lib/gillbus/structs/seat.rb +38 -0
- data/lib/gillbus/structs/segment.rb +161 -0
- data/lib/gillbus/structs/tariff.rb +59 -0
- data/lib/gillbus/structs/ticket.rb +285 -0
- data/lib/gillbus/structs/timetable_segment.rb +51 -0
- data/lib/gillbus/structs/timetable_trip.rb +77 -0
- data/lib/gillbus/structs/trip.rb +164 -0
- data/lib/gillbus/tickets_booking.rb +182 -0
- data/lib/gillbus/unlock_seats.rb +15 -0
- data/lib/gillbus/version.rb +3 -0
- data/lib/gillbus.rb +86 -0
- data/script/example_booking.rb +82 -0
- data/script/example_booking_with_segments.rb +90 -0
- data/script/example_canceling_booking.rb +67 -0
- data/script/example_canceling_reservation.rb +69 -0
- data/script/example_reservation.rb +88 -0
- data/test/buy_booking_test.rb +32 -0
- data/test/buy_tickets_test.rb +12 -0
- data/test/cancel_order_test.rb +12 -0
- data/test/error_test.rb +31 -0
- data/test/find_order_test.rb +24 -0
- data/test/get_cities_test.rb +12 -0
- data/test/get_countries_test.rb +12 -0
- data/test/get_dates_new_test.rb +12 -0
- data/test/get_order_ticket_test.rb +12 -0
- data/test/get_time_table_test.rb +21 -0
- data/test/get_trip_seats_test.rb +40 -0
- data/test/lock_seats_test.rb +70 -0
- data/test/reserve_tickets_test.rb +22 -0
- data/test/responses/buyBooking.xml +9 -0
- data/test/responses/buyTickets.xml +7 -0
- data/test/responses/cancelOrder.xml +8 -0
- data/test/responses/error.xml +1 -0
- data/test/responses/findOrder.xml +296 -0
- data/test/responses/getCities.xml +266 -0
- data/test/responses/getCountries.xml +90 -0
- data/test/responses/getOrderTicket.xml +3 -0
- data/test/responses/getTimeTable.xml +81 -0
- data/test/responses/getTripSeats-one-empty-segment.xml +562 -0
- data/test/responses/getTripSeats-segments.xml +1052 -0
- data/test/responses/getTripSeats.xml +492 -0
- data/test/responses/lockSeats.xml +23 -0
- data/test/responses/reserveTickets.xml +76 -0
- data/test/responses/searchTrips-empty.xml +3 -0
- data/test/responses/searchTrips-prod.xml +193 -0
- data/test/responses/searchTrips-segments-roundtrip.xml +15812 -0
- data/test/responses/searchTrips-segments.xml +808 -0
- data/test/responses/sessionLogin.xml +3 -0
- data/test/responses/ticketsBooking.xml +75 -0
- data/test/responses/very_empty.xml +1 -0
- data/test/search_trips_test.rb +71 -0
- data/test/session_login_test.rb +12 -0
- data/test/test_helper.rb +3 -0
- data/test/tickets_booking_test.rb +16 -0
- metadata +303 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
<DATA>
|
2
|
+
<TICKET>
|
3
|
+
<TICKET_NUMBER>8472</TICKET_NUMBER>
|
4
|
+
<SYSTEM_NUMBER>8471</SYSTEM_NUMBER>
|
5
|
+
<ORDER_NUMBER>14065</ORDER_NUMBER>
|
6
|
+
<POLICY_NUMBER/>
|
7
|
+
<PASSENGER_FULL_NAME>0Art Art</PASSENGER_FULL_NAME>
|
8
|
+
<PASSENGER_FIRST_NAME>Art</PASSENGER_FIRST_NAME>
|
9
|
+
<PASSENGER_LAST_NAME>0Art</PASSENGER_LAST_NAME>
|
10
|
+
<PASSENGER_BIRTHDAY/>
|
11
|
+
<PASSENGER_STUDENT_TICKET/>
|
12
|
+
<PASSENGER_PHONE>380000000000</PASSENGER_PHONE>
|
13
|
+
<PASSENGER_PASSPORT/>
|
14
|
+
<AGENT_NAME>ТОВ"Юпітер</AGENT_NAME>
|
15
|
+
<AGENT_PHONE>+00(044)496-08-00</AGENT_PHONE>
|
16
|
+
<CARRIER_NAME>ТОВ"Юпітер</CARRIER_NAME>
|
17
|
+
<CARRIER_PHONE>+00(044)496-08-00</CARRIER_PHONE>
|
18
|
+
<BUS_MODEL>Setra</BUS_MODEL>
|
19
|
+
<CARRIAGE_NUMBER/>
|
20
|
+
<NUMBER_SEAT>16</NUMBER_SEAT>
|
21
|
+
<TRIP_NUMBER>ДЕМ059</TRIP_NUMBER>
|
22
|
+
<TRIP_MODE>1</TRIP_MODE>
|
23
|
+
<INTERNATIONAL_TRIP>false</INTERNATIONAL_TRIP>
|
24
|
+
<START_CITY>Донецк</START_CITY>
|
25
|
+
<START_DATE>20.02.2013</START_DATE>
|
26
|
+
<START_TIME>14:40</START_TIME>
|
27
|
+
<END_CITY>Одесса</END_CITY>
|
28
|
+
<END_TIME>06:35</END_TIME>
|
29
|
+
<TYPE_TARIFF_NAME>Y</TYPE_TARIFF_NAME>
|
30
|
+
<TARIFF>75.0</TARIFF>
|
31
|
+
<TARIFF_VAT>15.0</TARIFF_VAT>
|
32
|
+
<FOREIGN_TARIFF>0.0</FOREIGN_TARIFF>
|
33
|
+
<FOREIGN_TARIFF_VAT>0.0</FOREIGN_TARIFF_VAT>
|
34
|
+
<NOTE/>
|
35
|
+
<BARCODE>ЮПТ000008472ЮПТ</BARCODE>
|
36
|
+
<END_DATE>21.02.2013</END_DATE>
|
37
|
+
<STATION_NAME>Залізн. вокзал</STATION_NAME>
|
38
|
+
<INSURANCE_NAME>БрокБізнесБанк</INSURANCE_NAME>
|
39
|
+
<INSURANCE_PHONE>+33(333)333-33-33</INSURANCE_PHONE>
|
40
|
+
<AGENT_REG>132123</AGENT_REG>
|
41
|
+
<CARRIER_REG>132123</CARRIER_REG>
|
42
|
+
<INSURANCE_REG>232323223</INSURANCE_REG>
|
43
|
+
<TOTAL_TARIFF>75.0</TOTAL_TARIFF>
|
44
|
+
<TOTAL_TARIFF_IN_CURRENCY>75.0</TOTAL_TARIFF_IN_CURRENCY>
|
45
|
+
<TOTAL_TARIFF_VAT>15.0</TOTAL_TARIFF_VAT>
|
46
|
+
<TOTAL_TARIFF_VAT_IN_CURRENCY>15.0</TOTAL_TARIFF_VAT_IN_CURRENCY>
|
47
|
+
<SALE_CUR_CODE>UAH</SALE_CUR_CODE>
|
48
|
+
<TARIFF_CUR_CODE>UAH</TARIFF_CUR_CODE>
|
49
|
+
<TARIFF_CUR_RATE/>
|
50
|
+
<TOTAL_AMOUNT>110.0</TOTAL_AMOUNT>
|
51
|
+
<TOTAL_AMOUNT_VAT>18.33</TOTAL_AMOUNT_VAT>
|
52
|
+
<CUSTOMER_NAME/>
|
53
|
+
<CUSTOMER_PHONE/>
|
54
|
+
<CUSTOMER_ADDRESS/>
|
55
|
+
<AGENT_ADDRESS>м Київ, вул Якіра, д 13-б</AGENT_ADDRESS>
|
56
|
+
<CARRIER_ADDRESS>м Київ, вул Якіра, д 13-б</CARRIER_ADDRESS>
|
57
|
+
<STATION_ADDRESS>м. Донецьк. вул. Донецька</STATION_ADDRESS>
|
58
|
+
<INSURANCE_ADDRESS>м Київ</INSURANCE_ADDRESS>
|
59
|
+
<AGENT_CODE>ЮПТ</AGENT_CODE>
|
60
|
+
<AGENT_CITY>Київ</AGENT_CITY>
|
61
|
+
<CARRIER_CODE>ЮПТ</CARRIER_CODE>
|
62
|
+
<BEGIN_AVIACODE>DOK</BEGIN_AVIACODE>
|
63
|
+
<END_AVIACODE>ODS</END_AVIACODE>
|
64
|
+
<XT>0.0</XT>
|
65
|
+
<XT_VAT>0.0</XT_VAT>
|
66
|
+
<COMMISSION>
|
67
|
+
<TYPE>-1</TYPE>
|
68
|
+
<CODE>XP</CODE>
|
69
|
+
<DESCRIPTION>Агентський збір</DESCRIPTION>
|
70
|
+
<VALUE>20.0</VALUE>
|
71
|
+
<VAT>3.33</VAT>
|
72
|
+
<CURRENCY>UAH</CURRENCY>
|
73
|
+
</COMMISSION>
|
74
|
+
</TICKET>
|
75
|
+
</DATA>
|
@@ -0,0 +1 @@
|
|
1
|
+
<DATA/>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SearchTripsRequestTest < Minitest::Test
|
4
|
+
|
5
|
+
def test_params
|
6
|
+
req = Gillbus::SearchTrips::Request.new(
|
7
|
+
start_date_search: Date.new(2013, 2, 4),
|
8
|
+
selected_modes: [:avia, :connections],
|
9
|
+
round_trip: true
|
10
|
+
)
|
11
|
+
|
12
|
+
assert_equal req.params,
|
13
|
+
{
|
14
|
+
startDateSearch: "04.02.2013",
|
15
|
+
selectedModes: "3;8",
|
16
|
+
roundTrip: "1"
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
class SearchTripsResponseTest < Minitest::Test
|
23
|
+
|
24
|
+
def get_empty_search_trips
|
25
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-empty.xml'))
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_successful_search_trips
|
29
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-prod.xml'))
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_trips_with_segments
|
33
|
+
Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-segments.xml'))
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_empty_completed
|
37
|
+
response = get_empty_search_trips
|
38
|
+
assert response.completed
|
39
|
+
assert_equal [], response.trips
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_trips
|
43
|
+
response = get_successful_search_trips
|
44
|
+
assert response.completed
|
45
|
+
assert_equal 2, response.trips.size
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_fields_parsing
|
49
|
+
response = get_successful_search_trips
|
50
|
+
assert_equal Date.new(2014,8,23), response.trips.first.start_date
|
51
|
+
assert_equal Money.new(1410_00, "RUB"), response.trips.first.total_cost
|
52
|
+
assert_equal Money.new(1410_00, "RUB"), response.trips.first.tariffs.first.cost
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_faking_response
|
56
|
+
trip = Gillbus::Trip.new(
|
57
|
+
id: '12345',
|
58
|
+
start_date: Date.today
|
59
|
+
)
|
60
|
+
assert_equal '12345', trip.id
|
61
|
+
assert_equal Date.today, trip.start_date
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_trips_with_segments
|
65
|
+
response = get_trips_with_segments
|
66
|
+
assert response.completed
|
67
|
+
assert_equal 2, response.trips.size
|
68
|
+
assert_equal 2, response.trips.first.segments.size
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TicketsBookingTest < Minitest::Test
|
4
|
+
|
5
|
+
def tickets_booking
|
6
|
+
Gillbus::TicketsBooking::Response.parse_string(File.read('test/responses/ticketsBooking.xml'))
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_number
|
10
|
+
assert_equal("8472", tickets_booking.tickets.first.ticket_number)
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_total
|
14
|
+
assert_equal(Money.new(110_00, "UAH"), tickets_booking.tickets.first.total_amount)
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,303 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gillbus
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.11.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexey "codesnik" Trofimenko
|
8
|
+
- Kirill Platonov
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: multi_xml
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: faraday
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: money
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: monetize
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: activesupport
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: bundler
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.6'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.6'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rake
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: minitest
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: pry
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
description:
|
141
|
+
email:
|
142
|
+
- aronaxis@gmail.com
|
143
|
+
- mail@kirillplatonov.com
|
144
|
+
executables: []
|
145
|
+
extensions: []
|
146
|
+
extra_rdoc_files: []
|
147
|
+
files:
|
148
|
+
- ".gitignore"
|
149
|
+
- ".ruby-version"
|
150
|
+
- Gemfile
|
151
|
+
- Guardfile
|
152
|
+
- LICENSE.txt
|
153
|
+
- README.md
|
154
|
+
- Rakefile
|
155
|
+
- gillbus.gemspec
|
156
|
+
- lib/gillbus.rb
|
157
|
+
- lib/gillbus/base_request.rb
|
158
|
+
- lib/gillbus/base_response.rb
|
159
|
+
- lib/gillbus/buy_booking.rb
|
160
|
+
- lib/gillbus/buy_tickets.rb
|
161
|
+
- lib/gillbus/cancel_order.rb
|
162
|
+
- lib/gillbus/drivers/faraday_response_file_logger.rb
|
163
|
+
- lib/gillbus/find_order.rb
|
164
|
+
- lib/gillbus/get_all_cities.rb
|
165
|
+
- lib/gillbus/get_cities.rb
|
166
|
+
- lib/gillbus/get_countries.rb
|
167
|
+
- lib/gillbus/get_dates_new.rb
|
168
|
+
- lib/gillbus/get_order_status.rb
|
169
|
+
- lib/gillbus/get_order_ticket.rb
|
170
|
+
- lib/gillbus/get_required_fields.rb
|
171
|
+
- lib/gillbus/get_time_table.rb
|
172
|
+
- lib/gillbus/get_trip_seats.rb
|
173
|
+
- lib/gillbus/get_trips.rb
|
174
|
+
- lib/gillbus/helpers/fields.rb
|
175
|
+
- lib/gillbus/helpers/parser.rb
|
176
|
+
- lib/gillbus/helpers/update_attrs.rb
|
177
|
+
- lib/gillbus/lock_seats.rb
|
178
|
+
- lib/gillbus/logout.rb
|
179
|
+
- lib/gillbus/parse_error.rb
|
180
|
+
- lib/gillbus/reserve_tickets.rb
|
181
|
+
- lib/gillbus/search_trips.rb
|
182
|
+
- lib/gillbus/session_login.rb
|
183
|
+
- lib/gillbus/structs/commission.rb
|
184
|
+
- lib/gillbus/structs/item.rb
|
185
|
+
- lib/gillbus/structs/passenger_discount.rb
|
186
|
+
- lib/gillbus/structs/point.rb
|
187
|
+
- lib/gillbus/structs/return_cause.rb
|
188
|
+
- lib/gillbus/structs/seat.rb
|
189
|
+
- lib/gillbus/structs/segment.rb
|
190
|
+
- lib/gillbus/structs/tariff.rb
|
191
|
+
- lib/gillbus/structs/ticket.rb
|
192
|
+
- lib/gillbus/structs/timetable_segment.rb
|
193
|
+
- lib/gillbus/structs/timetable_trip.rb
|
194
|
+
- lib/gillbus/structs/trip.rb
|
195
|
+
- lib/gillbus/tickets_booking.rb
|
196
|
+
- lib/gillbus/unlock_seats.rb
|
197
|
+
- lib/gillbus/version.rb
|
198
|
+
- script/example_booking.rb
|
199
|
+
- script/example_booking_with_segments.rb
|
200
|
+
- script/example_canceling_booking.rb
|
201
|
+
- script/example_canceling_reservation.rb
|
202
|
+
- script/example_reservation.rb
|
203
|
+
- test/buy_booking_test.rb
|
204
|
+
- test/buy_tickets_test.rb
|
205
|
+
- test/cancel_order_test.rb
|
206
|
+
- test/error_test.rb
|
207
|
+
- test/find_order_test.rb
|
208
|
+
- test/get_cities_test.rb
|
209
|
+
- test/get_countries_test.rb
|
210
|
+
- test/get_dates_new_test.rb
|
211
|
+
- test/get_order_ticket_test.rb
|
212
|
+
- test/get_time_table_test.rb
|
213
|
+
- test/get_trip_seats_test.rb
|
214
|
+
- test/lock_seats_test.rb
|
215
|
+
- test/reserve_tickets_test.rb
|
216
|
+
- test/responses/buyBooking.xml
|
217
|
+
- test/responses/buyTickets.xml
|
218
|
+
- test/responses/cancelOrder.xml
|
219
|
+
- test/responses/error.xml
|
220
|
+
- test/responses/findOrder.xml
|
221
|
+
- test/responses/getCities.xml
|
222
|
+
- test/responses/getCountries.xml
|
223
|
+
- test/responses/getOrderTicket.xml
|
224
|
+
- test/responses/getTimeTable.xml
|
225
|
+
- test/responses/getTripSeats-one-empty-segment.xml
|
226
|
+
- test/responses/getTripSeats-segments.xml
|
227
|
+
- test/responses/getTripSeats.xml
|
228
|
+
- test/responses/lockSeats.xml
|
229
|
+
- test/responses/reserveTickets.xml
|
230
|
+
- test/responses/searchTrips-empty.xml
|
231
|
+
- test/responses/searchTrips-prod.xml
|
232
|
+
- test/responses/searchTrips-segments-roundtrip.xml
|
233
|
+
- test/responses/searchTrips-segments.xml
|
234
|
+
- test/responses/sessionLogin.xml
|
235
|
+
- test/responses/ticketsBooking.xml
|
236
|
+
- test/responses/very_empty.xml
|
237
|
+
- test/search_trips_test.rb
|
238
|
+
- test/session_login_test.rb
|
239
|
+
- test/test_helper.rb
|
240
|
+
- test/tickets_booking_test.rb
|
241
|
+
homepage: http://gillbus.com/
|
242
|
+
licenses:
|
243
|
+
- MIT
|
244
|
+
metadata: {}
|
245
|
+
post_install_message:
|
246
|
+
rdoc_options: []
|
247
|
+
require_paths:
|
248
|
+
- lib
|
249
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0'
|
259
|
+
requirements: []
|
260
|
+
rubyforge_project:
|
261
|
+
rubygems_version: 2.4.8
|
262
|
+
signing_key:
|
263
|
+
specification_version: 4
|
264
|
+
summary: Driver for Gillbus IDS API
|
265
|
+
test_files:
|
266
|
+
- test/buy_booking_test.rb
|
267
|
+
- test/buy_tickets_test.rb
|
268
|
+
- test/cancel_order_test.rb
|
269
|
+
- test/error_test.rb
|
270
|
+
- test/find_order_test.rb
|
271
|
+
- test/get_cities_test.rb
|
272
|
+
- test/get_countries_test.rb
|
273
|
+
- test/get_dates_new_test.rb
|
274
|
+
- test/get_order_ticket_test.rb
|
275
|
+
- test/get_time_table_test.rb
|
276
|
+
- test/get_trip_seats_test.rb
|
277
|
+
- test/lock_seats_test.rb
|
278
|
+
- test/reserve_tickets_test.rb
|
279
|
+
- test/responses/buyBooking.xml
|
280
|
+
- test/responses/buyTickets.xml
|
281
|
+
- test/responses/cancelOrder.xml
|
282
|
+
- test/responses/error.xml
|
283
|
+
- test/responses/findOrder.xml
|
284
|
+
- test/responses/getCities.xml
|
285
|
+
- test/responses/getCountries.xml
|
286
|
+
- test/responses/getOrderTicket.xml
|
287
|
+
- test/responses/getTimeTable.xml
|
288
|
+
- test/responses/getTripSeats-one-empty-segment.xml
|
289
|
+
- test/responses/getTripSeats-segments.xml
|
290
|
+
- test/responses/getTripSeats.xml
|
291
|
+
- test/responses/lockSeats.xml
|
292
|
+
- test/responses/reserveTickets.xml
|
293
|
+
- test/responses/searchTrips-empty.xml
|
294
|
+
- test/responses/searchTrips-prod.xml
|
295
|
+
- test/responses/searchTrips-segments-roundtrip.xml
|
296
|
+
- test/responses/searchTrips-segments.xml
|
297
|
+
- test/responses/sessionLogin.xml
|
298
|
+
- test/responses/ticketsBooking.xml
|
299
|
+
- test/responses/very_empty.xml
|
300
|
+
- test/search_trips_test.rb
|
301
|
+
- test/session_login_test.rb
|
302
|
+
- test/test_helper.rb
|
303
|
+
- test/tickets_booking_test.rb
|