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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f79a79fb8c74ac5071faf1a6453abbd80a96822
4
- data.tar.gz: 97b56432745191b7e78fa76e06c450b29f434de3
3
+ metadata.gz: 754959226a3f2cec2b744f602504fa9dfa2dc712
4
+ data.tar.gz: 03710b5830a1fea6d97016e3fd7a1cc0f3953377
5
5
  SHA512:
6
- metadata.gz: 5d533fa5fec8ce3a37fe85a705a19f74269c27cbd7829bfd510b9ba593206e4c7a047e66e6f1b81241d96d55ddec5ed49e7e9df1b8b9b394f89a3df3285e834b
7
- data.tar.gz: 7f1bb5ab71a46c56ec2e3395968908163378a4859bee12f9bd1108d2bbb25b746b0f3fdd338088bf5c871c8daa6934ea872eead3fb9fbc25d64747aacea98d34
6
+ metadata.gz: a0da19f7ff1f55210111260e80622c88439ebba118910fe6511ec28dd672453cfcaddc382faa1acaa74641edcee9211c1021de88e28349a55474ee0221b5ff6d
7
+ data.tar.gz: f6f4fc0bb81573ca9b6c21fd9fc51b2af5718acecabc5e8b4a7e055cd1e7b572fbd25ad453f67ad6f9966ba7d4361829f685110db3602b60eea5105af05398f9
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module ExpediaApi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.20"
3
3
  end
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.9
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-17 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler