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
@@ -19,29 +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
23
|
Etag:
|
24
|
-
- '"
|
24
|
+
- '"3b7efb193dcdabaaa035fe9ff5aa472c"'
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- 6a2ae9a5fe5021bfa740c752b1bbfaa9
|
29
29
|
X-Runtime:
|
30
|
-
- '
|
30
|
+
- '1.393787'
|
31
31
|
Vary:
|
32
32
|
- Origin
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:36 GMT
|
35
35
|
X-Rack-Cache:
|
36
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
|
37
47
|
Server:
|
38
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
50
|
- '23034'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTMzYjg1NzBiY2FiOGI5N2E5ZTg5MWQ2MWY0YmQ2M2FmBjsAVEkiCXVzZXIGOwBGaQY%3D--7ce16096e1c6ef69e91b1f46291514e7d2e87779;
|
45
55
|
path=/; HttpOnly
|
46
56
|
body:
|
47
57
|
encoding: UTF-8
|
@@ -90,31 +100,31 @@ http_interactions:
|
|
90
100
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
91
101
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
92
102
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
93
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
103
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff87fc0cf40\u003E"},"2016-03-02":{"available":false,"availability_details":{"available":false,"capacity":2,"available_capacity":1,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
94
104
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
95
105
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
96
106
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
97
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
107
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff87fe0eca8\u003E"},"2016-03-03":{"available":false,"availability_details":{"available":false,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
98
108
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
99
109
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
100
110
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
101
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
111
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff86d97cfd0\u003E"},"2016-03-04":{"available":false,"availability_details":{"available":false,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
102
112
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
103
113
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
104
114
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
105
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
115
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff86c3dbc30\u003E"},"2016-03-05":{"available":false,"availability_details":{"available":false,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
106
116
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
107
117
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
108
118
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
109
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
119
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000c3a26e8\u003E"},"2016-03-06":{"available":false,"availability_details":{"available":false,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
110
120
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
111
121
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
112
122
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
113
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
123
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff87efd32d8\u003E"},"2016-03-07":{"available":false,"availability_details":{"available":false,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"price":{"_type":"Money","_value":25000},"pricing_details":{"minimum_price":{"_type":"Money","_value":25000},"minimum_price_with_adjustments":{"_type":"Money","_value":12500},"adjustments_to_apply":[{"description":"50%
|
114
124
|
Off","gross":{"_type":"Money","_value":-12500},"gross_in_cents":-12500}],"total_adjustments":{"_type":"Money","_value":-12500},"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"adjustments_to_apply_in_cents":[-12500],"applied_rules":["Test
|
115
125
|
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Executive
|
116
126
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
117
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:
|
127
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007ff87f91ff30\u003E"}}}]'
|
118
128
|
http_version:
|
119
|
-
recorded_at:
|
120
|
-
recorded_with: VCR
|
129
|
+
recorded_at: Fri, 28 Oct 2016 05:28:12 GMT
|
130
|
+
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
|
+
- '"bfeede5a03c1d7e89eebab362c40113b"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- db58b78ff8e82cf98a93256c9a8088c7
|
27
29
|
X-Runtime:
|
28
|
-
- '
|
30
|
+
- '0.341876'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:34 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:49 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
50
|
- '3100'
|
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=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWE4NWI3Y2FmZmYxYTllMzc2ZjE2ZTE1NWI3YmZiNGE1BjsAVEkiCXVzZXIGOwBGaQY%3D--ccba9842ee29fb62055f76a703a934ffe1ecc538;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWZjYjQwNDhmZTE5MjhhZGQ1ODFmOTg1NjMwODA5NDAzBjsAVEkiCXVzZXIGOwBGaQY%3D--ac2a1f59f82d1781908aae8df359ff28e9b47596;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
@@ -58,5 +65,5 @@ http_interactions:
|
|
58
65
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null}],"selection_name":"Executive
|
59
66
|
Room","description":"Hilton Hotel - Executive Room","error_message":null}'
|
60
67
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR
|
68
|
+
recorded_at: Fri, 28 Oct 2016 05:28:11 GMT
|
69
|
+
recorded_with: VCR 3.0.3
|
@@ -19,29 +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
23
|
Etag:
|
24
24
|
- '"286cd3804b167c609224433145e3211f"'
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- 6db6bc3cca05bdb5b642c8ad783a8610
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
30
|
+
- '0.325491'
|
31
31
|
Vary:
|
32
32
|
- Origin
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:35 GMT
|
35
35
|
X-Rack-Cache:
|
36
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
|
37
47
|
Server:
|
38
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
50
|
- '4595'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWQ3YWRkZGRhNWJiMWExMDMzMjcxYTY1MmNlNzM1YmVjBjsAVEkiCXVzZXIGOwBGaQY%3D--685e050b1a4a316d9a57a9c61254d0a832b5bd90;
|
45
55
|
path=/; HttpOnly
|
46
56
|
body:
|
47
57
|
encoding: UTF-8
|
@@ -59,5 +69,5 @@ http_interactions:
|
|
59
69
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null}],"selection_name":"Executive
|
60
70
|
Room","description":"Hilton Hotel - Executive Room","error_message":null}'
|
61
71
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
72
|
+
recorded_at: Fri, 28 Oct 2016 05:28:11 GMT
|
73
|
+
recorded_with: VCR 3.0.3
|
@@ -7,47 +7,57 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: access_key=<QT_KEY>
|
9
9
|
headers:
|
10
|
-
|
10
|
+
Content-Length:
|
11
11
|
- '0'
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
16
|
headers:
|
17
|
-
|
17
|
+
P3p:
|
18
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
-
|
19
|
+
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
|
-
|
22
|
-
- IE=Edge
|
23
|
-
|
24
|
-
- '"
|
25
|
-
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"3ff67a732ba04673f7461eccd9b919ed"'
|
25
|
+
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
- '0.
|
31
|
-
|
27
|
+
X-Request-Id:
|
28
|
+
- a8f086cb2db5c9acec5cb1d5a1bbd7d7
|
29
|
+
X-Runtime:
|
30
|
+
- '0.095191'
|
31
|
+
Vary:
|
32
32
|
- Origin
|
33
|
-
|
34
|
-
-
|
35
|
-
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:36 GMT
|
35
|
+
X-Rack-Cache:
|
36
36
|
- miss
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
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.2.5/2016-04-26)
|
49
|
+
Content-Length:
|
50
|
+
- '5576'
|
51
|
+
Connection:
|
52
|
+
- Keep-Alive
|
53
|
+
Set-Cookie:
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWIzNTNjYTEwMGFlMzkxMzc0ODI3MTgzMzY5MmYyODU1BjsAVEkiCXVzZXIGOwBGaQY%3D--413db14ab241526c5a5f68e77c4c80566a1ba883;
|
45
55
|
path=/; HttpOnly
|
46
56
|
body:
|
47
57
|
encoding: UTF-8
|
48
|
-
string: '[{"id":1,"name":"Ferry","resource_class_name":"Ship","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":2,"name":"Accommodation","resource_class_name":"Accommodation","disclaimer_id":null,"durational":true,"can_find_by_location":true,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":3,"name":"Flight","resource_class_name":"ScheduledTripResource","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":4,"name":"Item","resource_class_name":"Item","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"can_have_quantity":true,"can_have_dates":false,"needs_passengers":false},{"id":5,"name":"Ticket","resource_class_name":"
|
49
|
-
Coach Transfers","resource_class_name":"ScheduledTripResource","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":true,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":"2013-03-01T01:33:37+10:30","updated_at":"2013-03-01T01:33:37+10:30","code":"","can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":7,"name":"Travel
|
50
|
-
Insurance","resource_class_name":"Insurance","disclaimer_id":null,"durational":true,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":true,"created_at":"2014-09-12T17:06:45+09:30","updated_at":"2014-09-12T17:06:45+09:30","code":"","can_have_quantity":false,"can_have_dates":true,"needs_passengers":false},{"id":8,"name":"Merchandise","resource_class_name":"Item","disclaimer_id":1,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["reservation_group_id","trip_name","departure_time","pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":"2015-08-25T15:10:06+09:30","updated_at":"2015-08-25T15:10:06+09:30","code":"","can_have_quantity":true,"can_have_dates":false,"needs_passengers":false}]'
|
51
|
-
http_version:
|
52
|
-
recorded_at:
|
53
|
-
recorded_with: VCR
|
58
|
+
string: '[{"id":1,"name":"Ferry","resource_class_name":"Ship","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":2,"name":"Accommodation","resource_class_name":"Accommodation","disclaimer_id":null,"durational":true,"can_find_by_location":true,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":3,"name":"Flight","resource_class_name":"ScheduledTripResource","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":4,"name":"Item","resource_class_name":"Item","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"needs_services":false,"can_have_quantity":true,"can_have_dates":false,"needs_passengers":false},{"id":5,"name":"Ticket","resource_class_name":"Item","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":null,"maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":null,"created_at":null,"updated_at":null,"code":null,"needs_services":false,"can_have_quantity":true,"can_have_dates":false,"needs_passengers":false},{"id":6,"name":"Mainland
|
59
|
+
Coach Transfers","resource_class_name":"ScheduledTripResource","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":true,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":"2013-03-01T01:33:37+10:30","updated_at":"2013-03-01T01:33:37+10:30","code":"","needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true},{"id":7,"name":"Travel
|
60
|
+
Insurance","resource_class_name":"Insurance","disclaimer_id":null,"durational":true,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":true,"created_at":"2014-09-12T17:06:45+09:30","updated_at":"2014-09-12T17:06:45+09:30","code":"","needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":false},{"id":8,"name":"Merchandise","resource_class_name":"Item","disclaimer_id":1,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":false,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":["reservation_group_id","trip_name","departure_time","pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":"2015-08-25T15:10:06+09:30","updated_at":"2015-08-25T15:10:06+09:30","code":"","needs_services":false,"can_have_quantity":true,"can_have_dates":false,"needs_passengers":false},{"id":9,"name":"Cruise","resource_class_name":"GenericResource","disclaimer_id":null,"durational":false,"can_find_by_location":false,"measure_units_by_pax_count":true,"multi_leg":false,"prompt_for_pick_up_drop_off":false,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"confirmation_request_fields":[],"only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":"2016-05-11T12:10:20+09:30","updated_at":"2016-05-11T12:10:20+09:30","code":"","needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true}]'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
|
63
|
+
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
|
- '"d751713988987e9331980363e24189ce"'
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- abeeb7c1da610a4ec0669b1af29f1de1
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.083924'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:36 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
|
- '2'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTQ4NDQwMGJkNmNkNzM4MmUwYjlhOWFhYzQ4NmNhZDliBjsAVEkiCXVzZXIGOwBGaQY%3D--4c9774af3f338d0eb51870362aa2d15e0fc500c3;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: "[]"
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR 3.0.
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -14,49 +14,49 @@ 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
|
- '"d1fd940d0166dbb4832b5f5171b67a60"'
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- f6cd11cba56885f3e309a07dc4fb526f
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.069853'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:36 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
|
- '328'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTZiZWEwOWMwYmYzMzQ4MDhjYjViZWIyN2FlMDkwZDNjBjsAVEkiCXVzZXIGOwBGaQY%3D--ce1756095e1dcab88d9b48fe05070de5ca0868cc;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: '[{"created_at":"2015-08-25T14:14:25+09:30","description":"","id":1,"name":"Common","position":null,"product_type_id":5,"updated_at":"2015-08-25T14:14:25+09:30"},{"created_at":"2015-08-25T14:14:50+09:30","description":"","id":2,"name":"Multiple
|
59
59
|
Trip","position":null,"product_type_id":5,"updated_at":"2015-08-25T14:14:50+09:30"}]'
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR 3.0.
|
61
|
+
recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -14,52 +14,52 @@ 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
|
+
- '"569a4ede07372a75b7f3e16dc376e665"'
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- 891ae78decad381b6c518175b6f12bfd
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.118721'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:36 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
|
- '1249'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWFmMTY0YWM3Njg2MzExMDJhMjk3ZDY1MjkzMDc5MGM0BjsAVEkiCXVzZXIGOwBGaQY%3D--783ac9119bad9c2ce1800a12fc537268eddb4d0d;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: '[{"id":1,"product_type_id":1,"reverse_id":2,"position":1,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:06:45+10:30","name":"To
|
59
|
-
Kangaroo Island","path":"Cape Jervis to Penneshaw","route_stops":[{"id":1,"name":"Cape
|
60
|
-
Jervis","address":"","inventory_controlled":true,"route_id":1,"position":
|
61
|
-
Kangaroo Island","path":"Penneshaw to Cape Jervis","route_stops":[{"id":3,"
|
62
|
-
Jervis","
|
59
|
+
Kangaroo Island","path":"Cape Jervis to Penneshaw","route_stops":[{"id":1,"inventory_controlled":true,"route_id":1,"position":1,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:01:37+10:30","stop_id":1,"name":"Cape
|
60
|
+
Jervis","code":"CPJ","address":""},{"id":2,"inventory_controlled":true,"route_id":1,"position":2,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:01:37+10:30","stop_id":2,"name":"Penneshaw","code":"PEN","address":""}]},{"id":2,"product_type_id":1,"reverse_id":1,"position":2,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:06:38+10:30","name":"From
|
61
|
+
Kangaroo Island","path":"Penneshaw to Cape Jervis","route_stops":[{"id":3,"inventory_controlled":true,"route_id":2,"position":1,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:02:06+10:30","stop_id":2,"name":"Penneshaw","code":"PEN","address":""},{"id":4,"inventory_controlled":true,"route_id":2,"position":2,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:02:06+10:30","stop_id":1,"name":"Cape
|
62
|
+
Jervis","code":"CPJ","address":""}]}]'
|
63
63
|
http_version:
|
64
|
-
recorded_at:
|
65
|
-
recorded_with: VCR 3.0.
|
64
|
+
recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
|
65
|
+
recorded_with: VCR 3.0.3
|