quicktravel_client 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -1
- data/.travis.yml +14 -2
- data/CHANGELOG.md +34 -3
- data/Gemfile +0 -3
- data/Rakefile +0 -6
- data/examples/login_example.rb +1 -1
- data/gemfiles/rails4.gemfile +9 -0
- data/lib/quick_travel.rb +2 -1
- data/lib/quick_travel/accommodation.rb +1 -15
- data/lib/quick_travel/adapter.rb +98 -67
- data/lib/quick_travel/{adapter_exception.rb → adapter_error.rb} +1 -1
- data/lib/quick_travel/address.rb +2 -7
- data/lib/quick_travel/adjustment.rb +0 -2
- data/lib/quick_travel/bed_configuration.rb +0 -1
- data/lib/quick_travel/bed_requirement.rb +0 -1
- data/lib/quick_travel/booking.rb +22 -46
- data/lib/quick_travel/cache.rb +8 -14
- data/lib/quick_travel/checkout.rb +1 -1
- data/lib/quick_travel/client.rb +2 -4
- data/lib/quick_travel/client_type.rb +2 -1
- data/lib/quick_travel/connection_error.rb +1 -1
- data/lib/quick_travel/constants.rb +0 -1
- data/lib/quick_travel/contact.rb +0 -1
- data/lib/quick_travel/country.rb +0 -3
- data/lib/quick_travel/document.rb +0 -2
- data/lib/quick_travel/document_group.rb +0 -2
- data/lib/quick_travel/location.rb +0 -2
- data/lib/quick_travel/party.rb +7 -12
- data/lib/quick_travel/passenger.rb +0 -1
- data/lib/quick_travel/passenger_price_break.rb +0 -2
- data/lib/quick_travel/passenger_type.rb +0 -2
- data/lib/quick_travel/payment.rb +0 -3
- data/lib/quick_travel/payment_type.rb +4 -13
- data/lib/quick_travel/price_changes.rb +3 -0
- data/lib/quick_travel/price_changes/booking_price_change.rb +30 -0
- data/lib/quick_travel/price_changes/price_change.rb +23 -0
- data/lib/quick_travel/{discounts/discount_tree.rb → price_changes/price_change_tree.rb} +12 -8
- data/lib/quick_travel/product.rb +15 -28
- data/lib/quick_travel/product_type.rb +4 -16
- data/lib/quick_travel/property.rb +4 -20
- data/lib/quick_travel/property_facility.rb +0 -1
- data/lib/quick_travel/property_type.rb +2 -14
- data/lib/quick_travel/region.rb +0 -9
- data/lib/quick_travel/reservation.rb +0 -21
- data/lib/quick_travel/resource.rb +7 -28
- data/lib/quick_travel/room_facility.rb +0 -1
- data/lib/quick_travel/route.rb +9 -25
- data/lib/quick_travel/route_stop.rb +0 -1
- data/lib/quick_travel/service.rb +2 -1
- data/lib/quick_travel/status.rb +23 -0
- data/lib/quick_travel/trip.rb +0 -1
- data/lib/quick_travel/vehicle.rb +2 -4
- data/lib/quick_travel/vehicle_type.rb +0 -3
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +4 -4
- data/spec/booking_spec.rb +24 -0
- data/spec/discounts_spec.rb +69 -69
- data/spec/passenger_type_spec.rb +30 -0
- data/spec/payment_type_spec.rb +10 -0
- data/spec/product_spec.rb +52 -21
- data/spec/product_type_spec.rb +19 -0
- data/spec/property_spec.rb +83 -0
- data/spec/region_spec.rb +1 -1
- data/spec/reservation_spec.rb +3 -2
- data/spec/resource_spec.rb +31 -7
- data/spec/route_spec.rb +118 -0
- data/spec/spec_helper.rb +18 -25
- data/spec/status_spec.rb +9 -0
- data/spec/support/cassettes/booking_create.yml +39 -33
- data/spec/support/cassettes/booking_documents.yml +36 -30
- data/spec/support/cassettes/booking_price_changes.yml +66 -0
- data/spec/support/cassettes/booking_show.yml +38 -32
- data/spec/support/cassettes/booking_update.yml +74 -62
- data/spec/support/cassettes/booking_with_documents.yml +88 -76
- data/spec/support/cassettes/booking_with_nested_attributes.yml +128 -110
- data/spec/support/cassettes/booking_with_price_changes.yml +86 -0
- data/spec/support/cassettes/countries.yml +140 -0
- data/spec/support/cassettes/country_all.yml +36 -30
- data/spec/support/cassettes/create_reservation_fail.yml +32 -27
- data/spec/support/cassettes/create_reservation_with_booking.yml +40 -34
- data/spec/support/cassettes/passenger_all.yml +36 -30
- data/spec/support/cassettes/payment_info.yml +61 -0
- data/spec/support/cassettes/product_date_range_bookability.yml +61 -59
- data/spec/support/cassettes/product_show.yml +42 -32
- data/spec/support/cassettes/product_show_as_agent.yml +63 -0
- data/spec/support/cassettes/product_type_all.yml +53 -0
- data/spec/support/cassettes/property.yml +66 -0
- data/spec/support/cassettes/region_show.yml +36 -30
- data/spec/support/cassettes/reservation_with_extra_picks.yml +137 -110
- data/spec/support/cassettes/resource_fare_bases.yml +47 -78
- data/spec/support/cassettes/resource_product_type.yml +63 -0
- data/spec/support/cassettes/resource_show.yml +37 -31
- data/spec/support/cassettes/resource_with_price.yml +63 -0
- data/spec/support/cassettes/route_all.yml +65 -0
- data/spec/support/cassettes/tenant_switcher.yml +109 -0
- data/spec/support/coverage_loader.rb +26 -0
- data/spec/tenant_spec.rb +28 -0
- metadata +106 -115
- data/bootstrap/boot.rb +0 -4
- data/lib/quick_travel/discounts.rb +0 -3
- data/lib/quick_travel/discounts/booking_discount.rb +0 -18
- data/lib/quick_travel/discounts/discount.rb +0 -21
- data/spec/support/cassettes/booking_create_legacy.yml +0 -50
- data/spec/support/cassettes/booking_discounts.yml +0 -53
- data/spec/support/cassettes/booking_with_discounts.yml +0 -72
- data/spec/support/cassettes/region_index.yml +0 -48
@@ -2,47 +2,53 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/countries.json
|
6
6
|
body:
|
7
|
-
encoding:
|
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
|
-
message:
|
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
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
- Thu, 28 Feb 2013 14:22:16 GMT
|
33
|
-
x-rack-cache:
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, must-revalidate, private, max-age=0
|
25
|
+
X-Request-Id:
|
26
|
+
- 755e5cf7c3c59eab0dd1424f009daf32
|
27
|
+
X-Runtime:
|
28
|
+
- '0.140575'
|
29
|
+
Vary:
|
30
|
+
- Origin
|
31
|
+
X-Rack-Cache:
|
34
32
|
- miss
|
35
|
-
|
36
|
-
-
|
37
|
-
|
33
|
+
X-Miniprofiler-Ids:
|
34
|
+
- '["36wcaqdqh53voaq9crzb","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
|
35
|
+
Server:
|
36
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
37
|
+
Date:
|
38
|
+
- Mon, 26 Oct 2015 00:18:46 GMT
|
39
|
+
Content-Length:
|
38
40
|
- '41663'
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
Set-Cookie:
|
44
|
+
- __profilin=p%3Dt; path=/
|
45
|
+
- __profilin=p%3Dt; path=/
|
46
|
+
- __profilin=p%3Dt; path=/
|
47
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTY0YWI3NzEzZWZmMjlkMzJhNDk2ZGY5MzMwNzVkNzE3BjsAVEkiCXVzZXIGOwBGaQY%3D--3d18ab2f865f1cc3a9fa284a00f795d9a0b4718b;
|
48
|
+
path=/; HttpOnly
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '[{"created_at":"2013-03-01T00:00:00+10:30","id":1,"iso_3166_code":"AD","latitude":42.3,"longitude":-1.3,"name":"Andorra","updated_at":"2013-03-01T00:00:00+10:30"},{"created_at":"2013-03-01T00:00:01+10:30","id":2,"iso_3166_code":"AE","latitude":24.0,"longitude":-54.0,"name":"United
|
46
52
|
Arab Emirates","updated_at":"2013-03-01T00:00:01+10:30"},{"created_at":"2013-03-01T00:00:01+10:30","id":3,"iso_3166_code":"AF","latitude":33.0,"longitude":-65.0,"name":"Afghanistan","updated_at":"2013-03-01T00:00:01+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":4,"iso_3166_code":"AG","latitude":17.03,"longitude":61.48,"name":"Antigua
|
47
53
|
and Barbuda","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":5,"iso_3166_code":"AI","latitude":18.15,"longitude":63.1,"name":"Anguilla","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":6,"iso_3166_code":"AL","latitude":41.0,"longitude":-20.0,"name":"Albania","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:04+10:30","id":7,"iso_3166_code":"AM","latitude":40.0,"longitude":-45.0,"name":"Armenia","updated_at":"2013-03-01T00:00:04+10:30"},{"created_at":"2013-03-01T00:00:05+10:30","id":8,"iso_3166_code":"AN","latitude":0.0,"longitude":0.0,"name":"Netherlands
|
48
54
|
Antilles","updated_at":"2013-03-01T00:00:05+10:30"},{"created_at":"2013-03-01T00:00:05+10:30","id":9,"iso_3166_code":"AO","latitude":-12.3,"longitude":-18.3,"name":"Angola","updated_at":"2013-03-01T00:00:05+10:30"},{"created_at":"2013-03-01T00:00:06+10:30","id":10,"iso_3166_code":"AQ","latitude":-90.0,"longitude":0.0,"name":"Antarctica","updated_at":"2013-03-01T00:00:06+10:30"},{"created_at":"2013-03-01T00:00:06+10:30","id":11,"iso_3166_code":"AR","latitude":-34.0,"longitude":64.0,"name":"Argentina","updated_at":"2013-03-01T00:00:06+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":12,"iso_3166_code":"AS","latitude":-14.2,"longitude":170.0,"name":"American
|
@@ -122,6 +128,6 @@ http_interactions:
|
|
122
128
|
Nam","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":240,"iso_3166_code":"VU","latitude":-16.0,"longitude":-167.0,"name":"Vanuatu","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":241,"iso_3166_code":"WF","latitude":-13.18,"longitude":176.12,"name":"Wallis
|
123
129
|
and Futuna","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":242,"iso_3166_code":"WS","latitude":-13.35,"longitude":172.2,"name":"Samoa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":243,"iso_3166_code":"YE","latitude":15.0,"longitude":-48.0,"name":"Yemen","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":244,"iso_3166_code":"YT","latitude":-12.5,"longitude":-45.1,"name":"Mayotte","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":245,"iso_3166_code":"ZA","latitude":-29.0,"longitude":-24.0,"name":"South
|
124
130
|
Africa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":246,"iso_3166_code":"ZM","latitude":-15.0,"longitude":-30.0,"name":"Zambia","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":247,"iso_3166_code":"ZW","latitude":-20.0,"longitude":-30.0,"name":"Zimbabwe","updated_at":"2013-03-01T00:01:27+10:30"}]'
|
125
|
-
http_version:
|
126
|
-
recorded_at:
|
131
|
+
http_version:
|
132
|
+
recorded_at: Mon, 26 Oct 2015 00:18:46 GMT
|
127
133
|
recorded_with: VCR 2.9.3
|
@@ -2,46 +2,51 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/reservations.json
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: UTF-8
|
8
8
|
string: resource_id=4&first_travel_date=2099-09-10&access_key=<QT_KEY>
|
9
9
|
headers:
|
10
|
-
|
10
|
+
Content-Length:
|
11
11
|
- '0'
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 404
|
15
|
-
message:
|
15
|
+
message: 'Not Found '
|
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
|
-
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Cache-Control:
|
24
24
|
- no-cache
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
- '0.
|
29
|
-
|
30
|
-
-
|
31
|
-
|
25
|
+
X-Request-Id:
|
26
|
+
- 97e95572be9a32af47df4433463252b0
|
27
|
+
X-Runtime:
|
28
|
+
- '0.159371'
|
29
|
+
Vary:
|
30
|
+
- Origin
|
31
|
+
Date:
|
32
|
+
- Mon, 26 Oct 2015 00:18:51 GMT
|
33
|
+
X-Rack-Cache:
|
32
34
|
- invalidate, pass
|
33
|
-
|
34
|
-
- WEBrick/1.3.1 (Ruby/2.
|
35
|
-
|
35
|
+
Server:
|
36
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
37
|
+
Content-Length:
|
36
38
|
- '98'
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
-
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
Set-Cookie:
|
42
|
+
- __profilin=p%3Dt; path=/
|
43
|
+
- __profilin=p%3Dt; path=/
|
44
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE5YjZiYzk5M2I3ZjY5ZjZmZmUzOTA5ZTQ4Mzg4YzQ2BjsAVEkiCXVzZXIGOwBGaQY%3D--773e04031b02d26fbdb19c122bdcf0687f546e4f;
|
45
|
+
path=/; HttpOnly
|
41
46
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"error":"No services selected for [10-09-2099 -- Travel Insurance
|
44
49
|
- Declined -- 0 pax assigned]"}'
|
45
|
-
http_version:
|
46
|
-
recorded_at:
|
50
|
+
http_version:
|
51
|
+
recorded_at: Mon, 26 Oct 2015 00:18:51 GMT
|
47
52
|
recorded_with: VCR 2.9.3
|
@@ -2,52 +2,58 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/reservations.json
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: UTF-8
|
8
8
|
string: resource_id=4&first_travel_date=2016-03-01&passenger_types_numbers[1]=2&passenger_types_numbers[2]=1&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
|
-
message:
|
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
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
- Thu, 28 Feb 2013 13:39:42 GMT
|
33
|
-
x-rack-cache:
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, must-revalidate, private, max-age=0
|
25
|
+
X-Request-Id:
|
26
|
+
- 977f78945cdd94982ffc30eb03aa34b3
|
27
|
+
X-Runtime:
|
28
|
+
- '0.640636'
|
29
|
+
Vary:
|
30
|
+
- Origin
|
31
|
+
X-Rack-Cache:
|
34
32
|
- invalidate, pass
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
33
|
+
X-Miniprofiler-Ids:
|
34
|
+
- '["dmec9md3bawo7i5ajea7","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
|
35
|
+
Server:
|
36
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
37
|
+
Date:
|
38
|
+
- Mon, 26 Oct 2015 00:18:51 GMT
|
39
|
+
Content-Length:
|
40
|
+
- '1948'
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
Set-Cookie:
|
44
|
+
- __profilin=p%3Dt; path=/
|
45
|
+
- __profilin=p%3Dt; path=/
|
46
|
+
- __profilin=p%3Dt; path=/
|
47
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE4Y2U4MzVjZjQ3NmFiMGFhY2YzYjc2OTMwN2JiMmQ1BjsAVEkiCXVzZXIGOwBGaQY%3D--d163f669c45478cc505299bfd51dbfb0f9da5ba9;
|
48
|
+
path=/; HttpOnly
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"id":4,"booking_id":3,"description":"You have declined Travel Insurance
|
46
52
|
for your booking. If you wish to add Travel Insurance to this booking, please
|
47
|
-
contact the SeaLink Travel Group on 13 13 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7],"resource_id":4,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
|
53
|
+
contact the SeaLink Travel Group on 13 13 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
|
48
54
|
Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-01"},"durational":true,"duration":1,"duration_units":"Days","date_start_label":"Start
|
49
|
-
Date:","date_end_label":"End Date:","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
|
50
|
-
Priced as: Rack Rate","gross_including_packaged_item_in_cents":0,"pre_adjusted_gross_including_packaged_item_in_cents":0,"gross_in_cents":0,"pre_adjusted_gross_in_cents":0,"pre_adjusted_commission_in_cents":0,"cost_in_cents":0,"
|
51
|
-
http_version:
|
52
|
-
recorded_at:
|
55
|
+
Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
|
56
|
+
Priced as: Rack Rate","gross_including_packaged_item_in_cents":0,"pre_adjusted_gross_including_packaged_item_in_cents":0,"gross_in_cents":0,"pre_adjusted_gross_in_cents":0,"pre_adjusted_commission_in_cents":0,"cost_in_cents":0,"rules":[],"package":false,"sub_reservation_depth":0,"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Mon, 26 Oct 2015 00:18:51 GMT
|
53
59
|
recorded_with: VCR 2.9.3
|
@@ -2,47 +2,53 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/passenger_types.json
|
6
6
|
body:
|
7
|
-
encoding:
|
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
|
-
message:
|
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
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
- Thu, 28 Feb 2013 14:22:17 GMT
|
33
|
-
x-rack-cache:
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, must-revalidate, private, max-age=0
|
25
|
+
X-Request-Id:
|
26
|
+
- d0e28004b1b7d2aa30435308831d0026
|
27
|
+
X-Runtime:
|
28
|
+
- '0.149156'
|
29
|
+
Vary:
|
30
|
+
- Origin
|
31
|
+
X-Rack-Cache:
|
34
32
|
- miss
|
35
|
-
|
36
|
-
-
|
37
|
-
|
33
|
+
X-Miniprofiler-Ids:
|
34
|
+
- '["hc2nd9g85pcfaqbxtvgz","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
|
35
|
+
Server:
|
36
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
37
|
+
Date:
|
38
|
+
- Mon, 26 Oct 2015 00:18:47 GMT
|
39
|
+
Content-Length:
|
38
40
|
- '488'
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
Set-Cookie:
|
44
|
+
- __profilin=p%3Dt; path=/
|
45
|
+
- __profilin=p%3Dt; path=/
|
46
|
+
- __profilin=p%3Dt; path=/
|
47
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTU4OTZjYjk4YWRhNDZhYjVhNTk0MThiOWYyMjRkZGIwBjsAVEkiCXVzZXIGOwBGaQY%3D--cbcd1d84f0f511b7d0981571df7c55984f20727b;
|
48
|
+
path=/; HttpOnly
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
46
|
-
http_version:
|
47
|
-
recorded_at:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '[{"id":1,"name":"Adult","minimum_age":null,"maximum_age":null,"age_range_required":false,"position":1,"default_age":30,"created_at":null,"updated_at":null,"code":"Ad"},{"id":3,"name":"Infant","minimum_age":0,"maximum_age":2,"age_range_required":true,"position":2,"default_age":0,"created_at":null,"updated_at":null,"code":"In"},{"id":2,"name":"Child","minimum_age":3,"maximum_age":14,"age_range_required":true,"position":3,"default_age":3,"created_at":null,"updated_at":null,"code":"Ch"}]'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 26 Oct 2015 00:18:47 GMT
|
48
54
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/payment_types/information.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: access_key=<QT_KEY>
|
9
|
+
headers:
|
10
|
+
Content-Length:
|
11
|
+
- '0'
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: 'OK '
|
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
|
+
P3p:
|
28
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge
|
33
|
+
Etag:
|
34
|
+
- '"cd5be9bdf16f4c72e0e136f2b63da300"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 3822d8b61cdfabe8c0bf233209ef3dde
|
39
|
+
X-Runtime:
|
40
|
+
- '0.071168'
|
41
|
+
Vary:
|
42
|
+
- Origin
|
43
|
+
Date:
|
44
|
+
- Tue, 12 Jan 2016 05:45:11 GMT
|
45
|
+
X-Rack-Cache:
|
46
|
+
- miss
|
47
|
+
Server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
49
|
+
Content-Length:
|
50
|
+
- '33'
|
51
|
+
Connection:
|
52
|
+
- Keep-Alive
|
53
|
+
Set-Cookie:
|
54
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTg5OGJmNDdlNjhmZTg5MjljNWEyMjYxMWRiMjk0NDgxBjsAVEkiCXVzZXIGOwBGaQY%3D--ea17307d649ccde54ba6cd9396a29e3ddbb1a0ce;
|
55
|
+
path=/; HttpOnly
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"poli_pay":{"login":"S1234567"}}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 12 Jan 2016 05:45:11 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -2,76 +2,50 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
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
|
-
encoding:
|
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
|
-
message:
|
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
|
23
|
+
Etag:
|
24
|
+
- '"363f9713349a90718009de666f659c99"'
|
25
|
+
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
- '
|
31
|
-
|
32
|
-
-
|
33
|
-
|
27
|
+
X-Request-Id:
|
28
|
+
- fffda633d68528c851791789916ea978
|
29
|
+
X-Runtime:
|
30
|
+
- '2.516408'
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
Date:
|
34
|
+
- Mon, 26 Oct 2015 02:17:08 GMT
|
35
|
+
X-Rack-Cache:
|
34
36
|
- miss
|
35
|
-
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.
|
37
|
-
|
37
|
+
Server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
|
39
|
+
Content-Length:
|
38
40
|
- '23034'
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
- _session_id=
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
Set-Cookie:
|
44
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWVhYmFiOTY3YTBjOTgwODUzODIxYTExYzg1Yzc3NWI4BjsAVEkiCXVzZXIGOwBGaQY%3D--a7104a386507de61530c86e5274a505d005afa5a;
|
45
|
+
path=/; HttpOnly
|
43
46
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
46
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
47
|
-
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
|
48
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
49
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000e847c00\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
50
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
51
|
-
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
|
52
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
53
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x00000007dad570\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
54
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
55
|
-
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
|
56
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
57
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000d307b88\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
58
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"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":""},"selection_name":"Executive
|
60
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
61
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000e0414c0\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
62
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
63
|
-
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
|
64
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
65
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000e98f7c0\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
66
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
67
|
-
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
|
68
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
69
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000f1ea758\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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
|
70
|
-
Off","gross":{"_type":"Money","_value":-15000},"gross_in_cents":-15000}],"total_adjustments":{"_type":"Money","_value":-15000},"price_per_pax_type":{"":30000},"minimum_price_in_cents":30000,"minimum_price_with_adjustments_in_cents":15000,"total_adjustments_in_cents":-15000,"adjustments_to_apply_in_cents":[-15000],"applied_rules":["Test
|
71
|
-
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
|
72
|
-
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
73
|
-
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x0000000e7d23b0\u003E"}}},{"resource":{"id":3,"name":"QBE
|
74
|
-
Travel Insurance - Policy E"},"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,"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%
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '[{"resource":{"id":3,"name":"QBE Travel Insurance - Policy E"},"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,"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%
|
75
49
|
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
50
|
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
51
|
Travel Insurance - Policy E","description":"QBE Travel Insurance - Policy
|
@@ -112,7 +86,35 @@ http_interactions:
|
|
112
86
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
113
87
|
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,"price":{"_type":"Money","_value":6000},"pricing_details":{"minimum_price":{"_type":"Money","_value":6000},"minimum_price_with_adjustments":{"_type":"Money","_value":6000},"adjustments_to_apply":[],"total_adjustments":{"_type":"Money","_value":0},"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,"adjustments_to_apply_in_cents":[],"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
|
114
88
|
Insurance - Declined","description":"Travel Insurance - Declined","error_message":"No
|
115
|
-
services setup"}}}
|
116
|
-
|
117
|
-
|
89
|
+
services setup"}}},{"resource":{"id":6,"name":"Executive Room"},"bookability":{"2016-03-01":{"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%
|
90
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
93
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82b02a0938\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
97
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82b032bb50\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
101
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82af4f6058\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
105
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82c74c0e90\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
109
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82c628ce68\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
113
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82c7410f40\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
|
+
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
|
+
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
|
+
Room","description":"Hilton Hotel - Executive Room","error_message":"Cannot
|
117
|
+
reserve more than 2 passengers in #\u003CResourceService::ConsumerRestrictionChecker:0x007f82c63baee8\u003E"}}}]'
|
118
|
+
http_version:
|
119
|
+
recorded_at: Mon, 26 Oct 2015 02:17:08 GMT
|
118
120
|
recorded_with: VCR 2.9.3
|