quicktravel_client 3.6.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +6 -3
- data/CHANGELOG.md +36 -3
- data/README.md +1 -1
- data/gemfiles/rails6.gemfile +8 -0
- data/lib/quick_travel.rb +4 -0
- data/lib/quick_travel/adapter.rb +19 -81
- data/lib/quick_travel/address.rb +4 -2
- data/lib/quick_travel/adjustment.rb +3 -2
- data/lib/quick_travel/background_check.rb +4 -2
- data/lib/quick_travel/bed_configuration.rb +3 -2
- data/lib/quick_travel/bed_requirement.rb +3 -2
- data/lib/quick_travel/booking.rb +11 -1
- data/lib/quick_travel/cache.rb +24 -5
- data/lib/quick_travel/checkout.rb +1 -1
- data/lib/quick_travel/client.rb +9 -0
- data/lib/quick_travel/contact.rb +4 -1
- data/lib/quick_travel/init_from_hash.rb +58 -1
- data/lib/quick_travel/package.rb +13 -0
- data/lib/quick_travel/passenger.rb +7 -2
- data/lib/quick_travel/passenger_price_break.rb +3 -2
- data/lib/quick_travel/passenger_split.rb +5 -0
- data/lib/quick_travel/passenger_type.rb +1 -1
- data/lib/quick_travel/product_configuration.rb +1 -1
- data/lib/quick_travel/products/base.rb +4 -4
- data/lib/quick_travel/property.rb +2 -1
- data/lib/quick_travel/property_facility.rb +3 -2
- data/lib/quick_travel/reservation.rb +5 -1
- data/lib/quick_travel/resource.rb +12 -3
- data/lib/quick_travel/resource_category.rb +5 -1
- data/lib/quick_travel/resource_group.rb +9 -0
- data/lib/quick_travel/room_facility.rb +3 -2
- data/lib/quick_travel/route.rb +1 -1
- data/lib/quick_travel/route_stop.rb +18 -2
- data/lib/quick_travel/service.rb +3 -2
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +6 -5
- data/spec/adapter_spec.rb +36 -5
- data/spec/booking_spec.rb +24 -6
- data/spec/clients_spec.rb +42 -0
- data/spec/discounts_spec.rb +21 -21
- data/spec/package_spec.rb +24 -0
- data/spec/passenger_type_spec.rb +1 -1
- data/spec/product_configuration_spec.rb +11 -0
- data/spec/product_spec.rb +5 -5
- data/spec/region_spec.rb +2 -2
- data/spec/reservation_spec.rb +22 -6
- data/spec/spec_helper.rb +6 -3
- data/spec/support/cassettes/accommodation_reserve.yml +119 -53
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +22 -34
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +22 -28
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +12 -12
- data/spec/support/cassettes/booking_activate.yml +31 -30
- data/spec/support/cassettes/booking_cancel.yml +31 -30
- data/spec/support/cassettes/booking_create.yml +17 -16
- data/spec/support/cassettes/booking_create_accommodation.yml +64 -0
- data/spec/support/cassettes/booking_documents.yml +12 -12
- data/spec/support/cassettes/booking_non_existant.yml +11 -11
- data/spec/support/cassettes/booking_price_changes.yml +22 -18
- data/spec/support/cassettes/booking_show.yml +16 -15
- data/spec/support/cassettes/booking_update.yml +31 -29
- data/spec/support/cassettes/booking_with_comments.yml +119 -0
- data/spec/support/cassettes/booking_with_documents.yml +41 -38
- data/spec/support/cassettes/booking_with_nested_attributes.yml +70 -64
- data/spec/support/cassettes/booking_with_price_changes.yml +30 -27
- data/spec/support/cassettes/checkout_client_token.yml +14 -14
- data/spec/support/cassettes/client_templates.yml +120 -0
- data/spec/support/cassettes/countries.yml +18 -94
- data/spec/support/cassettes/country_all.yml +18 -94
- data/spec/support/cassettes/create_reservation_fail.yml +11 -11
- data/spec/support/cassettes/create_reservation_with_booking.yml +18 -17
- data/spec/support/cassettes/locations.yml +15 -15
- data/spec/support/cassettes/opal_modern_pay_failed_booking.yml +64 -0
- data/spec/support/cassettes/opal_modern_pay_failed_create.yml +61 -0
- data/spec/support/cassettes/opal_modern_pay_failed_update.yml +59 -0
- data/spec/support/cassettes/opal_modern_pay_successful_booking.yml +64 -0
- data/spec/support/cassettes/opal_modern_pay_successful_response.yml +61 -0
- data/spec/support/cassettes/opal_modern_pay_successful_update_response.yml +61 -0
- data/spec/support/cassettes/opal_pay.yml +61 -0
- data/spec/support/cassettes/opal_pay_booking.yml +64 -0
- data/spec/support/cassettes/package_show.yml +83 -0
- data/spec/support/cassettes/package_show_product_type.yml +80 -0
- data/spec/support/cassettes/passenger_all.yml +14 -14
- data/spec/support/cassettes/payment_info.yml +12 -12
- data/spec/support/cassettes/price_quote.yml +23 -23
- data/spec/support/cassettes/product_date_range_bookability.yml +35 -49
- data/spec/support/cassettes/product_show.yml +16 -18
- data/spec/support/cassettes/product_show_as_agent.yml +17 -23
- data/spec/support/cassettes/product_type_all.yml +19 -15
- data/spec/support/cassettes/product_type_resource_categories.yml +12 -12
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +15 -15
- data/spec/support/cassettes/product_type_routes.yml +17 -17
- data/spec/support/cassettes/property.yml +19 -19
- data/spec/support/cassettes/property_types.yml +15 -15
- data/spec/support/cassettes/region_show.yml +14 -14
- data/spec/support/cassettes/reservation_resource.yml +64 -0
- data/spec/support/cassettes/reservation_with_extra_picks.yml +63 -63
- data/spec/support/cassettes/resource_category_all.yml +15 -15
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +14 -14
- data/spec/support/cassettes/resource_fare_bases.yml +21 -24
- data/spec/support/cassettes/resource_show.yml +18 -18
- data/spec/support/cassettes/resource_with_price.yml +19 -19
- data/spec/support/cassettes/settings_basic.yml +12 -12
- data/spec/support/cassettes/tenant_switcher.yml +37 -29
- data/spec/support/cassettes/wrong_url.yml +28 -47
- data/spec/support/coverage_loader.rb +1 -1
- metadata +69 -27
- data/gemfiles/rails4.gemfile +0 -9
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/resource_categories.json?product_type_ids%5B%5D=1
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- 6551d2a8-5997-487d-9d11-d297a5a8349b
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.130342'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
32
|
+
- Fri, 01 Jan 2016 02:32:28 GMT
|
35
33
|
X-Rack-Cache:
|
36
34
|
- miss
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
37
|
X-Content-Type-Options:
|
38
38
|
- nosniff
|
39
39
|
X-Download-Options:
|
@@ -51,11 +51,11 @@ http_interactions:
|
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
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:
|
61
|
-
recorded_with: VCR
|
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:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"3b463d79f48c515bd0ed3e6b755d1d4b"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- 675b8a20-1deb-4b15-9f4b-f14d49a319e2
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.170937'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
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
|
-
- '
|
50
|
+
- '240'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=YWQvaFpNMWUxVUV5ZXdkT1dDVkFBTlRWMmJIY3ZiUFkzNUVjWHdpUFl3K1ExbWxLYVBxWWM3UFk5L0c0aVRBWVc3NElQSEhsRG5qK3MvRWVTS2RRM1VSSVFDWEFrNWZpbEVDeTIyWFFtaTA9LS1mQmxkUUN6ZUdzS2lrYWhERU1hbCt3PT0%3D--91270029e9b9fb0b3b89c0396fde8e01c3b87aca;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '[{"
|
59
|
-
Trip","
|
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:
|
62
|
-
recorded_with: VCR
|
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:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"081240e8bd7d85593c37e53d9a7fe909"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- ad02598b-0ee7-44c7-99d3-6fa0911b0afc
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.205286'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
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
|
-
- '
|
50
|
+
- '973'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
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":
|
59
|
-
Kangaroo Island","path":"Cape Jervis to Penneshaw","route_stops":[{"id":1,"inventory_controlled":true,"route_id":1,"position":1,"created_at":
|
60
|
-
Jervis","code":"CPJ","address":""},{"id":2,"inventory_controlled":true,"route_id":1,"position":2,"created_at":
|
61
|
-
Kangaroo Island","path":"Penneshaw to Cape Jervis","route_stops":[{"id":3,"inventory_controlled":true,"route_id":2,"position":1,"created_at":
|
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:
|
65
|
-
recorded_with: VCR
|
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:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"8223f9e3c1ebcadfb2edacc484671357"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- e3bef60c-77c6-4be0-965e-2c32c8830e50
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.457836'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
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
|
-
- '
|
50
|
+
- '3183'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
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:
|
59
|
-
2","address_line2":"1 Victoria Square","city":"Adelaide","state":"SA","post_code":"5000","created_at":
|
60
|
-
|
61
|
-
Room","product_type_id":2,"default_capacity":2,"type":"Accommodation","inventory_type":0,"maximum_occupancy":2,"
|
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}]
|
64
|
-
http_version:
|
65
|
-
recorded_at:
|
66
|
-
recorded_with: VCR
|
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:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"626f377a41b553c6c0727da215f3e53f"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- f20c3bec-eb89-424e-96b2-ae0a1658ecd4
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.196161'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
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
|
-
- '
|
50
|
+
- '77'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=bVcrNVl0RHE1djVtQnd6d1k3eitweGI3UnU1V1h5R3dya2RBNWx2YnkvOFY4WDdpWm5LTnN4WFFVYWluMUxzU09GUGc1THFhY1RBMXU0dGVXb2pkSllRaFFSVml4eU1xQllHS0JmeURXems9LS13cU94SGRvd3NyeHdjRHlHUVRLaFVnPT0%3D--ee7cc5ab7f79a3693d5aee1a0755cd9fa4346edd;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '[{"id":
|
59
|
-
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
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:
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
12
|
+
X-API-KEY:
|
13
|
+
- <QT_KEY>
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
@@ -18,22 +20,20 @@ http_interactions:
|
|
18
20
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
21
|
Content-Type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
23
|
Etag:
|
24
|
-
-
|
24
|
+
- W/"510afb159eb43929754bda9aa96bfacb"
|
25
25
|
Cache-Control:
|
26
26
|
- max-age=0, private, must-revalidate
|
27
27
|
X-Request-Id:
|
28
|
-
-
|
28
|
+
- b0f3f678-bb3a-4710-8692-85416107fc03
|
29
29
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
30
|
+
- '0.184234'
|
33
31
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
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
|
-
- '
|
50
|
+
- '58'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _session_id=cU5NZVgrNkVYcmwrNEx0L09xU2V2T05sWEEyM0lQOHhPN1g5V1ZMajM2U2QybGNuRUNOcG9RUmp5MnpscjNmcDhIVklISjRaM3BaeVNoaFNTSHNTTEJMY09TWHFvdnRicTJERjRDSTFhL2s9LS1ad2FaSDFQQUY1QUZmVC9FekRLbkF3PT0%3D--98380c9154cfa2b9b5e69120108a6f47c2fca543;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '[{"id":
|
58
|
+
string: '[{"id":1,"name":"Kangaroo Island","location_ids":[3,4,5]}]'
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
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
|