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.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +14 -2
  5. data/CHANGELOG.md +34 -3
  6. data/Gemfile +0 -3
  7. data/Rakefile +0 -6
  8. data/examples/login_example.rb +1 -1
  9. data/gemfiles/rails4.gemfile +9 -0
  10. data/lib/quick_travel.rb +2 -1
  11. data/lib/quick_travel/accommodation.rb +1 -15
  12. data/lib/quick_travel/adapter.rb +98 -67
  13. data/lib/quick_travel/{adapter_exception.rb → adapter_error.rb} +1 -1
  14. data/lib/quick_travel/address.rb +2 -7
  15. data/lib/quick_travel/adjustment.rb +0 -2
  16. data/lib/quick_travel/bed_configuration.rb +0 -1
  17. data/lib/quick_travel/bed_requirement.rb +0 -1
  18. data/lib/quick_travel/booking.rb +22 -46
  19. data/lib/quick_travel/cache.rb +8 -14
  20. data/lib/quick_travel/checkout.rb +1 -1
  21. data/lib/quick_travel/client.rb +2 -4
  22. data/lib/quick_travel/client_type.rb +2 -1
  23. data/lib/quick_travel/connection_error.rb +1 -1
  24. data/lib/quick_travel/constants.rb +0 -1
  25. data/lib/quick_travel/contact.rb +0 -1
  26. data/lib/quick_travel/country.rb +0 -3
  27. data/lib/quick_travel/document.rb +0 -2
  28. data/lib/quick_travel/document_group.rb +0 -2
  29. data/lib/quick_travel/location.rb +0 -2
  30. data/lib/quick_travel/party.rb +7 -12
  31. data/lib/quick_travel/passenger.rb +0 -1
  32. data/lib/quick_travel/passenger_price_break.rb +0 -2
  33. data/lib/quick_travel/passenger_type.rb +0 -2
  34. data/lib/quick_travel/payment.rb +0 -3
  35. data/lib/quick_travel/payment_type.rb +4 -13
  36. data/lib/quick_travel/price_changes.rb +3 -0
  37. data/lib/quick_travel/price_changes/booking_price_change.rb +30 -0
  38. data/lib/quick_travel/price_changes/price_change.rb +23 -0
  39. data/lib/quick_travel/{discounts/discount_tree.rb → price_changes/price_change_tree.rb} +12 -8
  40. data/lib/quick_travel/product.rb +15 -28
  41. data/lib/quick_travel/product_type.rb +4 -16
  42. data/lib/quick_travel/property.rb +4 -20
  43. data/lib/quick_travel/property_facility.rb +0 -1
  44. data/lib/quick_travel/property_type.rb +2 -14
  45. data/lib/quick_travel/region.rb +0 -9
  46. data/lib/quick_travel/reservation.rb +0 -21
  47. data/lib/quick_travel/resource.rb +7 -28
  48. data/lib/quick_travel/room_facility.rb +0 -1
  49. data/lib/quick_travel/route.rb +9 -25
  50. data/lib/quick_travel/route_stop.rb +0 -1
  51. data/lib/quick_travel/service.rb +2 -1
  52. data/lib/quick_travel/status.rb +23 -0
  53. data/lib/quick_travel/trip.rb +0 -1
  54. data/lib/quick_travel/vehicle.rb +2 -4
  55. data/lib/quick_travel/vehicle_type.rb +0 -3
  56. data/lib/quick_travel/version.rb +1 -1
  57. data/quicktravel_client.gemspec +4 -4
  58. data/spec/booking_spec.rb +24 -0
  59. data/spec/discounts_spec.rb +69 -69
  60. data/spec/passenger_type_spec.rb +30 -0
  61. data/spec/payment_type_spec.rb +10 -0
  62. data/spec/product_spec.rb +52 -21
  63. data/spec/product_type_spec.rb +19 -0
  64. data/spec/property_spec.rb +83 -0
  65. data/spec/region_spec.rb +1 -1
  66. data/spec/reservation_spec.rb +3 -2
  67. data/spec/resource_spec.rb +31 -7
  68. data/spec/route_spec.rb +118 -0
  69. data/spec/spec_helper.rb +18 -25
  70. data/spec/status_spec.rb +9 -0
  71. data/spec/support/cassettes/booking_create.yml +39 -33
  72. data/spec/support/cassettes/booking_documents.yml +36 -30
  73. data/spec/support/cassettes/booking_price_changes.yml +66 -0
  74. data/spec/support/cassettes/booking_show.yml +38 -32
  75. data/spec/support/cassettes/booking_update.yml +74 -62
  76. data/spec/support/cassettes/booking_with_documents.yml +88 -76
  77. data/spec/support/cassettes/booking_with_nested_attributes.yml +128 -110
  78. data/spec/support/cassettes/booking_with_price_changes.yml +86 -0
  79. data/spec/support/cassettes/countries.yml +140 -0
  80. data/spec/support/cassettes/country_all.yml +36 -30
  81. data/spec/support/cassettes/create_reservation_fail.yml +32 -27
  82. data/spec/support/cassettes/create_reservation_with_booking.yml +40 -34
  83. data/spec/support/cassettes/passenger_all.yml +36 -30
  84. data/spec/support/cassettes/payment_info.yml +61 -0
  85. data/spec/support/cassettes/product_date_range_bookability.yml +61 -59
  86. data/spec/support/cassettes/product_show.yml +42 -32
  87. data/spec/support/cassettes/product_show_as_agent.yml +63 -0
  88. data/spec/support/cassettes/product_type_all.yml +53 -0
  89. data/spec/support/cassettes/property.yml +66 -0
  90. data/spec/support/cassettes/region_show.yml +36 -30
  91. data/spec/support/cassettes/reservation_with_extra_picks.yml +137 -110
  92. data/spec/support/cassettes/resource_fare_bases.yml +47 -78
  93. data/spec/support/cassettes/resource_product_type.yml +63 -0
  94. data/spec/support/cassettes/resource_show.yml +37 -31
  95. data/spec/support/cassettes/resource_with_price.yml +63 -0
  96. data/spec/support/cassettes/route_all.yml +65 -0
  97. data/spec/support/cassettes/tenant_switcher.yml +109 -0
  98. data/spec/support/coverage_loader.rb +26 -0
  99. data/spec/tenant_spec.rb +28 -0
  100. metadata +106 -115
  101. data/bootstrap/boot.rb +0 -4
  102. data/lib/quick_travel/discounts.rb +0 -3
  103. data/lib/quick_travel/discounts/booking_discount.rb +0 -18
  104. data/lib/quick_travel/discounts/discount.rb +0 -21
  105. data/spec/support/cassettes/booking_create_legacy.yml +0 -50
  106. data/spec/support/cassettes/booking_discounts.yml +0 -53
  107. data/spec/support/cassettes/booking_with_discounts.yml +0 -72
  108. 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://0.0.0.0:8080/api/countries.json?
