quicktravel_client 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -1
- data/.travis.yml +14 -2
- data/CHANGELOG.md +34 -3
- data/Gemfile +0 -3
- data/Rakefile +0 -6
- data/examples/login_example.rb +1 -1
- data/gemfiles/rails4.gemfile +9 -0
- data/lib/quick_travel.rb +2 -1
- data/lib/quick_travel/accommodation.rb +1 -15
- data/lib/quick_travel/adapter.rb +98 -67
- data/lib/quick_travel/{adapter_exception.rb → adapter_error.rb} +1 -1
- data/lib/quick_travel/address.rb +2 -7
- data/lib/quick_travel/adjustment.rb +0 -2
- data/lib/quick_travel/bed_configuration.rb +0 -1
- data/lib/quick_travel/bed_requirement.rb +0 -1
- data/lib/quick_travel/booking.rb +22 -46
- data/lib/quick_travel/cache.rb +8 -14
- data/lib/quick_travel/checkout.rb +1 -1
- data/lib/quick_travel/client.rb +2 -4
- data/lib/quick_travel/client_type.rb +2 -1
- data/lib/quick_travel/connection_error.rb +1 -1
- data/lib/quick_travel/constants.rb +0 -1
- data/lib/quick_travel/contact.rb +0 -1
- data/lib/quick_travel/country.rb +0 -3
- data/lib/quick_travel/document.rb +0 -2
- data/lib/quick_travel/document_group.rb +0 -2
- data/lib/quick_travel/location.rb +0 -2
- data/lib/quick_travel/party.rb +7 -12
- data/lib/quick_travel/passenger.rb +0 -1
- data/lib/quick_travel/passenger_price_break.rb +0 -2
- data/lib/quick_travel/passenger_type.rb +0 -2
- data/lib/quick_travel/payment.rb +0 -3
- data/lib/quick_travel/payment_type.rb +4 -13
- data/lib/quick_travel/price_changes.rb +3 -0
- data/lib/quick_travel/price_changes/booking_price_change.rb +30 -0
- data/lib/quick_travel/price_changes/price_change.rb +23 -0
- data/lib/quick_travel/{discounts/discount_tree.rb → price_changes/price_change_tree.rb} +12 -8
- data/lib/quick_travel/product.rb +15 -28
- data/lib/quick_travel/product_type.rb +4 -16
- data/lib/quick_travel/property.rb +4 -20
- data/lib/quick_travel/property_facility.rb +0 -1
- data/lib/quick_travel/property_type.rb +2 -14
- data/lib/quick_travel/region.rb +0 -9
- data/lib/quick_travel/reservation.rb +0 -21
- data/lib/quick_travel/resource.rb +7 -28
- data/lib/quick_travel/room_facility.rb +0 -1
- data/lib/quick_travel/route.rb +9 -25
- data/lib/quick_travel/route_stop.rb +0 -1
- data/lib/quick_travel/service.rb +2 -1
- data/lib/quick_travel/status.rb +23 -0
- data/lib/quick_travel/trip.rb +0 -1
- data/lib/quick_travel/vehicle.rb +2 -4
- data/lib/quick_travel/vehicle_type.rb +0 -3
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +4 -4
- data/spec/booking_spec.rb +24 -0
- data/spec/discounts_spec.rb +69 -69
- data/spec/passenger_type_spec.rb +30 -0
- data/spec/payment_type_spec.rb +10 -0
- data/spec/product_spec.rb +52 -21
- data/spec/product_type_spec.rb +19 -0
- data/spec/property_spec.rb +83 -0
- data/spec/region_spec.rb +1 -1
- data/spec/reservation_spec.rb +3 -2
- data/spec/resource_spec.rb +31 -7
- data/spec/route_spec.rb +118 -0
- data/spec/spec_helper.rb +18 -25
- data/spec/status_spec.rb +9 -0
- data/spec/support/cassettes/booking_create.yml +39 -33
- data/spec/support/cassettes/booking_documents.yml +36 -30
- data/spec/support/cassettes/booking_price_changes.yml +66 -0
- data/spec/support/cassettes/booking_show.yml +38 -32
- data/spec/support/cassettes/booking_update.yml +74 -62
- data/spec/support/cassettes/booking_with_documents.yml +88 -76
- data/spec/support/cassettes/booking_with_nested_attributes.yml +128 -110
- data/spec/support/cassettes/booking_with_price_changes.yml +86 -0
- data/spec/support/cassettes/countries.yml +140 -0
- data/spec/support/cassettes/country_all.yml +36 -30
- data/spec/support/cassettes/create_reservation_fail.yml +32 -27
- data/spec/support/cassettes/create_reservation_with_booking.yml +40 -34
- data/spec/support/cassettes/passenger_all.yml +36 -30
- data/spec/support/cassettes/payment_info.yml +61 -0
- data/spec/support/cassettes/product_date_range_bookability.yml +61 -59
- data/spec/support/cassettes/product_show.yml +42 -32
- data/spec/support/cassettes/product_show_as_agent.yml +63 -0
- data/spec/support/cassettes/product_type_all.yml +53 -0
- data/spec/support/cassettes/property.yml +66 -0
- data/spec/support/cassettes/region_show.yml +36 -30
- data/spec/support/cassettes/reservation_with_extra_picks.yml +137 -110
- data/spec/support/cassettes/resource_fare_bases.yml +47 -78
- data/spec/support/cassettes/resource_product_type.yml +63 -0
- data/spec/support/cassettes/resource_show.yml +37 -31
- data/spec/support/cassettes/resource_with_price.yml +63 -0
- data/spec/support/cassettes/route_all.yml +65 -0
- data/spec/support/cassettes/tenant_switcher.yml +109 -0
- data/spec/support/coverage_loader.rb +26 -0
- data/spec/tenant_spec.rb +28 -0
- metadata +106 -115
- data/bootstrap/boot.rb +0 -4
- data/lib/quick_travel/discounts.rb +0 -3
- data/lib/quick_travel/discounts/booking_discount.rb +0 -18
- data/lib/quick_travel/discounts/discount.rb +0 -21
- data/spec/support/cassettes/booking_create_legacy.yml +0 -50
- data/spec/support/cassettes/booking_discounts.yml +0 -53
- data/spec/support/cassettes/booking_with_discounts.yml +0 -72
- data/spec/support/cassettes/region_index.yml +0 -48
@@ -0,0 +1,26 @@
|
|
1
|
+
MINIMUM_COVERAGE = 74.9
|
2
|
+
|
3
|
+
if ENV['COVERAGE'] != 'off'
|
4
|
+
require 'simplecov'
|
5
|
+
require 'simplecov-rcov'
|
6
|
+
require 'coveralls'
|
7
|
+
Coveralls.wear!
|
8
|
+
|
9
|
+
SimpleCov.formatters = [
|
10
|
+
SimpleCov::Formatter::RcovFormatter,
|
11
|
+
Coveralls::SimpleCov::Formatter
|
12
|
+
]
|
13
|
+
SimpleCov.start do
|
14
|
+
add_filter '/vendor/'
|
15
|
+
add_filter '/spec/'
|
16
|
+
add_group 'lib', 'lib'
|
17
|
+
end
|
18
|
+
SimpleCov.at_exit do
|
19
|
+
SimpleCov.result.format!
|
20
|
+
percent = SimpleCov.result.covered_percent
|
21
|
+
unless percent >= MINIMUM_COVERAGE
|
22
|
+
puts "Coverage must be above #{MINIMUM_COVERAGE}%. It is #{'%.2f' % percent}%"
|
23
|
+
Kernel.exit(1)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/spec/tenant_spec.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'quick_travel/adapter'
|
3
|
+
require 'quick_travel/product_type'
|
4
|
+
|
5
|
+
describe QuickTravel::Adapter do
|
6
|
+
let(:tenant1) { 'http://test.qt.sealink.com.au:8080' }
|
7
|
+
let(:tenant2) { 'http://test.qt.other.com.au:8080' }
|
8
|
+
|
9
|
+
let(:qt_keys) { ENV['QT_KEYS'].split(',') }
|
10
|
+
|
11
|
+
it 'should switch bases' do
|
12
|
+
VCR.use_cassette 'tenant_switcher' do
|
13
|
+
QuickTravel::Adapter.base_uri tenant1
|
14
|
+
QuickTravel.config.access_key = qt_keys[0]
|
15
|
+
|
16
|
+
expect(QuickTravel::Adapter.base_uri).to eq tenant1
|
17
|
+
QuickTravel::ProductType.find_all!("/api/product_types.json")
|
18
|
+
expect(QuickTravel::ProductType.base_uri).to eq tenant1
|
19
|
+
|
20
|
+
QuickTravel::Adapter.base_uri tenant2
|
21
|
+
QuickTravel.config.access_key = qt_keys[1]
|
22
|
+
|
23
|
+
expect(QuickTravel::Adapter.base_uri).to eq tenant2
|
24
|
+
QuickTravel::ProductType.find_all!("/api/product_types.json")
|
25
|
+
expect(QuickTravel::ProductType.base_uri).to eq tenant2
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quicktravel_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Noack
|
@@ -11,284 +10,250 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: httparty
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ">="
|
22
20
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - ">="
|
30
27
|
- !ruby/object:Gem::Version
|
31
|
-
version: 0
|
28
|
+
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: geokit
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- - ~>
|
33
|
+
- - "~>"
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: 1.8.3
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- - ~>
|
40
|
+
- - "~>"
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: 1.8.3
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: activesupport
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
|
-
- -
|
47
|
+
- - ">="
|
54
48
|
- !ruby/object:Gem::Version
|
55
49
|
version: 2.0.0
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
|
-
- -
|
54
|
+
- - ">="
|
62
55
|
- !ruby/object:Gem::Version
|
63
56
|
version: 2.0.0
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: money_extensions
|
66
|
-
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
|
-
requirements:
|
69
|
-
- - ! '>='
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0'
|
72
|
-
type: :runtime
|
73
|
-
prerelease: false
|
74
|
-
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
|
-
requirements:
|
77
|
-
- - ! '>='
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '0'
|
80
57
|
- !ruby/object:Gem::Dependency
|
81
58
|
name: facets
|
82
59
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
60
|
requirements:
|
85
|
-
- -
|
61
|
+
- - ">="
|
86
62
|
- !ruby/object:Gem::Version
|
87
63
|
version: '0'
|
88
64
|
type: :runtime
|
89
65
|
prerelease: false
|
90
66
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
67
|
requirements:
|
93
|
-
- -
|
68
|
+
- - ">="
|
94
69
|
- !ruby/object:Gem::Version
|
95
70
|
version: '0'
|
96
71
|
- !ruby/object:Gem::Dependency
|
97
72
|
name: money
|
98
73
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
74
|
requirements:
|
101
|
-
- -
|
75
|
+
- - ">="
|
102
76
|
- !ruby/object:Gem::Version
|
103
77
|
version: '3.0'
|
104
|
-
- - <
|
78
|
+
- - "<"
|
105
79
|
- !ruby/object:Gem::Version
|
106
80
|
version: '6.0'
|
107
81
|
type: :runtime
|
108
82
|
prerelease: false
|
109
83
|
version_requirements: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
84
|
requirements:
|
112
|
-
- -
|
85
|
+
- - ">="
|
113
86
|
- !ruby/object:Gem::Version
|
114
87
|
version: '3.0'
|
115
|
-
- - <
|
88
|
+
- - "<"
|
116
89
|
- !ruby/object:Gem::Version
|
117
90
|
version: '6.0'
|
118
91
|
- !ruby/object:Gem::Dependency
|
119
92
|
name: bundler
|
120
93
|
requirement: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
94
|
requirements:
|
123
|
-
- - ~>
|
95
|
+
- - "~>"
|
124
96
|
- !ruby/object:Gem::Version
|
125
97
|
version: '1.7'
|
126
98
|
type: :development
|
127
99
|
prerelease: false
|
128
100
|
version_requirements: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
101
|
requirements:
|
131
|
-
- - ~>
|
102
|
+
- - "~>"
|
132
103
|
- !ruby/object:Gem::Version
|
133
104
|
version: '1.7'
|
134
105
|
- !ruby/object:Gem::Dependency
|
135
106
|
name: rake
|
136
107
|
requirement: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
108
|
requirements:
|
139
|
-
- -
|
109
|
+
- - ">="
|
140
110
|
- !ruby/object:Gem::Version
|
141
111
|
version: '0'
|
142
112
|
type: :development
|
143
113
|
prerelease: false
|
144
114
|
version_requirements: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
115
|
requirements:
|
147
|
-
- -
|
116
|
+
- - ">="
|
148
117
|
- !ruby/object:Gem::Version
|
149
118
|
version: '0'
|
150
119
|
- !ruby/object:Gem::Dependency
|
151
120
|
name: rspec
|
152
121
|
requirement: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
122
|
requirements:
|
155
|
-
- -
|
123
|
+
- - ">="
|
156
124
|
- !ruby/object:Gem::Version
|
157
125
|
version: '0'
|
158
126
|
type: :development
|
159
127
|
prerelease: false
|
160
128
|
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
129
|
requirements:
|
163
|
-
- -
|
130
|
+
- - ">="
|
164
131
|
- !ruby/object:Gem::Version
|
165
132
|
version: '0'
|
166
133
|
- !ruby/object:Gem::Dependency
|
167
134
|
name: rspec-its
|
168
135
|
requirement: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
136
|
requirements:
|
171
|
-
- -
|
137
|
+
- - ">="
|
172
138
|
- !ruby/object:Gem::Version
|
173
139
|
version: '0'
|
174
140
|
type: :development
|
175
141
|
prerelease: false
|
176
142
|
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
143
|
requirements:
|
179
|
-
- -
|
144
|
+
- - ">="
|
180
145
|
- !ruby/object:Gem::Version
|
181
146
|
version: '0'
|
182
147
|
- !ruby/object:Gem::Dependency
|
183
148
|
name: simplecov
|
184
149
|
requirement: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
150
|
requirements:
|
187
|
-
- -
|
151
|
+
- - ">="
|
188
152
|
- !ruby/object:Gem::Version
|
189
153
|
version: '0'
|
190
154
|
type: :development
|
191
155
|
prerelease: false
|
192
156
|
version_requirements: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
157
|
requirements:
|
195
|
-
- -
|
158
|
+
- - ">="
|
196
159
|
- !ruby/object:Gem::Version
|
197
160
|
version: '0'
|
198
161
|
- !ruby/object:Gem::Dependency
|
199
162
|
name: simplecov-rcov
|
200
163
|
requirement: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
164
|
requirements:
|
203
|
-
- -
|
165
|
+
- - ">="
|
204
166
|
- !ruby/object:Gem::Version
|
205
167
|
version: '0'
|
206
168
|
type: :development
|
207
169
|
prerelease: false
|
208
170
|
version_requirements: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
171
|
requirements:
|
211
|
-
- -
|
172
|
+
- - ">="
|
212
173
|
- !ruby/object:Gem::Version
|
213
174
|
version: '0'
|
214
175
|
- !ruby/object:Gem::Dependency
|
215
176
|
name: coveralls
|
216
177
|
requirement: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
178
|
requirements:
|
219
|
-
- -
|
179
|
+
- - ">="
|
220
180
|
- !ruby/object:Gem::Version
|
221
181
|
version: '0'
|
222
182
|
type: :development
|
223
183
|
prerelease: false
|
224
184
|
version_requirements: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
185
|
requirements:
|
227
|
-
- -
|
186
|
+
- - ">="
|
228
187
|
- !ruby/object:Gem::Version
|
229
188
|
version: '0'
|
230
189
|
- !ruby/object:Gem::Dependency
|
231
190
|
name: stamp
|
232
191
|
requirement: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
192
|
requirements:
|
235
|
-
- -
|
193
|
+
- - ">="
|
236
194
|
- !ruby/object:Gem::Version
|
237
195
|
version: '0'
|
238
196
|
type: :development
|
239
197
|
prerelease: false
|
240
198
|
version_requirements: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
199
|
requirements:
|
243
|
-
- -
|
200
|
+
- - ">="
|
244
201
|
- !ruby/object:Gem::Version
|
245
202
|
version: '0'
|
246
203
|
- !ruby/object:Gem::Dependency
|
247
204
|
name: vcr
|
248
205
|
requirement: !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
206
|
requirements:
|
251
|
-
- -
|
207
|
+
- - ">="
|
252
208
|
- !ruby/object:Gem::Version
|
253
|
-
version:
|
209
|
+
version: '0'
|
254
210
|
type: :development
|
255
211
|
prerelease: false
|
256
212
|
version_requirements: !ruby/object:Gem::Requirement
|
257
|
-
none: false
|
258
213
|
requirements:
|
259
|
-
- -
|
214
|
+
- - ">="
|
260
215
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
216
|
+
version: '0'
|
262
217
|
- !ruby/object:Gem::Dependency
|
263
|
-
name:
|
218
|
+
name: webmock
|
264
219
|
requirement: !ruby/object:Gem::Requirement
|
265
|
-
none: false
|
266
220
|
requirements:
|
267
|
-
- -
|
221
|
+
- - ">="
|
268
222
|
- !ruby/object:Gem::Version
|
269
223
|
version: '0'
|
270
224
|
type: :development
|
271
225
|
prerelease: false
|
272
226
|
version_requirements: !ruby/object:Gem::Requirement
|
273
|
-
none: false
|
274
227
|
requirements:
|
275
|
-
- -
|
228
|
+
- - ">="
|
276
229
|
- !ruby/object:Gem::Version
|
277
230
|
version: '0'
|
278
231
|
- !ruby/object:Gem::Dependency
|
279
232
|
name: rubocop
|
280
233
|
requirement: !ruby/object:Gem::Requirement
|
281
|
-
none: false
|
282
234
|
requirements:
|
283
|
-
- -
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
type: :development
|
239
|
+
prerelease: false
|
240
|
+
version_requirements: !ruby/object:Gem::Requirement
|
241
|
+
requirements:
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
245
|
+
- !ruby/object:Gem::Dependency
|
246
|
+
name: travis
|
247
|
+
requirement: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - ">="
|
284
250
|
- !ruby/object:Gem::Version
|
285
251
|
version: '0'
|
286
252
|
type: :development
|
287
253
|
prerelease: false
|
288
254
|
version_requirements: !ruby/object:Gem::Requirement
|
289
|
-
none: false
|
290
255
|
requirements:
|
291
|
-
- -
|
256
|
+
- - ">="
|
292
257
|
- !ruby/object:Gem::Version
|
293
258
|
version: '0'
|
294
259
|
description: For integrating with QuickTravel API
|
@@ -297,25 +262,25 @@ executables: []
|
|
297
262
|
extensions: []
|
298
263
|
extra_rdoc_files: []
|
299
264
|
files:
|
300
|
-
- .gitignore
|
301
|
-
- .rspec
|
302
|
-
- .rubocop.yml
|
303
|
-
- .ruby-version
|
304
|
-
- .travis.yml
|
265
|
+
- ".gitignore"
|
266
|
+
- ".rspec"
|
267
|
+
- ".rubocop.yml"
|
268
|
+
- ".ruby-version"
|
269
|
+
- ".travis.yml"
|
305
270
|
- CHANGELOG.md
|
306
271
|
- Gemfile
|
307
272
|
- LICENSE
|
308
273
|
- README.md
|
309
274
|
- Rakefile
|
310
|
-
- bootstrap/boot.rb
|
311
275
|
- examples/example_config.rb
|
312
276
|
- examples/login_example.rb
|
313
277
|
- gemfiles/rails2.gemfile
|
278
|
+
- gemfiles/rails4.gemfile
|
314
279
|
- lib/extensions.rb
|
315
280
|
- lib/quick_travel.rb
|
316
281
|
- lib/quick_travel/accommodation.rb
|
317
282
|
- lib/quick_travel/adapter.rb
|
318
|
-
- lib/quick_travel/
|
283
|
+
- lib/quick_travel/adapter_error.rb
|
319
284
|
- lib/quick_travel/address.rb
|
320
285
|
- lib/quick_travel/adjustment.rb
|
321
286
|
- lib/quick_travel/background_check.rb
|
@@ -332,10 +297,6 @@ files:
|
|
332
297
|
- lib/quick_travel/contact.rb
|
333
298
|
- lib/quick_travel/country.rb
|
334
299
|
- lib/quick_travel/credit_card.rb
|
335
|
-
- lib/quick_travel/discounts.rb
|
336
|
-
- lib/quick_travel/discounts/booking_discount.rb
|
337
|
-
- lib/quick_travel/discounts/discount.rb
|
338
|
-
- lib/quick_travel/discounts/discount_tree.rb
|
339
300
|
- lib/quick_travel/document.rb
|
340
301
|
- lib/quick_travel/document_group.rb
|
341
302
|
- lib/quick_travel/encrypt.rb
|
@@ -350,6 +311,10 @@ files:
|
|
350
311
|
- lib/quick_travel/payment.rb
|
351
312
|
- lib/quick_travel/payment_type.rb
|
352
313
|
- lib/quick_travel/price.rb
|
314
|
+
- lib/quick_travel/price_changes.rb
|
315
|
+
- lib/quick_travel/price_changes/booking_price_change.rb
|
316
|
+
- lib/quick_travel/price_changes/price_change.rb
|
317
|
+
- lib/quick_travel/price_changes/price_change_tree.rb
|
353
318
|
- lib/quick_travel/product.rb
|
354
319
|
- lib/quick_travel/product_configuration.rb
|
355
320
|
- lib/quick_travel/product_passenger_search_criteria.rb
|
@@ -365,6 +330,7 @@ files:
|
|
365
330
|
- lib/quick_travel/route_stop.rb
|
366
331
|
- lib/quick_travel/search.rb
|
367
332
|
- lib/quick_travel/service.rb
|
333
|
+
- lib/quick_travel/status.rb
|
368
334
|
- lib/quick_travel/trip.rb
|
369
335
|
- lib/quick_travel/vehicle.rb
|
370
336
|
- lib/quick_travel/vehicle_type.rb
|
@@ -378,53 +344,65 @@ files:
|
|
378
344
|
- spec/passenger_type_spec.rb
|
379
345
|
- spec/payment_type_spec.rb
|
380
346
|
- spec/product_spec.rb
|
347
|
+
- spec/product_type_spec.rb
|
348
|
+
- spec/property_spec.rb
|
381
349
|
- spec/region_spec.rb
|
382
350
|
- spec/reservation_spec.rb
|
383
351
|
- spec/resource_spec.rb
|
352
|
+
- spec/route_spec.rb
|
384
353
|
- spec/spec_helper.rb
|
354
|
+
- spec/status_spec.rb
|
385
355
|
- spec/support/cassettes/booking_create.yml
|
386
|
-
- spec/support/cassettes/booking_create_legacy.yml
|
387
|
-
- spec/support/cassettes/booking_discounts.yml
|
388
356
|
- spec/support/cassettes/booking_documents.yml
|
357
|
+
- spec/support/cassettes/booking_price_changes.yml
|
389
358
|
- spec/support/cassettes/booking_show.yml
|
390
359
|
- spec/support/cassettes/booking_update.yml
|
391
|
-
- spec/support/cassettes/booking_with_discounts.yml
|
392
360
|
- spec/support/cassettes/booking_with_documents.yml
|
393
361
|
- spec/support/cassettes/booking_with_nested_attributes.yml
|
362
|
+
- spec/support/cassettes/booking_with_price_changes.yml
|
363
|
+
- spec/support/cassettes/countries.yml
|
394
364
|
- spec/support/cassettes/country_all.yml
|
395
365
|
- spec/support/cassettes/create_reservation_fail.yml
|
396
366
|
- spec/support/cassettes/create_reservation_with_booking.yml
|
397
367
|
- spec/support/cassettes/passenger_all.yml
|
368
|
+
- spec/support/cassettes/payment_info.yml
|
398
369
|
- spec/support/cassettes/product_date_range_bookability.yml
|
399
370
|
- spec/support/cassettes/product_show.yml
|
400
|
-
- spec/support/cassettes/
|
371
|
+
- spec/support/cassettes/product_show_as_agent.yml
|
372
|
+
- spec/support/cassettes/product_type_all.yml
|
373
|
+
- spec/support/cassettes/property.yml
|
401
374
|
- spec/support/cassettes/region_show.yml
|
402
375
|
- spec/support/cassettes/reservation_with_extra_picks.yml
|
403
376
|
- spec/support/cassettes/resource_fare_bases.yml
|
377
|
+
- spec/support/cassettes/resource_product_type.yml
|
404
378
|
- spec/support/cassettes/resource_show.yml
|
379
|
+
- spec/support/cassettes/resource_with_price.yml
|
380
|
+
- spec/support/cassettes/route_all.yml
|
381
|
+
- spec/support/cassettes/tenant_switcher.yml
|
382
|
+
- spec/support/coverage_loader.rb
|
383
|
+
- spec/tenant_spec.rb
|
405
384
|
homepage: https://bitbucket.org/team-sealink/quicktravel_client
|
406
385
|
licenses: []
|
386
|
+
metadata: {}
|
407
387
|
post_install_message:
|
408
388
|
rdoc_options: []
|
409
389
|
require_paths:
|
410
390
|
- lib
|
411
391
|
required_ruby_version: !ruby/object:Gem::Requirement
|
412
|
-
none: false
|
413
392
|
requirements:
|
414
|
-
- -
|
393
|
+
- - ">="
|
415
394
|
- !ruby/object:Gem::Version
|
416
395
|
version: '0'
|
417
396
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
418
|
-
none: false
|
419
397
|
requirements:
|
420
|
-
- -
|
398
|
+
- - ">="
|
421
399
|
- !ruby/object:Gem::Version
|
422
400
|
version: '0'
|
423
401
|
requirements: []
|
424
402
|
rubyforge_project:
|
425
|
-
rubygems_version:
|
403
|
+
rubygems_version: 2.4.5.1
|
426
404
|
signing_key:
|
427
|
-
specification_version:
|
405
|
+
specification_version: 4
|
428
406
|
summary: Booking process using QuickTravel API
|
429
407
|
test_files:
|
430
408
|
- spec/booking_spec.rb
|
@@ -434,27 +412,40 @@ test_files:
|
|
434
412
|
- spec/passenger_type_spec.rb
|
435
413
|
- spec/payment_type_spec.rb
|
436
414
|
- spec/product_spec.rb
|
415
|
+
- spec/product_type_spec.rb
|
416
|
+
- spec/property_spec.rb
|
437
417
|
- spec/region_spec.rb
|
438
418
|
- spec/reservation_spec.rb
|
439
419
|
- spec/resource_spec.rb
|
420
|
+
- spec/route_spec.rb
|
440
421
|
- spec/spec_helper.rb
|
422
|
+
- spec/status_spec.rb
|
441
423
|
- spec/support/cassettes/booking_create.yml
|
442
|
-
- spec/support/cassettes/booking_create_legacy.yml
|
443
|
-
- spec/support/cassettes/booking_discounts.yml
|
444
424
|
- spec/support/cassettes/booking_documents.yml
|
425
|
+
- spec/support/cassettes/booking_price_changes.yml
|
445
426
|
- spec/support/cassettes/booking_show.yml
|
446
427
|
- spec/support/cassettes/booking_update.yml
|
447
|
-
- spec/support/cassettes/booking_with_discounts.yml
|
448
428
|
- spec/support/cassettes/booking_with_documents.yml
|
449
429
|
- spec/support/cassettes/booking_with_nested_attributes.yml
|
430
|
+
- spec/support/cassettes/booking_with_price_changes.yml
|
431
|
+
- spec/support/cassettes/countries.yml
|
450
432
|
- spec/support/cassettes/country_all.yml
|
451
433
|
- spec/support/cassettes/create_reservation_fail.yml
|
452
434
|
- spec/support/cassettes/create_reservation_with_booking.yml
|
453
435
|
- spec/support/cassettes/passenger_all.yml
|
436
|
+
- spec/support/cassettes/payment_info.yml
|
454
437
|
- spec/support/cassettes/product_date_range_bookability.yml
|
455
438
|
- spec/support/cassettes/product_show.yml
|
456
|
-
- spec/support/cassettes/
|
439
|
+
- spec/support/cassettes/product_show_as_agent.yml
|
440
|
+
- spec/support/cassettes/product_type_all.yml
|
441
|
+
- spec/support/cassettes/property.yml
|
457
442
|
- spec/support/cassettes/region_show.yml
|
458
443
|
- spec/support/cassettes/reservation_with_extra_picks.yml
|
459
444
|
- spec/support/cassettes/resource_fare_bases.yml
|
445
|
+
- spec/support/cassettes/resource_product_type.yml
|
460
446
|
- spec/support/cassettes/resource_show.yml
|
447
|
+
- spec/support/cassettes/resource_with_price.yml
|
448
|
+
- spec/support/cassettes/route_all.yml
|
449
|
+
- spec/support/cassettes/tenant_switcher.yml
|
450
|
+
- spec/support/coverage_loader.rb
|
451
|
+
- spec/tenant_spec.rb
|