quicktravel_client 4.0.0 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +22 -0
- data/lib/quick_travel/adapter.rb +3 -0
- data/lib/quick_travel/checkout.rb +3 -2
- data/lib/quick_travel/party.rb +8 -3
- data/lib/quick_travel/vehicle_type.rb +1 -1
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +1 -1
- data/spec/support/cassettes/accommodation_reserve.yml +5 -5
- data/spec/support/cassettes/basic_product_scheduled_trips.yml +2 -2
- data/spec/support/cassettes/basic_product_scheduled_trips_multi_sector.yml +2 -2
- data/spec/support/cassettes/basic_product_scheduled_trips_unbookable.yml +2 -2
- data/spec/support/cassettes/booking_update.yml +3 -3
- data/spec/support/cassettes/booking_with_nested_attributes.yml +4 -4
- data/spec/support/cassettes/create_reservation_with_booking.yml +2 -2
- data/spec/support/cassettes/price_quote.yml +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ffa50ab5505f3f53eecd16832a82eccba240f45e21a2fe73b7fb7c5004f241
|
4
|
+
data.tar.gz: abb13a40b9ae0fb61893cff5cb9f5e83372e0633b0035419e060d4be70a1b746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05fb7f9ee4835df9ff9f7c5aac7671c0508a57eec2ee7330dad785e4a4126c53b90a33e0e7ee0572e9c337ba187099072262694bca525b290e62c5b056bce633
|
7
|
+
data.tar.gz: b01fb44e29aee1a5ebcdf7a3725e0b5e4e179e64ae52e22ff878bacd7ff98e6001b0e27a9dd9a2f96c26936b7ad193d45c168c498dd7ac0463c5db5416c13c90
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
+
## [4.3.2]
|
7
|
+
### Fixed
|
8
|
+
- [TT-8511] Revert party lookup via the API endpoint
|
9
|
+
|
10
|
+
## [4.3.1]
|
11
|
+
### Fixed
|
12
|
+
- [TT-8471] Fix missing QuickTravel:VERSION const error
|
13
|
+
|
14
|
+
## [4.3.0]
|
15
|
+
### Changed
|
16
|
+
- [TT-8142] Add suitable user-agent header
|
17
|
+
- [TT-8379] Switch to using api/parties endpoint
|
18
|
+
|
19
|
+
## [4.2.0]
|
20
|
+
### Changed
|
21
|
+
- [TT-7969] Update cassettes to work with HttpParty >= 0.18.1
|
22
|
+
- [TT-7912] Update api status endpoint to the new response format
|
23
|
+
|
24
|
+
## [4.1.0]
|
25
|
+
### Added
|
26
|
+
- [TT-7788] Add API namespace to vehicle_types endpoint
|
27
|
+
|
6
28
|
## [4.0.0]
|
7
29
|
- [TT-7385] Update Money dependency, test against Ruby 2.7 / Rails 6
|
8
30
|
|
data/lib/quick_travel/adapter.rb
CHANGED
@@ -9,6 +9,7 @@ require 'facets/hash/delete_values'
|
|
9
9
|
require 'quick_travel/config'
|
10
10
|
require 'quick_travel/adapter_error'
|
11
11
|
require 'quick_travel/init_from_hash'
|
12
|
+
require 'quick_travel/version'
|
12
13
|
|
13
14
|
module QuickTravel
|
14
15
|
class Adapter
|
@@ -214,6 +215,8 @@ module QuickTravel
|
|
214
215
|
http_params[:headers] ||= {}
|
215
216
|
http_params[:headers]['Content-length'] = '0' if http_params[:body].blank?
|
216
217
|
http_params[:headers]['x-api-key'] = QuickTravel.config.access_key
|
218
|
+
http_params[:headers]['user-agent'] = 'quicktravel_client/' + QuickTravel::VERSION;
|
219
|
+
|
217
220
|
expect = http_params.delete(:expect)
|
218
221
|
|
219
222
|
# Use :body instead of :query for put/post.
|
@@ -29,10 +29,11 @@ module QuickTravel
|
|
29
29
|
# When complete:
|
30
30
|
# progress: 'completed'
|
31
31
|
#
|
32
|
-
# When failed, status :
|
32
|
+
# When failed, status :ok
|
33
|
+
# successful: false
|
33
34
|
# error: 'Reason for failure'
|
34
35
|
def self.status(id)
|
35
|
-
build_checkout_for { get_and_validate("/api/checkouts/#{id}.json") }
|
36
|
+
build_checkout_for { get_and_validate("/api/checkouts/#{id}.json?v=1") }
|
36
37
|
end
|
37
38
|
|
38
39
|
def self.update(id, data)
|
data/lib/quick_travel/party.rb
CHANGED
@@ -7,9 +7,10 @@ module QuickTravel
|
|
7
7
|
|
8
8
|
def initialize(hash = {})
|
9
9
|
super
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
# TODO Fix the QT endpoint to actual return the type, first step
|
11
|
+
# is to revert it so we can fix the pacts, than we can update the
|
12
|
+
# expectations to include a return value
|
13
|
+
@type = 'Person'
|
13
14
|
end
|
14
15
|
|
15
16
|
self.api_base = '/parties'
|
@@ -18,6 +19,10 @@ module QuickTravel
|
|
18
19
|
get_and_validate('/parties/find_by_login.json', options)
|
19
20
|
end
|
20
21
|
|
22
|
+
def self.create(options = {})
|
23
|
+
post_and_validate("/api/parties.json", options)
|
24
|
+
end
|
25
|
+
|
21
26
|
# Asks QuickTravel to check the credentials
|
22
27
|
#
|
23
28
|
# @returns: Party: Valid Credentials
|
data/lib/quick_travel/version.rb
CHANGED
data/quicktravel_client.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency 'httparty'
|
19
|
+
spec.add_dependency 'httparty', '>= 0.18.1'
|
20
20
|
spec.add_dependency 'activesupport', '>= 5.0.0'
|
21
21
|
spec.add_dependency 'facets'
|
22
22
|
spec.add_dependency 'money', '>= 6.0'
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/accommodations/create_or_update.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: reservations
|
8
|
+
string: reservations%5Bresource_id%5D=6&reservations%5Bbed_configuration_id%5D=1&reservations%5Bfirst_travel_date%5D=01%2F03%2F2016&reservations%5Blast_travel_date%5D=02%2F03%2F2016&booking_id=4
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -54,7 +54,7 @@ http_interactions:
|
|
54
54
|
body:
|
55
55
|
encoding: UTF-8
|
56
56
|
string: ''
|
57
|
-
http_version:
|
57
|
+
http_version:
|
58
58
|
recorded_at: Wed, 21 Mar 2018 04:40:20 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
Discount Hilton","description":"","display_name":"Test Discount Hilton"}],"package":false,"sub_reservation_depth":0,"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}],"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
|
122
122
|
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
|
123
123
|
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":[]}'
|
124
|
-
http_version:
|
124
|
+
http_version:
|
125
125
|
recorded_at: Wed, 21 Mar 2018 04:40:21 GMT
|
126
126
|
- request:
|
127
127
|
method: get
|
@@ -188,7 +188,7 @@ http_interactions:
|
|
188
188
|
Discount Hilton","description":"","display_name":"Test Discount Hilton"}],"package":false,"sub_reservation_depth":0,"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}],"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
|
189
189
|
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
|
190
190
|
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":[]}'
|
191
|
-
http_version:
|
191
|
+
http_version:
|
192
192
|
recorded_at: Wed, 21 Mar 2018 04:40:21 GMT
|
193
193
|
- request:
|
194
194
|
method: get
|
@@ -249,6 +249,6 @@ http_interactions:
|
|
249
249
|
Hotel - Executive Room","client_type_ids":[],"category":null,"location_ids":[5],"current_description":"\u003cp\u003eA
|
250
250
|
basic studio room\u003c/p\u003e","graphics":[],"graphic_names":[],"property_name":"Hilton
|
251
251
|
Hotel","ticket_template":null,"expiry_days":null}]'
|
252
|
-
http_version:
|
252
|
+
http_version:
|
253
253
|
recorded_at: Wed, 21 Mar 2018 04:40:22 GMT
|
254
254
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=1&route_id=1&forward
|
8
|
+
string: product_type_id=1&route_id=1&forward%5Bfirst_travel_date%5D=2016-03-01&forward%5Bpassenger_types%5D%5B1%5D=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -64,6 +64,6 @@ http_interactions:
|
|
64
64
|
class=\"money positive\"\u003e$40.00\u003c/span\u003e\u0026nbsp;\u003c/span\u003e","price_breakdown_passengers_in_cents":4000,"price_breakdown_vehicles_in_cents":0,"trip_id":5,"stop_departure_time":"2000-01-01T18:00:00.000Z","stop_arrival_time":"2000-01-01T18:45:00.000Z","from_route_stop_attributes":null,"to_route_stop_attributes":null,"departure_time":"2000-01-01T18:00:00.000Z","arrival_time":"2000-01-01T18:45:00.000Z"},{"product_id":"6","product_id_field":"trip_id","resource_id":1,"resource_class_name_underscore":"ship","product_name_underscore":"ferry","tariff_level_id":1,"service_ids":[14],"first_travel_date":"01-03-2016","last_travel_date":"01-03-2016","time_class":"","exception_type":null,"bookable":true,"reason_unbookable":null,"service_notes":null,"booking_notes":null,"inventory_type_code":"A","price_in_cents":4000,"pre_adjusted_price_in_cents":4000,"total_price_adjustment_in_cents":0,"adjustments":[],"selection_name":"09:00pm
|
65
65
|
- KI Ferry","price_breakdown":"\u003cspan\u003e\u003cstrong\u003ePassengers:\u003c/strong\u003e\u0026nbsp;\u003cspan
|
66
66
|
class=\"money positive\"\u003e$40.00\u003c/span\u003e\u0026nbsp;\u003c/span\u003e","price_breakdown_passengers_in_cents":4000,"price_breakdown_vehicles_in_cents":0,"trip_id":6,"stop_departure_time":"2000-01-01T21:00:00.000Z","stop_arrival_time":"2000-01-01T21:45:00.000Z","from_route_stop_attributes":null,"to_route_stop_attributes":null,"departure_time":"2000-01-01T21:00:00.000Z","arrival_time":"2000-01-01T21:45:00.000Z"}]'
|
67
|
-
http_version:
|
67
|
+
http_version:
|
68
68
|
recorded_at: Wed, 21 Mar 2018 04:40:37 GMT
|
69
69
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=6&route_id=3&forward
|
8
|
+
string: product_type_id=6&route_id=3&forward%5Bfirst_travel_date%5D=2016-03-01&forward%5Bfrom_route_stop_id%5D=5&forward%5Bto_route_stop_id%5D=14&forward%5Bpassenger_types%5D%5B1%5D=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -64,6 +64,6 @@ http_interactions:
|
|
64
64
|
class=\"money positive\"\u003e$30.00\u003c/span\u003e\u0026nbsp;\u003c/span\u003e","price_breakdown_passengers_in_cents":3000,"price_breakdown_vehicles_in_cents":0,"trip_id":13,"stop_departure_time":"2000-01-01T15:45:00.000Z","stop_arrival_time":"2000-01-01T17:30:00.000Z","from_route_stop_attributes":{"id":5,"inventory_controlled":true,"route_id":3,"position":1,"created_at":null,"updated_at":null,"stop_id":3,"name":"Adelaide
|
65
65
|
Central Bus Station","code":"ACBS"},"to_route_stop_attributes":{"id":14,"inventory_controlled":true,"route_id":3,"position":10,"created_at":null,"updated_at":null,"stop_id":12,"name":"Cape
|
66
66
|
Jervis Ferry Terminal","code":null},"departure_time":"2000-01-01T15:00:00.000Z","arrival_time":"2000-01-01T17:30:00.000Z"}]'
|
67
|
-
http_version:
|
67
|
+
http_version:
|
68
68
|
recorded_at: Wed, 21 Mar 2018 04:40:38 GMT
|
69
69
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/reservation_for/scheduled_trips/find_services_for.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: product_type_id=1&route_id=1&forward
|
8
|
+
string: product_type_id=1&route_id=1&forward%5Bfirst_travel_date%5D=2016-03-03&forward%5Bpassenger_types%5D%5B1%5D=2
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -56,6 +56,6 @@ http_interactions:
|
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: "[]"
|
59
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Wed, 21 Mar 2018 04:40:37 GMT
|
61
61
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ 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
|
8
|
+
string: booking%5Bcustomer_contact_name%5D=John
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
58
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
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
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":[]}'
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Wed, 21 Mar 2018 04:40:13 GMT
|
63
63
|
- request:
|
64
64
|
method: get
|
@@ -118,6 +118,6 @@ http_interactions:
|
|
118
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
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
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":[]}'
|
121
|
-
http_version:
|
121
|
+
http_version:
|
122
122
|
recorded_at: Wed, 21 Mar 2018 04:40:14 GMT
|
123
123
|
recorded_with: VCR 4.0.0
|
@@ -83,14 +83,14 @@ http_interactions:
|
|
83
83
|
notes_for_vendor","vendor_staff note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"id":3,"consumer_id":1,"consumer_splittable_id":2,"gross_in_cents":6000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":4,"consumer_id":2,"consumer_splittable_id":2,"gross_in_cents":6000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"id":1,"consumer_id":1,"consumer_splittable_id":1,"gross_in_cents":0,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":2,"consumer_id":2,"consumer_splittable_id":1,"gross_in_cents":0,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"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
|
84
84
|
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
|
85
85
|
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":[]}'
|
86
|
-
http_version:
|
86
|
+
http_version:
|
87
87
|
recorded_at: Wed, 21 Mar 2018 04:40:17 GMT
|
88
88
|
- request:
|
89
89
|
method: put
|
90
90
|
uri: http://test.qt.sealink.com.au:8080/api/bookings/1/update_with_nested_attributes.json
|
91
91
|
body:
|
92
92
|
encoding: UTF-8
|
93
|
-
string: booking
|
93
|
+
string: booking%5Bcustomer_contact_name%5D=New%20Name&booking%5Bconsumers%5D%5B%5D%5Bid%5D=1&booking%5Bconsumers%5D%5B%5D%5Btitle%5D=Mr&booking%5Bconsumers%5D%5B%5D%5Bfirst_name%5D=New&booking%5Bconsumers%5D%5B%5D%5Blast_name%5D=Name
|
94
94
|
headers:
|
95
95
|
Content-Length:
|
96
96
|
- '0'
|
@@ -141,7 +141,7 @@ http_interactions:
|
|
141
141
|
body:
|
142
142
|
encoding: UTF-8
|
143
143
|
string: '{"id":1}'
|
144
|
-
http_version:
|
144
|
+
http_version:
|
145
145
|
recorded_at: Wed, 21 Mar 2018 04:40:18 GMT
|
146
146
|
- request:
|
147
147
|
method: get
|
@@ -227,6 +227,6 @@ http_interactions:
|
|
227
227
|
notes_for_vendor","vendor_staff note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"id":3,"consumer_id":1,"consumer_splittable_id":2,"gross_in_cents":6000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":4,"consumer_id":2,"consumer_splittable_id":2,"gross_in_cents":6000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"id":1,"consumer_id":1,"consumer_splittable_id":1,"gross_in_cents":0,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":2,"consumer_id":2,"consumer_splittable_id":1,"gross_in_cents":0,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"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
|
228
228
|
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
|
229
229
|
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":[]}'
|
230
|
-
http_version:
|
230
|
+
http_version:
|
231
231
|
recorded_at: Wed, 21 Mar 2018 04:40:19 GMT
|
232
232
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/reservations.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: resource_id=4&first_travel_date=2016-03-01&passenger_types_numbers
|
8
|
+
string: resource_id=4&first_travel_date=2016-03-01&passenger_types_numbers%5B1%5D=2&passenger_types_numbers%5B2%5D=1
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -62,6 +62,6 @@ http_interactions:
|
|
62
62
|
Date:","date_end_label":"End Date:","expires":false,"expiry":"*NA*","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
|
63
63
|
Priced as: Rack Rate","gross_including_packaged_item_in_cents":0,"pre_adjusted_gross_including_packaged_item_in_cents":0,"gross_in_cents":0,"pre_adjusted_gross_in_cents":0,"pre_adjusted_commission_in_cents":0,"cost_in_cents":0,"rules":[],"package":false,"sub_reservation_depth":0,"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr
|
64
64
|
notes_for_vendor","vendor_staff note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[],"passenger_splits":[],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{}}'
|
65
|
-
http_version:
|
65
|
+
http_version:
|
66
66
|
recorded_at: Wed, 21 Mar 2018 04:40:41 GMT
|
67
67
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: reservations
|
8
|
+
string: reservations%5B%5D%5Bresource_id%5D=7&reservations%5B%5D%5Bquantity%5D=2&reservations%5B%5D%5Bfirst_travel_date%5D=2016-04-15
|
9
9
|
headers:
|
10
10
|
Content-Length:
|
11
11
|
- '0'
|
@@ -56,14 +56,14 @@ http_interactions:
|
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
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
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
63
|
uri: http://test.qt.sealink.com.au:8080/api/price_quotes/calculate
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string: reservations
|
66
|
+
string: reservations%5B%5D%5Bresource_id%5D=7&reservations%5B%5D%5Bquantity%5D=3&reservations%5B%5D%5Bfirst_travel_date%5D=2016-04-15
|
67
67
|
headers:
|
68
68
|
Content-Length:
|
69
69
|
- '0'
|
@@ -116,6 +116,6 @@ http_interactions:
|
|
116
116
|
string: '{"quoted_booking_gross_in_cents":4800,"original_booking_gross_in_cents":0,"applied_rules":["Special
|
117
117
|
Offer"],"quoted_booking_breakdown":[{"quoted_gross_in_cents":4800,"original_gross_in_cents":0,"applied_rules":["Special
|
118
118
|
Offer"],"reservation":{"id":null,"resource_id":7,"first_travel_date":"2016-04-15","passengers":{},"vehicles":[]},"new":true,"deleted":false}]}'
|
119
|
-
http_version:
|
119
|
+
http_version:
|
120
120
|
recorded_at: Wed, 21 Mar 2018 04:40:31 GMT
|
121
121
|
recorded_with: VCR 4.0.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quicktravel_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.18.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 0.18.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: activesupport
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|