aylien_news_api 5.0.1 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +96 -31
  3. data/aylien_news_api.gemspec +1 -1
  4. data/docs/Category.md +3 -3
  5. data/docs/CategoryLinks.md +2 -0
  6. data/docs/DeprecatedStory.md +6 -2
  7. data/docs/DunsNumber.md +17 -0
  8. data/docs/Entity.md +3 -1
  9. data/docs/Error.md +1 -1
  10. data/docs/ExternalIds.md +17 -0
  11. data/docs/Story.md +6 -2
  12. data/lib/aylien_news_api/api/default_api.rb +1 -1
  13. data/lib/aylien_news_api/api_client.rb +1 -1
  14. data/lib/aylien_news_api/api_error.rb +1 -1
  15. data/lib/aylien_news_api/configuration.rb +1 -1
  16. data/lib/aylien_news_api/models/aggregated_sentiment.rb +1 -1
  17. data/lib/aylien_news_api/models/author.rb +1 -1
  18. data/lib/aylien_news_api/models/autocomplete.rb +1 -1
  19. data/lib/aylien_news_api/models/autocompletes.rb +1 -1
  20. data/lib/aylien_news_api/models/category.rb +40 -14
  21. data/lib/aylien_news_api/models/category_links.rb +16 -2
  22. data/lib/aylien_news_api/models/category_taxonomy.rb +2 -1
  23. data/lib/aylien_news_api/models/cluster.rb +1 -1
  24. data/lib/aylien_news_api/models/clusters.rb +1 -1
  25. data/lib/aylien_news_api/models/deprecated_entities.rb +1 -1
  26. data/lib/aylien_news_api/models/deprecated_entity.rb +1 -1
  27. data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +1 -1
  28. data/lib/aylien_news_api/models/deprecated_related_stories.rb +1 -1
  29. data/lib/aylien_news_api/models/deprecated_stories.rb +1 -1
  30. data/lib/aylien_news_api/models/deprecated_story.rb +28 -6
  31. data/lib/aylien_news_api/models/duns_number.rb +206 -0
  32. data/lib/aylien_news_api/models/entity.rb +14 -5
  33. data/lib/aylien_news_api/models/entity_in_text.rb +1 -1
  34. data/lib/aylien_news_api/models/entity_links.rb +1 -1
  35. data/lib/aylien_news_api/models/entity_mention.rb +1 -1
  36. data/lib/aylien_news_api/models/entity_mention_index.rb +1 -1
  37. data/lib/aylien_news_api/models/entity_sentiment.rb +1 -1
  38. data/lib/aylien_news_api/models/entity_surface_form.rb +1 -1
  39. data/lib/aylien_news_api/models/error.rb +2 -2
  40. data/lib/aylien_news_api/models/error_links.rb +1 -1
  41. data/lib/aylien_news_api/models/errors.rb +1 -1
  42. data/lib/aylien_news_api/models/external_ids.rb +210 -0
  43. data/lib/aylien_news_api/models/histogram_interval.rb +1 -1
  44. data/lib/aylien_news_api/models/histograms.rb +1 -1
  45. data/lib/aylien_news_api/models/location.rb +1 -1
  46. data/lib/aylien_news_api/models/logicals.rb +1 -1
  47. data/lib/aylien_news_api/models/media.rb +1 -1
  48. data/lib/aylien_news_api/models/media_format.rb +1 -1
  49. data/lib/aylien_news_api/models/media_type.rb +1 -1
  50. data/lib/aylien_news_api/models/nested_entity.rb +1 -1
  51. data/lib/aylien_news_api/models/parameter.rb +1 -1
  52. data/lib/aylien_news_api/models/query.rb +1 -1
  53. data/lib/aylien_news_api/models/rank.rb +1 -1
  54. data/lib/aylien_news_api/models/rankings.rb +1 -1
  55. data/lib/aylien_news_api/models/related_stories.rb +1 -1
  56. data/lib/aylien_news_api/models/representative_story.rb +1 -1
  57. data/lib/aylien_news_api/models/scope.rb +1 -1
  58. data/lib/aylien_news_api/models/scope_level.rb +1 -1
  59. data/lib/aylien_news_api/models/sentiment.rb +1 -1
  60. data/lib/aylien_news_api/models/sentiment_polarity.rb +1 -1
  61. data/lib/aylien_news_api/models/sentiments.rb +1 -1
  62. data/lib/aylien_news_api/models/share_count.rb +1 -1
  63. data/lib/aylien_news_api/models/share_counts.rb +1 -1
  64. data/lib/aylien_news_api/models/source.rb +1 -1
  65. data/lib/aylien_news_api/models/stories.rb +1 -1
  66. data/lib/aylien_news_api/models/story.rb +28 -6
  67. data/lib/aylien_news_api/models/story_cluster.rb +1 -1
  68. data/lib/aylien_news_api/models/story_links.rb +1 -1
  69. data/lib/aylien_news_api/models/story_translation.rb +1 -1
  70. data/lib/aylien_news_api/models/story_translations.rb +1 -1
  71. data/lib/aylien_news_api/models/summary.rb +1 -1
  72. data/lib/aylien_news_api/models/time_series.rb +1 -1
  73. data/lib/aylien_news_api/models/time_series_list.rb +1 -1
  74. data/lib/aylien_news_api/models/trend.rb +1 -1
  75. data/lib/aylien_news_api/models/trends.rb +1 -1
  76. data/lib/aylien_news_api/models/warning.rb +1 -1
  77. data/lib/aylien_news_api/version.rb +2 -2
  78. data/lib/aylien_news_api.rb +3 -1
  79. data/spec/api/default_api_spec.rb +1 -1
  80. data/spec/api_client_spec.rb +1 -1
  81. data/spec/configuration_spec.rb +1 -1
  82. data/spec/models/aggregated_sentiment_spec.rb +1 -1
  83. data/spec/models/author_spec.rb +1 -1
  84. data/spec/models/autocomplete_spec.rb +1 -1
  85. data/spec/models/autocompletes_spec.rb +1 -1
  86. data/spec/models/category_links_spec.rb +7 -1
  87. data/spec/models/category_spec.rb +4 -4
  88. data/spec/models/category_taxonomy_spec.rb +1 -1
  89. data/spec/models/cluster_spec.rb +1 -1
  90. data/spec/models/clusters_spec.rb +1 -1
  91. data/spec/models/deprecated_entities_spec.rb +1 -1
  92. data/spec/models/deprecated_entity_spec.rb +1 -1
  93. data/spec/models/deprecated_entity_surface_form_spec.rb +1 -1
  94. data/spec/models/deprecated_related_stories_spec.rb +1 -1
  95. data/spec/models/deprecated_stories_spec.rb +1 -1
  96. data/spec/models/deprecated_story_spec.rb +13 -1
  97. data/spec/models/duns_number_spec.rb +41 -0
  98. data/spec/models/entity_in_text_spec.rb +1 -1
  99. data/spec/models/entity_links_spec.rb +1 -1
  100. data/spec/models/entity_mention_index_spec.rb +1 -1
  101. data/spec/models/entity_mention_spec.rb +1 -1
  102. data/spec/models/entity_sentiment_spec.rb +1 -1
  103. data/spec/models/entity_spec.rb +7 -1
  104. data/spec/models/entity_surface_form_spec.rb +1 -1
  105. data/spec/models/error_links_spec.rb +1 -1
  106. data/spec/models/error_spec.rb +1 -1
  107. data/spec/models/errors_spec.rb +1 -1
  108. data/spec/models/external_ids_spec.rb +41 -0
  109. data/spec/models/histogram_interval_spec.rb +1 -1
  110. data/spec/models/histograms_spec.rb +1 -1
  111. data/spec/models/location_spec.rb +1 -1
  112. data/spec/models/logicals_spec.rb +1 -1
  113. data/spec/models/media_format_spec.rb +1 -1
  114. data/spec/models/media_spec.rb +1 -1
  115. data/spec/models/media_type_spec.rb +1 -1
  116. data/spec/models/nested_entity_spec.rb +1 -1
  117. data/spec/models/parameter_spec.rb +1 -1
  118. data/spec/models/query_spec.rb +1 -1
  119. data/spec/models/rank_spec.rb +1 -1
  120. data/spec/models/rankings_spec.rb +1 -1
  121. data/spec/models/related_stories_spec.rb +1 -1
  122. data/spec/models/representative_story_spec.rb +1 -1
  123. data/spec/models/scope_level_spec.rb +1 -1
  124. data/spec/models/scope_spec.rb +1 -1
  125. data/spec/models/sentiment_polarity_spec.rb +1 -1
  126. data/spec/models/sentiment_spec.rb +1 -1
  127. data/spec/models/sentiments_spec.rb +1 -1
  128. data/spec/models/share_count_spec.rb +1 -1
  129. data/spec/models/share_counts_spec.rb +1 -1
  130. data/spec/models/source_spec.rb +1 -1
  131. data/spec/models/stories_spec.rb +1 -1
  132. data/spec/models/story_cluster_spec.rb +1 -1
  133. data/spec/models/story_links_spec.rb +1 -1
  134. data/spec/models/story_spec.rb +13 -1
  135. data/spec/models/story_translation_spec.rb +1 -1
  136. data/spec/models/story_translations_spec.rb +1 -1
  137. data/spec/models/summary_spec.rb +1 -1
  138. data/spec/models/time_series_list_spec.rb +1 -1
  139. data/spec/models/time_series_spec.rb +1 -1
  140. data/spec/models/trend_spec.rb +1 -1
  141. data/spec/models/trends_spec.rb +1 -1
  142. data/spec/models/warning_spec.rb +1 -1
  143. data/spec/spec_helper.rb +1 -1
  144. metadata +10 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -17,6 +17,9 @@ module AylienNewsApi
