level_travel 0.3.0 → 0.4.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 +7 -1
- data/lib/level_travel/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f938dac47361c3c080e2d12723e5930f1507986b5396f8f3033286d208a051f1
|
4
|
+
data.tar.gz: ad67c3766b3afee27b2dfe1335b002d1a591874f71a468abc69b5cb90c66dc6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2359995c4bce23c119db8865cc637412156b8a58f82d69abcae12c2ab2df1d16a37f60ebe92af599321adf8c12a971df6f765506918be12919cd4ef782d08ae
|
7
|
+
data.tar.gz: b2977a89e6c07475b108fea4c7c3d8b1c0a51d99cdb904d9ee369e9eab88f56b992eb7c8ee9661ec22e0e40e6b7145c5a8c0c08066064fbd3d9d2395fd4f787a
|
@@ -25,7 +25,7 @@ module LevelTravel
|
|
25
25
|
# :reek:BooleanParameter
|
26
26
|
# :reek:LongParameterList
|
27
27
|
# @param request_id [String] Request ID from the `enqueue` request
|
28
|
-
# @param hotel_id [
|
28
|
+
# @param hotel_id [Integer] Hotel ID from the `get_grouped_hotels` request
|
29
29
|
# @param operator_ids [Array<Integer>] Operators' IDs. Succeeded IDs from the result of status request.
|
30
30
|
# @param compact [Boolean] Return tours without additional information if it's true.
|
31
31
|
def self.get_hotel_offers(request_id, hotel_id:, operator_ids: [], compact: false)
|
@@ -34,6 +34,12 @@ module LevelTravel
|
|
34
34
|
::LevelTravel::Request.get('/search/get_hotel_offers', request_id: request_id, hotel_id: hotel_id, **params)
|
35
35
|
end
|
36
36
|
|
37
|
+
# @param request_id [String] Request ID from the `enqueue` request
|
38
|
+
# @param tour_id [Integer] Tour ID from the `get_hotel_offers` request
|
39
|
+
def self.actualize(request_id, tour_id:)
|
40
|
+
::LevelTravel::Request.get('/search/actualize', request_id: request_id, tour_id: tour_id)
|
41
|
+
end
|
42
|
+
|
37
43
|
# @param operator_ids [Array<Integer>] Operators' IDs. Succeeded IDs from the result of status request.
|
38
44
|
# @param other_params [Hash]
|
39
45
|
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.4.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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|