amadeus 3.2.0 → 3.3.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: 33afbcef68b900474c70352624925efda0d95a2cd97426bfa30297b736d94c5f
4
- data.tar.gz: bef8a5c017e946d1ed34af797ee40ddfdf7b389cc8784dfa1804cc3aa348f57d
3
+ metadata.gz: ec95cf5f3ba9c2cc68cca517f1feb2f9c2ab97ab61b8220338c619a3ca071b88
4
+ data.tar.gz: 3c499ba802220e9e4b89e99276c6ff5481b6eaa4a7f7df4eaca73f18dfdcb07b
5
5
  SHA512:
6
- metadata.gz: d239a6e9a1faf94826954eb219f8e790106e4b6c0f987c1752757042798aa9995ac84fe7cc9bea1a93454ce7e7e18606541d78a37cfa09cc03a473760a97dad7
7
- data.tar.gz: 9c41fcfd7266d6f74014a282bab7a1660daf0f532e7777a6ee7c8a140d84c94a698036a86fcdc214983a42f6e19674aa7920c55762d434acfd389d5f9e2b7331
6
+ metadata.gz: 7a10be7c20276302a2571a504f7724dc633b1bc9739bbbe0c8b63bcee3e1bf6011ec347cc9b83b4164dfdc41541b81b9dba89e2b0cc294d5c328723728e2ac34
7
+ data.tar.gz: e7e802567729d52e770defbfa597a601bee86593b214798bee8cc201f9002e9333bbe7c9f05d8605083fc8ec8e3162acd43478a983ba96600361e99ecaf620fd
@@ -1,8 +1,14 @@
1
1
  # Changelog
2
+ ## 3.3.0 - 2019-11-12
3
+ Release of the [Hotel Ratings](https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-ratings)
4
+
5
+ > The Hotel Ratings API uses a sentiment analysis algorithm to return an overall rating for a hotel as well as ratings for different criteria like location, comfort, service, staff, internet, food, facilities, pool or sleep quality. The ratings are on a scale of 0 to 100. The API is used to provide valuable content during the hotel search and shopping experience and permits hotel results to sorted by overall ratings or category ratings.
6
+
2
7
  ## 3.2.0 - 2019-05-08
3
8
  Release of the [Flight Choice Prediction API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-choice-prediction)
4
9
 
5
10
  > The Flight Choice Prediction API allows developers to forecast traveler choices in the context of search & shopping. Exposing machine learning & AI services for travel, this API consumes the output of the Flight Low-fare Search API and returns augmented content with probabilities of choices for each flight offers.
11
+
6
12
  ## 3.1.0 - 2019-03-25
