quicktravel_client 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -14
- data/CHANGELOG.md +6 -0
- data/README.md +10 -0
- data/gemfiles/rails5.gemfile +8 -0
- data/lib/quick_travel/adapter.rb +28 -0
- data/lib/quick_travel/adapter_error.rb +11 -3
- data/lib/quick_travel/booking.rb +5 -38
- data/lib/quick_travel/payment.rb +0 -4
- data/lib/quick_travel/products/scheduled_trip.rb +3 -6
- data/lib/quick_travel/property.rb +1 -0
- data/lib/quick_travel/reservation.rb +5 -27
- data/lib/quick_travel/version.rb +1 -1
- data/spec/adapter_spec.rb +17 -0
- data/spec/booking_spec.rb +11 -0
- data/spec/product_type_spec.rb +1 -1
- data/spec/reservation_spec.rb +4 -1
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +17 -17
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +27 -35
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +17 -17
- data/spec/support/cassettes/booking_create.yml +26 -19
- data/spec/support/cassettes/booking_documents.yml +23 -16
- data/spec/support/cassettes/booking_price_changes.yml +17 -17
- data/spec/support/cassettes/booking_show.yml +26 -19
- data/spec/support/cassettes/booking_update.yml +51 -36
- data/spec/support/cassettes/booking_with_documents.yml +58 -44
- data/spec/support/cassettes/booking_with_nested_attributes.yml +94 -73
- data/spec/support/cassettes/booking_with_price_changes.yml +33 -33
- data/spec/support/cassettes/countries.yml +17 -17
- data/spec/support/cassettes/country_all.yml +22 -15
- data/spec/support/cassettes/create_reservation_fail.yml +18 -10
- data/spec/support/cassettes/create_reservation_with_booking.yml +27 -20
- data/spec/support/cassettes/passenger_all.yml +24 -17
- data/spec/support/cassettes/payment_info.yml +18 -18
- data/spec/support/cassettes/price_quote.yml +43 -41
- data/spec/support/cassettes/product_date_range_bookability.yml +26 -16
- data/spec/support/cassettes/product_show.yml +22 -15
- data/spec/support/cassettes/product_show_as_agent.yml +18 -8
- data/spec/support/cassettes/product_type_all.yml +40 -30
- data/spec/support/cassettes/product_type_resource_categories.yml +18 -18
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +18 -18
- data/spec/support/cassettes/product_type_routes.yml +23 -23
- data/spec/support/cassettes/property.yml +21 -21
- data/spec/support/cassettes/region_show.yml +22 -15
- data/spec/support/cassettes/reservation_with_extra_picks.yml +87 -64
- data/spec/support/cassettes/resource_category_all.yml +18 -18
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +18 -18
- data/spec/support/cassettes/resource_fare_bases.yml +29 -20
- data/spec/support/cassettes/resource_show.yml +26 -18
- data/spec/support/cassettes/resource_with_price.yml +25 -22
- data/spec/support/cassettes/tenant_switcher.yml +51 -37
- data/spec/support/cassettes/wrong_url.yml +63 -0
- data/spec/support/coverage_loader.rb +8 -3
- metadata +5 -7
- data/gemfiles/rails2.gemfile +0 -11
- data/spec/support/cassettes/resource_product_type.yml +0 -63
- data/spec/support/cassettes/route_all.yml +0 -65
@@ -14,16 +14,6 @@ http_interactions:
|
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
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
17
|
P3p:
|
28
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
19
|
Content-Type:
|
@@ -35,27 +25,37 @@ http_interactions:
|
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- 933a842883ce2070a0bddc4c4e092f48
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.101239'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:37 GMT
|
45
35
|
X-Rack-Cache:
|
46
36
|
- invalidate, pass
|
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
47
|
Server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
50
|
- '2'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTBmOGY5Mjc0NDNmNGQ5OWUzYjNhN2MzNDMzYTMzNDliBjsAVEkiCXVzZXIGOwBGaQY%3D--b709caeca3ba95e125085001a8046e516395d85b;
|
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 3.0.
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:13 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -19,38 +19,45 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"afa19294ce581b12a7d0e15ce637bad6"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- 621484dead0768bcfc0d321701459f6d
|
27
29
|
X-Runtime:
|
28
|
-
- '
|
30
|
+
- '0.698917'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:30 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- invalidate, pass
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:43 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
|
-
- '
|
50
|
+
- '2320'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWQ0NjRhYTk2ZTUyNTc1ZGNhZjJkZDk1ZjZhNzk5NDU1BjsAVEkiCXVzZXIGOwBGaQY%3D--5b9052a724d9f6014f694bd40b53c77d0993ab0b;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTI0OGYzMzViZDJmMGRiMDBlNzY3MTc0YWM5ZGE3NDRmBjsAVEkiCXVzZXIGOwBGaQY%3D--4742e81433d01108c362eb5142e789034feccae5;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
|
-
string: '{"id":
|
52
|
-
has changed to currency AUD. Please set currency as appropriate."]},"passenger_ids":[],"vehicle_ids":[],"reservation_ids":[],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[],"vehicles_attributes":[],"reservations_attributes":[],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"
|
53
|
-
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"
|
58
|
+
string: '{"id":3,"state":"new","reference":"222226","public_comments":null,"internal_comments":null,"customer_contact_name":null,"customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:29+10:30","updated_at":"2016-01-01T13:02:29+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":0,"nett_in_cents":0,"gross_in_cents":0,"commission_in_cents":0,"balance_in_cents":0,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":"SeaLink","deposit_relevant":false,"deposit_due_on":null,"balance_due_on":null,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","discardable_in":60,"inactivatable_in":10,"notices":{"currency":["Currency
|
59
|
+
has changed to currency AUD. Please set currency as appropriate."]},"client":null,"passenger_ids":[],"vehicle_ids":[],"reservation_ids":[],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[],"vehicles_attributes":[],"reservations_attributes":[],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
|
60
|
+
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false}],"issued_tickets_attributes":[]}'
|
54
61
|
http_version:
|
55
|
-
recorded_at:
|
56
|
-
recorded_with: VCR
|
62
|
+
recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
|
63
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://test.qt.sealink.com.au:8080/api/bookings/
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings/3/documents.json?last_group=true®enerate=false
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: access_key=<QT_KEY>
|
@@ -19,36 +19,43 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"d751713988987e9331980363e24189ce"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- 2b7f05d826c6713cd76f560938b4ef36
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.094298'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:30 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- miss
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:44 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
50
|
- '2'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWZmYjgyMmZiODkxOTQxYmVkNGY0ZDFiNDQyY2EwMTZjBjsAVEkiCXVzZXIGOwBGaQY%3D--e298c165e73d3a0b23a2911b4b63c256d129850e;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWYyYzM3ZTMxMDU4MjRiNWRhYWQyNjUwMTUxYjQzYjE4BjsAVEkiCXVzZXIGOwBGaQY%3D--99cd3b938377dcf2b571a23cd8a45302b3906ccd;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
58
|
string: "[]"
|
52
59
|
http_version:
|
53
|
-
recorded_at:
|
54
|
-
recorded_with: VCR
|
60
|
+
recorded_at: Fri, 28 Oct 2016 05:28:07 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -14,16 +14,6 @@ http_interactions:
|
|
14
14
|
code: 200
|
15
15
|
message: 'OK '
|
16
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
17
|
P3p:
|
28
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
29
19
|
Content-Type:
|
@@ -35,23 +25,33 @@ http_interactions:
|
|
35
25
|
Cache-Control:
|
36
26
|
- max-age=0, private, must-revalidate
|
37
27
|
X-Request-Id:
|
38
|
-
-
|
28
|
+
- e02cf837aeb32b6789eea3f866d47996
|
39
29
|
X-Runtime:
|
40
|
-
- '0.
|
30
|
+
- '0.094684'
|
41
31
|
Vary:
|
42
32
|
- Origin
|
43
33
|
Date:
|
44
|
-
-
|
34
|
+
- Fri, 01 Jan 2016 02:32:33 GMT
|
45
35
|
X-Rack-Cache:
|
46
36
|
- miss
|
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
47
|
Server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
49
|
Content-Length:
|
50
50
|
- '1625'
|
51
51
|
Connection:
|
52
52
|
- Keep-Alive
|
53
53
|
Set-Cookie:
|
54
|
-
-
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWRlMDI2MDM2NTUyYzE3NjdkMDYwMTY0NjQwYzE4MGYyBjsAVEkiCXVzZXIGOwBGaQY%3D--fd3c60dd8581d6e294d16064d3fc0ceda7bf9e4a;
|
55
55
|
path=/; HttpOnly
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
@@ -62,5 +62,5 @@ http_interactions:
|
|
62
62
|
Get Me","discounted_price_in_cents":6000,"discount_in_cents":-6000,"root":{"target":{"type":"Reservation","id":2},"original_price_in_cents":12000,"changed_price_in_cents":6000,"price_change_in_cents":-6000,"reason":"QBE
|
63
63
|
Get Me","discounted_price_in_cents":6000,"discount_in_cents":-6000},"children":[]}]}]}'
|
64
64
|
http_version:
|
65
|
-
recorded_at:
|
66
|
-
recorded_with: VCR
|
65
|
+
recorded_at: Fri, 28 Oct 2016 05:28:09 GMT
|
66
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://test.qt.sealink.com.au:8080/api/bookings/
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: access_key=<QT_KEY>
|
@@ -19,37 +19,44 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"70be92a6bc9217633487b0686e785057"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- 542e12db0fd4fe0d9c77bd633600e71d
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.121175'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:30 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- miss
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:43 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
|
-
- '
|
50
|
+
- '2232'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWJiMThiZWEyNWVmZGUzYzgzOTQ5ODliZDhjMjU5MjhlBjsAVEkiCXVzZXIGOwBGaQY%3D--05e8ff81acb224f966d97eaddd0144880a552d33;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWEyYzdjY2IxNTAxODY5Mjg3Y2U3NmUyNDYxMmRmMTU2BjsAVEkiCXVzZXIGOwBGaQY%3D--6bbe8bbadbbf0baeec0f44d8c37a44fb379df9d2;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
|
-
string: '{"id":
|
52
|
-
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"
|
58
|
+
string: '{"id":3,"state":"new","reference":"222226","public_comments":null,"internal_comments":null,"customer_contact_name":null,"customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:29+10:30","updated_at":"2016-01-01T13:02:29+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":0,"nett_in_cents":0,"gross_in_cents":0,"commission_in_cents":0,"balance_in_cents":0,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":"SeaLink","deposit_relevant":false,"deposit_due_on":null,"balance_due_on":null,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","discardable_in":60,"inactivatable_in":10,"notices":{},"client":null,"passenger_ids":[],"vehicle_ids":[],"reservation_ids":[],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[],"vehicles_attributes":[],"reservations_attributes":[],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
|
59
|
+
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false}],"issued_tickets_attributes":[]}'
|
53
60
|
http_version:
|
54
|
-
recorded_at:
|
55
|
-
recorded_with: VCR
|
61
|
+
recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: http://test.qt.sealink.com.au:8080/api/bookings/
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: booking[customer_contact_name]=John&access_key=<QT_KEY>
|
@@ -19,41 +19,49 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
X-Ua-Compatible:
|
22
|
-
- IE=Edge
|
22
|
+
- IE=Edge,chrome=1
|
23
|
+
Etag:
|
24
|
+
- '"6bedd79c9f4e077ff912128dc28590dd"'
|
23
25
|
Cache-Control:
|
24
|
-
-
|
26
|
+
- max-age=0, private, must-revalidate
|
25
27
|
X-Request-Id:
|
26
|
-
-
|
28
|
+
- ea44a6eb94edc6f7fb7001c2a933f767
|
27
29
|
X-Runtime:
|
28
|
-
- '0.
|
30
|
+
- '0.176533'
|
29
31
|
Vary:
|
30
32
|
- Origin
|
33
|
+
Date:
|
34
|
+
- Fri, 01 Jan 2016 02:32:30 GMT
|
31
35
|
X-Rack-Cache:
|
32
36
|
- invalidate, pass
|
33
|
-
X-
|
34
|
-
-
|
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
|
35
47
|
Server:
|
36
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
37
|
-
Date:
|
38
|
-
- Mon, 26 Oct 2015 00:18:43 GMT
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
39
49
|
Content-Length:
|
40
|
-
- '
|
50
|
+
- '2234'
|
41
51
|
Connection:
|
42
52
|
- Keep-Alive
|
43
53
|
Set-Cookie:
|
44
|
-
-
|
45
|
-
- __profilin=p%3Dt; path=/
|
46
|
-
- __profilin=p%3Dt; path=/
|
47
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTAzM2ZjMjliNDcxZGFhYzQ1YmVlNjU5OTZlZmMzNWUzBjsAVEkiCXVzZXIGOwBGaQY%3D--e635e9cbdaa0604d048d31850e7df4264fc145e8;
|
54
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTU2NjRmOTUwZjE3ZGM5ZWVkYWYxNzgwMGNjZWQzMDgwBjsAVEkiCXVzZXIGOwBGaQY%3D--62ca5f4c496a387ba38311067efde93ef773d85f;
|
48
55
|
path=/; HttpOnly
|
49
56
|
body:
|
50
57
|
encoding: UTF-8
|
51
|
-
string: '{"
|
58
|
+
string: '{"id":3,"state":"new","reference":"222226","public_comments":null,"internal_comments":null,"customer_contact_name":"John","customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:29+10:30","updated_at":"2016-01-01T13:02:29+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":0,"nett_in_cents":0,"gross_in_cents":0,"commission_in_cents":0,"balance_in_cents":0,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":"SeaLink","deposit_relevant":false,"deposit_due_on":null,"balance_due_on":null,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","discardable_in":60,"inactivatable_in":10,"notices":{},"client":null,"passenger_ids":[],"vehicle_ids":[],"reservation_ids":[],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[],"vehicles_attributes":[],"reservations_attributes":[],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
|
59
|
+
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false}],"issued_tickets_attributes":[]}'
|
52
60
|
http_version:
|
53
|
-
recorded_at:
|
61
|
+
recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
|
54
62
|
- request:
|
55
63
|
method: get
|
56
|
-
uri: http://test.qt.sealink.com.au:8080/api/bookings/
|
64
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
|
57
65
|
body:
|
58
66
|
encoding: UTF-8
|
59
67
|
string: access_key=<QT_KEY>
|
@@ -70,37 +78,44 @@ http_interactions:
|
|
70
78
|
Content-Type:
|
71
79
|
- application/json; charset=utf-8
|
72
80
|
X-Ua-Compatible:
|
73
|
-
- IE=Edge
|
81
|
+
- IE=Edge,chrome=1
|
82
|
+
Etag:
|
83
|
+
- '"7a0e82058e0967acd003c34773247471"'
|
74
84
|
Cache-Control:
|
75
|
-
-
|
85
|
+
- max-age=0, private, must-revalidate
|
76
86
|
X-Request-Id:
|
77
|
-
-
|
87
|
+
- 78ec0205e128e9065aac1e18500e1af8
|
78
88
|
X-Runtime:
|
79
|
-
- '0.
|
89
|
+
- '0.148469'
|
80
90
|
Vary:
|
81
91
|
- Origin
|
92
|
+
Date:
|
93
|
+
- Fri, 01 Jan 2016 02:32:30 GMT
|
82
94
|
X-Rack-Cache:
|
83
95
|
- miss
|
84
|
-
X-
|
85
|
-
-
|
96
|
+
X-Content-Type-Options:
|
97
|
+
- nosniff
|
98
|
+
X-Download-Options:
|
99
|
+
- noopen
|
100
|
+
X-Frame-Options:
|
101
|
+
- sameorigin
|
102
|
+
X-Permitted-Cross-Domain-Policies:
|
103
|
+
- none
|
104
|
+
X-Xss-Protection:
|
105
|
+
- 1; mode=block
|
86
106
|
Server:
|
87
|
-
- WEBrick/1.3.1 (Ruby/2.2.
|
88
|
-
Date:
|
89
|
-
- Mon, 26 Oct 2015 00:18:43 GMT
|
107
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
90
108
|
Content-Length:
|
91
|
-
- '
|
109
|
+
- '2234'
|
92
110
|
Connection:
|
93
111
|
- Keep-Alive
|
94
112
|
Set-Cookie:
|
95
|
-
-
|
96
|
-
- __profilin=p%3Dt; path=/
|
97
|
-
- __profilin=p%3Dt; path=/
|
98
|
-
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTljN2YzODkxZGE0ZmEyYjYwNWVkNDRhZjM3ODIxYWE5BjsAVEkiCXVzZXIGOwBGaQY%3D--f0d2fa747da5c85f6ec5a7a7ba894e6a80451f99;
|
113
|
+
- _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTg0NGNhYWMxY2Y3NjhjMjYxMzIxN2VjNmU4OGUyMzQ5BjsAVEkiCXVzZXIGOwBGaQY%3D--1dbaa3e212b3a805269c1f830a0de62d6f064eb7;
|
99
114
|
path=/; HttpOnly
|
100
115
|
body:
|
101
116
|
encoding: UTF-8
|
102
|
-
string: '{"id":
|
103
|
-
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"
|
117
|
+
string: '{"id":3,"state":"new","reference":"222226","public_comments":null,"internal_comments":null,"customer_contact_name":"John","customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:29+10:30","updated_at":"2016-01-01T13:02:30+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":0,"nett_in_cents":0,"gross_in_cents":0,"commission_in_cents":0,"balance_in_cents":0,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":"SeaLink","deposit_relevant":false,"deposit_due_on":null,"balance_due_on":null,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","discardable_in":60,"inactivatable_in":10,"notices":{},"client":null,"passenger_ids":[],"vehicle_ids":[],"reservation_ids":[],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[],"vehicles_attributes":[],"reservations_attributes":[],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
|
118
|
+
made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"internal":false,"redirect":false}],"issued_tickets_attributes":[]}'
|
104
119
|
http_version:
|
105
|
-
recorded_at:
|
106
|
-
recorded_with: VCR
|
120
|
+
recorded_at: Fri, 28 Oct 2016 05:28:07 GMT
|
121
|
+
recorded_with: VCR 3.0.3
|