intrinio-sdk 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -8
  3. data/docs/ApiResponseCompaniesSearch.md +8 -0
  4. data/docs/ApiResponseDataTagsSearch.md +8 -0
  5. data/docs/ApiResponseEconomicIndicesSearch.md +8 -0
  6. data/docs/ApiResponseMunicipalities.md +9 -0
  7. data/docs/ApiResponseMunicipalitiyFinancials.md +9 -0
  8. data/docs/ApiResponseSICIndicesSearch.md +8 -0
  9. data/docs/ApiResponseSecuritiesSearch.md +8 -0
  10. data/docs/ApiResponseSecurityIntradayPrices.md +11 -0
  11. data/docs/ApiResponseStockMarketIndicesSearch.md +8 -0
  12. data/docs/CompanyApi.md +44 -115
  13. data/docs/DataTagApi.md +15 -51
  14. data/docs/FilingApi.md +19 -97
  15. data/docs/FundamentalSummary.md +1 -1
  16. data/docs/HistoricalDataApi.md +2 -0
  17. data/docs/IndexApi.md +33 -9
  18. data/docs/IntradayStockPrice.md +15 -0
  19. data/docs/Municipality.md +26 -0
  20. data/docs/MunicipalityApi.md +158 -0
  21. data/docs/MunicipalityFinancial.md +49 -0
  22. data/docs/RealtimeStockPrice.md +1 -1
  23. data/docs/SecurityApi.md +71 -4
  24. data/docs/StockExchangeApi.md +17 -42
  25. data/intrinio-sdk.gemspec +1 -1
  26. data/lib/intrinio-sdk.rb +14 -1
  27. data/lib/intrinio-sdk/api/company_api.rb +97 -154
  28. data/lib/intrinio-sdk/api/data_point_api.rb +1 -1
  29. data/lib/intrinio-sdk/api/data_tag_api.rb +27 -63
  30. data/lib/intrinio-sdk/api/filing_api.rb +42 -121
  31. data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
  32. data/lib/intrinio-sdk/api/historical_data_api.rb +8 -1
  33. data/lib/intrinio-sdk/api/index_api.rb +73 -10
  34. data/lib/intrinio-sdk/api/municipality_api.rb +221 -0
  35. data/lib/intrinio-sdk/api/security_api.rb +117 -4
  36. data/lib/intrinio-sdk/api/stock_exchange_api.rb +45 -57
  37. data/lib/intrinio-sdk/api_client.rb +1 -1
  38. data/lib/intrinio-sdk/api_error.rb +1 -1
  39. data/lib/intrinio-sdk/configuration.rb +1 -1
  40. data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
  41. data/lib/intrinio-sdk/models/api_response_companies_search.rb +190 -0
  42. data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
  43. data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
  44. data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
  45. data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
  46. data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
  47. data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
  48. data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +190 -0
  49. data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
  50. data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
  51. data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +190 -0
  52. data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
  53. data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
  54. data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
  55. data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
  56. data/lib/intrinio-sdk/models/api_response_municipalities.rb +200 -0
  57. data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +199 -0
  58. data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
  59. data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
  60. data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
  61. data/lib/intrinio-sdk/models/api_response_securities_search.rb +190 -0
  62. data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
  63. data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +254 -0
  64. data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
  65. data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
  66. data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
  67. data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
  68. data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +190 -0
  69. data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
  70. data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
  71. data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
  72. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
  73. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
  74. data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
  75. data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
  76. data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
  77. data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +190 -0
  78. data/lib/intrinio-sdk/models/company.rb +1 -1
  79. data/lib/intrinio-sdk/models/company_filing.rb +1 -1
  80. data/lib/intrinio-sdk/models/company_news.rb +1 -1
  81. data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
  82. data/lib/intrinio-sdk/models/company_summary.rb +1 -1
  83. data/lib/intrinio-sdk/models/data_tag.rb +1 -1
  84. data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
  85. data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
  86. data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
  87. data/lib/intrinio-sdk/models/economic_index.rb +1 -1
  88. data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
  89. data/lib/intrinio-sdk/models/filing.rb +1 -1
  90. data/lib/intrinio-sdk/models/filing_note.rb +1 -1
  91. data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
  92. data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
  93. data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
  94. data/lib/intrinio-sdk/models/fundamental.rb +1 -1
  95. data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
  96. data/lib/intrinio-sdk/models/historical_data.rb +1 -1
  97. data/lib/intrinio-sdk/models/intraday_stock_price.rb +259 -0
  98. data/lib/intrinio-sdk/models/municipality.rb +369 -0
  99. data/lib/intrinio-sdk/models/municipality_financial.rb +599 -0
  100. data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
  101. data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
  102. data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
  103. data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
  104. data/lib/intrinio-sdk/models/security.rb +1 -1
  105. data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
  106. data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
  107. data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
  108. data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
  109. data/lib/intrinio-sdk/models/security_summary.rb +1 -1
  110. data/lib/intrinio-sdk/models/sic_index.rb +1 -1
  111. data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
  112. data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
  113. data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
  114. data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
  115. data/lib/intrinio-sdk/models/stock_price.rb +1 -1
  116. data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
  117. data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
  118. data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
  119. data/lib/intrinio-sdk/version.rb +2 -2
  120. data/spec/api/company_api_spec.rb +37 -54
  121. data/spec/api/data_point_api_spec.rb +3 -3
  122. data/spec/api/data_tag_api_spec.rb +9 -19
  123. data/spec/api/filing_api_spec.rb +73 -12
  124. data/spec/api/fundamentals_api_spec.rb +6 -6
  125. data/spec/api/historical_data_api_spec.rb +3 -2
  126. data/spec/api/index_api_spec.rb +28 -19
  127. data/spec/api/municipality_api_spec.rb +84 -0
  128. data/spec/api/security_api_spec.rb +74 -13
  129. data/spec/api/stock_exchange_api_spec.rb +31 -23
  130. data/spec/api_client_spec.rb +1 -1
  131. data/spec/configuration_spec.rb +1 -1
  132. data/spec/models/api_response_companies_search_spec.rb +42 -0
  133. data/spec/models/api_response_companies_spec.rb +1 -1
  134. data/spec/models/api_response_company_filings_spec.rb +1 -1
  135. data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
  136. data/spec/models/api_response_company_historical_data_spec.rb +1 -1
  137. data/spec/models/api_response_company_news_spec.rb +1 -1
  138. data/spec/models/api_response_company_securities_spec.rb +1 -1
  139. data/spec/models/api_response_data_tags_search_spec.rb +42 -0
  140. data/spec/models/api_response_data_tags_spec.rb +1 -1
  141. data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
  142. data/spec/models/api_response_economic_indices_search_spec.rb +42 -0
  143. data/spec/models/api_response_economic_indices_spec.rb +1 -1
  144. data/spec/models/api_response_filings_spec.rb +1 -1
  145. data/spec/models/api_response_historical_data_spec.rb +1 -1
  146. data/spec/models/api_response_municipalities_spec.rb +48 -0
  147. data/spec/models/api_response_municipalitiy_financials_spec.rb +48 -0
  148. data/spec/models/api_response_news_spec.rb +1 -1
  149. data/spec/models/api_response_reported_financials_spec.rb +1 -1
  150. data/spec/models/api_response_securities_search_spec.rb +42 -0
  151. data/spec/models/api_response_securities_spec.rb +1 -1
  152. data/spec/models/api_response_security_historical_data_spec.rb +1 -1
  153. data/spec/models/api_response_security_intraday_prices_spec.rb +64 -0
  154. data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
  155. data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
  156. data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
  157. data/spec/models/api_response_sic_indices_search_spec.rb +42 -0
  158. data/spec/models/api_response_sic_indices_spec.rb +1 -1
  159. data/spec/models/api_response_standardized_financials_spec.rb +1 -1
  160. data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
  161. data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
  162. data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
  163. data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
  164. data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
  165. data/spec/models/api_response_stock_market_indices_search_spec.rb +42 -0
  166. data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
  167. data/spec/models/company_filing_spec.rb +1 -1
  168. data/spec/models/company_news_spec.rb +1 -1
  169. data/spec/models/company_news_summary_spec.rb +1 -1
  170. data/spec/models/company_spec.rb +1 -1
  171. data/spec/models/company_summary_spec.rb +1 -1
  172. data/spec/models/data_tag_spec.rb +1 -1
  173. data/spec/models/data_tag_summary_spec.rb +1 -1
  174. data/spec/models/economic_index_spec.rb +1 -1
  175. data/spec/models/economic_index_summary_spec.rb +1 -1
  176. data/spec/models/filing_spec.rb +1 -1
  177. data/spec/models/filing_summary_spec.rb +1 -1
  178. data/spec/models/fundamental_spec.rb +1 -1
  179. data/spec/models/fundamental_summary_spec.rb +1 -1
  180. data/spec/models/historical_data_spec.rb +1 -1
  181. data/spec/models/intraday_stock_price_spec.rb +84 -0
  182. data/spec/models/municipality_financial_spec.rb +288 -0
  183. data/spec/models/municipality_spec.rb +150 -0
  184. data/spec/models/reported_financial_spec.rb +1 -1
  185. data/spec/models/reported_tag_spec.rb +1 -1
  186. data/spec/models/security_screen_clause_spec.rb +1 -1
  187. data/spec/models/security_screen_group_spec.rb +1 -1
  188. data/spec/models/security_screen_result_data_spec.rb +1 -1
  189. data/spec/models/security_screen_result_spec.rb +1 -1
  190. data/spec/models/security_spec.rb +1 -1
  191. data/spec/models/security_summary_spec.rb +1 -1
  192. data/spec/models/sic_index_spec.rb +1 -1
  193. data/spec/models/standardized_financial_spec.rb +1 -1
  194. data/spec/models/stock_exchange_spec.rb +1 -1
  195. data/spec/models/stock_market_index_spec.rb +1 -1
  196. data/spec/models/stock_market_index_summary_spec.rb +1 -1
  197. data/spec/models/stock_price_adjustment_spec.rb +7 -1
  198. data/spec/models/stock_price_adjustment_summary_spec.rb +1 -7
  199. data/spec/models/stock_price_spec.rb +1 -1
  200. data/spec/models/stock_price_summary_spec.rb +1 -1
  201. data/spec/spec_helper.rb +1 -1
  202. metadata +54 -3
  203. data/intrinio-sdk-1.1.0.gem +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -0,0 +1,190 @@
