quicktravel_client 3.6.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +6 -3
  4. data/CHANGELOG.md +36 -3
  5. data/README.md +1 -1
  6. data/gemfiles/rails6.gemfile +8 -0
  7. data/lib/quick_travel.rb +4 -0
  8. data/lib/quick_travel/adapter.rb +19 -81
  9. data/lib/quick_travel/address.rb +4 -2
  10. data/lib/quick_travel/adjustment.rb +3 -2
  11. data/lib/quick_travel/background_check.rb +4 -2
  12. data/lib/quick_travel/bed_configuration.rb +3 -2
  13. data/lib/quick_travel/bed_requirement.rb +3 -2
  14. data/lib/quick_travel/booking.rb +11 -1
  15. data/lib/quick_travel/cache.rb +24 -5
  16. data/lib/quick_travel/checkout.rb +1 -1
  17. data/lib/quick_travel/client.rb +9 -0
  18. data/lib/quick_travel/contact.rb +4 -1
  19. data/lib/quick_travel/init_from_hash.rb +58 -1
  20. data/lib/quick_travel/package.rb +13 -0
  21. data/lib/quick_travel/passenger.rb +7 -2
  22. data/lib/quick_travel/passenger_price_break.rb +3 -2
  23. data/lib/quick_travel/passenger_split.rb +5 -0
  24. data/lib/quick_travel/passenger_type.rb +1 -1
  25. data/lib/quick_travel/product_configuration.rb +1 -1
  26. data/lib/quick_travel/products/base.rb +4 -4
  27. data/lib/quick_travel/property.rb +2 -1
  28. data/lib/quick_travel/property_facility.rb +3 -2
  29. data/lib/quick_travel/reservation.rb +5 -1
  30. data/lib/quick_travel/resource.rb +12 -3
  31. data/lib/quick_travel/resource_category.rb +5 -1
  32. data/lib/quick_travel/resource_group.rb +9 -0
  33. data/lib/quick_travel/room_facility.rb +3 -2
  34. data/lib/quick_travel/route.rb +1 -1
  35. data/lib/quick_travel/route_stop.rb +18 -2
  36. data/lib/quick_travel/service.rb +3 -2
  37. data/lib/quick_travel/version.rb +1 -1
  38. data/quicktravel_client.gemspec +6 -5
  39. data/spec/adapter_spec.rb +36 -5
  40. data/spec/booking_spec.rb +24 -6
  41. data/spec/clients_spec.rb +42 -0
  42. data/spec/discounts_spec.rb +21 -21
  43. data/spec/package_spec.rb +24 -0
  44. data/spec/passenger_type_spec.rb +1 -1
  45. data/spec/product_configuration_spec.rb +11 -0
  46. data/spec/product_spec.rb +5 -5
  47. data/spec/region_spec.rb +2 -2
  48. data/spec/reservation_spec.rb +22 -6
  49. data/spec/spec_helper.rb +6 -3
  50. data/spec/support/cassettes/accommodation_reserve.yml +119 -53
  51. data/spec/support/cassettes/basic_product_scheduled_trips.yml +22 -34
  52. data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +22 -28
  53. data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +12 -12
  54. data/spec/support/cassettes/booking_activate.yml +31 -30
  55. data/spec/support/cassettes/booking_cancel.yml +31 -30
  56. data/spec/support/cassettes/booking_create.yml +17 -16
  57. data/spec/support/cassettes/booking_create_accommodation.yml +64 -0
  58. data/spec/support/cassettes/booking_documents.yml +12 -12
  59. data/spec/support/cassettes/booking_non_existant.yml +11 -11
  60. data/spec/support/cassettes/booking_price_changes.yml +22 -18
  61. data/spec/support/cassettes/booking_show.yml +16 -15
  62. data/spec/support/cassettes/booking_update.yml +31 -29
  63. data/spec/support/cassettes/booking_with_comments.yml +119 -0
  64. data/spec/support/cassettes/booking_with_documents.yml +41 -38
  65. data/spec/support/cassettes/booking_with_nested_attributes.yml +70 -64
  66. data/spec/support/cassettes/booking_with_price_changes.yml +30 -27
  67. data/spec/support/cassettes/checkout_client_token.yml +14 -14
  68. data/spec/support/cassettes/client_templates.yml +120 -0
  69. data/spec/support/cassettes/countries.yml +18 -94
  70. data/spec/support/cassettes/country_all.yml +18 -94
  71. data/spec/support/cassettes/create_reservation_fail.yml +11 -11
  72. data/spec/support/cassettes/create_reservation_with_booking.yml +18 -17
  73. data/spec/support/cassettes/locations.yml +15 -15
  74. data/spec/support/cassettes/opal_modern_pay_failed_booking.yml +64 -0
  75. data/spec/support/cassettes/opal_modern_pay_failed_create.yml +61 -0
  76. data/spec/support/cassettes/opal_modern_pay_failed_update.yml +59 -0
  77. data/spec/support/cassettes/opal_modern_pay_successful_booking.yml +64 -0
  78. data/spec/support/cassettes/opal_modern_pay_successful_response.yml +61 -0
  79. data/spec/support/cassettes/opal_modern_pay_successful_update_response.yml +61 -0
  80. data/spec/support/cassettes/opal_pay.yml +61 -0
  81. data/spec/support/cassettes/opal_pay_booking.yml +64 -0
  82. data/spec/support/cassettes/package_show.yml +83 -0
  83. data/spec/support/cassettes/package_show_product_type.yml +80 -0
  84. data/spec/support/cassettes/passenger_all.yml +14 -14
  85. data/spec/support/cassettes/payment_info.yml +12 -12
  86. data/spec/support/cassettes/price_quote.yml +23 -23
  87. data/spec/support/cassettes/product_date_range_bookability.yml +35 -49
  88. data/spec/support/cassettes/product_show.yml +16 -18
  89. data/spec/support/cassettes/product_show_as_agent.yml +17 -23
  90. data/spec/support/cassettes/product_type_all.yml +19 -15
  91. data/spec/support/cassettes/product_type_resource_categories.yml +12 -12
  92. data/spec/support/cassettes/product_type_resource_categories_tickets.yml +15 -15
  93. data/spec/support/cassettes/product_type_routes.yml +17 -17
  94. data/spec/support/cassettes/property.yml +19 -19
  95. data/spec/support/cassettes/property_types.yml +15 -15
  96. data/spec/support/cassettes/region_show.yml +14 -14
  97. data/spec/support/cassettes/reservation_resource.yml +64 -0
  98. data/spec/support/cassettes/reservation_with_extra_picks.yml +63 -63
  99. data/spec/support/cassettes/resource_category_all.yml +15 -15
  100. data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +14 -14
  101. data/spec/support/cassettes/resource_fare_bases.yml +21 -24
  102. data/spec/support/cassettes/resource_show.yml +18 -18
  103. data/spec/support/cassettes/resource_with_price.yml +19 -19
  104. data/spec/support/cassettes/settings_basic.yml +12 -12
  105. data/spec/support/cassettes/tenant_switcher.yml +37 -29
  106. data/spec/support/cassettes/wrong_url.yml +28 -47
  107. data/spec/support/coverage_loader.rb +1 -1
  108. metadata +69 -27
  109. data/gemfiles/rails4.gemfile +0 -9
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/resource_categories.json?product_type_ids%5B%5D=1
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"d751713988987e9331980363e24189ce"'
24
+ - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - abeeb7c1da610a4ec0669b1af29f1de1
28
+ - 6551d2a8-5997-487d-9d11-d297a5a8349b
29
29
  X-Runtime:
