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/bookings.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
- - '"afa19294ce581b12a7d0e15ce637bad6"'
24
+ - W/"e2526231b7030e523541a77df03c8ff8"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - 621484dead0768bcfc0d321701459f6d
28
+ - 622385b3-22be-4860-baf9-b3ab408c7e3d
29
29
  X-Runtime:
30
- - '0.698917'
31
- Vary:
32
- - Origin
30
+ - '0.868063'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:30 GMT
32
+ - Fri, 01 Jan 2016 02:32:06 GMT
35
33
  X-Rack-Cache:
36
34
  - invalidate, pass
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,17 +47,18 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '2320'
50
+ - '3271'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTI0OGYzMzViZDJmMGRiMDBlNzY3MTc0YWM5ZGE3NDRmBjsAVEkiCXVzZXIGOwBGaQY%3D--4742e81433d01108c362eb5142e789034feccae5;
54
+ - _session_id=QkMrd1poYWp0Q0ZaOWxnRWpUZU90MFMxZXlMLzVzbHN5a3h3azdpV1M0cWNuZDdnM3ducmYwZnVINXpRTnp6cjJ4ZmQ2QmwwM0lsMzJmUzBicmxxZEFEY2h0TDNyOERTbUJtRjZ6NnFJSk09LS1XVVlKTTlEMkV2K0RYR2VYZ0g1Tml3PT0%3D--bcc625f85c9aeaee86f2743c3d5d2e73c8ab45ba;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
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":[]}'
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,"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:06.000+10:30","updated_at":"2016-01-01T13:02:06.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
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":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
60
+ 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
61
+ 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":[]}'
61
62
  http_version:
62
- recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
63
- recorded_with: VCR 3.0.3
63
+ recorded_at: Wed, 21 Mar 2018 04:40:13 GMT
64
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,64 @@
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: ''
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/"ea9b680362bf5fac1e4319ea81a98050"
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ X-Request-Id:
28
+ - 4c132753-6cc4-4dcb-ac82-035a6c58bbab
29
+ X-Runtime:
30
+ - '0.205034'
31
+ Date:
32
+ - Fri, 01 Jan 2016 02:32:12 GMT
33
+ X-Rack-Cache:
34
+ - invalidate, pass
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
+ - '3271'
51
+ Connection:
52
+ - Keep-Alive
53
+ Set-Cookie:
54
+ - _session_id=MmVhSVdMcnlhUWtkZW9oK0FlSEJza0dEN0hjaVNOVVNYQ25CRHZsMFZWK0J3RnVneHlheFBMTHlaSGkyNUFTOWowcDUveXJPVFhDVVM4eHNlWVBnY0p2RUlvRE1HR2J5SlpMUUhqRTJ5Ums9LS15bnlmNXduTEFoS1ZiZzNIaE1jYW1RPT0%3D--c0c6760a329cfabf8976f7daf4df0e6610124bcb;
55
+ path=/; HttpOnly
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":4,"state":"new","reference":"222227","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:12.000+10:30","updated_at":"2016-01-01T13:02:12.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
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":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
60
+ 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
61
+ 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":[]}'
62
+ http_version:
63
+ recorded_at: Wed, 21 Mar 2018 04:40:19 GMT
64
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/bookings/3/documents.json?last_group=true&regenerate=false
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
- - 2b7f05d826c6713cd76f560938b4ef36
28
+ - c11b30e4-81d7-4f80-92e9-ae1f8f83925c
29
29
  X-Runtime:
