quicktravel_client 3.7.0 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +12 -0
- data/lib/quick_travel/adapter.rb +13 -25
- data/lib/quick_travel/booking.rb +0 -4
- data/lib/quick_travel/cache.rb +16 -4
- data/lib/quick_travel/checkout.rb +2 -1
- data/lib/quick_travel/client.rb +9 -1
- data/lib/quick_travel/init_from_hash.rb +4 -0
- data/lib/quick_travel/product_configuration.rb +1 -1
- data/lib/quick_travel/products/base.rb +4 -4
- data/lib/quick_travel/reservation.rb +1 -1
- data/lib/quick_travel/resource.rb +1 -1
- data/lib/quick_travel/route.rb +1 -1
- data/lib/quick_travel/route_stop.rb +8 -1
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +1 -1
- data/spec/adapter_spec.rb +34 -3
- data/spec/clients_spec.rb +42 -0
- data/spec/passenger_type_spec.rb +1 -1
- data/spec/product_configuration_spec.rb +11 -0
- data/spec/reservation_spec.rb +20 -0
- data/spec/spec_helper.rb +1 -3
- data/spec/support/cassettes/accommodation_reserve.yml +12 -4
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +3 -1
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +3 -1
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +3 -1
- data/spec/support/cassettes/booking_activate.yml +6 -2
- data/spec/support/cassettes/booking_cancel.yml +6 -2
- data/spec/support/cassettes/booking_create.yml +3 -1
- data/spec/support/cassettes/booking_create_accommodation.yml +3 -1
- data/spec/support/cassettes/booking_documents.yml +3 -1
- data/spec/support/cassettes/booking_non_existant.yml +3 -1
- data/spec/support/cassettes/booking_price_changes.yml +3 -1
- data/spec/support/cassettes/booking_show.yml +3 -1
- data/spec/support/cassettes/booking_update.yml +6 -2
- data/spec/support/cassettes/booking_with_documents.yml +6 -2
- data/spec/support/cassettes/booking_with_nested_attributes.yml +9 -3
- data/spec/support/cassettes/booking_with_price_changes.yml +3 -1
- data/spec/support/cassettes/checkout_client_token.yml +3 -1
- data/spec/support/cassettes/client_templates.yml +120 -0
- data/spec/support/cassettes/countries.yml +3 -1
- data/spec/support/cassettes/country_all.yml +3 -1
- data/spec/support/cassettes/create_reservation_fail.yml +3 -1
- data/spec/support/cassettes/create_reservation_with_booking.yml +3 -1
- data/spec/support/cassettes/locations.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_failed_booking.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_failed_create.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_failed_update.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_successful_booking.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_successful_response.yml +3 -1
- data/spec/support/cassettes/opal_modern_pay_successful_update_response.yml +3 -1
- data/spec/support/cassettes/opal_pay.yml +3 -1
- data/spec/support/cassettes/opal_pay_booking.yml +3 -1
- data/spec/support/cassettes/passenger_all.yml +3 -1
- data/spec/support/cassettes/payment_info.yml +3 -1
- data/spec/support/cassettes/price_quote.yml +6 -2
- data/spec/support/cassettes/product_date_range_bookability.yml +3 -1
- data/spec/support/cassettes/product_show.yml +3 -1
- data/spec/support/cassettes/product_show_as_agent.yml +3 -1
- data/spec/support/cassettes/product_type_all.yml +3 -1
- data/spec/support/cassettes/product_type_resource_categories.yml +3 -1
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +3 -1
- data/spec/support/cassettes/product_type_routes.yml +3 -1
- data/spec/support/cassettes/property.yml +3 -1
- data/spec/support/cassettes/property_types.yml +3 -1
- data/spec/support/cassettes/region_show.yml +3 -1
- data/spec/support/cassettes/reservation_resource.yml +3 -1
- data/spec/support/cassettes/reservation_with_extra_picks.yml +9 -3
- data/spec/support/cassettes/resource_category_all.yml +3 -1
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +3 -1
- data/spec/support/cassettes/resource_fare_bases.yml +3 -1
- data/spec/support/cassettes/resource_show.yml +3 -1
- data/spec/support/cassettes/resource_with_price.yml +3 -1
- data/spec/support/cassettes/settings_basic.yml +3 -1
- data/spec/support/cassettes/tenant_switcher.yml +6 -2
- data/spec/support/cassettes/wrong_url.yml +3 -1
- data/spec/support/coverage_loader.rb +1 -1
- metadata +10 -6
data/spec/spec_helper.rb
CHANGED
@@ -50,12 +50,10 @@ class HashCache
|
|
50
50
|
end
|
51
51
|
|
52
52
|
QuickTravel::Cache.cache_store = HashCache.new
|
53
|
+
QuickTravel::Cache.namespace = 'namespace'
|
53
54
|
|
54
55
|
RSpec.configure do |config|
|
55
56
|
config.raise_errors_for_deprecations!
|
56
57
|
config.run_all_when_everything_filtered = true
|
57
58
|
config.filter_run :focus
|
58
|
-
config.before :each do
|
59
|
-
allow(QuickTravel::Adapter).to receive(:cache) { ActiveSupport::Cache::MemoryStore.new }
|
60
|
-
end
|
61
59
|
end
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/accommodations/create_or_update.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: reservations[resource_id]=6&reservations[bed_configuration_id]=1&reservations[first_travel_date]=01%2F03%2F2016&reservations[last_travel_date]=02%2F03%2F2016&booking_id=4
|
8
|
+
string: reservations[resource_id]=6&reservations[bed_configuration_id]=1&reservations[first_travel_date]=01%2F03%2F2016&reservations[last_travel_date]=02%2F03%2F2016&booking_id=4
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -59,10 +61,12 @@ http_interactions:
|
|
59
61
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/4.json
|
60
62
|
body:
|
61
63
|
encoding: UTF-8
|
62
|
-
string:
|
64
|
+
string: ''
|
63
65
|
headers:
|
64
66
|
Content-Length:
|
65
67
|
- '0'
|
68
|
+
X-API-KEY:
|
69
|
+
- <QT_KEY>
|
66
70
|
response:
|
67
71
|
status:
|
68
72
|
code: 200
|
@@ -124,10 +128,12 @@ http_interactions:
|
|
124
128
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/4.json
|
125
129
|
body:
|
126
130
|
encoding: UTF-8
|
127
|
-
string:
|
131
|
+
string: ''
|
128
132
|
headers:
|
129
133
|
Content-Length:
|
130
134
|
- '0'
|
135
|
+
X-API-KEY:
|
136
|
+
- <QT_KEY>
|
131
137
|
response:
|
132
138
|
status:
|
133
139
|
code: 200
|
@@ -189,10 +195,12 @@ http_interactions:
|
|
189
195
|
uri: http://test.qt.sealink.com.au:8080/api/resources/6.json
|
190
196
|
body:
|
191
197
|
encoding: UTF-8
|
192
|
-
string:
|
198
|
+
string: ''
|
193
199
|
headers:
|
194
200
|
Content-Length:
|
195
201
|
- '0'
|
202
|
+
X-API-KEY:
|
203
|
+
- <QT_KEY>
|
196
204
|
response:
|
197
205
|
status:
|
198
206
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=1&route_id=1&forward[first_travel_date]=2016-03-01&forward[passenger_types][1]=2
|
8
|
+
string: product_type_id=1&route_id=1&forward[first_travel_date]=2016-03-01&forward[passenger_types][1]=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=6&route_id=3&forward[first_travel_date]=2016-03-01&forward[from_route_stop_id]=5&forward[to_route_stop_id]=14&forward[passenger_types][1]=2
|
8
|
+
string: product_type_id=6&route_id=3&forward[first_travel_date]=2016-03-01&forward[from_route_stop_id]=5&forward[to_route_stop_id]=14&forward[passenger_types][1]=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=1&route_id=1&forward[first_travel_date]=2016-03-03&forward[passenger_types][1]=2
|
8
|
+
string: product_type_id=1&route_id=1&forward[first_travel_date]=2016-03-03&forward[passenger_types][1]=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/2.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -69,10 +71,12 @@ http_interactions:
|
|
69
71
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/2/activate
|
70
72
|
body:
|
71
73
|
encoding: UTF-8
|
72
|
-
string:
|
74
|
+
string: ''
|
73
75
|
headers:
|
74
76
|
Content-Length:
|
75
77
|
- '0'
|
78
|
+
X-API-KEY:
|
79
|
+
- <QT_KEY>
|
76
80
|
response:
|
77
81
|
status:
|
78
82
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/2.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -69,10 +71,12 @@ http_interactions:
|
|
69
71
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/2/cancel
|
70
72
|
body:
|
71
73
|
encoding: UTF-8
|
72
|
-
string:
|
74
|
+
string: ''
|
73
75
|
headers:
|
74
76
|
Content-Length:
|
75
77
|
- '0'
|
78
|
+
X-API-KEY:
|
79
|
+
- <QT_KEY>
|
76
80
|
response:
|
77
81
|
status:
|
78
82
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/3/documents.json?last_group=true®enerate=false
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/reference/111111.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 404
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1/price_change.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: booking[customer_contact_name]=John
|
8
|
+
string: booking[customer_contact_name]=John
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -63,10 +65,12 @@ http_interactions:
|
|
63
65
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
64
66
|
body:
|
65
67
|
encoding: UTF-8
|
66
|
-
string:
|
68
|
+
string: ''
|
67
69
|
headers:
|
68
70
|
Content-Length:
|
69
71
|
- '0'
|
72
|
+
X-API-KEY:
|
73
|
+
- <QT_KEY>
|
70
74
|
response:
|
71
75
|
status:
|
72
76
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -88,10 +90,12 @@ http_interactions:
|
|
88
90
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1/documents.json?last_group=true®enerate=false
|
89
91
|
body:
|
90
92
|
encoding: UTF-8
|
91
|
-
string:
|
93
|
+
string: ''
|
92
94
|
headers:
|
93
95
|
Content-Length:
|
94
96
|
- '0'
|
97
|
+
X-API-KEY:
|
98
|
+
- <QT_KEY>
|
95
99
|
response:
|
96
100
|
status:
|
97
101
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -88,10 +90,12 @@ http_interactions:
|
|
88
90
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1/update_with_nested_attributes.json
|
89
91
|
body:
|
90
92
|
encoding: UTF-8
|
91
|
-
string: booking[customer_contact_name]=New%20Name&booking[consumers][][id]=1&booking[consumers][][title]=Mr&booking[consumers][][first_name]=New&booking[consumers][][last_name]=Name
|
93
|
+
string: booking[customer_contact_name]=New%20Name&booking[consumers][][id]=1&booking[consumers][][title]=Mr&booking[consumers][][first_name]=New&booking[consumers][][last_name]=Name
|
92
94
|
headers:
|
93
95
|
Content-Length:
|
94
96
|
- '0'
|
97
|
+
X-API-KEY:
|
98
|
+
- <QT_KEY>
|
95
99
|
response:
|
96
100
|
status:
|
97
101
|
code: 200
|
@@ -144,10 +148,12 @@ http_interactions:
|
|
144
148
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1.json
|
145
149
|
body:
|
146
150
|
encoding: UTF-8
|
147
|
-
string:
|
151
|
+
string: ''
|
148
152
|
headers:
|
149
153
|
Content-Length:
|
150
154
|
- '0'
|
155
|
+
X-API-KEY:
|
156
|
+
- <QT_KEY>
|
151
157
|
response:
|
152
158
|
status:
|
153
159
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/reference/222223.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/checkouts/client_token.json?gateway=braintree
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -0,0 +1,120 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/clients/2.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Length:
|
11
|
+
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: 'OK '
|
18
|
+
headers:
|
19
|
+
P3p:
|
20
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Etag:
|
24
|
+
- W/"651918ea3a399afbf3a755713a8511dd"
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=0, private, must-revalidate
|
27
|
+
X-Request-Id:
|
28
|
+
- 0c6843e0-e8ae-47a1-b924-a10de907d9a8
|
29
|
+
X-Runtime:
|
30
|
+
- '0.188579'
|
31
|
+
Date:
|
32
|
+
- Fri, 01 Jan 2016 02:59:22 GMT
|
33
|
+
X-Rack-Cache:
|
34
|
+
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Download-Options:
|
40
|
+
- noopen
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
X-Permitted-Cross-Domain-Policies:
|
44
|
+
- none
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
Server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.4.4/2018-03-28)
|
49
|
+
Content-Length:
|
50
|
+
- '130'
|
51
|
+
Connection:
|
52
|
+
- Keep-Alive
|
53
|
+
Set-Cookie:
|
54
|
+
- _session_id=YXoxbGRNb3k4UTFlb2RXM01UdUJLR25CY2Njb0szaXBYRkUyMnh3V3Y5OTcvQm1WS2tiYmhqSkc5dzdNWk5mc2p6aWt1NFhMOGJ6bnNGUlhIY2VvcnltSEg0ZHJyMldvaUw2Z1hTYkZvakk9LS1LWGUvQm0rQWlIMHVjcTJ5TmZFVXVBPT0%3D--891c529278599f4be47ecbcd76995319f87b95cc;
|
55
|
+
path=/; HttpOnly
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":2,"client_type_id":3,"party_id":9,"commission_level_id":null,"created_at":null,"external_identifier":null,"updated_at":null}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 20 Nov 2018 03:00:05 GMT
|
61
|
+
- request:
|
62
|
+
method: get
|
63
|
+
uri: http://test.qt.sealink.com.au:8080/api/clients/2/templates
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
Content-Length:
|
69
|
+
- '0'
|
70
|
+
X-API-KEY:
|
71
|
+
- <QT_KEY>
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: 'OK '
|
76
|
+
headers:
|
77
|
+
P3p:
|
78
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Etag:
|
82
|
+
- W/"b6be9931bd0aa8a85b01110a597d8bb7"
|
83
|
+
Cache-Control:
|
84
|
+
- max-age=0, private, must-revalidate
|
85
|
+
X-Request-Id:
|
86
|
+
- 8ea40255-40e0-41f6-bffa-85c54ab8ff86
|
87
|
+
X-Runtime:
|
88
|
+
- '0.168409'
|
89
|
+
Date:
|
90
|
+
- Fri, 01 Jan 2016 02:59:22 GMT
|
91
|
+
X-Rack-Cache:
|
92
|
+
- miss
|
93
|
+
Vary:
|
94
|
+
- Origin
|
95
|
+
X-Content-Type-Options:
|
96
|
+
- nosniff
|
97
|
+
X-Download-Options:
|
98
|
+
- noopen
|
99
|
+
X-Frame-Options:
|
100
|
+
- sameorigin
|
101
|
+
X-Permitted-Cross-Domain-Policies:
|
102
|
+
- none
|
103
|
+
X-Xss-Protection:
|
104
|
+
- 1; mode=block
|
105
|
+
Server:
|
106
|
+
- WEBrick/1.3.1 (Ruby/2.4.4/2018-03-28)
|
107
|
+
Content-Length:
|
108
|
+
- '336'
|
109
|
+
Connection:
|
110
|
+
- Keep-Alive
|
111
|
+
Set-Cookie:
|
112
|
+
- _session_id=RmhvbVl3dlhyL2lqdzZCM2FGb3ZKa2x6cC9hWEtvUHMxZE8vcTluSXd6MTZUMVNDY0xxYnphUklrTVk1OXNVdmJBbFFjSndtVVlLRFFtN0pkbVFyejZGcVhSN251a0VtdnRULzZ5YmpkcWM9LS1QSVFmSmFTWnZqOWlOK280QU9Cem1nPT0%3D--ffb6e33b92be7dfc7b7efce9ccd06c5f691a4d83;
|
113
|
+
path=/; HttpOnly
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"vehicle_templates":[{"id":1,"length":5.0,"height":1.5,"width":1.8,"weight":1000.0,"details":"Holden
|
117
|
+
Commodore","registration":"ABC123","cargo":"None","vehicle_type_id":1,"party_id":9}],"passenger_templates":[{"id":1,"age":30,"title":"Mr","first_name":"Homer","last_name":"Simpson","gender":"Male","passenger_type_id":1,"party_id":9}]}'
|
118
|
+
http_version:
|
119
|
+
recorded_at: Tue, 20 Nov 2018 03:00:05 GMT
|
120
|
+
recorded_with: VCR 4.0.0
|