30
- - '0.083924'
31
- Vary:
32
- - Origin
30
+ - '0.130342'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:36 GMT
32
+ - Fri, 01 Jan 2016 02:32:28 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -51,11 +51,11 @@ http_interactions:
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTQ4NDQwMGJkNmNkNzM4MmUwYjlhOWFhYzQ4NmNhZDliBjsAVEkiCXVzZXIGOwBGaQY%3D--4c9774af3f338d0eb51870362aa2d15e0fc500c3;
54
+ - _session_id=ZUJPRHB6cEVCU0M1QmhIdU54WExkdlVZcUowMEtpN1VnenpBck9JSkFPVmRsUE9kWmZ0dnpvR3hPUXl0U0NxSEp4dklDWXdBZ0RiZEUweFZBUEN3SVlrQTRhZUIxVnc4TXltQlR4d1RjNDQ9LS1Zekk0TjdFdkx0TnFZTUdQS2tIR0JRPT0%3D--6fbdde6e8a269b3617d8ecfad647ce438127e94d;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
58
  string: "[]"
59
59
  http_version:
60
- recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
61
- recorded_with: VCR 3.0.3
60
+ recorded_at: Wed, 21 Mar 2018 04:40:35 GMT
61
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/resource_categories.json?product_type_ids%5B%5D=5
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"d1fd940d0166dbb4832b5f5171b67a60"'
24
+ - W/"3b463d79f48c515bd0ed3e6b755d1d4b"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - f6cd11cba56885f3e309a07dc4fb526f
28
+ - 675b8a20-1deb-4b15-9f4b-f14d49a319e2
29
29
  X-Runtime:
30
- - '0.069853'
31
- Vary:
32
- - Origin
30
+ - '0.170937'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:36 GMT
32
+ - Fri, 01 Jan 2016 02:32:29 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,16 +47,16 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '328'
50
+ - '240'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTZiZWEwOWMwYmYzMzQ4MDhjYjViZWIyN2FlMDkwZDNjBjsAVEkiCXVzZXIGOwBGaQY%3D--ce1756095e1dcab88d9b48fe05070de5ca0868cc;
54
+ - _session_id=YWQvaFpNMWUxVUV5ZXdkT1dDVkFBTlRWMmJIY3ZiUFkzNUVjWHdpUFl3K1ExbWxLYVBxWWM3UFk5L0c0aVRBWVc3NElQSEhsRG5qK3MvRWVTS2RRM1VSSVFDWEFrNWZpbEVDeTIyWFFtaTA9LS1mQmxkUUN6ZUdzS2lrYWhERU1hbCt3PT0%3D--91270029e9b9fb0b3b89c0396fde8e01c3b87aca;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '[{"created_at":"2015-08-25T14:14:25+09:30","description":"","id":1,"name":"Common","position":null,"product_type_id":5,"updated_at":"2015-08-25T14:14:25+09:30"},{"created_at":"2015-08-25T14:14:50+09:30","description":"","id":2,"name":"Multiple
59
- Trip","position":null,"product_type_id":5,"updated_at":"2015-08-25T14:14:50+09:30"}]'
58
+ string: '[{"id":1,"name":"Common","description":null,"product_type_id":5,"created_at":null,"updated_at":null,"position":null},{"id":2,"name":"Multiple
59
+ Trip","description":null,"product_type_id":5,"created_at":null,"updated_at":null,"position":null}]'
60
60
  http_version:
61
- recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
62
- recorded_with: VCR 3.0.3
61
+ recorded_at: Wed, 21 Mar 2018 04:40:36 GMT
62
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/product_types/1/routes.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"569a4ede07372a75b7f3e16dc376e665"'
24
+ - W/"081240e8bd7d85593c37e53d9a7fe909"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - 891ae78decad381b6c518175b6f12bfd
28
+ - ad02598b-0ee7-44c7-99d3-6fa0911b0afc
29
29
  X-Runtime:
30
- - '0.118721'
31
- Vary:
32
- - Origin
30
+ - '0.205286'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:36 GMT
32
+ - Fri, 01 Jan 2016 02:32:29 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,19 +47,19 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '1249'
50
+ - '973'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWFmMTY0YWM3Njg2MzExMDJhMjk3ZDY1MjkzMDc5MGM0BjsAVEkiCXVzZXIGOwBGaQY%3D--783ac9119bad9c2ce1800a12fc537268eddb4d0d;
54
+ - _session_id=VWF0WTF0VFhKTzU2WUYzWmNhNE03cklsT0lOZVZXTWFJMmNLanVrZWhWR0hTS0lGZmc3aFBKNVNIbEZOSFR6bllKRm9LbUMwZnVJeFRHM01ZYnJUWkpmZTYrUmthUU1HSlFiNjRmaW1ZVVE9LS13ejBEeTNLMkZCblBYMlpPeXp1TXBnPT0%3D--6370f8b2d929f4322ed873c456133fefb4bf6cdf;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '[{"id":1,"product_type_id":1,"reverse_id":2,"position":1,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:06:45+10:30","name":"To
59
- Kangaroo Island","path":"Cape Jervis to Penneshaw","route_stops":[{"id":1,"inventory_controlled":true,"route_id":1,"position":1,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:01:37+10:30","stop_id":1,"name":"Cape
60
- Jervis","code":"CPJ","address":""},{"id":2,"inventory_controlled":true,"route_id":1,"position":2,"created_at":"2013-03-01T00:01:37+10:30","updated_at":"2013-03-01T00:01:37+10:30","stop_id":2,"name":"Penneshaw","code":"PEN","address":""}]},{"id":2,"product_type_id":1,"reverse_id":1,"position":2,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:06:38+10:30","name":"From
61
- Kangaroo Island","path":"Penneshaw to Cape Jervis","route_stops":[{"id":3,"inventory_controlled":true,"route_id":2,"position":1,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:02:06+10:30","stop_id":2,"name":"Penneshaw","code":"PEN","address":""},{"id":4,"inventory_controlled":true,"route_id":2,"position":2,"created_at":"2013-03-01T00:02:06+10:30","updated_at":"2013-03-01T00:02:06+10:30","stop_id":1,"name":"Cape
58
+ string: '[{"id":1,"product_type_id":1,"reverse_id":2,"position":1,"created_at":null,"updated_at":null,"name":"To
59
+ Kangaroo Island","path":"Cape Jervis to Penneshaw","route_stops":[{"id":1,"inventory_controlled":true,"route_id":1,"position":1,"created_at":null,"updated_at":null,"stop_id":1,"name":"Cape
60
+ Jervis","code":"CPJ","address":""},{"id":2,"inventory_controlled":true,"route_id":1,"position":2,"created_at":null,"updated_at":null,"stop_id":2,"name":"Penneshaw","code":"PEN","address":""}]},{"id":2,"product_type_id":1,"reverse_id":1,"position":2,"created_at":null,"updated_at":null,"name":"From
61
+ Kangaroo Island","path":"Penneshaw to Cape Jervis","route_stops":[{"id":3,"inventory_controlled":true,"route_id":2,"position":1,"created_at":null,"updated_at":null,"stop_id":2,"name":"Penneshaw","code":"PEN","address":""},{"id":4,"inventory_controlled":true,"route_id":2,"position":2,"created_at":null,"updated_at":null,"stop_id":1,"name":"Cape
62
62
  Jervis","code":"CPJ","address":""}]}]'
63
63
  http_version:
64
- recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
65
- recorded_with: VCR 3.0.3
64
+ recorded_at: Wed, 21 Mar 2018 04:40:36 GMT
65
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/properties/1.json?product%5Bfirst_travel_date%5D=2016-01-01
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"559340bc8df8e9afa56c4988e50056fd"'
24
+ - W/"8223f9e3c1ebcadfb2edacc484671357"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - dce465a4771d31fef9a11e7b5c1dd0a5
28
+ - e3bef60c-77c6-4be0-965e-2c32c8830e50
29
29
  X-Runtime:
30
- - '0.135948'
31
- Vary:
32
- - Origin
30
+ - '0.457836'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:38 GMT
32
+ - Fri, 01 Jan 2016 02:32:32 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,20 +47,20 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '3105'
50
+ - '3183'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWMwNjc3NWQ3OGQ4MjYyNDliMzkxNjYxNzQ5ZmJmOTZhBjsAVEkiCXVzZXIGOwBGaQY%3D--c66937bc6407b64b8cf72fc320799d0907d7de31;
54
+ - _session_id=MTR0Z2JnVHJ0SS9UaWF5cXFTMmtCQVVTTnE4RGcrM0psczUvTVF3U2NUcUNaRVB4U2lycnRBSGErZ2s0TXJ6dTdWcFhQUFExNDBjb05tWGd0clc0SXM1MWpSZlB3RzFuSG9oZHhjYTgydlk9LS1yTEEyK0s5bnlsajZSL1ZyMXVTYWlnPT0%3D--684c82a0751328e694ea044091e7063b4fa3060b;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"id":1,"name":"Hilton Hotel","description":"","location_id":5,"check_in":"2000-01-01T14:00:00Z","check_out":"2000-01-01T10:00:00Z","check_in_instructions":"","star_rating":null,"contact_id":null,"notes":"","tourism_accredited":false,"season_id":9,"boundary_start":"2013-03-01","boundary_end":"2013-03-01","created_at":"2013-03-01T00:01:41+10:30","updated_at":"2013-03-01T00:55:56+10:30","address":{"id":1,"address_line1":"Level
59
- 2","address_line2":"1 Victoria Square","city":"Adelaide","state":"SA","post_code":"5000","created_at":"2013-03-01T00:01:41+10:30","updated_at":"2013-03-01T00:07:29+10:30","party_id":null,"country_id":14,"property_id":1},"location_name":"Adelaide
60
- CBD","region_names":"Adelaide","property_facilities":[{"id":1,"name":"Pool","created_at":"2013-03-01T00:01:07+10:30","updated_at":"2013-03-01T00:01:07+10:30","category_id":1,"position":1},{"id":2,"name":"Spa","created_at":"2013-03-01T00:01:14+10:30","updated_at":"2013-03-01T00:01:25+10:30","category_id":1,"position":1}],"graphics":[],"maximum_occupancy":2,"accommodations":[{"id":6,"name":"Executive
61
- Room","product_type_id":2,"default_capacity":2,"type":"Accommodation","inventory_type":0,"maximum_occupancy":2,"location_id":1,"property_id":1,"fare_basis_pointer_id":6,"disclaimer_id":null,"deposit_rule_id":null,"vendor_id":null,"maximum_weight":null,"days_before_inventory_expires":null,"property_type_id":1,"star_rating":null,"booking_notes":"","expiry_units":null,"uses":null,"inline_price_in_cents":null,"inline_cost_in_cents":null,"expiry_level":null,"unlimited_uses":false,"no_expiry":false,"reason_required":false,"resource_category_id":null,"created_at":"2013-03-01T00:08:49+10:30","updated_at":"2013-03-01T00:55:56+10:30","code":"","restrict_to_client_types":false,"minimum_age":null,"guardian_minimum_age":null,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"active":true,"report_changes":false,"inline_pricing":false,"bookable_individually":true,"minimum_passengers":null,"maximum_passengers":null,"required_number_of_vehicles":null,"frequent_traveller_points_multiplier":null,"commissionable":true,"masterpoint_resource_id":null,"print_tickets":false,"individual_tickets":null,"frequent_traveller_redemption_rate":null,"position":null,"ticket_template_id":null,"generate_tickets_by_quantity":true,"room_facilities":[{"id":1,"name":"Shower","created_at":"2013-03-01T00:01:38+10:30","updated_at":"2013-03-01T00:01:38+10:30","category_id":2,"position":1},{"id":3,"name":"Hairdryer","created_at":"2013-03-01T00:01:49+10:30","updated_at":"2013-03-01T00:01:49+10:30","category_id":2,"position":3}],"bed_configurations":[{"id":1,"creator_id":null,"updator_id":null,"resource_id":6,"created_at":"2013-03-01T00:08:49+10:30","updated_at":"2015-11-18T13:59:23+10:30","overriding_fare_basis_pointer_id":null,"name":"1
58
+ string: '{"id":1,"name":"Hilton Hotel","description":"","location_id":5,"check_in":"2000-01-01T14:00:00.000Z","check_out":"2000-01-01T10:00:00.000Z","check_in_instructions":"","star_rating":null,"contact_id":null,"notes":"","tourism_accredited":false,"season_id":9,"boundary_start":"2013-03-01","boundary_end":"2013-03-01","created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","virtual_tour_url":null,"address":{"id":1,"address_line1":"Level
59
+ 2","address_line2":"1 Victoria Square","city":"Adelaide","state":"SA","post_code":"5000","created_at":null,"updated_at":null,"party_id":null,"country_id":14,"property_id":1},"location_name":"American
60
+ River","region_names":"Kangaroo Island","property_facilities":[{"id":1,"name":"Pool","created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","category_id":1,"position":1},{"id":2,"name":"Spa","created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","category_id":1,"position":1}],"graphics":[],"maximum_occupancy":2,"minimum_bookable_duration":0,"availability":{"2016-01-01":true},"on_request":false,"minimum_available_price_in_cents":20000,"property_type_ids":[1],"accommodations":[{"id":6,"name":"Executive
61
+ Room","product_type_id":2,"default_capacity":2,"type":"Accommodation","inventory_type":0,"maximum_occupancy":2,"property_id":1,"fare_basis_pointer_id":6,"disclaimer_id":null,"deposit_rule_id":null,"vendor_id":null,"maximum_weight":null,"days_before_inventory_expires":null,"property_type_id":1,"star_rating":null,"inline_price_in_cents":null,"inline_cost_in_cents":null,"resource_category_id":null,"created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","code":"","restrict_to_client_types":false,"minimum_age":null,"guardian_minimum_age":null,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"active":true,"report_changes":false,"inline_pricing":false,"bookable_individually":true,"minimum_passengers":null,"maximum_passengers":null,"required_number_of_vehicles":null,"frequent_traveller_points_multiplier":null,"commissionable":true,"masterpoint_resource_id":null,"print_tickets":false,"individual_tickets":null,"frequent_traveller_redemption_rate":null,"position":null,"ticket_template_id":null,"generate_tickets_by_quantity":true,"inventory_release_hour":null,"room_facilities":[{"id":1,"name":"Shower","created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","category_id":2,"position":1},{"id":3,"name":"Hairdryer","created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","category_id":2,"position":3}],"bed_configurations":[{"id":1,"creator_id":null,"updator_id":null,"resource_id":6,"created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","overriding_fare_basis_pointer_id":null,"name":"1
62
62
  x Double and 1 x Single","active":true,"position":1}],"description":"A basic
63
- studio room","graphics":[],"on_request":false,"minimum_price":{"2016-01-01":20000},"nightly_price":{"2016-01-01":20000},"availability":{"2016-01-01":false},"minimum_bookable_duration":null}],"property_type_ids":[1]}'
64
- http_version:
65
- recorded_at: Fri, 28 Oct 2016 05:28:14 GMT
66
- recorded_with: VCR 3.0.3
63
+ studio room","graphics":[],"on_request":false,"minimum_price":{"2016-01-01":20000},"nightly_price":{"2016-01-01":20000},"availability":{"2016-01-01":false},"minimum_bookable_duration":null}]}'
64
+ http_version:
65
+ recorded_at: Wed, 21 Mar 2018 04:40:39 GMT
66
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/property_types.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"559340bc8df8e9afa56c4988e50056fd"'
24
+ - W/"626f377a41b553c6c0727da215f3e53f"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - dce465a4771d31fef9a11e7b5c1dd0a5
28
+ - f20c3bec-eb89-424e-96b2-ae0a1658ecd4
29
29
  X-Runtime:
30
- - '0.135948'
31
- Vary:
32
- - Origin
30
+ - '0.196161'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:38 GMT
32
+ - Fri, 01 Jan 2016 02:32:32 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,15 +47,15 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '3105'
50
+ - '77'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWMwNjc3NWQ3OGQ4MjYyNDliMzkxNjYxNzQ5ZmJmOTZhBjsAVEkiCXVzZXIGOwBGaQY%3D--c66937bc6407b64b8cf72fc320799d0907d7de31;
54
+ - _session_id=bVcrNVl0RHE1djVtQnd6d1k3eitweGI3UnU1V1h5R3dya2RBNWx2YnkvOFY4WDdpWm5LTnN4WFFVYWluMUxzU09GUGc1THFhY1RBMXU0dGVXb2pkSllRaFFSVml4eU1xQllHS0JmeURXems9LS13cU94SGRvd3NyeHdjRHlHUVRLaFVnPT0%3D--ee7cc5ab7f79a3693d5aee1a0755cd9fa4346edd;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '[{"id":6,"name":"Bed and Breakfast","position":1,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2014-02-04T16:00:14+10:30"},{"id":4,"name":"Non Hosted Bed and Breakfast","position":2,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":1,"name":"Hotel or Motel","position":3,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":7,"name":"Self Contained","position":4,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":12,"name":"Luxury Retreats","position":5,"created_at":"2017-02-13T16:03:04+10:30","updated_at":"2017-02-13T16:03:04+10:30"},{"id":10,"name":"Caravan and Camping","position":6,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":5,"name":"Lodge or Backpackers","position":7,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2016-10-31T15:21:46+10:30"},{"id":8,"name":"Groups","position":8,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":9,"name":"Ski","position":9,"created_at":"2011-04-07T07:07:14+09:30","updated_at":"2011-04-07T07:07:14+09:30"},{"id":11,"name":"Cruise Ship","position":10,"created_at":"2014-09-25T08:31:00+09:30","updated_at":"2014-09-25T08:31:00+09:30"}]'
59
- http_version:
60
- recorded_at: Fri, 28 Oct 2016 05:28:14 GMT
61
- recorded_with: VCR 3.0.3
58
+ string: '[{"id":1,"name":"Hotel","position":null,"created_at":null,"updated_at":null}]'
59
+ http_version:
60
+ recorded_at: Wed, 21 Mar 2018 04:40:39 GMT
61
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/regions.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: access_key=<QT_KEY>
8
+ string: ''
9
9
  headers:
10
10
  Content-Length:
11
11
  - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
12
14
  response:
13
15
  status:
14
16
  code: 200
@@ -18,22 +20,20 @@ http_interactions:
18
20
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
21
  Content-Type:
20
22
  - application/json; charset=utf-8
21
- X-Ua-Compatible:
22
- - IE=Edge,chrome=1
23
23
  Etag:
24
- - '"a4c8faefeca1cec1ee7134663a0817b7"'
24
+ - W/"510afb159eb43929754bda9aa96bfacb"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - 30e76aedeed8e4dab14a8ab517531251
28
+ - b0f3f678-bb3a-4710-8692-85416107fc03
29
29
  X-Runtime:
30
- - '0.069329'
31
- Vary:
32
- - Origin
30
+ - '0.184234'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:38 GMT
32
+ - Fri, 01 Jan 2016 02:32:33 GMT
35
33
  X-Rack-Cache:
36
34
  - miss
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,15 +47,15 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '47'
50
+ - '58'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWRjM2Y4MjYzODIwMmNmYjA5YjZhYWM4M2FhOWNiMmVhBjsAVEkiCXVzZXIGOwBGaQY%3D--ed3b1c5e3e7fd34bd7c5c2270a28968bf5926d2a;
54
+ - _session_id=cU5NZVgrNkVYcmwrNEx0L09xU2V2T05sWEEyM0lQOHhPN1g5V1ZMajM2U2QybGNuRUNOcG9RUmp5MnpscjNmcDhIVklISjRaM3BaeVNoaFNTSHNTTEJMY09TWHFvdnRicTJERjRDSTFhL2s9LS1ad2FaSDFQQUY1QUZmVC9FekRLbkF3PT0%3D--98380c9154cfa2b9b5e69120108a6f47c2fca543;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '[{"id":2,"name":"Adelaide","location_ids":[1]}]'
58
+ string: '[{"id":1,"name":"Kangaroo Island","location_ids":[3,4,5]}]'
59
59
  http_version:
60
- recorded_at: Fri, 28 Oct 2016 05:28:15 GMT
61
- recorded_with: VCR 3.0.3
60
+ recorded_at: Wed, 21 Mar 2018 04:40:40 GMT
61
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://test.qt.sealink.com.au:8080/api/resources/6.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ X-API-KEY:
13
+ - <QT_KEY>
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: 'OK '
18
+ headers:
19
+ P3p:
20
+ - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Etag:
24
+ - W/"641461e04c30167b268dd9059d420764"
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ X-Request-Id:
28
+ - f1f1d510-60c6-4502-9d3a-49bb9d2dfdc9
29
+ X-Runtime:
30
+ - '0.112151'
31
+ Date:
32
+ - Fri, 01 Jan 2016 02:32:15 GMT
33
+ X-Rack-Cache:
34
+ - miss
35
+ Vary:
36
+ - Origin
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Download-Options:
40
+ - noopen
41
+ X-Frame-Options:
42
+ - sameorigin
43
+ X-Permitted-Cross-Domain-Policies:
44
+ - none
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ Server:
48
+ - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
+ Content-Length:
50
+ - '1437'
51
+ Connection:
52
+ - Keep-Alive
53
+ Set-Cookie:
54
+ - _session_id=bEYyQWhrcG9HNUd4OHlmcisyZGNaaXdoNzNad2FId3llY0FIdkV1NnlYQkxOSGY1NW83MW5ybW93YS96WXVEQkhDUjVQMTUwNXYySDNOVDlydTB3d29oK2FzL2N1VVVFWGdIQzV0cEtnMVE9LS11MVc4bWFkNzhOSGlHTE44cWI4aDhnPT0%3D--131804f573d19992de3c157613adfbf293d90fb8;
55
+ path=/; HttpOnly
56
+ body:
57
+ encoding: UTF-8
58
+ string: '[{"id":6,"name":"Executive Room","product_type_id":2,"default_capacity":2,"type":"Accommodation","inventory_type":0,"maximum_occupancy":2,"property_id":1,"fare_basis_pointer_id":6,"disclaimer_id":null,"deposit_rule_id":null,"vendor_id":null,"maximum_weight":null,"days_before_inventory_expires":null,"property_type_id":1,"star_rating":null,"inline_price_in_cents":null,"inline_cost_in_cents":null,"resource_category_id":null,"created_at":"2018-03-21T11:24:01.000+10:30","updated_at":"2018-03-21T11:24:01.000+10:30","code":"","restrict_to_client_types":false,"minimum_age":null,"guardian_minimum_age":null,"book_before_level":null,"book_before_units":"seconds","maximum_passengers_online":null,"active":true,"report_changes":false,"inline_pricing":false,"bookable_individually":true,"minimum_passengers":null,"maximum_passengers":null,"required_number_of_vehicles":null,"frequent_traveller_points_multiplier":null,"commissionable":true,"masterpoint_resource_id":null,"print_tickets":false,"individual_tickets":null,"frequent_traveller_redemption_rate":null,"position":null,"ticket_template_id":null,"generate_tickets_by_quantity":true,"inventory_release_hour":null,"to_s":"Hilton
59
+ Hotel - Executive Room","client_type_ids":[],"category":null,"location_ids":[5],"current_description":"\u003cp\u003eA
60
+ basic studio room\u003c/p\u003e","graphics":[],"graphic_names":[],"property_name":"Hilton
61
+ Hotel","ticket_template":null,"expiry_days":null}]'
62
+ http_version:
63
+ recorded_at: Wed, 21 Mar 2018 04:40:22 GMT
64
+ recorded_with: VCR 4.0.0