30
- - '0.094298'
31
- Vary:
32
- - Origin
30
+ - '0.429795'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:30 GMT
32
+ - Fri, 01 Jan 2016 02:32:07 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=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWYyYzM3ZTMxMDU4MjRiNWRhYWQyNjUwMTUxYjQzYjE4BjsAVEkiCXVzZXIGOwBGaQY%3D--99cd3b938377dcf2b571a23cd8a45302b3906ccd;
54
+ - _session_id=SEhaOHBQSGlxS3JlbHB0cHhmV1F2U3dCRTczYVhJdXFQWkdteEpOL0pPUE95bmN5V2RuUlhwU3NNTUZaNDdpa0tLdWtRMk10bk0wL2Z4Y3BrWVRJR2pMN3NHTmdIdWEvbDY0QU9qV05GU0U9LS1iTmo2TXhaRlpROHptQ2FWeFdvaDlRPT0%3D--31e8b6c31e7ddb1faf154f3e0465b8f1c082f0c2;
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:07 GMT
61
- recorded_with: VCR 3.0.3
60
+ recorded_at: Wed, 21 Mar 2018 04:40:14 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/bookings/reference/111111.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: 404
@@ -18,20 +20,18 @@ 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
  Cache-Control:
24
24
  - no-cache
25
25
  X-Request-Id:
26
- - 620e301e261f4038453464856be47a9a
26
+ - 8b99c3ff-0edf-4e7e-beaf-5ca06e6dc173
27
27
  X-Runtime:
28
- - '0.576024'
29
- Vary:
30
- - Origin
28
+ - '0.178129'
31
29
  Date:
32
- - Fri, 01 Jan 2016 02:32:07 GMT
30
+ - Fri, 01 Jan 2016 02:32:18 GMT
33
31
  X-Rack-Cache:
34
32
  - miss
33
+ Vary:
34
+ - Origin
35
35
  X-Content-Type-Options:
36
36
  - nosniff
37
37
  X-Download-Options:
@@ -49,11 +49,11 @@ http_interactions:
49
49
  Connection:
50
50
  - Keep-Alive
51
51
  Set-Cookie:
52
- - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTRlNDQwYjQxYmYwODAyM2IwOTVhZWRmZmViZmM3MDFlBjsAVEkiCXVzZXIGOwBGaQY%3D--77cc7c8dff3a0d680d605543218ef1419ead29da;
52
+ - _session_id=UlpiMDZNVHBSbG1OZExTSktrd3IvdlRwUWFzeXkzdEM0TnVPQ1Z3TFFUVnZDYjQ0S20wSU5tN0hyMGxTUFVvR09ta3hIVWNBMnd1R0xXWTFONFdPTkloY05tNnBpUXE0amFWTG03eVNGaHM9LS1oMHk2SFdndWdxQitxMTBHV3RIczZ3PT0%3D--b69f1aba6a5bf035a15f8c4aa7afe3fa8e1278b5;
53
53
  path=/; HttpOnly
54
54
  body:
55
55
  encoding: UTF-8
56
56
  string: '{"error":"Booking not found. It may have been removed due to inactivity"}'
57
57
  http_version:
58
- recorded_at: Tue, 04 Jul 2017 07:39:13 GMT
59
- recorded_with: VCR 3.0.3
58
+ recorded_at: Wed, 21 Mar 2018 04:40:25 GMT
59
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/bookings/1/price_change.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
- - '"7b91c75a4f38e04e4f967265134f1051"'
24
+ - W/"bbf4e2642cbe40a2d5b574fa25d7bfda"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - e02cf837aeb32b6789eea3f866d47996
28
+ - 1a562c6d-85fe-428c-b238-176ec3c33412
29
29
  X-Runtime:
30
- - '0.094684'
31
- Vary:
32
- - Origin
30
+ - '0.140684'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:33 GMT
32
+ - Fri, 01 Jan 2016 02:32:23 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,24 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '1625'
50
+ - '2377'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWRlMDI2MDM2NTUyYzE3NjdkMDYwMTY0NjQwYzE4MGYyBjsAVEkiCXVzZXIGOwBGaQY%3D--fd3c60dd8581d6e294d16064d3fc0ceda7bf9e4a;
54
+ - _session_id=NVRHRkIweXllQjRUbWE1K01tQ2ozZzI2Z1hxQTFsYmU3L04vMzZtRXl2YVlLbVlheVJQalRMQVptZXhUYmxCY1FpUHN5a3RYcmdmY3hLRGd3WVc4NEpGTytULzltS0dnYThIWUcrSXhUUXc9LS1vejB1RzRWQUJkbGVsa05YdGRFM3ZBPT0%3D--4ad1f9cda125255393b79ef2f38621d7677e01f4;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
58
58
  string: '{"target":{"type":"Booking","id":1},"original_price_in_cents":64000,"changed_price_in_cents":38000,"price_change_in_cents":-26000,"reason":"Test