17
17
  # A URL pointing to the parent category
18
18
  attr_accessor :parent
19
19
 
20
+ # A collection of URLs pointing to the category parents
21
+ attr_accessor :parents
22
+
20
23
  # A URL pointing to the category
21
24
  attr_accessor :_self
22
25
 
@@ -24,6 +27,7 @@ module AylienNewsApi
24
27
  def self.attribute_map
25
28
  {
26
29
  :'parent' => :'parent',
30
+ :'parents' => :'parents',
27
31
  :'_self' => :'self'
28
32
  }
29
33
  end
@@ -32,6 +36,7 @@ module AylienNewsApi
32
36
  def self.openapi_types
33
37
  {
34
38
  :'parent' => :'String',
39
+ :'parents' => :'Array<String>',
35
40
  :'_self' => :'String'
36
41
  }
37
42
  end
@@ -39,6 +44,8 @@ module AylienNewsApi
39
44
  # List of attributes with nullable: true
40
45
  def self.openapi_nullable
41
46
  Set.new([
47
+ :'parent',
48
+ :'parents',
42
49
  ])
43
50
  end
44
51
 
@@ -61,6 +68,12 @@ module AylienNewsApi
61
68
  self.parent = attributes[:'parent']
62
69
  end
63
70
 
71
+ if attributes.key?(:'parents')
72
+ if (value = attributes[:'parents']).is_a?(Array)
73
+ self.parents = value
74
+ end
75
+ end
76
+
64
77
  if attributes.key?(:'_self')