5
+ uri: http://test.qt.sealink.com.au:8080/api/countries.json
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
8
8
  string: access_key=<QT_KEY>
9
9
  headers:
10
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: 'OK '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge,chrome=1
23
- etag:
24
- - ! '"4b81caf850c90a277ec60621b06aae8b"'
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - e3071cbfd4498af36feca90943cdb645
29
- x-runtime:
30
- - '0.065876'
31
- date:
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
- server:
36
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
37
- content-length:
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
- connection:
40
- - close
41
- set-cookie:
42
- - _session_id=0b99b7d4909c23971630a3e35524d350; path=/; HttpOnly
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: US-ASCII
45
- 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
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: '1.1'
126
- recorded_at: Thu, 18 Dec 2014 07:39:06 GMT
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://0.0.0.0:8080/api/reservations.json
5
+ uri: http://test.qt.sealink.com.au:8080/api/reservations.json
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
8
8
  string: resource_id=4&first_travel_date=2099-09-10&access_key=<QT_KEY>
9
9
  headers:
10
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 404
15
- message: ! 'Not Found '
15
+ message: 'Not Found '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge,chrome=1
23
- cache-control:
21
+ X-Ua-Compatible:
22
+ - IE=Edge
23
+ Cache-Control:
24
24
  - no-cache
25
- x-request-id:
26
- - 7bce95ab87bd93a47b84766ca20f49ad
27
- x-runtime:
28
- - '0.395666'
29
- date:
30
- - Thu, 28 Feb 2013 13:39:42 GMT
31
- x-rack-cache:
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
- server:
34
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
35
- content-length:
35
+ Server:
36
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
37
+ Content-Length:
36
38
  - '98'
37
- connection:
38
- - close
39
- set-cookie:
40
- - _session_id=1a9892a67f6a908244aefe6009f77ef4; path=/; HttpOnly
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: US-ASCII
43
- string: ! '{"error":"No services selected for [10-09-2099 -- Travel Insurance
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: '1.1'
46
- recorded_at: Thu, 18 Dec 2014 08:07:06 GMT
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://0.0.0.0:8080/api/reservations.json
5
+ uri: http://test.qt.sealink.com.au:8080/api/reservations.json
6
6
  body:
7
- encoding: US-ASCII
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
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: 'OK '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge,chrome=1
23
- etag:
24
- - ! '"7249010605e80b35d76aa2941530d966"'
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 95e7e9c302397a8f81584cadc3e1b804
29
- x-runtime:
30
- - '0.950362'
31
- date:
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
- server:
36
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
37
- content-length:
38
- - '1929'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _session_id=afc5714f24bafe7cec0419590131232b; path=/; HttpOnly
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: US-ASCII
45
- string: ! '{"id":6,"booking_id":9,"description":"You have declined Travel Insurance
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,"adjustments_attributes":[],"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,"pickup_information":null,"dropoff_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}'
51
- http_version: '1.1'
52
- recorded_at: Thu, 18 Dec 2014 08:07:06 GMT
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://0.0.0.0:8080/passenger_types.json?
5
+ uri: http://test.qt.sealink.com.au:8080/passenger_types.json
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
8
8
  string: access_key=<QT_KEY>
9
9
  headers:
10
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: 'OK '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge,chrome=1
23
- etag:
24
- - ! '"9a626d0671a91ec1f177c50925f2d74a"'
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - dc992b62dc7de0631c1dd146a6458d2b
29
- x-runtime:
30
- - '0.021192'
31
- date:
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
- server:
36
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
37
- content-length:
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
- connection:
40
- - close
41
- set-cookie:
42
- - _session_id=79bfcc83fe8879e29d3fac1b4d669a9f; path=/; HttpOnly
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: US-ASCII
45
- 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"}]'
46
- http_version: '1.1'
47
- recorded_at: Thu, 18 Dec 2014 07:39:06 GMT
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://0.0.0.0:8080/api/products/date_range_bookability.json?travel_date=2016-03-01&duration=7&default_pax_type_numbers[1]=1&passenger_type_numbers[1]=2&passenger_type_numbers[2]=1&resource_ids[]=3&resource_ids[]=4&resource_ids[]=6
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: US-ASCII
7
+ encoding: UTF-8
8
8
  string: access_key=<QT_KEY>
9
9
  headers:
10
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: 'OK '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
22
- - IE=Edge,chrome=1
23
- etag:
24
- - ! '"b62d88353d656ffbd977844c49249cbd"'
25
- cache-control:
21
+ X-Ua-Compatible:
22
+ - IE=Edge
23
+ Etag:
24
+ - '"363f9713349a90718009de666f659c99"'
25
+ Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - 27d67bbdfb4740625ddd39e02668dde7
29
- x-runtime:
30
- - '1.535397'
31
- date:
32
- - Thu, 28 Feb 2013 13:48:11 GMT
33
- x-rack-cache:
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
- server:
36
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
37
- content-length:
37
+ Server:
38
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
39
+ Content-Length:
38
40
  - '23034'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _session_id=7028952a6de9d2e6e96caafc21dad8f7; path=/; HttpOnly
41
+ Connection:
42
+ - Keep-Alive
43
+ Set-Cookie:
44
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWVhYmFiOTY3YTBjOTgwODUzODIxYTExYzg1Yzc3NWI4BjsAVEkiCXVzZXIGOwBGaQY%3D--a7104a386507de61530c86e5274a505d005afa5a;
45
+ path=/; HttpOnly
43
46
  body:
44
- encoding: US-ASCII
45
- string: ! '[{"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":30000},"pricing_details":{"minimum_price":{"_type":"Money","_value":30000},"minimum_price_with_adjustments":{"_type":"Money","_value":15000},"adjustments_to_apply":[{"description":"50%
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
- http_version: '1.1'
117
- recorded_at: Fri, 19 Dec 2014 00:10:15 GMT
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