59
- Discount Hilton and QBE Get Me","discounted_price_in_cents":38000,"discount_in_cents":-26000,"reservation_price_changes":[{"target":{"type":"Reservation","id":1},"original_price_in_cents":64000,"changed_price_in_cents":38000,"price_change_in_cents":-26000,"reason":"Test
60
- Discount Hilton and QBE Get Me","discounted_price_in_cents":38000,"discount_in_cents":-26000,"root":{"target":{"type":"Reservation","id":1},"original_price_in_cents":40000,"changed_price_in_cents":20000,"price_change_in_cents":-20000,"reason":"Test
61
- Discount Hilton","discounted_price_in_cents":20000,"discount_in_cents":-20000},"children":[{"target":{"type":"Reservation","id":3},"original_price_in_cents":12000,"changed_price_in_cents":12000,"price_change_in_cents":0,"reason":"","discounted_price_in_cents":12000,"discount_in_cents":0,"root":{"target":{"type":"Reservation","id":3},"original_price_in_cents":12000,"changed_price_in_cents":12000,"price_change_in_cents":0,"reason":"","discounted_price_in_cents":12000,"discount_in_cents":0},"children":[]},{"target":{"type":"Reservation","id":2},"original_price_in_cents":12000,"changed_price_in_cents":6000,"price_change_in_cents":-6000,"reason":"QBE
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
- Get Me","discounted_price_in_cents":6000,"discount_in_cents":-6000},"children":[]}]}]}'
59
+ Discount Hilton and QBE Get Me","reasons":["Test Discount Hilton","QBE Get
60
+ Me"],"discounted_price_in_cents":38000,"discount_in_cents":-26000,"reservation_price_changes":[{"target":{"type":"Reservation","id":1},"original_price_in_cents":64000,"changed_price_in_cents":38000,"price_change_in_cents":-26000,"reason":"Test
61
+ Discount Hilton and QBE Get Me","reasons":["Test Discount Hilton","QBE Get
62
+ Me"],"discounted_price_in_cents":38000,"discount_in_cents":-26000,"root":{"target":{"type":"Reservation","id":1},"original_price_in_cents":40000,"changed_price_in_cents":20000,"price_change_in_cents":-20000,"reason":"Test
63
+ Discount Hilton","reasons":["Test Discount Hilton"],"discounted_price_in_cents":20000,"discount_in_cents":-20000,"breakdown":[{"target":{"type":"Reservation","id":1},"original_price_in_cents":40000,"changed_price_in_cents":20000,"price_change_in_cents":-20000,"reason":"Test
64
+ Discount Hilton","reasons":["Test Discount Hilton"],"discounted_price_in_cents":20000,"discount_in_cents":-20000}]},"children":[{"target":{"type":"Reservation","id":3},"original_price_in_cents":12000,"changed_price_in_cents":12000,"price_change_in_cents":0,"reason":"","reasons":[],"discounted_price_in_cents":12000,"discount_in_cents":0,"root":{"target":{"type":"Reservation","id":3},"original_price_in_cents":12000,"changed_price_in_cents":12000,"price_change_in_cents":0,"reason":"","reasons":[],"discounted_price_in_cents":12000,"discount_in_cents":0,"breakdown":[]},"children":[]},{"target":{"type":"Reservation","id":2},"original_price_in_cents":12000,"changed_price_in_cents":6000,"price_change_in_cents":-6000,"reason":"QBE
65
+ Get Me","reasons":["QBE 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
66
+ Get Me","reasons":["QBE Get Me"],"discounted_price_in_cents":6000,"discount_in_cents":-6000,"breakdown":[{"target":{"type":"Reservation","id":2},"original_price_in_cents":12000,"changed_price_in_cents":6000,"price_change_in_cents":-6000,"reason":"QBE
67
+ Get Me","reasons":["QBE Get Me"],"discounted_price_in_cents":6000,"discount_in_cents":-6000}]},"children":[]}]}]}'
64
68
  http_version:
