expedia_api 0.1.9 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/expedia_api/client.rb +2 -1
- data/lib/expedia_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754959226a3f2cec2b744f602504fa9dfa2dc712
|
4
|
+
data.tar.gz: 03710b5830a1fea6d97016e3fd7a1cc0f3953377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0da19f7ff1f55210111260e80622c88439ebba118910fe6511ec28dd672453cfcaddc382faa1acaa74641edcee9211c1021de88e28349a55474ee0221b5ff6d
|
7
|
+
data.tar.gz: f6f4fc0bb81573ca9b6c21fd9fc51b2af5718acecabc5e8b4a7e055cd1e7b572fbd25ad453f67ad6f9966ba7d4361829f685110db3602b60eea5105af05398f9
|
data/lib/expedia_api/client.rb
CHANGED
@@ -105,7 +105,7 @@ module ExpediaApi
|
|
105
105
|
ExpediaApi::ResponseLists::Flights.new(exception: e)
|
106
106
|
end
|
107
107
|
|
108
|
-
def search_packages(hotel_ids: [], region_ids: [], from_date:, to_date:, from_airport:, to_airport:, other_options: {})
|
108
|
+
def search_packages(hotel_ids: [], region_ids: [], from_date:, to_date:, from_airport:, to_airport:, piid: nil, other_options: {})
|
109
109
|
# convert/validate the parameters. the api expects a comma separated
|
110
110
|
# string.
|
111
111
|
hotel_ids = hotel_ids.join(",") if hotel_ids.is_a?(Array) && hotel_ids.any?
|
@@ -114,6 +114,7 @@ module ExpediaApi
|
|
114
114
|
parameters = {}.merge(other_options)
|
115
115
|
parameters[:hotelids] = hotel_ids if hotel_ids.length
|
116
116
|
parameters[:regionids] = region_ids if region_ids.length
|
117
|
+
parameters[:piid] = piid if piid
|
117
118
|
# build the url for the request to match the specifications
|
118
119
|
path_uri = build_package_search_request_path(from_airport: from_airport, to_airport: to_airport, from_date: from_date, to_date: to_date)
|
119
120
|
base_uri = "/wsapi/rest/package/v1/search"
|
data/lib/expedia_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expedia_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hendrik Kleinwaechter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|