65
78
  self._self = attributes[:'_self']
66
79
  end
@@ -85,6 +98,7 @@ module AylienNewsApi
85
98
  return true if self.equal?(o)
86
99
  self.class == o.class &&
87
100
  parent == o.parent &&
101
+ parents == o.parents &&
88
102
  _self == o._self
89
103
  end
90
104
 
@@ -97,7 +111,7 @@ module AylienNewsApi
97
111
  # Calculates hash code according to all attributes.
98
112
  # @return [Integer] Hash code
99
113
  def hash
100
- [parent, _self].hash
114
+ [parent, parents, _self].hash
101
115
  end
102
116
 
103
117
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -16,6 +16,7 @@ module AylienNewsApi
16
16
  class CategoryTaxonomy
17
17
  IAB_QAG = "iab-qag".freeze
18
18
  IPTC_SUBJECTCODE = "iptc-subjectcode".freeze
19
+ AYLIEN = "aylien".freeze
19
20
 
20
21
  # Builds the enum from string
21
22
  # @param [String] The enum value in the form of the string
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 4.7
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -50,7 +50,10 @@ module AylienNewsApi
50
50
  # Paragraph count of the story body
51
51
  attr_accessor :paragraphs_count
52
52
 
53
- # Published date of the story
53
+ # Publication time of the story, if available, otherwise time of acquisition
54
+ attr_accessor :published_datetime
55
+
56
+ # Acquisition time of the story
54
57
  attr_accessor :published_at
55
58
 
56
59
  # Sentence count of the story body
@@ -75,6 +78,9 @@ module AylienNewsApi
75
78
  # License type of the story
76
79
  attr_accessor :license_type
77
80
 
81
+ # An array of industries categories
82
+ attr_accessor :industries
83
+
78
84
  # Attribute mapping from ruby-style variable name to JSON key.
79
85
  def self.attribute_map
80
86
  {
@@ -91,6 +97,7 @@ module AylienNewsApi
91
97
  :'links' => :'links',
92
98
  :'media' => :'media',
93
99
  :'paragraphs_count' => :'paragraphs_count',
100
+ :'published_datetime' => :'published_datetime',
94
101
  :'published_at' => :'published_at',
95
102
  :'sentences_count' => :'sentences_count',
96
103
  :'sentiment' => :'sentiment',
@@ -100,7 +107,8 @@ module AylienNewsApi
100
107
  :'title' => :'title',
101
108
  :'translations' => :'translations',
102
109
  :'words_count' => :'words_count',
103
- :'license_type' => :'license_type'
110
+ :'license_type' => :'license_type',
111
+ :'industries' => :'industries'
104
112
  }
105
113
  end
106
114
 
@@ -120,6 +128,7 @@ module AylienNewsApi
120
128
  :'links' => :'StoryLinks',
121
129
  :'media' => :'Array<Media>',
122
130
  :'paragraphs_count' => :'Integer',
131
+ :'published_datetime' => :'DateTime',
123
132
  :'published_at' => :'DateTime',
124
133
  :'sentences_count' => :'Integer',
125
134
  :'sentiment' => :'Sentiments',
@@ -129,7 +138,8 @@ module AylienNewsApi
129
138
  :'title' => :'String',
130
139
  :'translations' => :'StoryTranslations',
131
140
  :'words_count' => :'Integer',
132
- :'license_type' => :'Integer'
141
+ :'license_type' => :'Integer',
142
+ :'industries' => :'Array<Category>'
133
143
  }
134
144
  end
135
145
 
@@ -216,6 +226,10 @@ module AylienNewsApi
216
226
  self.paragraphs_count = attributes[:'paragraphs_count']
217
227
  end
218
228
 
229
+ if attributes.key?(:'published_datetime')
230
+ self.published_datetime = attributes[:'published_datetime']
231
+ end
232
+
219
233
  if attributes.key?(:'published_at')
220
234
  self.published_at = attributes[:'published_at']
221
235
  end
@@ -255,6 +269,12 @@ module AylienNewsApi
255
269
  if attributes.key?(:'license_type')
256
270
  self.license_type = attributes[:'license_type']
257
271
  end
272
+
273
+ if attributes.key?(:'industries')
274
+ if (value = attributes[:'industries']).is_a?(Array)
275
+ self.industries = value
276
+ end
277
+ end
258
278
  end
259
279
 
260
280
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -288,6 +308,7 @@ module AylienNewsApi
288
308
  links == o.links &&
289
309
  media == o.media &&
290
310
  paragraphs_count == o.paragraphs_count &&
311
+ published_datetime == o.published_datetime &&
291
312
  published_at == o.published_at &&
292
313
  sentences_count == o.sentences_count &&
293
314
  sentiment == o.sentiment &&
@@ -297,7 +318,8 @@ module AylienNewsApi
297
318
  title == o.title &&
298
319
  translations == o.translations &&
299
320
  words_count == o.words_count &&
300
- license_type == o.license_type
321
+ license_type == o.license_type &&
322
+ industries == o.industries
301
323
  end
302
324
 
303
325
  # @see the `==` method
@@ -309,7 +331,7 @@ module AylienNewsApi
309
331
  # Calculates hash code according to all attributes.
310
332
  # @return [Integer] Hash code
311
333
  def hash
312
- [author, body, categories, characters_count, clusters, entities, hashtags, id, keywords, language, links, media, paragraphs_count, published_at, sentences_count, sentiment, social_shares_count, source, summary, title, translations, words_count, license_type].hash
334
+ [author, body, categories, characters_count, clusters, entities, hashtags, id, keywords, language, links, media, paragraphs_count, published_datetime, published_at, sentences_count, sentiment, social_shares_count, source, summary, title, translations, words_count, license_type, industries].hash
313
335
  end
314
336
 
315
337
  # Builds the object from hash