65
- recorded_at: Fri, 28 Oct 2016 05:28:09 GMT
66
- recorded_with: VCR 3.0.3
69
+ recorded_at: Wed, 21 Mar 2018 04:40:30 GMT
70
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/bookings/3.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
- - '"70be92a6bc9217633487b0686e785057"'
24
+ - W/"ed8722bc4263575de827725f60e9f91b"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - 542e12db0fd4fe0d9c77bd633600e71d
28
+ - f25a23ed-495e-4cbc-ae5d-cf4824c4aa98
29
29
  X-Runtime:
30
- - '0.121175'
31
- Vary:
32
- - Origin
30
+ - '0.192259'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:30 GMT
32
+ - Fri, 01 Jan 2016 02:32:06 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,17 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '2232'
50
+ - '3183'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWEyYzdjY2IxNTAxODY5Mjg3Y2U3NmUyNDYxMmRmMTU2BjsAVEkiCXVzZXIGOwBGaQY%3D--6bbe8bbadbbf0baeec0f44d8c37a44fb379df9d2;
54
+ - _session_id=Vy9TV1NJTitmNU9vTFl6M3NQT0R6Qmp5dFVNaEowM1FMck9BWEd6RXVPREIrdmRPN1JUR3lKbWpxU2x3ZG41YndwYWx0WFJxNk16bW1yU3I1eG1raVRTSWh4WmVLcVMxQU1yN3Q2SER5czA9LS02b3d2dVBjY3MrWUNVTHlKQ21wbW5BPT0%3D--5e4730663b28710ffb41a60c5acd57f4648ce4ff;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
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":[]}'
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,"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:06.000+10:30","updated_at":"2016-01-01T13:02:06.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":{},"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
59
+ 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
60
+ 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
61
  http_version:
61
- recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
62
- recorded_with: VCR 3.0.3
62
+ recorded_at: Wed, 21 Mar 2018 04:40:13 GMT
63
+ recorded_with: VCR 4.0.0
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: booking[customer_contact_name]=John&access_key=<QT_KEY>
8
+ string: booking[customer_contact_name]=John
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
- - '"6bedd79c9f4e077ff912128dc28590dd"'
24
+ - W/"40312644ecf405e800108a74b7713a6e"
25
25
  Cache-Control:
26
26
  - max-age=0, private, must-revalidate
27
27
  X-Request-Id:
28
- - ea44a6eb94edc6f7fb7001c2a933f767
28
+ - 32a128fa-f184-4331-b8e6-6744a2eeef6b
29
29
  X-Runtime:
30
- - '0.176533'
31
- Vary:
32
- - Origin
30
+ - '0.244587'
33
31
  Date:
34
- - Fri, 01 Jan 2016 02:32:30 GMT
32
+ - Fri, 01 Jan 2016 02:32:06 GMT
35
33
  X-Rack-Cache:
36
34
  - invalidate, pass
35
+ Vary:
36
+ - Origin
37
37
  X-Content-Type-Options:
38
38
  - nosniff
39
39
  X-Download-Options:
@@ -47,27 +47,30 @@ http_interactions:
47
47
  Server:
48
48
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
49
49
  Content-Length:
50
- - '2234'
50
+ - '3185'
51
51
  Connection:
52
52
  - Keep-Alive
53
53
  Set-Cookie:
54
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTU2NjRmOTUwZjE3ZGM5ZWVkYWYxNzgwMGNjZWQzMDgwBjsAVEkiCXVzZXIGOwBGaQY%3D--62ca5f4c496a387ba38311067efde93ef773d85f;
54
+ - _session_id=cmYwc2NWK1JvZGF6UkJxVlZLMDIyK2ViUXFMWkZHMjJkbVNOTnZkRlA0NjIweDhJclJCT3NmL1Y4OVNqd1V0MlhObE04OTNxWlRqUlRndThnTkhGci9EVHFzKzZyaUE2Y1Rvb1lJSTJVZGc9LS1PaXRRWEJOM1VHOThTMzVGcXlxTkh3PT0%3D--37bf0b354d9c0a33c957adfd933420c40c08647e;
55
55
  path=/; HttpOnly
