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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5955c3217ef6975f8e6aef4df6e15fe6c2d9d4dc59f34aeaea60a171a47c8e87
4
- data.tar.gz: 9d384e0fba3208744e7d47ec7a75dd06db429b3aa40a25e556ad54815ea1f61e
3
+ metadata.gz: f938dac47361c3c080e2d12723e5930f1507986b5396f8f3033286d208a051f1
4
+ data.tar.gz: ad67c3766b3afee27b2dfe1335b002d1a591874f71a468abc69b5cb90c66dc6e
5
5
  SHA512:
6
- metadata.gz: 9a44dbe6fdc88844c84fcfec3de7a8a1d004e79aa0a9ef142def3aca5114ffa1936411d3a0b2424d064b6fbb692d4c8d0ec2271ae4d53299eefbc277d649d2f0
7
- data.tar.gz: 53ca507a50692163cb0afd98c58ca295378f832d80cf7ea3e92ad8abd9cc25e3b96ad3d050c8b2300053cad0dc5d7275fbc0e63d110b7e33d8b478350a863f9e
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 [String] Hotel ID from the `get_grouped_hotels` request
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LevelTravel
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
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.3.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-13 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
96
+ version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement