quicktravel_client 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/quick_travel/booking.rb +2 -2
- data/lib/quick_travel/payment.rb +0 -9
- data/lib/quick_travel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c9018805cdd67dabe2ce5734b1e77ff74799d8
|
4
|
+
data.tar.gz: 84ee1beccfb595959bea820a4d4af488bccfc2d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b381fd74cf0ec2c182bf4c33a6410ab7fa4ee47627e740064a5bcb5d47532439db808db066c51a001da5d72f26bc686fbe673d55e2a2eae0c00b73b9fd91f6fb
|
7
|
+
data.tar.gz: 2c7699e89866bdd772b24f785cd85f70e0ae36cc4d000dd87b2049754293f99fd0a1a0479900ca4179a417e2da8973ef1618c79c9f8210bd0eea8415e88003e2
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,13 @@ 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
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [3.5.0]
|
9
|
+
###
|
10
|
+
- [TT-3147] Remove unused payment methods
|
11
|
+
- [TT-3278] Add full_response option to booking update
|
12
|
+
|
6
13
|
## [3.4.0]
|
7
14
|
###
|
8
15
|
- Properties now return their associated location and types
|
data/lib/quick_travel/booking.rb
CHANGED
@@ -59,8 +59,8 @@ module QuickTravel
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Update an existing booking
|
62
|
-
def update(options = {})
|
63
|
-
response = put_and_validate("#{api_base}/#{@id}.json", booking:
|
62
|
+
def update(attrs = {}, options = {})
|
63
|
+
response = put_and_validate("#{api_base}/#{@id}.json", options.merge(booking: attrs))
|
64
64
|
# id is returned if other attributes change otherwise success: true
|
65
65
|
fail AdapterError.new(response) unless response['id'] || response['success']
|
66
66
|
|
data/lib/quick_travel/payment.rb
CHANGED
@@ -7,15 +7,6 @@ module QuickTravel
|
|
7
7
|
QuickTravel::PaymentType.find(@payment_type_id)
|
8
8
|
end
|
9
9
|
|
10
|
-
def self.get_redirect_url(options)
|
11
|
-
response = get_and_validate("/api/checkouts/migs_redirect_url.json", options)
|
12
|
-
response[:redirect_url]
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.handle_redirected_payment(options)
|
16
|
-
get_and_validate('/api/redirected_payments', options)
|
17
|
-
end
|
18
|
-
|
19
10
|
def self.charge_account(booking, payment_options = {})
|
20
11
|
payment_type = booking.on_account_payment_type
|
21
12
|
|
data/lib/quick_travel/version.rb
CHANGED
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: 3.
|
4
|
+
version: 3.5.0
|
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: 2017-
|
13
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -429,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
429
429
|
version: '0'
|
430
430
|
requirements: []
|
431
431
|
rubyforge_project:
|
432
|
-
rubygems_version: 2.
|
432
|
+
rubygems_version: 2.5.2
|
433
433
|
signing_key:
|
434
434
|
specification_version: 4
|
435
435
|
summary: Booking process using QuickTravel API
|