quicktravel_client 2.3.1 → 2.4.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 +3 -14
- data/CHANGELOG.md +6 -0
- data/README.md +10 -0
- data/gemfiles/rails5.gemfile +8 -0
- data/lib/quick_travel/adapter.rb +28 -0
- data/lib/quick_travel/adapter_error.rb +11 -3
- data/lib/quick_travel/booking.rb +5 -38
- data/lib/quick_travel/payment.rb +0 -4
- data/lib/quick_travel/products/scheduled_trip.rb +3 -6
- data/lib/quick_travel/property.rb +1 -0
- data/lib/quick_travel/reservation.rb +5 -27
- data/lib/quick_travel/version.rb +1 -1
- data/spec/adapter_spec.rb +17 -0
- data/spec/booking_spec.rb +11 -0
- data/spec/product_type_spec.rb +1 -1
- data/spec/reservation_spec.rb +4 -1
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +17 -17
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +27 -35
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +17 -17
- data/spec/support/cassettes/booking_create.yml +26 -19
- data/spec/support/cassettes/booking_documents.yml +23 -16
- data/spec/support/cassettes/booking_price_changes.yml +17 -17
- data/spec/support/cassettes/booking_show.yml +26 -19
- data/spec/support/cassettes/booking_update.yml +51 -36
- data/spec/support/cassettes/booking_with_documents.yml +58 -44
- data/spec/support/cassettes/booking_with_nested_attributes.yml +94 -73
- data/spec/support/cassettes/booking_with_price_changes.yml +33 -33
- data/spec/support/cassettes/countries.yml +17 -17
- data/spec/support/cassettes/country_all.yml +22 -15
- data/spec/support/cassettes/create_reservation_fail.yml +18 -10
- data/spec/support/cassettes/create_reservation_with_booking.yml +27 -20
- data/spec/support/cassettes/passenger_all.yml +24 -17
- data/spec/support/cassettes/payment_info.yml +18 -18
- data/spec/support/cassettes/price_quote.yml +43 -41
- data/spec/support/cassettes/product_date_range_bookability.yml +26 -16
- data/spec/support/cassettes/product_show.yml +22 -15
- data/spec/support/cassettes/product_show_as_agent.yml +18 -8
- data/spec/support/cassettes/product_type_all.yml +40 -30
- data/spec/support/cassettes/product_type_resource_categories.yml +18 -18
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +18 -18
- data/spec/support/cassettes/product_type_routes.yml +23 -23
- data/spec/support/cassettes/property.yml +21 -21
- data/spec/support/cassettes/region_show.yml +22 -15
- data/spec/support/cassettes/reservation_with_extra_picks.yml +87 -64
- data/spec/support/cassettes/resource_category_all.yml +18 -18
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +18 -18
- data/spec/support/cassettes/resource_fare_bases.yml +29 -20
- data/spec/support/cassettes/resource_show.yml +26 -18
- data/spec/support/cassettes/resource_with_price.yml +25 -22
- data/spec/support/cassettes/tenant_switcher.yml +51 -37
- data/spec/support/cassettes/wrong_url.yml +63 -0
- data/spec/support/coverage_loader.rb +8 -3
- metadata +5 -7
- data/gemfiles/rails2.gemfile +0 -11
- data/spec/support/cassettes/resource_product_type.yml +0 -63
- data/spec/support/cassettes/route_all.yml +0 -65
@@ -14,16 +14,6 @@ http_interactions:
|
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
16
|
headers:
|
17
|
-
X-Frame-Options:
|
18
|
-
- SAMEORIGIN
|
19
|
-
X-Xss-Protection:
|
20
|
-
- '1'
|
21
|
-
X-Content-Type-Options:
|
22
|
-
- nosniff
|
23
|
-
X-Download-Options:
|
24
|
-
- noopen
|
25
|
-
X-Permitted-Cross-Domain-Policies:
|
26
|
-
- none
|
27
17
|
P3p:
|
28
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
19
|
Content-Type:
|
@@ -35,23 +25,33 @@ http_interactions:
|
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- db8ab95e81d0b208e8442de75066d08b
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.117373'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:37 GMT
|
45
35
|
X-Rack-Cache:
|
46
36
|
- miss
|
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
47
|
Server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
50
|
- '41663'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTA4NzU5MWYxNjU4OTIyMzE0ODU0YTY1Yjg4NTM3NDUzBjsAVEkiCXVzZXIGOwBGaQY%3D--45156529958ca46b6d22869e87f74cc429ba0a45;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
@@ -136,5 +136,5 @@ http_interactions:
|
|
136
136
|
and Futuna","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":242,"iso_3166_code":"WS","latitude":-13.35,"longitude":172.2,"name":"Samoa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":243,"iso_3166_code":"YE","latitude":15.0,"longitude":-48.0,"name":"Yemen","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":244,"iso_3166_code":"YT","latitude":-12.5,"longitude":-45.1,"name":"Mayotte","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":245,"iso_3166_code":"ZA","latitude":-29.0,"longitude":-24.0,"name":"South
|
137
137
|
Africa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":246,"iso_3166_code":"ZM","latitude":-15.0,"longitude":-30.0,"name":"Zambia","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":247,"iso_3166_code":"ZW","latitude":-20.0,"longitude":-30.0,"name":"Zimbabwe","updated_at":"2013-03-01T00:01:27+10:30"}]'
|
138
138
|
http_version:
|
139
|
-
recorded_at: Fri,
|
140
|
-
recorded_with: VCR
|
139
|
+
recorded_at: Fri, 28 Oct 2016 05:28:14 GMT
|
140
|
+
recorded_with: VCR 3.0.3
|
@@ -19,32 +19,39 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"4b81caf850c90a277ec60621b06aae8b"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- ffcd6273b916fb54bfede404797a0348
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.133988'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:32 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- miss
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:46 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
50
|
- '41663'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTY0YWI3NzEzZWZmMjlkMzJhNDk2ZGY5MzMwNzVkNzE3BjsAVEkiCXVzZXIGOwBGaQY%3D--3d18ab2f865f1cc3a9fa284a00f795d9a0b4718b;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTlhNTZiYjNiMDQzYmEwMDdjMDZkYWU1NzE1ZWE5ZDk1BjsAVEkiCXVzZXIGOwBGaQY%3D--581ac4929780ca144a9549374b63ff9bc1536036;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
@@ -129,5 +136,5 @@ http_interactions:
|
|
129
136
|
and Futuna","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":242,"iso_3166_code":"WS","latitude":-13.35,"longitude":172.2,"name":"Samoa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":243,"iso_3166_code":"YE","latitude":15.0,"longitude":-48.0,"name":"Yemen","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":244,"iso_3166_code":"YT","latitude":-12.5,"longitude":-45.1,"name":"Mayotte","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":245,"iso_3166_code":"ZA","latitude":-29.0,"longitude":-24.0,"name":"South
|
130
137
|
Africa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":246,"iso_3166_code":"ZM","latitude":-15.0,"longitude":-30.0,"name":"Zambia","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":247,"iso_3166_code":"ZW","latitude":-20.0,"longitude":-30.0,"name":"Zimbabwe","updated_at":"2013-03-01T00:01:27+10:30"}]'
|
131
138
|
http_version:
|
132
|
-
recorded_at:
|
133
|
-
recorded_with: VCR
|
139
|
+
recorded_at: Fri, 28 Oct 2016 05:28:09 GMT
|
140
|
+
recorded_with: VCR 3.0.3
|
@@ -19,34 +19,42 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
23
|
Cache-Control:
|
24
24
|
- no-cache
|
25
25
|
X-Request-Id:
|
26
|
-
-
|
26
|
+
- 1ada1db0058d6d86a4df24687468bb12
|
27
27
|
X-Runtime:
|
28
|
-
- '0.
|
28
|
+
- '0.225165'
|
29
29
|
Vary:
|
30
30
|
- Origin
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Fri, 01 Jan 2016 02:32:39 GMT
|
33
33
|
X-Rack-Cache:
|
34
34
|
- invalidate, pass
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
35
45
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
37
47
|
Content-Length:
|
38
48
|
- '98'
|
39
49
|
Connection:
|
40
50
|
- Keep-Alive
|
41
51
|
Set-Cookie:
|
42
|
-
-
|
43
|
-
- __profilin=p%3Dt; path=/
|
44
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE5YjZiYzk5M2I3ZjY5ZjZmZmUzOTA5ZTQ4Mzg4YzQ2BjsAVEkiCXVzZXIGOwBGaQY%3D--773e04031b02d26fbdb19c122bdcf0687f546e4f;
|
52
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTBmNmVjNDU3OGVkMjY4MTlkN2UyYmMzZTk4OGUwNjczBjsAVEkiCXVzZXIGOwBGaQY%3D--b64e796af441c202e97ba0aeda7bcd682a89e472;
|
45
53
|
path=/; HttpOnly
|
46
54
|
body:
|
47
55
|
encoding: UTF-8
|
48
56
|
string: '{"error":"No services selected for [10-09-2099 -- Travel Insurance
|
49
57
|
- Declined -- 0 pax assigned]"}'
|
50
58
|
http_version:
|
51
|
-
recorded_at:
|
52
|
-
recorded_with: VCR
|
59
|
+
recorded_at: Fri, 28 Oct 2016 05:28:16 GMT
|
60
|
+
recorded_with: VCR 3.0.3
|
@@ -19,41 +19,48 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"32328bcb7d16793a864c65a57ff52f69"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- cd3a5a65cd08794733ac6e9f01af06bf
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.579922'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:39 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- invalidate, pass
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:51 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
|
-
- '
|
50
|
+
- '2020'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE4Y2U4MzVjZjQ3NmFiMGFhY2YzYjc2OTMwN2JiMmQ1BjsAVEkiCXVzZXIGOwBGaQY%3D--d163f669c45478cc505299bfd51dbfb0f9da5ba9;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTgzZjdkOTc5NDE3NTdhZDY1Y2QyOTdlOGIzYzY5NDgzBjsAVEkiCXVzZXIGOwBGaQY%3D--33f2dc99b47b872b6547cc7be28522a868c52163;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
|
-
string: '{"id":
|
58
|
+
string: '{"id":6,"booking_id":4,"description":"You have declined Travel Insurance
|
52
59
|
for your booking. If you wish to add Travel Insurance to this booking, please
|
53
|
-
contact the SeaLink Travel Group on 13 13 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":
|
54
|
-
Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-01"},"durational":true,"duration":1,"duration_units":"Days","date_start_label":"Start
|
55
|
-
Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
|
60
|
+
contact the SeaLink Travel Group on 13 13 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":"","first_reason_not_complete":"","enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
|
61
|
+
Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","has_ticket_template":false,"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-01"},"durational":true,"duration":1,"duration_units":"Days","date_start_label":"Start
|
62
|
+
Date:","date_end_label":"End Date:","expires":false,"expiry":"*NA*","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
|
56
63
|
Priced as: Rack Rate","gross_including_packaged_item_in_cents":0,"pre_adjusted_gross_including_packaged_item_in_cents":0,"gross_in_cents":0,"pre_adjusted_gross_in_cents":0,"pre_adjusted_commission_in_cents":0,"cost_in_cents":0,"rules":[],"package":false,"sub_reservation_depth":0,"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}'
|
57
64
|
http_version:
|
58
|
-
recorded_at:
|
59
|
-
recorded_with: VCR
|
65
|
+
recorded_at: Fri, 28 Oct 2016 05:28:16 GMT
|
66
|
+
recorded_with: VCR 3.0.3
|
@@ -19,36 +19,43 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"2c56aef5eda86adf6ec974aca78aac0e"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- 9c39d6a904b9eb9dfe781817065bf869
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.070803'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:33 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- miss
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:47 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
|
-
- '
|
50
|
+
- '542'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTU4OTZjYjk4YWRhNDZhYjVhNTk0MThiOWYyMjRkZGIwBjsAVEkiCXVzZXIGOwBGaQY%3D--cbcd1d84f0f511b7d0981571df7c55984f20727b;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWIwNWIyNjExMzk1ODUwZGIyMGRhNzE3NWQ5MzMxNjg2BjsAVEkiCXVzZXIGOwBGaQY%3D--05f6a8ce6b98b4ab8975bc9aded9917d3c837a0f;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
|
-
string: '[{"id":1,"name":"Adult","minimum_age":null,"maximum_age":null,"age_range_required":false,"position":1,"default_age":30,"created_at":null,"updated_at":null,"code":"Ad"},{"id":3,"name":"Infant","minimum_age":0,"maximum_age":2,"age_range_required":true,"position":2,"default_age":0,"created_at":null,"updated_at":null,"code":"In"},{"id":2,"name":"Child","minimum_age":3,"maximum_age":14,"age_range_required":true,"position":3,"default_age":3,"created_at":null,"updated_at":null,"code":"Ch"}]'
|
58
|
+
string: '[{"id":1,"name":"Adult","minimum_age":null,"maximum_age":null,"age_range_required":false,"position":1,"default_age":30,"created_at":null,"updated_at":null,"code":"Ad","conditions":null},{"id":3,"name":"Infant","minimum_age":0,"maximum_age":2,"age_range_required":true,"position":2,"default_age":0,"created_at":null,"updated_at":null,"code":"In","conditions":null},{"id":2,"name":"Child","minimum_age":3,"maximum_age":14,"age_range_required":true,"position":3,"default_age":3,"created_at":null,"updated_at":null,"code":"Ch","conditions":null}]'
|
52
59
|
http_version:
|
53
|
-
recorded_at:
|
54
|
-
recorded_with: VCR
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:10 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -14,48 +14,48 @@ http_interactions:
|
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
16
|
headers:
|
17
|
-
X-Frame-Options:
|
18
|
-
- SAMEORIGIN
|
19
|
-
X-Xss-Protection:
|
20
|
-
- '1'
|
21
|
-
X-Content-Type-Options:
|
22
|
-
- nosniff
|
23
|
-
X-Download-Options:
|
24
|
-
- noopen
|
25
|
-
X-Permitted-Cross-Domain-Policies:
|
26
|
-
- none
|
27
17
|
P3p:
|
28
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
19
|
Content-Type:
|
30
20
|
- application/json; charset=utf-8
|
31
21
|
X-Ua-Compatible:
|
32
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
33
23
|
Etag:
|
34
24
|
- '"cd5be9bdf16f4c72e0e136f2b63da300"'
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- 4d0df2184e4cddc9e8d3cce287b1677c
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.068041'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:33 GMT
|
45
35
|
X-Rack-Cache:
|
46
36
|
- miss
|
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
47
|
Server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
50
|
- '33'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTg4ZGQ5MGRmYWQ5ZjdjMzIxNmUwNTU1ZGQ3NzE0ZjNmBjsAVEkiCXVzZXIGOwBGaQY%3D--8c903ae1f22ec20d2b18ad9044c3722f3e71ec02;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: '{"poli_pay":{"login":"S1234567"}}'
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:10 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -14,50 +14,50 @@ http_interactions:
|
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
16
|
headers:
|
17
|
-
X-Frame-Options:
|
18
|
-
- SAMEORIGIN
|
19
|
-
X-Xss-Protection:
|
20
|
-
- '1'
|
21
|
-
X-Content-Type-Options:
|
22
|
-
- nosniff
|
23
|
-
X-Download-Options:
|
24
|
-
- noopen
|
25
|
-
X-Permitted-Cross-Domain-Policies:
|
26
|
-
- none
|
27
17
|
P3p:
|
28
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
19
|
Content-Type:
|
30
20
|
- application/json; charset=utf-8
|
31
21
|
X-Ua-Compatible:
|
32
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
33
23
|
Etag:
|
34
|
-
- '"
|
24
|
+
- '"dba0b1c6031ddd388a154f34fad3a95e"'
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- 36c3c06b5e8578b816695f5586f21624
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.434247'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:34 GMT
|
45
35
|
X-Rack-Cache:
|
46
36
|
- invalidate, pass
|
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
47
|
Server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
|
-
- '
|
50
|
+
- '332'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE0NzI4MDFiMGIzZDVhYzc5N2Q2Y2FhYWEyMzhkNzc4BjsAVEkiCXVzZXIGOwBGaQY%3D--d7e6ea881d160177b5e2af8c283dd816dc8e5e6e;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '{"quoted_booking_gross_in_cents":6400,"applied_rules":[]}'
|
58
|
+
string: '{"quoted_booking_gross_in_cents":6400,"original_booking_gross_in_cents":0,"applied_rules":[],"quoted_booking_breakdown":[{"quoted_gross_in_cents":6400,"original_gross_in_cents":0,"applied_rules":[],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:10 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
63
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
@@ -72,48 +72,50 @@ http_interactions:
|
|
72
72
|
code: 200
|
73
73
|
message: 'OK '
|
74
74
|
headers:
|
75
|
-
X-Frame-Options:
|
76
|
-
- SAMEORIGIN
|
77
|
-
X-Xss-Protection:
|
78
|
-
- '1'
|
79
|
-
X-Content-Type-Options:
|
80
|
-
- nosniff
|
81
|
-
X-Download-Options:
|
82
|
-
- noopen
|
83
|
-
X-Permitted-Cross-Domain-Policies:
|
84
|
-
- none
|
85
75
|
P3p:
|
86
76
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
87
77
|
Content-Type:
|
88
78
|
- application/json; charset=utf-8
|
89
79
|
X-Ua-Compatible:
|
90
|
-
- IE=Edge
|
80
|
+
- IE=Edge,chrome=1
|
91
81
|
Etag:
|
92
|
-
- '"
|
82
|
+
- '"42dedf38987939db1c16de673bd9067a"'
|
93
83
|
Cache-Control:
|
94
84
|
- max-age=0, private, must-revalidate
|
95
85
|
X-Request-Id:
|
96
|
-
-
|
86
|
+
- f89fc66d8fe4f1ae28f055a2de5cb5de
|
97
87
|
X-Runtime:
|
98
|
-
- '0.
|
88
|
+
- '0.112283'
|
99
89
|
Vary:
|
100
90
|
- Origin
|
101
91
|
Date:
|
102
|
-
-
|
92
|
+
- Fri, 01 Jan 2016 02:32:34 GMT
|
103
93
|
X-Rack-Cache:
|
104
94
|
- invalidate, pass
|
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
105
|
Server:
|
106
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
106
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
107
107
|
Content-Length:
|
108
|
-
- '
|
108
|
+
- '362'
|
109
109
|
Connection:
|
110
110
|
- Keep-Alive
|
111
111
|
Set-Cookie:
|
112
|
-
-
|
112
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTYwMTZhMjFlMDZmYjVmNzJkYmJkNmQ1MTQ0MmVmNzg4BjsAVEkiCXVzZXIGOwBGaQY%3D--423de8f2af72b0b90551487d0f2ee6287c9deafb;
|
113
113
|
path=/; HttpOnly
|
114
114
|
body:
|
115
115
|
encoding: UTF-8
|
116
|
-
string: '{"quoted_booking_gross_in_cents":4800,"applied_rules":["Special
|
116
|
+
string: '{"quoted_booking_gross_in_cents":4800,"original_booking_gross_in_cents":0,"applied_rules":["Special
|
117
|
+
Offer"],"quoted_booking_breakdown":[{"quoted_gross_in_cents":4800,"original_gross_in_cents":0,"applied_rules":["Special
|
118
|
+
Offer"],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
117
119
|
http_version:
|
118
|
-
recorded_at:
|
119
|
-
recorded_with: VCR 3.0.
|
120
|
+
recorded_at: Fri, 28 Oct 2016 05:28:10 GMT
|
121
|
+
recorded_with: VCR 3.0.3
|