1
+ =begin
2
+ #Intrinio API
3
+
4
+ #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
+
6
+ OpenAPI spec version: 2.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Intrinio
16
+
17
+ class ApiResponseCompaniesSearch
18
+ attr_accessor :companies
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'companies' => :'companies'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'companies' => :'Array<CompanySummary>'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'companies')
44
+ if (value = attributes[:'companies']).is_a?(Array)
45
+ self.companies = value
46
+ end
47
+ end
48
+
49
+ end
50
+
51
+ # Show invalid properties with the reasons. Usually used together with valid?
52
+ # @return Array for valid properties with the reasons
53
+ def list_invalid_properties
54
+ invalid_properties = Array.new
55
+ return invalid_properties
56
+ end
57
+
58
+ # Check to see if the all the properties in the model are valid
59
+ # @return true if the model is valid
60
+ def valid?
61
+ return true
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param [Object] Object to be compared
66
+ def ==(o)
67
+ return true if self.equal?(o)
68
+ self.class == o.class &&
69
+ companies == o.companies
70
+ end
71
+
72
+ # @see the `==` method
73
+ # @param [Object] Object to be compared
74
+ def eql?(o)
75
+ self == o
76
+ end
77
+
78
+ # Calculates hash code according to all attributes.
79
+ # @return [Fixnum] Hash code
80
+ def hash
81
+ [companies].hash
82
+ end
83
+
84
+ # Builds the object from hash
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ # @return [Object] Returns the model itself
87
+ def build_from_hash(attributes)
88
+ return nil unless attributes.is_a?(Hash)
89
+ self.class.swagger_types.each_pair do |key, type|
90
+ if type =~ /\AArray<(.*)>/i
91
+ # check to ensure the input is an array given that the the attribute
92
+ # is documented as an array but the input is not
93
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
94
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
95
+ end
96
+ elsif !attributes[self.class.attribute_map[key]].nil?
97
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
98
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
99
+ end
100
+
101
+ self
102
+ end
103
+
104
+ # Deserializes the data based on type
105
+ # @param string type Data type
106
+ # @param string value Value to be deserialized
107
+ # @return [Object] Deserialized data
108
+ def _deserialize(type, value)
109
+ case type.to_sym
110
+ when :DateTime
111
+ DateTime.parse(value)
112
+ when :Date
113
+ Date.parse(value)
114
+ when :String
115
+ value.to_s
116
+ when :Integer
117
+ value.to_i
118
+ when :Float
119
+ value.to_f
120
+ when :BOOLEAN
121
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
122
+ true
123
+ else
124
+ false
125
+ end
126
+ when :Object
127
+ # generic object (usually a Hash), return directly
128
+ value
129
+ when /\AArray<(?<inner_type>.+)>\z/
130
+ inner_type = Regexp.last_match[:inner_type]
131
+ value.map { |v| _deserialize(inner_type, v) }
132
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
133
+ k_type = Regexp.last_match[:k_type]
134
+ v_type = Regexp.last_match[:v_type]
135
+ {}.tap do |hash|
136
+ value.each do |k, v|
137
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
138
+ end
139
+ end
140
+ else # model
141
+ temp_model = Intrinio.const_get(type).new
142
+ temp_model.build_from_hash(value)
143
+ end
144
+ end
145
+
146
+ # Returns the string representation of the object
147
+ # @return [String] String presentation of the object
148
+ def to_s
149
+ to_hash.to_s
150
+ end
151
+
152
+ # to_body is an alias to to_hash (backward compatibility)
153
+ # @return [Hash] Returns the object in the form of hash
154
+ def to_body
155
+ to_hash
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ next if value.nil?
165
+ hash[param] = _to_hash(value)
166
+ end
167
+ hash
168
+ end
169
+
170
+ # Outputs non-array value in the form of hash
171
+ # For object, use to_hash. Otherwise, just return the value
172
+ # @param [Object] value Any valid value
173
+ # @return [Hash] Returns the value in the form of hash
174
+ def _to_hash(value)
175
+ if value.is_a?(Array)
176
+ value.compact.map{ |v| _to_hash(v) }
177
+ elsif value.is_a?(Hash)
178
+ {}.tap do |hash|
179
+ value.each { |k, v| hash[k] = _to_hash(v) }
180
+ end
181
+ elsif value.respond_to? :to_hash
182
+ value.to_hash
183
+ else
184
+ value
185
+ end
186
+ end
187
+
188
+ end
189
+
190
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -0,0 +1,190 @@
1
+ =begin
2
+ #Intrinio API
3
+
4
+ #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
+
6
+ OpenAPI spec version: 2.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Intrinio
16
+
17
+ class ApiResponseDataTagsSearch
18
+ attr_accessor :tags
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'tags' => :'tags'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'tags' => :'Array<DataTag>'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'tags')
44
+ if (value = attributes[:'tags']).is_a?(Array)
45
+ self.tags = value
46
+ end
47
+ end
48
+
49
+ end
50
+
51
+ # Show invalid properties with the reasons. Usually used together with valid?
52
+ # @return Array for valid properties with the reasons
53
+ def list_invalid_properties
54
+ invalid_properties = Array.new
55
+ return invalid_properties
56
+ end
57
+
58
+ # Check to see if the all the properties in the model are valid
59
+ # @return true if the model is valid
60
+ def valid?
61
+ return true
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param [Object] Object to be compared
66
+ def ==(o)
67
+ return true if self.equal?(o)
68
+ self.class == o.class &&
69
+ tags == o.tags
70
+ end
71
+
72
+ # @see the `==` method
73
+ # @param [Object] Object to be compared
74
+ def eql?(o)
75
+ self == o
76
+ end
77
+
78
+ # Calculates hash code according to all attributes.
79
+ # @return [Fixnum] Hash code
80
+ def hash
81
+ [tags].hash
82
+ end
83
+
84
+ # Builds the object from hash
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ # @return [Object] Returns the model itself
87
+ def build_from_hash(attributes)
88
+ return nil unless attributes.is_a?(Hash)
89
+ self.class.swagger_types.each_pair do |key, type|
90
+ if type =~ /\AArray<(.*)>/i
91
+ # check to ensure the input is an array given that the the attribute
92
+ # is documented as an array but the input is not
93
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
94
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
95
+ end
96
+ elsif !attributes[self.class.attribute_map[key]].nil?
97
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
98
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
99
+ end
100
+
101
+ self
102
+ end
103
+
104
+ # Deserializes the data based on type
105
+ # @param string type Data type
106
+ # @param string value Value to be deserialized
107
+ # @return [Object] Deserialized data
108
+ def _deserialize(type, value)
109
+ case type.to_sym
110
+ when :DateTime
111
+ DateTime.parse(value)
112
+ when :Date
113
+ Date.parse(value)
114
+ when :String
115
+ value.to_s
116
+ when :Integer
117
+ value.to_i
118
+ when :Float
119
+ value.to_f
120
+ when :BOOLEAN
121
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
122
+ true
123
+ else
124
+ false
125
+ end
126
+ when :Object
127
+ # generic object (usually a Hash), return directly
128
+ value
129
+ when /\AArray<(?<inner_type>.+)>\z/
130
+ inner_type = Regexp.last_match[:inner_type]
131
+ value.map { |v| _deserialize(inner_type, v) }
132
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
133
+ k_type = Regexp.last_match[:k_type]
134
+ v_type = Regexp.last_match[:v_type]
135
+ {}.tap do |hash|
136
+ value.each do |k, v|
137
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
138
+ end
139
+ end
140
+ else # model
141
+ temp_model = Intrinio.const_get(type).new
142
+ temp_model.build_from_hash(value)
143
+ end
144
+ end
145
+
146
+ # Returns the string representation of the object
147
+ # @return [String] String presentation of the object
148
+ def to_s
149
+ to_hash.to_s
150
+ end
151
+
152
+ # to_body is an alias to to_hash (backward compatibility)
153
+ # @return [Hash] Returns the object in the form of hash
154
+ def to_body
155
+ to_hash
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ next if value.nil?
165
+ hash[param] = _to_hash(value)
166
+ end
167
+ hash
168
+ end
169
+
170
+ # Outputs non-array value in the form of hash
171
+ # For object, use to_hash. Otherwise, just return the value
172
+ # @param [Object] value Any valid value
173
+ # @return [Hash] Returns the value in the form of hash
174
+ def _to_hash(value)
175
+ if value.is_a?(Array)
176
+ value.compact.map{ |v| _to_hash(v) }
177
+ elsif value.is_a?(Hash)
178
+ {}.tap do |hash|
179
+ value.each { |k, v| hash[k] = _to_hash(v) }
180
+ end
181
+ elsif value.respond_to? :to_hash
182
+ value.to_hash
183
+ else
184
+ value
185
+ end
186
+ end
187
+
188
+ end
189
+
190
+ end