level_travel 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/level_travel/search/request.rb +9 -1
- data/lib/level_travel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44502eb17d2849d9a9d31728b28a69828a010bb6559ae40760f6c7f785e4e52f
|
4
|
+
data.tar.gz: f46cc798104dc43a16e6c5c0bd968c8de07554c0bb4a3226bd53ba554d0f6cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5090859c773f9d38d6d2232fb3dcc55d6283ef38964c27021235cf3aec9f09e4ddbcafd229ac2ece60fa23fefd46c5fae911820f4cf28d2611b4eb635e16041a
|
7
|
+
data.tar.gz: 21d6a7b21f23746149df5e9aff98ca21e8c51d54cbcaa6992b68e10c6fe6aa2a12cec98bec78e374a1aa3b30363473e80306721b00cb8bc8bc6c3fa076b9f8a8
|
@@ -35,11 +35,19 @@ module LevelTravel
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# @param request_id [String] Request ID from the `enqueue` request
|
38
|
-
# @param tour_id [
|
38
|
+
# @param tour_id [String] Tour ID from the `get_hotel_offers` request
|
39
39
|
def self.actualize(request_id, tour_id:)
|
40
40
|
::LevelTravel::Request.get('/search/actualize', request_id: request_id, tour_id: tour_id)
|
41
41
|
end
|
42
42
|
|
43
|
+
# @param request_id [String] Request ID from the `enqueue` request
|
44
|
+
# @param tour_id [String] Tour ID from the `get_hotel_offers` request
|
45
|
+
# @param from_package [Integer] To link previous offer to the current
|
46
|
+
def self.get_offer(request_id, tour_id:, from_package: nil)
|
47
|
+
params = from_package ? { from_package: from_package } : {}
|
48
|
+
::LevelTravel::Request.get('/search/get_offer', request_id: request_id, tour_id: tour_id, **params)
|
49
|
+
end
|
50
|
+
|
43
51
|
# @param operator_ids [Array<Integer>] Operators' IDs. Succeeded IDs from the result of status request.
|
44
52
|
# @param other_params [Hash]
|
45
53
|
def self.prepare_params(operator_ids:, **other_params)
|
data/lib/level_travel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: level_travel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Rodionov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|