@@ -0,0 +1,206 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 5.2.2
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module AylienNewsApi
16
+ class DunsNumber
17
+ attr_accessor :id
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'id' => :'id'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'id' => :'String'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AylienNewsApi::DunsNumber` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AylienNewsApi::DunsNumber`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'id')
55
+ self.id = attributes[:'id']
56
+ end
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properties with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ id == o.id
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Integer] Hash code
88
+ def hash
89
+ [id].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def self.build_from_hash(attributes)
96
+ new.build_from_hash(attributes)
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def build_from_hash(attributes)
103
+ return nil unless attributes.is_a?(Hash)
104
+ self.class.openapi_types.each_pair do |key, type|
105
+ if type =~ /\AArray<(.*)>/i
106
+ # check to ensure the input is an array given that the attribute
107
+ # is documented as an array but the input is not
108
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ end
111
+ elsif !attributes[self.class.attribute_map[key]].nil?
112
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
114
+ end
115
+
116
+ self
117
+ end
118
+
119
+ # Deserializes the data based on type
120
+ # @param string type Data type
121
+ # @param string value Value to be deserialized
122
+ # @return [Object] Deserialized data
123
+ def _deserialize(type, value)
124
+ case type.to_sym
125
+ when :DateTime
126
+ DateTime.parse(value)
127
+ when :Date
128
+ Date.parse(value)
129
+ when :String
130
+ value.to_s
131
+ when :Integer
132
+ value.to_i
133
+ when :Float
134
+ value.to_f
135
+ when :Boolean
136
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
+ true
138
+ else
139
+ false
140
+ end
141
+ when :Object
142
+ # generic object (usually a Hash), return directly
143
+ value
144
+ when /\AArray<(?<inner_type>.+)>\z/
145
+ inner_type = Regexp.last_match[:inner_type]
146
+ value.map { |v| _deserialize(inner_type, v) }
147
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
+ k_type = Regexp.last_match[:k_type]
149
+ v_type = Regexp.last_match[:v_type]
150
+ {}.tap do |hash|
151
+ value.each do |k, v|
152
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
+ end
154
+ end
155
+ else # model
156
+ AylienNewsApi.const_get(type).build_from_hash(value)
157
+ end
158
+ end
159
+
160
+ # Returns the string representation of the object
161
+ # @return [String] String presentation of the object
162
+ def to_s
163
+ to_hash.to_s
164
+ end
165
+
166
+ # to_body is an alias to to_hash (backward compatibility)
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_body
169
+ to_hash
170
+ end
171
+
172
+ # Returns the object in the form of hash
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ if value.nil?
179
+ is_nullable = self.class.openapi_nullable.include?(attr)
180
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
181
+ end
182
+
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+ end
206
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -37,6 +37,8 @@ module AylienNewsApi
37
37
 
38
38
  attr_accessor :title
39
39
 
40
+ attr_accessor :external_ids
41
+
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
@@ -48,7 +50,8 @@ module AylienNewsApi
48
50
  :'overall_prominence' => :'overall_prominence',
49
51
  :'overall_frequency' => :'overall_frequency',
50
52
  :'body' => :'body',
51
- :'title' => :'title'
53
+ :'title' => :'title',
54
+ :'external_ids' => :'external_ids'
52
55
  }
53
56
  end
54
57
 
@@ -63,7 +66,8 @@ module AylienNewsApi
63
66
  :'overall_prominence' => :'Float',
64
67
  :'overall_frequency' => :'Integer',
65
68
  :'body' => :'EntityInText',
66
- :'title' => :'EntityInText'
69
+ :'title' => :'EntityInText',
70
+ :'external_ids' => :'ExternalIds'
67
71
  }
68
72
  end
69
73
 
@@ -127,6 +131,10 @@ module AylienNewsApi
127
131
  if attributes.key?(:'title')
128
132
  self.title = attributes[:'title']
129
133
  end
134
+
135
+ if attributes.key?(:'external_ids')
136
+ self.external_ids = attributes[:'external_ids']
137
+ end
130
138
  end
131
139
 
132
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,7 +202,8 @@ module AylienNewsApi
194
202
  overall_prominence == o.overall_prominence &&
195
203
  overall_frequency == o.overall_frequency &&
196
204
  body == o.body &&
197
- title == o.title
205
+ title == o.title &&
206
+ external_ids == o.external_ids
198
207
  end
199
208
 
200
209
  # @see the `==` method
@@ -206,7 +215,7 @@ module AylienNewsApi
206
215
  # Calculates hash code according to all attributes.
207
216
  # @return [Integer] Hash code
208
217
  def hash
209
- [id, links, stock_tickers, types, overall_sentiment, overall_prominence, overall_frequency, body, title].hash
218
+ [id, links, stock_tickers, types, overall_sentiment, overall_prominence, overall_frequency, body, title, external_ids].hash
210
219
  end
211
220
 
212
221
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -45,7 +45,7 @@ module AylienNewsApi
45
45
  :'detail' => :'String',
46
46
  :'id' => :'String',
47
47
  :'links' => :'ErrorLinks',
48
- :'status' => :'String',
48
+ :'status' => :'Float',
49
49
  :'title' => :'String'
50
50
  }
51
51
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 5.0.1
6
+ The version of the OpenAPI document: 5.2.2
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT