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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f938dac47361c3c080e2d12723e5930f1507986b5396f8f3033286d208a051f1
4
- data.tar.gz: ad67c3766b3afee27b2dfe1335b002d1a591874f71a468abc69b5cb90c66dc6e
3
+ metadata.gz: 44502eb17d2849d9a9d31728b28a69828a010bb6559ae40760f6c7f785e4e52f
4
+ data.tar.gz: f46cc798104dc43a16e6c5c0bd968c8de07554c0bb4a3226bd53ba554d0f6cfd
5
5
  SHA512:
6
- metadata.gz: a2359995c4bce23c119db8865cc637412156b8a58f82d69abcae12c2ab2df1d16a37f60ebe92af599321adf8c12a971df6f765506918be12919cd4ef782d08ae
7
- data.tar.gz: b2977a89e6c07475b108fea4c7c3d8b1c0a51d99cdb904d9ee369e9eab88f56b992eb7c8ee9661ec22e0e40e6b7145c5a8c0c08066064fbd3d9d2395fd4f787a
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 [Integer] Tour ID from the `get_hotel_offers` request
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LevelTravel
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.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.4.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-15 00:00:00.000000000 Z
11
+ date: 2020-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct