quicktravel_client 3.6.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +6 -3
- data/CHANGELOG.md +36 -3
- data/README.md +1 -1
- data/gemfiles/rails6.gemfile +8 -0
- data/lib/quick_travel.rb +4 -0
- data/lib/quick_travel/adapter.rb +19 -81
- data/lib/quick_travel/address.rb +4 -2
- data/lib/quick_travel/adjustment.rb +3 -2
- data/lib/quick_travel/background_check.rb +4 -2
- data/lib/quick_travel/bed_configuration.rb +3 -2
- data/lib/quick_travel/bed_requirement.rb +3 -2
- data/lib/quick_travel/booking.rb +11 -1
- data/lib/quick_travel/cache.rb +24 -5
- data/lib/quick_travel/checkout.rb +1 -1
- data/lib/quick_travel/client.rb +9 -0
- data/lib/quick_travel/contact.rb +4 -1
- data/lib/quick_travel/init_from_hash.rb +58 -1
- data/lib/quick_travel/package.rb +13 -0
- data/lib/quick_travel/passenger.rb +7 -2
- data/lib/quick_travel/passenger_price_break.rb +3 -2
- data/lib/quick_travel/passenger_split.rb +5 -0
- data/lib/quick_travel/passenger_type.rb +1 -1
- data/lib/quick_travel/product_configuration.rb +1 -1
- data/lib/quick_travel/products/base.rb +4 -4
- data/lib/quick_travel/property.rb +2 -1
- data/lib/quick_travel/property_facility.rb +3 -2
- data/lib/quick_travel/reservation.rb +5 -1
- data/lib/quick_travel/resource.rb +12 -3
- data/lib/quick_travel/resource_category.rb +5 -1
- data/lib/quick_travel/resource_group.rb +9 -0
- data/lib/quick_travel/room_facility.rb +3 -2
- data/lib/quick_travel/route.rb +1 -1
- data/lib/quick_travel/route_stop.rb +18 -2
- data/lib/quick_travel/service.rb +3 -2
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +6 -5
- data/spec/adapter_spec.rb +36 -5
- data/spec/booking_spec.rb +24 -6
- data/spec/clients_spec.rb +42 -0
- data/spec/discounts_spec.rb +21 -21
- data/spec/package_spec.rb +24 -0
- data/spec/passenger_type_spec.rb +1 -1
- data/spec/product_configuration_spec.rb +11 -0
- data/spec/product_spec.rb +5 -5
- data/spec/region_spec.rb +2 -2
- data/spec/reservation_spec.rb +22 -6
- data/spec/spec_helper.rb +6 -3
- data/spec/support/cassettes/accommodation_reserve.yml +119 -53
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +22 -34
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +22 -28
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +12 -12
- data/spec/support/cassettes/booking_activate.yml +31 -30
- data/spec/support/cassettes/booking_cancel.yml +31 -30
- data/spec/support/cassettes/booking_create.yml +17 -16
- data/spec/support/cassettes/booking_create_accommodation.yml +64 -0
- data/spec/support/cassettes/booking_documents.yml +12 -12
- data/spec/support/cassettes/booking_non_existant.yml +11 -11
- data/spec/support/cassettes/booking_price_changes.yml +22 -18
- data/spec/support/cassettes/booking_show.yml +16 -15
- data/spec/support/cassettes/booking_update.yml +31 -29
- data/spec/support/cassettes/booking_with_comments.yml +119 -0
- data/spec/support/cassettes/booking_with_documents.yml +41 -38
- data/spec/support/cassettes/booking_with_nested_attributes.yml +70 -64
- data/spec/support/cassettes/booking_with_price_changes.yml +30 -27
- data/spec/support/cassettes/checkout_client_token.yml +14 -14
- data/spec/support/cassettes/client_templates.yml +120 -0
- data/spec/support/cassettes/countries.yml +18 -94
- data/spec/support/cassettes/country_all.yml +18 -94
- data/spec/support/cassettes/create_reservation_fail.yml +11 -11
- data/spec/support/cassettes/create_reservation_with_booking.yml +18 -17
- data/spec/support/cassettes/locations.yml +15 -15
- data/spec/support/cassettes/opal_modern_pay_failed_booking.yml +64 -0
- data/spec/support/cassettes/opal_modern_pay_failed_create.yml +61 -0
- data/spec/support/cassettes/opal_modern_pay_failed_update.yml +59 -0
- data/spec/support/cassettes/opal_modern_pay_successful_booking.yml +64 -0
- data/spec/support/cassettes/opal_modern_pay_successful_response.yml +61 -0
- data/spec/support/cassettes/opal_modern_pay_successful_update_response.yml +61 -0
- data/spec/support/cassettes/opal_pay.yml +61 -0
- data/spec/support/cassettes/opal_pay_booking.yml +64 -0
- data/spec/support/cassettes/package_show.yml +83 -0
- data/spec/support/cassettes/package_show_product_type.yml +80 -0
- data/spec/support/cassettes/passenger_all.yml +14 -14
- data/spec/support/cassettes/payment_info.yml +12 -12
- data/spec/support/cassettes/price_quote.yml +23 -23
- data/spec/support/cassettes/product_date_range_bookability.yml +35 -49
- data/spec/support/cassettes/product_show.yml +16 -18
- data/spec/support/cassettes/product_show_as_agent.yml +17 -23
- data/spec/support/cassettes/product_type_all.yml +19 -15
- data/spec/support/cassettes/product_type_resource_categories.yml +12 -12
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +15 -15
- data/spec/support/cassettes/product_type_routes.yml +17 -17
- data/spec/support/cassettes/property.yml +19 -19
- data/spec/support/cassettes/property_types.yml +15 -15
- data/spec/support/cassettes/region_show.yml +14 -14
- data/spec/support/cassettes/reservation_resource.yml +64 -0
- data/spec/support/cassettes/reservation_with_extra_picks.yml +63 -63
- data/spec/support/cassettes/resource_category_all.yml +15 -15
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +14 -14
- data/spec/support/cassettes/resource_fare_bases.yml +21 -24
- data/spec/support/cassettes/resource_show.yml +18 -18
- data/spec/support/cassettes/resource_with_price.yml +19 -19
- data/spec/support/cassettes/settings_basic.yml +12 -12
- data/spec/support/cassettes/tenant_switcher.yml +37 -29
- data/spec/support/cassettes/wrong_url.yml +28 -47
- data/spec/support/coverage_loader.rb +1 -1
- metadata +69 -27
- data/gemfiles/rails4.gemfile +0 -9
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: reservations[][resource_id]=7&reservations[][quantity]=2&reservations[][first_travel_date]=2016-04-15
|
8
|
+
string: reservations[][resource_id]=7&reservations[][quantity]=2&reservations[][first_travel_date]=2016-04-15
|
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
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"5c82dc53593c47d6fe1dab0bf46ab26b"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- b85dc6fd-aada-4064-83f7-bd34094c470c
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.332660'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- invalidate, pass
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -51,22 +51,24 @@ http_interactions:
|
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=YTlJTUlNeHErV1ZNb0QrOVp6QXdUdXJ6d2MrUjlDMURWcXAzUm1RVXJVWUVBRzJralZabHFPNW1ra2JYY2dIWi9LR3RwWk1VbFBZZTgybUJuQ0NFRXBQaWdIQUJDSGJlUHMzbUxaTHU0Mnc9LS1tZGU4VVVOSVlHNkN1bFEzRllOVmhRPT0%3D--02dc74be0c2f9ce10cc61ac5614c7a7c734340e1;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
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: Wed, 21 Mar 2018 04:40:31 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
63
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string: reservations[][resource_id]=7&reservations[][quantity]=3&reservations[][first_travel_date]=2016-04-15
|
66
|
+
string: reservations[][resource_id]=7&reservations[][quantity]=3&reservations[][first_travel_date]=2016-04-15
|
67
67
|
headers:
|
68
68
|
Content-Length:
|
69
69
|
- '0'
|
70
|
+
X-API-KEY:
|
71
|
+
- <QT_KEY>
|
70
72
|
response:
|
71
73
|
status:
|
72
74
|
code: 200
|
@@ -76,22 +78,20 @@ http_interactions:
|
|
76
78
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
77
79
|
Content-Type:
|
78
80
|
- application/json; charset=utf-8
|
79
|
-
X-Ua-Compatible:
|
80
|
-
- IE=Edge,chrome=1
|
81
81
|
Etag:
|
82
|
-
-
|
82
|
+
- W/"fcdfcfff79f5c60b174480976538dbb9"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
X-Request-Id:
|
86
|
-
-
|
86
|
+
- ee9c0559-0edf-4b9c-bbd0-7c9238e25624
|
87
87
|
X-Runtime:
|
88
|
-
- '0.
|
89
|
-
Vary:
|
90
|
-
- Origin
|
88
|
+
- '0.125472'
|
91
89
|
Date:
|
92
|
-
- Fri, 01 Jan 2016 02:32:
|
90
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
93
91
|
X-Rack-Cache:
|
94
92
|
- invalidate, pass
|
93
|
+
Vary:
|
94
|
+
- Origin
|
95
95
|
X-Content-Type-Options:
|
96
96
|
- nosniff
|
97
97
|
X-Download-Options:
|
@@ -109,7 +109,7 @@ http_interactions:
|
|
109
109
|
Connection:
|
110
110
|
- Keep-Alive
|
111
111
|
Set-Cookie:
|
112
|
-
-
|
112
|
+
- _session_id=d2tyU0pHd081SGplZ3ZNZXFPWlh3MUhMRXhXK1dIVDA3VzN5Q01VdFIvcHBsRWdmNEp2NHV1TE5iQnU0QWpjTEJ0Nk91TzVpRFVSWUd0aDNBdFJ3dzdIRHF1bytxSHVzc2lPYkRIMWRQRUU9LS0rbDNJbnpkT0J3ZlNVbVRKbWNxa053PT0%3D--7ecb9cf299d107121355fba7c03491af1c0c2d66;
|
113
113
|
path=/; HttpOnly
|
114
114
|
body:
|
115
115
|
encoding: UTF-8
|
@@ -117,5 +117,5 @@ http_interactions:
|
|
117
117
|
Offer"],"quoted_booking_breakdown":[{"quoted_gross_in_cents":4800,"original_gross_in_cents":0,"applied_rules":["Special
|
118
118
|
Offer"],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
119
119
|
http_version:
|
120
|
-
recorded_at:
|
121
|
-
recorded_with: VCR
|
120
|
+
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
121
|
+
recorded_with: VCR 4.0.0
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/products/date_range_bookability.json?default_pax_type_numbers%5B%5D=1&duration=7&passenger_type_numbers%5B%5D=1&passenger_type_numbers%5B%5D=2&resource_ids%5B%5D=3&resource_ids%5B%5D=4&resource_ids%5B%5D=6&travel_date=2016-03-01
|
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
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"048fff46bbe2ed2ec978ad8eeef9c668"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- 0d9649ce-6d5b-45b9-8ef1-3765fbdea2f6
|
29
29
|
X-Runtime:
|
30
|
-
- '1.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '1.966337'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:28 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -47,84 +47,70 @@ http_interactions:
|
|
47
47
|
Server:
|
48
48
|
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
|
-
- '
|
50
|
+
- '15782'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=Y2pna2NlWHQ1MCsyUzJCNkpGMWd1aEJuc2lyYWpneFV4WEgyQXRlMjRvaExYVHl0NG9Oa25Td3BnUkNWVlcwM1djeUtHMFdrY01TTm1pNHdVQlVpYm15V2Uyb09sK3piR3IxYVlRRkhoM0U9LS1VeHpMclhaV25wYUZZU0p3V2xjdi9BPT0%3D--4f51ee60b95c32a482168eaff3f683c7784db85a;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '[{"resource":{"id":3,"name":"QBE Travel Insurance - Policy E"},"bookability":{"2016-03-01":{"available":true,"availability_details":{"available":true,"capacity":
|
59
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
58
|
+
string: '[{"resource":{"id":3,"name":"QBE Travel Insurance - Policy E"},"bookability":{"2016-03-01":{"available":true,"availability_details":{"available":true,"capacity":1,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
60
59
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
61
60
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
62
|
-
E","error_message":null},"2016-03-02":{"available":true,"availability_details":{"available":true,"capacity":
|
63
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
61
|
+
E","error_message":null},"2016-03-02":{"available":true,"availability_details":{"available":true,"capacity":1,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
64
62
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
65
63
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
66
|
-
E","error_message":null},"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":1,"
|
67
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
64
|
+
E","error_message":null},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
68
65
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
69
66
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
70
|
-
E","error_message":"No services setup"},"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":1,"
|
71
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
67
|
+
E","error_message":"No services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
72
68
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
73
69
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
74
|
-
E","error_message":"No services setup"},"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":1,"
|
75
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
70
|
+
E","error_message":"No services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
76
71
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
77
72
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
78
|
-
E","error_message":"No services setup"},"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":1,"
|
79
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
73
|
+
E","error_message":"No services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
80
74
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
81
75
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
82
|
-
E","error_message":"No services setup"},"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":1,"
|
83
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
76
|
+
E","error_message":"No services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
84
77
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"QBE
|
85
78
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
86
79
|
E","error_message":"No services setup"}}},{"resource":{"id":4,"name":"Travel
|
87
|
-
Insurance - Declined"},"bookability":{"2016-03-01":{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"
|
88
|
-
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null},"2016-03-02":{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"
|
89
|
-
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null},"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":1,"
|
80
|
+
Insurance - Declined"},"bookability":{"2016-03-01":{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
81
|
+
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null},"2016-03-02":{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
82
|
+
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
90
83
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
91
|
-
services setup"},"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":1,"
|
84
|
+
services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
92
85
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
93
|
-
services setup"},"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":1,"
|
86
|
+
services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
94
87
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
95
|
-
services setup"},"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":1,"
|
88
|
+
services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
96
89
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
97
|
-
services setup"},"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":1,"
|
90
|
+
services setup"},"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":1,"pricing_details":{"price_per_pax_type":{"1":3000,"2":0},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"selection_name":"Travel
|
98
91
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
99
|
-
services setup"}}},{"resource":{"id":6,"name":"Executive Room"},"bookability":{"2016-03-01":{"available":false,"availability_details":{"available":false,"capacity":2,"available_capacity":
|
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
|
92
|
+
services setup"}}},{"resource":{"id":6,"name":"Executive Room"},"bookability":{"2016-03-01":{"available":false,"availability_details":{"available":false,"capacity":2,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
101
93
|
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
|
102
94
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
103
|
-
reserve more than 2 passengers in
|
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
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"2016-03-02":{"available":false,"availability_details":{"available":false,"capacity":2,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
105
96
|
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
|
106
97
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
107
|
-
reserve more than 2 passengers in
|
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
|
98
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"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,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
109
99
|
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
|
110
100
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
111
|
-
reserve more than 2 passengers in
|
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
|
101
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"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,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
113
102
|
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
|
114
103
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
115
|
-
reserve more than 2 passengers in
|
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
|
104
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"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,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
117
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
|
118
106
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
119
|
-
reserve more than 2 passengers in
|
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
|
107
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"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,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
121
108
|
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
|
122
109
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
123
|
-
reserve more than 2 passengers in
|
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
|
110
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"},"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,"pricing_details":{"price_per_pax_type":{"":25000},"minimum_price_in_cents":25000,"minimum_price_with_adjustments_in_cents":12500,"total_adjustments_in_cents":-12500,"applied_rules":["Test
|
125
111
|
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
|
126
112
|
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
127
|
-
reserve more than 2 passengers in
|
113
|
+
reserve more than 2 passengers in Hilton Hotel - Executive Room"}}}]'
|
128
114
|
http_version:
|
129
|
-
recorded_at:
|
130
|
-
recorded_with: VCR
|
115
|
+
recorded_at: Wed, 21 Mar 2018 04:40:35 GMT
|
116
|
+
recorded_with: VCR 4.0.0
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/products/6.json?date_range%5Bend_date%5D=2016-03-02&date_range%5Bstart_date%5D=2016-03-01&first_travel_date=2016-03-01&passenger_type_numbers%5B%5D=1
|
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
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"1728c9d08e89efda28c50f0378433dc7"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- d6c0c10e-8c81-46b0-b0f0-ff76baebeb60
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.732135'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:25 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -47,23 +47,21 @@ http_interactions:
|
|
47
47
|
Server:
|
48
48
|
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
|
-
- '
|
50
|
+
- '2108'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=TGFmdHUvb1djR1dDOGRjRDQzU0pqWmFpalNOWDcvdmVRV0hmNnlBdU90djVHMVNEeThFMk1UTnUrWHlPZk01Smk3NU1vU2Vxak1Id2YwdHdaVlBENjU0S29KZGJFSFVYcVdLUThMd2FlWm89LS13Ynh5cDdzaXFPVjdWQ3V0aHR3ZS93PT0%3D--2a6f4ec0b010b69e58aca23ac7fd27eac0830934;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '{"available":true,"availability_details":{"available":true,"capacity":2,"available_capacity":
|
59
|
-
|
60
|
-
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"extras":[{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"price":{"_type":"Money","_value":6000},"pricing_details":{"minimum_price":{"_type":"Money","_value":6000},"minimum_price_with_adjustments":{"_type":"Money","_value":3000},"adjustments_to_apply":[{"description":"50%
|
61
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
58
|
+
string: '{"available":true,"availability_details":{"available":true,"capacity":2,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"pricing_details":{"price_per_pax_type":{"":40000},"minimum_price_in_cents":40000,"minimum_price_with_adjustments_in_cents":20000,"total_adjustments_in_cents":-20000,"applied_rules":["Test
|
59
|
+
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"extras":[{"available":true,"availability_details":{"available":true,"capacity":1,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
62
60
|
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"extras":[],"selection_name":"QBE
|
63
61
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
64
|
-
E","error_message":null},{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"
|
62
|
+
E","error_message":null},{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"extras":[],"selection_name":"Travel
|
65
63
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null}],"selection_name":"Executive
|
66
64
|
Room","description":"Hilton Hotel - Executive Room","error_message":null}'
|
67
65
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR
|
66
|
+
recorded_at: Wed, 21 Mar 2018 04:40:32 GMT
|
67
|
+
recorded_with: VCR 4.0.0
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/products/6.json?date_range%5Bend_date%5D=2016-03-02&date_range%5Bstart_date%5D=2016-03-01&first_travel_date=2016-03-01&passenger_type_numbers%5B%5D=1&rack_price_requested=true
|
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
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"8906c6b376c4d36d43d4b122ac73d367"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- deb239ca-ed6b-4770-876e-ad2d095fb643
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.833342'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:26 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -47,27 +47,21 @@ http_interactions:
|
|
47
47
|
Server:
|
48
48
|
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
|
-
- '
|
50
|
+
- '2689'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=VkorVXAySFdWaVlaQ1hOTmlCb1hJZmxrcFNLUU44Q2E1aHNCMmwrSjlENjZFeWJIeXpYRTdzMjBYRnFGZ241NThoSXpvZk01Yi92UUFSRTFGYVFTREo1SVhLUjdJeEg1QXRjTnhNcFJSckk9LS02cHN6cFVySTJnaHp0bHUzOU0yc3hBPT0%3D--861222141f7892ee33ae2f1d1fe820a44b4e61db;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '{"available":true,"availability_details":{"available":true,"capacity":2,"available_capacity":
|
59
|
-
|
60
|
-
|
61
|
-
Off","gross":{"_type":"Money","_value":-20000},"gross_in_cents":-20000}],"total_adjustments":{"_type":"Money","_value":-20000},"price_per_pax_type":{"":40000},"minimum_price_in_cents":40000,"minimum_price_with_adjustments_in_cents":20000,"total_adjustments_in_cents":-20000,"adjustments_to_apply_in_cents":[-20000],"applied_rules":["Test
|
62
|
-
Discount Hilton"]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"extras":[{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"price":{"_type":"Money","_value":6000},"pricing_details":{"minimum_price":{"_type":"Money","_value":6000},"minimum_price_with_adjustments":{"_type":"Money","_value":3000},"adjustments_to_apply":[{"description":"50%
|
63
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
64
|
-
Get Me"]},"pricing_details_for_rack_rate":{"minimum_price":{"_type":"Money","_value":6000},"minimum_price_with_adjustments":{"_type":"Money","_value":3000},"adjustments_to_apply":[{"description":"50%
|
65
|
-
Off","gross":{"_type":"Money","_value":-3000},"gross_in_cents":-3000}],"total_adjustments":{"_type":"Money","_value":-3000},"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"adjustments_to_apply_in_cents":[-3000],"applied_rules":["QBE
|
66
|
-
Get Me"]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"extras":[],"selection_name":"QBE
|
58
|
+
string: '{"available":true,"availability_details":{"available":true,"capacity":2,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":0,"pricing_details":{"price_per_pax_type":{"":40000},"minimum_price_in_cents":40000,"minimum_price_with_adjustments_in_cents":20000,"total_adjustments_in_cents":-20000,"applied_rules":["Test
|
59
|
+
Discount Hilton"]},"pricing_details_for_rack_rate":{"price_per_pax_type":{"":40000},"minimum_price_in_cents":40000,"minimum_price_with_adjustments_in_cents":40000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":6},"resource_class_name_underscore":"accommodation","product_name_underscore":"accommodation","image":{"url":"/assets/default-icon.png","desc":""},"extras":[{"available":true,"availability_details":{"available":true,"capacity":1,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":3000,"total_adjustments_in_cents":-3000,"applied_rules":["QBE
|
60
|
+
Get Me"]},"pricing_details_for_rack_rate":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":3},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"extras":[],"selection_name":"QBE
|
67
61
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
68
|
-
E","error_message":null},{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"
|
62
|
+
E","error_message":null},{"available":true,"availability_details":{"available":true,"capacity":null,"available_capacity":null,"master_capacity":null,"master_available_capacity":null,"unavailable_type":null},"inventory_type":1,"pricing_details":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"pricing_details_for_rack_rate":{"price_per_pax_type":{"1":6000},"minimum_price_in_cents":6000,"minimum_price_with_adjustments_in_cents":6000,"total_adjustments_in_cents":0,"applied_rules":[]},"reservation_attributes":{"resource_id":4},"resource_class_name_underscore":"insurance","product_name_underscore":"travel_insurance","image":{"url":"/assets/default-icon.png","desc":""},"extras":[],"selection_name":"Travel
|
69
63
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":null}],"selection_name":"Executive
|
70
64
|
Room","description":"Hilton Hotel - Executive Room","error_message":null}'
|
71
65
|
http_version:
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR
|
66
|
+
recorded_at: Wed, 21 Mar 2018 04:40:33 GMT
|
67
|
+
recorded_with: VCR 4.0.0
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/product_types.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
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"1fe4427aa58b4d56ec64723a80cfd66d"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- b6cc538a-4bd6-46fc-87e0-f3fcb7cc58cf
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.174082'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:28 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -47,17 +47,21 @@ http_interactions:
|
|
47
47
|
Server:
|
48
48
|
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
|
-
- '
|
50
|
+
- '5426'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=WUJ0ZHJaMW1nU1VuUEhtcjhUSVlJZVJ5d3BiZW53RUxITEpnVHVma1NncCs1czBKZktPNmZMT0E2YU1IMEJqa3ZLQU1yaEVUSmx3TERhd3BjYkZ5UE1BdkZCY2hXMkdRanIvdXdRY2xqNW89LS1XcmdLZHhhY1dPU200ZFVvSmtyNE1RPT0%3D--346a42c650961415e88a273b209cc75203de9af2;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
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":
|
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
|
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":null,"updated_at":null,"code":null,"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
|
61
|
+
notes_for_vendor","vendor_staff note_for_inventory_type_change"],"only_bookable_with_accommodation":false,"footer_itinerary_item":true,"created_at":null,"updated_at":null,"code":null,"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":"''---\n -
|
62
|
+
reservation_group_id\n - trip_name departure_time\n - pick_up_information\n -
|
63
|
+
drop_off_information\n - vendor_pnr\n - notes_for_vendor\n - vendor_staff\n -
|
64
|
+
note_for_inventory_type_change''\n","only_bookable_with_accommodation":false,"footer_itinerary_item":false,"created_at":null,"updated_at":null,"code":null,"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":null,"updated_at":null,"code":null,"needs_services":true,"can_have_quantity":false,"can_have_dates":true,"needs_passengers":true}]'
|
61
65
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
66
|
+
recorded_at: Wed, 21 Mar 2018 04:40:35 GMT
|
67
|
+
recorded_with: VCR 4.0.0
|