quicktravel_client 3.6.1 → 3.7.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 +4 -2
- data/CHANGELOG.md +12 -3
- data/README.md +1 -1
- data/lib/quick_travel.rb +2 -0
- data/lib/quick_travel/adapter.rb +8 -58
- 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 +10 -1
- data/lib/quick_travel/checkout.rb +1 -1
- data/lib/quick_travel/client.rb +3 -2
- data/lib/quick_travel/contact.rb +4 -1
- data/lib/quick_travel/init_from_hash.rb +54 -1
- 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/property.rb +2 -1
- data/lib/quick_travel/property_facility.rb +3 -2
- data/lib/quick_travel/reservation.rb +4 -0
- data/lib/quick_travel/resource.rb +11 -2
- 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_stop.rb +11 -2
- data/lib/quick_travel/service.rb +3 -2
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +2 -1
- data/spec/adapter_spec.rb +2 -2
- data/spec/booking_spec.rb +14 -6
- data/spec/checkout_spec.rb +182 -0
- data/spec/product_spec.rb +5 -5
- data/spec/region_spec.rb +2 -2
- data/spec/reservation_spec.rb +2 -6
- data/spec/support/cassettes/accommodation_reserve.yml +109 -51
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +19 -33
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +19 -27
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +9 -11
- data/spec/support/cassettes/booking_activate.yml +25 -28
- data/spec/support/cassettes/booking_cancel.yml +25 -28
- data/spec/support/cassettes/booking_create.yml +14 -15
- data/spec/support/cassettes/booking_create_accommodation.yml +62 -0
- data/spec/support/cassettes/booking_documents.yml +9 -11
- data/spec/support/cassettes/booking_non_existant.yml +8 -10
- data/spec/support/cassettes/booking_price_changes.yml +19 -17
- data/spec/support/cassettes/booking_show.yml +13 -14
- data/spec/support/cassettes/booking_update.yml +25 -27
- data/spec/support/cassettes/booking_with_documents.yml +35 -36
- data/spec/support/cassettes/booking_with_nested_attributes.yml +61 -61
- data/spec/support/cassettes/booking_with_price_changes.yml +27 -26
- data/spec/support/cassettes/checkout_client_token.yml +11 -13
- data/spec/support/cassettes/countries.yml +15 -93
- data/spec/support/cassettes/country_all.yml +15 -93
- data/spec/support/cassettes/create_reservation_fail.yml +8 -10
- data/spec/support/cassettes/create_reservation_with_booking.yml +15 -16
- data/spec/support/cassettes/locations.yml +12 -14
- data/spec/support/cassettes/opal_modern_pay_failed_booking.yml +62 -0
- data/spec/support/cassettes/opal_modern_pay_failed_create.yml +59 -0
- data/spec/support/cassettes/opal_modern_pay_failed_update.yml +57 -0
- data/spec/support/cassettes/opal_modern_pay_successful_booking.yml +62 -0
- data/spec/support/cassettes/opal_modern_pay_successful_response.yml +59 -0
- data/spec/support/cassettes/opal_modern_pay_successful_update_response.yml +59 -0
- data/spec/support/cassettes/opal_pay.yml +59 -0
- data/spec/support/cassettes/opal_pay_booking.yml +62 -0
- data/spec/support/cassettes/passenger_all.yml +11 -13
- data/spec/support/cassettes/payment_info.yml +9 -11
- data/spec/support/cassettes/price_quote.yml +17 -21
- data/spec/support/cassettes/product_date_range_bookability.yml +32 -48
- data/spec/support/cassettes/product_show.yml +13 -17
- data/spec/support/cassettes/product_show_as_agent.yml +14 -22
- data/spec/support/cassettes/product_type_all.yml +16 -14
- data/spec/support/cassettes/product_type_resource_categories.yml +9 -11
- data/spec/support/cassettes/product_type_resource_categories_tickets.yml +12 -14
- data/spec/support/cassettes/product_type_routes.yml +14 -16
- data/spec/support/cassettes/property.yml +16 -18
- data/spec/support/cassettes/property_types.yml +12 -14
- data/spec/support/cassettes/region_show.yml +11 -13
- data/spec/support/cassettes/reservation_resource.yml +62 -0
- data/spec/support/cassettes/reservation_with_extra_picks.yml +54 -60
- data/spec/support/cassettes/resource_category_all.yml +12 -14
- data/spec/support/cassettes/resource_category_all_for_product_type_8.yml +11 -13
- data/spec/support/cassettes/resource_fare_bases.yml +18 -23
- data/spec/support/cassettes/resource_show.yml +15 -17
- data/spec/support/cassettes/resource_with_price.yml +16 -18
- data/spec/support/cassettes/settings_basic.yml +9 -11
- data/spec/support/cassettes/tenant_switcher.yml +31 -27
- data/spec/support/cassettes/wrong_url.yml +25 -46
- data/spec/support/coverage_loader.rb +1 -1
- metadata +43 -7
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings.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
|
+
P3p:
|
18
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Etag:
|
22
|
+
- W/"b2c692790f400ab0224a5c646cad71be"
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
X-Request-Id:
|
26
|
+
- 75e97302-780f-4f3f-9c48-f19a4bdb4910
|
27
|
+
X-Runtime:
|
28
|
+
- '0.314651'
|
29
|
+
Date:
|
30
|
+
- Fri, 01 Jan 2016 02:32:20 GMT
|
31
|
+
X-Rack-Cache:
|
32
|
+
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Server:
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
47
|
+
Content-Length:
|
48
|
+
- '3271'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
Set-Cookie:
|
52
|
+
- _session_id=NS9hVXBXa004TFNCS3ptbmRwZjZzS1I2dWpTd0tBQ1RocDFPMzE3NGxiTkF2RVVEYXZVa0xTUjRsZ01UOG1vUXY0MVI0S1IvbFRublduSUpNN0YrSDFTZVRxa1NIWmJwaWNFeEZtSlN1ZzA9LS1CV0lSNTBVWmtFVzV6OUdXRlRNUVpnPT0%3D--bd295b4fb7d2cef95b096b2e6afd4c00b4359d7a;
|
53
|
+
path=/; HttpOnly
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":6,"state":"new","reference":"22222C","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,"drop_off_option_id":null,"drop_off_location_id":null,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:20.000+10:30","updated_at":"2016-01-01T13:02:20.000+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,"due":true,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","unprintable_luggage_tags":false,"discardable_in":60,"inactivatable_in":10,"notices":{"currency":["Currency
|
57
|
+
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":4,"name":"visa","description":"visa","transaction_fee":"0.0","active":true,"position":3,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":"Visa","payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":5,"name":"master","description":"master","transaction_fee":"0.0","active":true,"position":4,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":7,"name":"PayPal","description":"Payments
|
58
|
+
made via PayPal account","transaction_fee":"0.0","active":true,"position":6,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"paypal","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":10,"name":"Opal
|
59
|
+
Pay","description":"Opal Payments","transaction_fee":"0.0","active":true,"position":9,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"opal_pay","gateway":null,"on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":false,"creditlink":false,"surchargeable":false}],"issued_tickets_attributes":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Wed, 21 Mar 2018 04:40:27 GMT
|
62
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/checkouts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: booking_id=6&payment[payment_type_id]=10&payment[amount_in_cents]=10&payment[uid]=modern-opal-uid&payment[comment]=Test%20Opal%20Payment&access_key=<QT_KEY>
|
9
|
+
headers:
|
10
|
+
Content-Length:
|
11
|
+
- '0'
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: 'OK '
|
16
|
+
headers:
|
17
|
+
P3p:
|
18
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Etag:
|
22
|
+
- W/"3a5d8871c85df7675b823e4ae118f2dc"
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
X-Request-Id:
|
26
|
+
- 200f1abb-f3fd-4097-a61d-a246cce27252
|
27
|
+
X-Runtime:
|
28
|
+
- '0.191352'
|
29
|
+
Date:
|
30
|
+
- Fri, 01 Jan 2016 02:32:20 GMT
|
31
|
+
X-Rack-Cache:
|
32
|
+
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Server:
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
47
|
+
Content-Length:
|
48
|
+
- '53'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
Set-Cookie:
|
52
|
+
- _session_id=Q254b0gvbzhoS05PZjNqM0VEWlBKUlFTVjhsQUZFTVdkZkdOaGlsQnZjSDA1YWZLckh1VmgyN1V6VkRUMlNLR0JIa3U2Y0IvcmZ6dzBGcmJMVzRHNGV3RlJxNHBqV3JLWWU5Z3liRTZXUlU9LS1Tb0hKdktjQWQ5SWl0SElwUEllZUl3PT0%3D--274c0f78030a0c1e450fc81c1683461734cfd3c7;
|
53
|
+
path=/; HttpOnly
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"checkout_id":"modern-opal-uid","completable":false}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:27 GMT
|
59
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/checkouts/modern-opal-uid.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: gateway_response[raw_response]=%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CardNumber%22%3A%203085227007682330%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CardBalance%22%3A%206546%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CardSequenceNumber%22%3A%2055%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CILAmount%22%3A%200%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22AuthorizedAmount%22%3A%20890%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22SalesReferenceNumber%22%3A%2053183943%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22TransactionDTM%22%3A%20%222018-01-04T09%3A00%3A43.106%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22TransactionReferenceNumber%22%3A%201271099697%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CardBlockState%22%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22AutoloadAmount%22%3A%200%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D&gateway_response[success]=true&gateway_response[meta_data][applicationInstanceId]=101166&gateway_response[meta_data][operatorId]=an_operator&access_key=<QT_KEY>
|
9
|
+
headers:
|
10
|
+
Content-Length:
|
11
|
+
- '0'
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: 'OK '
|
16
|
+
headers:
|
17
|
+
P3p:
|
18
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Etag:
|
22
|
+
- W/"e326e290336b4fd5ec10660641d17791"
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
X-Request-Id:
|
26
|
+
- 7f6b729a-4c3f-42e6-bf01-8f6723ea8001
|
27
|
+
X-Runtime:
|
28
|
+
- '0.309685'
|
29
|
+
Date:
|
30
|
+
- Fri, 01 Jan 2016 02:32:21 GMT
|
31
|
+
X-Rack-Cache:
|
32
|
+
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Server:
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
47
|
+
Content-Length:
|
48
|
+
- '19'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
Set-Cookie:
|
52
|
+
- _session_id=MGllL0NDcG5EZWhBMGlOSTdTSkpmYnBIdHgxUzNvNERpVUIyZ1BHZzh0LytsQTNEVlZHUDByRzlsQUQxaHdkOHhIc1hMdTJHSkZuTy9TTVJyNXVlOUVCVTRaNTc1ZUFtbmlmY3paNmY0TDg9LS1oajBuQ1h2anpXRWlkQkZ6cnZQVnhBPT0%3D--1a3129a627010199c4565a5b4bd1d7ee3f333cf4;
|
53
|
+
path=/; HttpOnly
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"successful":true}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:28 GMT
|
59
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/checkouts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: booking_id=7&payment[gateway_response]=%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22CardNumber%22%3A%203085227007682330%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22CardBalance%22%3A%206546%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22CardSequenceNumber%22%3A%2055%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22CILAmount%22%3A%200%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22AuthorizedAmount%22%3A%20890%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22SalesReferenceNumber%22%3A%2053183943%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22TransactionDTM%22%3A%20%222018-01-04T09%3A00%3A43.106%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22TransactionReferenceNumber%22%3A%201271099697%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22CardBlockState%22%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22AutoloadAmount%22%3A%200%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D&payment[payment_type_id]=10&payment[amount_in_cents]=10&payment[uid]=opal-uid&payment[comment]=Test%20Opal%20Payment&payment[meta_data][applicationInstanceId]=101166&payment[meta_data][operatorId]=an_operator&access_key=<QT_KEY>
|
9
|
+
headers:
|
10
|
+
Content-Length:
|
11
|
+
- '0'
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: 'OK '
|
16
|
+
headers:
|
17
|
+
P3p:
|
18
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Etag:
|
22
|
+
- W/"f113c5ed556221b4ceed7b1d8a6606c8"
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
X-Request-Id:
|
26
|
+
- 497a80c7-660b-4619-9560-2d448b4722ca
|
27
|
+
X-Runtime:
|
28
|
+
- '0.454080'
|
29
|
+
Date:
|
30
|
+
- Fri, 01 Jan 2016 02:32:21 GMT
|
31
|
+
X-Rack-Cache:
|
32
|
+
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Server:
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
47
|
+
Content-Length:
|
48
|
+
- '68'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
Set-Cookie:
|
52
|
+
- _session_id=NWhoeG9IUXA2UXZrZFcwM1BQdjFSZ2VnOU53YStIRHhCT21WaC81SEtpUThrVmZGWEhYbWllTFJnS2NMOTExZkFQRm1nZmkyM1lFaUQ5VnNwZW5IQVZxVTJkOS9UaFZmcWNOMjlZL0x6YU09LS13cERCakhnNlE2ZUJ2Q3ArOWptZDdBPT0%3D--acb2c5960a9dcc49b71ed384bc79fdbe2879fc4d;
|
53
|
+
path=/; HttpOnly
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"checkout_id":"opal-uid","completable":true,"progress":"completed"}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:28 GMT
|
59
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://test.qt.sealink.com.au:8080/api/bookings.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
|
+
P3p:
|
18
|
+
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Etag:
|
22
|
+
- W/"692ea2fafe4624431f46eb11f15e5b47"
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
X-Request-Id:
|
26
|
+
- 46775ddb-80c4-4858-8fb6-af19329e90d1
|
27
|
+
X-Runtime:
|
28
|
+
- '0.276163'
|
29
|
+
Date:
|
30
|
+
- Fri, 01 Jan 2016 02:32:21 GMT
|
31
|
+
X-Rack-Cache:
|
32
|
+
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Frame-Options:
|
40
|
+
- sameorigin
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
Server:
|
46
|
+
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
47
|
+
Content-Length:
|
48
|
+
- '3271'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
Set-Cookie:
|
52
|
+
- _session_id=RXhaVkNhRUlYd0R4T3JZSTBibGpjMTJrVTlDYlprdWNoNTFnYUhacDhjS0N2eUNVZWxiMEhXRTFFU3B4VVRRNXZORW9uZlBpd1BMMzlYSGRNT25RWkdyOTY2OWhyN0V1YnNTaW5KNVF0bkU9LS1lUWl3OEJ6VldFb25JTFNpZXRna253PT0%3D--1d0a2d287c57e32cfec8a1b5ab562a8cfdea902f;
|
53
|
+
path=/; HttpOnly
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":7,"state":"new","reference":"22222D","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,"drop_off_option_id":null,"drop_off_location_id":null,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-01-01T13:02:21.000+10:30","updated_at":"2016-01-01T13:02:21.000+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,"due":true,"first_travel_date":{"_type":"Date","_value":"2016-01-01"},"last_travel_date":null,"complete":true,"reason_not_complete":"","first_reason_not_complete":"","unprintable_luggage_tags":false,"discardable_in":60,"inactivatable_in":10,"notices":{"currency":["Currency
|
57
|
+
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":4,"name":"visa","description":"visa","transaction_fee":"0.0","active":true,"position":3,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":"Visa","payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":5,"name":"master","description":"master","transaction_fee":"0.0","active":true,"position":4,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":7,"name":"PayPal","description":"Payments
|
58
|
+
made via PayPal account","transaction_fee":"0.0","active":true,"position":6,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"paypal","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":10,"name":"Opal
|
59
|
+
Pay","description":"Opal Payments","transaction_fee":"0.0","active":true,"position":9,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"opal_pay","gateway":null,"on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":false,"creditlink":false,"surchargeable":false}],"issued_tickets_attributes":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Wed, 21 Mar 2018 04:40:28 GMT
|
62
|
+
recorded_with: VCR 4.0.0
|
@@ -18,22 +18,20 @@ http_interactions:
|
|
18
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
21
|
Etag:
|
24
|
-
-
|
22
|
+
- W/"0f4424dcbc52748cfe7472d15e4b8fa3"
|
25
23
|
Cache-Control:
|
26
24
|
- max-age=0, private, must-revalidate
|
27
25
|
X-Request-Id:
|
28
|
-
-
|
26
|
+
- b0542505-3ba4-4c87-a935-5f9354938736
|
29
27
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
28
|
+
- '0.146689'
|
33
29
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
30
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
35
31
|
X-Rack-Cache:
|
36
32
|
- miss
|
33
|
+
Vary:
|
34
|
+
- Origin
|
37
35
|
X-Content-Type-Options:
|
38
36
|
- nosniff
|
39
37
|
X-Download-Options:
|
@@ -47,15 +45,15 @@ http_interactions:
|
|
47
45
|
Server:
|
48
46
|
- WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
|
49
47
|
Content-Length:
|
50
|
-
- '
|
48
|
+
- '614'
|
51
49
|
Connection:
|
52
50
|
- Keep-Alive
|
53
51
|
Set-Cookie:
|
54
|
-
-
|
52
|
+
- _session_id=ZXorcmc5c0Rkak0wYXVyZ29RUms1a3djMXdxYmt3MmxlWWQvV0xZMlBTUDhNSERmUVlncWN5NTY5Ly83VGpwcm1MWjRwMG9RYnFVZ3lkcm9XQnIxMWlRVmh0a2JQcE1oNytMTm5GTjBNR009LS1TNHdiZ3VmMHhSL2JKbWhnMEtGRUlnPT0%3D--b82ab3df67b1062eb5b019b447b8fd90d2a26261;
|
55
53
|
path=/; HttpOnly
|
56
54
|
body:
|
57
55
|
encoding: UTF-8
|
58
|
-
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","conditions":null},{"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","conditions":null},{"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","conditions":null}]'
|
56
|
+
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","conditions":null,"requires_review":false},{"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","conditions":null,"requires_review":false},{"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","conditions":null,"requires_review":false}]'
|
59
57
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
59
|
+
recorded_with: VCR 4.0.0
|
@@ -18,22 +18,20 @@ http_interactions:
|
|
18
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
21
|
Etag:
|
24
|
-
-
|
22
|
+
- W/"10c30c0c49ba4e1f56c0c416ec0303f8"
|
25
23
|
Cache-Control:
|
26
24
|
- max-age=0, private, must-revalidate
|
27
25
|
X-Request-Id:
|
28
|
-
-
|
26
|
+
- 98c73fc1-a714-4467-89a4-e7741ed8a80d
|
29
27
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
28
|
+
- '0.129914'
|
33
29
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
30
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
35
31
|
X-Rack-Cache:
|
36
32
|
- miss
|
33
|
+
Vary:
|
34
|
+
- Origin
|
37
35
|
X-Content-Type-Options:
|
38
36
|
- nosniff
|
39
37
|
X-Download-Options:
|
@@ -51,11 +49,11 @@ http_interactions:
|
|
51
49
|
Connection:
|
52
50
|
- Keep-Alive
|
53
51
|
Set-Cookie:
|
54
|
-
-
|
52
|
+
- _session_id=c3M0WHRTdHFWc0JUTUhBZWRqMGJsUHdNNGEvQ3lrTDU1My83ODA2MGdXLyswSEZ3YjI3UXorTFZZTFAvZWNDY1F4dTdBeDl0N05qa0lCNjdEY0VXalVGUXhXeUhscTBubHZ2a0FialZYVUU9LS10MFA0VTNMcmEyRUlCMFNCTm1EaVNBPT0%3D--27475c8de90058e6efc826f06746a8a7d0bd16d2;
|
55
53
|
path=/; HttpOnly
|
56
54
|
body:
|
57
55
|
encoding: UTF-8
|
58
56
|
string: '{"poli_pay":{"login":"S1234567"}}'
|
59
57
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
59
|
+
recorded_with: VCR 4.0.0
|
@@ -18,22 +18,20 @@ http_interactions:
|
|
18
18
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
19
19
|
Content-Type:
|
20
20
|
- application/json; charset=utf-8
|
21
|
-
X-Ua-Compatible:
|
22
|
-
- IE=Edge,chrome=1
|
23
21
|
Etag:
|
24
|
-
-
|
22
|
+
- W/"5c82dc53593c47d6fe1dab0bf46ab26b"
|
25
23
|
Cache-Control:
|
26
24
|
- max-age=0, private, must-revalidate
|
27
25
|
X-Request-Id:
|
28
|
-
-
|
26
|
+
- b85dc6fd-aada-4064-83f7-bd34094c470c
|
29
27
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
Vary:
|
32
|
-
- Origin
|
28
|
+
- '0.332660'
|
33
29
|
Date:
|
34
|
-
- Fri, 01 Jan 2016 02:32:
|
30
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
35
31
|
X-Rack-Cache:
|
36
32
|
- invalidate, pass
|
33
|
+
Vary:
|
34
|
+
- Origin
|
37
35
|
X-Content-Type-Options:
|
38
36
|
- nosniff
|
39
37
|
X-Download-Options:
|
@@ -51,13 +49,13 @@ http_interactions:
|
|
51
49
|
Connection:
|
52
50
|
- Keep-Alive
|
53
51
|
Set-Cookie:
|
54
|
-
-
|
52
|
+
- _session_id=YTlJTUlNeHErV1ZNb0QrOVp6QXdUdXJ6d2MrUjlDMURWcXAzUm1RVXJVWUVBRzJralZabHFPNW1ra2JYY2dIWi9LR3RwWk1VbFBZZTgybUJuQ0NFRXBQaWdIQUJDSGJlUHMzbUxaTHU0Mnc9LS1tZGU4VVVOSVlHNkN1bFEzRllOVmhRPT0%3D--02dc74be0c2f9ce10cc61ac5614c7a7c734340e1;
|
55
53
|
path=/; HttpOnly
|
56
54
|
body:
|
57
55
|
encoding: UTF-8
|
58
56
|
string: '{"quoted_booking_gross_in_cents":6400,"original_booking_gross_in_cents":0,"applied_rules":[],"quoted_booking_breakdown":[{"quoted_gross_in_cents":6400,"original_gross_in_cents":0,"applied_rules":[],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
59
57
|
http_version:
|
60
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
61
59
|
- request:
|
62
60
|
method: post
|
63
61
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
@@ -76,22 +74,20 @@ http_interactions:
|
|
76
74
|
- CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
|
77
75
|
Content-Type:
|
78
76
|
- application/json; charset=utf-8
|
79
|
-
X-Ua-Compatible:
|
80
|
-
- IE=Edge,chrome=1
|
81
77
|
Etag:
|
82
|
-
-
|
78
|
+
- W/"fcdfcfff79f5c60b174480976538dbb9"
|
83
79
|
Cache-Control:
|
84
80
|
- max-age=0, private, must-revalidate
|
85
81
|
X-Request-Id:
|
86
|
-
-
|
82
|
+
- ee9c0559-0edf-4b9c-bbd0-7c9238e25624
|
87
83
|
X-Runtime:
|
88
|
-
- '0.
|
89
|
-
Vary:
|
90
|
-
- Origin
|
84
|
+
- '0.125472'
|
91
85
|
Date:
|
92
|
-
- Fri, 01 Jan 2016 02:32:
|
86
|
+
- Fri, 01 Jan 2016 02:32:24 GMT
|
93
87
|
X-Rack-Cache:
|
94
88
|
- invalidate, pass
|
89
|
+
Vary:
|
90
|
+
- Origin
|
95
91
|
X-Content-Type-Options:
|
96
92
|
- nosniff
|
97
93
|
X-Download-Options:
|
@@ -109,7 +105,7 @@ http_interactions:
|
|
109
105
|
Connection:
|
110
106
|
- Keep-Alive
|
111
107
|
Set-Cookie:
|
112
|
-
-
|
108
|
+
- _session_id=d2tyU0pHd081SGplZ3ZNZXFPWlh3MUhMRXhXK1dIVDA3VzN5Q01VdFIvcHBsRWdmNEp2NHV1TE5iQnU0QWpjTEJ0Nk91TzVpRFVSWUd0aDNBdFJ3dzdIRHF1bytxSHVzc2lPYkRIMWRQRUU9LS0rbDNJbnpkT0J3ZlNVbVRKbWNxa053PT0%3D--7ecb9cf299d107121355fba7c03491af1c0c2d66;
|
113
109
|
path=/; HttpOnly
|
114
110
|
body:
|
115
111
|
encoding: UTF-8
|
@@ -117,5 +113,5 @@ http_interactions:
|
|
117
113
|
Offer"],"quoted_booking_breakdown":[{"quoted_gross_in_cents":4800,"original_gross_in_cents":0,"applied_rules":["Special
|
118
114
|
Offer"],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
119
115
|
http_version:
|
120
|
-
recorded_at:
|
121
|
-
recorded_with: VCR
|
116
|
+
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
117
|
+
recorded_with: VCR 4.0.0
|