56
56
  body:
57
57
  encoding: UTF-8
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":[]}'
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,"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:06.000+10:30","updated_at":"2016-01-01T13:02:06.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":{},"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
59
+ 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
60
+ 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
61
  http_version:
61
- recorded_at: Fri, 28 Oct 2016 05:28:06 GMT
62
+ recorded_at: Wed, 21 Mar 2018 04:40:13 GMT
62
63
  - request:
63
64
  method: get
64
65
  uri: http://test.qt.sealink.com.au:8080/api/bookings/3.json
65
66
  body:
66
67
  encoding: UTF-8
67
- string: access_key=<QT_KEY>
68
+ string: ''
68
69
  headers:
69
70
  Content-Length:
70
71
  - '0'
72
+ X-API-KEY:
73
+ - <QT_KEY>
71
74
  response:
72
75
  status:
73
76
  code: 200
@@ -77,22 +80,20 @@ http_interactions:
77
80
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
78
81
  Content-Type:
79
82
  - application/json; charset=utf-8
80
- X-Ua-Compatible:
81
- - IE=Edge,chrome=1
82
83
  Etag:
83
- - '"7a0e82058e0967acd003c34773247471"'
84
+ - W/"40312644ecf405e800108a74b7713a6e"
84
85
  Cache-Control:
85
86
  - max-age=0, private, must-revalidate
86
87
  X-Request-Id:
87
- - 78ec0205e128e9065aac1e18500e1af8
88
+ - d0befcce-9ec0-4bdb-b486-90057e9e9fea
88
89
  X-Runtime:
89
- - '0.148469'
90
- Vary:
91
- - Origin
90
+ - '0.314239'
92
91
  Date:
93
- - Fri, 01 Jan 2016 02:32:30 GMT
92
+ - Fri, 01 Jan 2016 02:32:07 GMT
94
93
  X-Rack-Cache:
95
94
  - miss
95
+ Vary:
96
+ - Origin
96
97
  X-Content-Type-Options:
97
98
  - nosniff
98
99
  X-Download-Options:
@@ -106,16 +107,17 @@ http_interactions:
106
107
  Server:
107
108
  - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26)
108
109
  Content-Length:
109
- - '2234'
110
+ - '3185'
110
111
  Connection:
111
112
  - Keep-Alive
112
113
  Set-Cookie:
113
- - _quick_travel_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTg0NGNhYWMxY2Y3NjhjMjYxMzIxN2VjNmU4OGUyMzQ5BjsAVEkiCXVzZXIGOwBGaQY%3D--1dbaa3e212b3a805269c1f830a0de62d6f064eb7;
114
+ - _session_id=MEsyVHk2N2NtN0c1VkhmTVh3Q2Z3RUR5L3A1RGF2elhzcExmSmFBelV5RnNVUE9QdDc2ZmhnM1gxRE0rVmYxSGkyV2dqcVM3WWtTNGVGSVlpb3lORGdHSmFnY0loUzlKdXRsTTVXZGRUQm89LS04M1hETkhJVE5UNzZyZTl1bE4xYWR3PT0%3D--3901f6323b14f477468f42d52007aca5f47416fe;
114
115
  path=/; HttpOnly
115
116
  body:
116
117
  encoding: UTF-8
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":[]}'
118
+ 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,"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:06.000+10:30","updated_at":"2016-01-01T13:02:06.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":{},"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
119
+ 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
120
+ 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":[]}'
119
121
  http_version:
120
- recorded_at: Fri, 28 Oct 2016 05:28:07 GMT
121
- recorded_with: VCR 3.0.3
122
+ recorded_at: Wed, 21 Mar 2018 04:40:14 GMT
123
+ recorded_with: VCR 4.0.0