7
13
  Release of the [Point of Interest API](https://developers.amadeus.com/self-service/category/210/api-doc/55)
8
14
 
@@ -51,7 +57,7 @@ Release of the [Point of Interest API](https://developers.amadeus.com/self-servi
51
57
 
52
58
  ## 1.1.0 - 2018-08-01
53
59
 
54
- New version of the ruby gem to support our 3 new endpoints:
60
+ New version of the ruby gem to support our 3 new endpoints:
55
61
 
56
62
  * [Flight Most Booked Destinations](https://developers.amadeus.com/self-service/category/203/api-doc/27)
57
63
 
data/README.md CHANGED
@@ -223,7 +223,7 @@ amadeus.travel.analytics.air_traffic.busiest_period.get(
223
223
  direction: Amadeus::Direction::ARRIVING
224
224
  )
225
225
 
226
- # Hotel Search API
226
+ # Hotel Search
227
227
  # Get list of hotels by cityCode
228
228
  amadeus.shopping.hotel_offers.get(cityCode: 'MAD')
229
229
  # Get list of offers for a specific hotel
@@ -231,6 +231,10 @@ amadeus.shopping.hotel_offers_by_hotel.get(hotelId: 'IALONCHO')
231
231
  # Confirm the availability of a specific offer
232
232
  amadeus.shopping.hotel_offer('D5BEE9D0D08B6678C2F5FAD910DC110BCDA187D21D4FCE68ED423426D0A246BB').get
233
233
 
234
+ # Hotel Ratings
235
+ # What are the reviews for the Holiday INN Manhattan and the Hilton London Paddington
236
+ amadeus.e_reputation.hotel_sentiments.get(hotelIds: 'SJNYCAJA,TELONMFS')
237
+
234
238
  # Point of Interest
235
239
  # What are the popular places in Barcelona (based a geo location and a radius)
236
240
  amadeus.reference_data.locations.points_of_interest.get(latitude: 41.397158, longitude: 2.160873)
@@ -242,7 +246,6 @@ amadeus.reference_data.locations.points_of_interest.by_square.get(north: 41.3971
242
246
  Want to contribute? Read our [Contributors Guide](.github/CONTRIBUTING.md) for
243
247
  guidance on installing and running this code in a development environment.
244
248
 
245
-
246
249
  ## License
247
250
 
248
251
  This library is released under the [MIT License](LICENSE).
@@ -12,6 +12,8 @@ require 'amadeus/client'
12
12
  require 'amadeus/namespaces/travel'
13
13
  require 'amadeus/namespaces/shopping'
14
14
  require 'amadeus/namespaces/reference_data'
15
+ require 'amadeus/namespaces/e_reputation'
16
+ require 'amadeus/namespaces/e_reputation/hotel_sentiments'
15
17
  require 'amadeus/namespaces/reference_data/airlines'
16
18
  require 'amadeus/namespaces/reference_data/urls'
17
19
  require 'amadeus/namespaces/reference_data/urls/checkin_links'
@@ -47,5 +47,15 @@ module Amadeus
47
47
  def travel
48
48
  Travel.new(self)
49
49
  end
50
+
51
+ # The namespace for the E Reputation APIs:
52
+ #
53
+ # @return [Amadeus::Namespaces::EReputation]
54
+ # @example Some of the further namespaces available
55
+ # amadeus.e_reputation.hotel_sentiments
56
+ #
57
+ def e_reputation
58
+ EReputation.new(self)
59
+ end
50
60
  end
51
61
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Amadeus
4
+ module Namespaces
5
+ # A namespaced client for the
6
+ # +/v2/e-reputation+ endpoints
7
+ #
8
+ # Access via the +Amadeus::Client+ object
9
+ #
10
+ # amadeus = Amadeus::Client.new
11
+ # amadeus.e_reputation
12
+ #
13
+ class EReputation < Amadeus::Client::Decorator
14
+ # The namespace for the E Reputation APIs:
15
+ #
16
+ # @return [Amadeus::Namespaces::EReputation::HotelSentiments]
17
+ # @example
18
+ # amadeus.e_reputation.hotel_sentiments
19
+ #
20
+ def hotel_sentiments
21
+ Amadeus::Namespaces::EReputation::HotelSentiments.new(client)
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Amadeus
4
+ module Namespaces
5
+ class EReputation
6
+ # A namespaced client for the
7
+ # +/v2/e-reputation/hotel-sentiments+ endpoints
8
+ #
9
+ # Access via the +Amadeus::Client+ object
10
+ #
11
+ # amadeus = Amadeus::Client.new
12
+ # amadeus.e_reputation.hotel_sentiments
13
+ #
14
+ class HotelSentiments < Amadeus::Client::Decorator
15
+ # For a given list of hotels, returns the sentiment analysis of each hotel
16
+ #
17
+ # @option params [String] :hotelIds list of hotel ids separated by comas
18
+ # @return [Amadeus:Response] a parsed response
19
+ # @raise [Amadeus:Base] an exception if the call failed
20
+ # @example Search for hotels in London
21
+ # amadeus.e_reputation.hotel_sentiments.get(
22
+ # hotelIds: 'GUNYCAXZ,CTLONCMB'
23
+ # )
24
+ #
25
+ def get(params = {})
26
+ client.get('/v2/e-reputation/hotel-sentiments', params)
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Amadeus
4
4
  # The current client version
5
- VERSION = '3.2.0'.freeze
5
+ VERSION = '3.3.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amadeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amadeus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-05-28 00:00:00.000000000 Z
13
+ date: 2019-11-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: awesome_print
@@ -225,6 +225,8 @@ files:
225
225
  - lib/amadeus/client/response/parser.rb
226
226
  - lib/amadeus/client/validator.rb
227
227
  - lib/amadeus/namespaces/core.rb
228
+ - lib/amadeus/namespaces/e_reputation.rb
229
+ - lib/amadeus/namespaces/e_reputation/hotel_sentiments.rb
228
230
  - lib/amadeus/namespaces/reference_data.rb
229
231
  - lib/amadeus/namespaces/reference_data/airlines.rb
230
232
  - lib/amadeus/namespaces/reference_data/location.rb
@@ -270,7 +272,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
272
  - !ruby/object:Gem::Version
271
273
  version: '0'
272
274
  requirements: []
273
- rubygems_version: 3.0.3
275
+ rubyforge_project:
276
+ rubygems_version: 2.7.7
274
277
  signing_key:
275
278
  specification_version: 4
276
279
  summary: Amadeus travel APIs