vericred_client 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/docs/Applicant.md +2 -2
  4. data/docs/{InlineResponse2001.md → Base.md} +2 -2
  5. data/docs/Carrier.md +1 -1
  6. data/docs/County.md +3 -3
  7. data/docs/CountyBulk.md +10 -0
  8. data/docs/Drug.md +2 -1
  9. data/docs/DrugCoverage.md +4 -4
  10. data/docs/DrugCoverageResponse.md +9 -0
  11. data/docs/DrugPackage.md +9 -0
  12. data/docs/DrugSearchResponse.md +9 -0
  13. data/docs/DrugsApi.md +59 -0
  14. data/docs/Meta.md +8 -0
  15. data/docs/Plan.md +22 -6
  16. data/docs/PlanCounty.md +1 -1
  17. data/docs/PlanCountyBulk.md +10 -0
  18. data/docs/PlanFindResponse.md +9 -0
  19. data/docs/PlanSearchResult.md +26 -8
  20. data/docs/PlansApi.md +11 -11
  21. data/docs/Pricing.md +7 -1
  22. data/docs/Provider.md +9 -6
  23. data/docs/ProviderResponse.md +10 -0
  24. data/docs/ProvidersApi.md +19 -21
  25. data/docs/RatingArea.md +2 -2
  26. data/docs/RequestPlanFind.md +15 -0
  27. data/docs/State.md +4 -4
  28. data/docs/ZipCountiesApi.md +7 -8
  29. data/docs/ZipCountyBulk.md +11 -0
  30. data/docs/ZipCountyResponse.md +10 -0
  31. data/lib/vericred_client.rb +14 -6
  32. data/lib/vericred_client/api/{drug_coverage_api.rb → drugs_api.rb} +25 -19
  33. data/lib/vericred_client/api/plans_api.rb +14 -16
  34. data/lib/vericred_client/api/providers_api.rb +29 -29
  35. data/lib/vericred_client/api/zip_counties_api.rb +12 -12
  36. data/lib/vericred_client/api_client.rb +1 -1
  37. data/lib/vericred_client/api_error.rb +1 -1
  38. data/lib/vericred_client/models/applicant.rb +14 -12
  39. data/lib/vericred_client/models/{inline_response_200_1.rb → base.rb} +10 -9
  40. data/lib/vericred_client/models/carrier.rb +15 -15
  41. data/lib/vericred_client/models/carrier_subsidiary.rb +1 -1
  42. data/lib/vericred_client/models/county.rb +18 -14
  43. data/lib/vericred_client/models/county_bulk.rb +318 -0
  44. data/lib/vericred_client/models/drug.rb +27 -15
  45. data/lib/vericred_client/models/drug_coverage.rb +38 -32
  46. data/lib/vericred_client/models/drug_coverage_response.rb +310 -0
  47. data/lib/vericred_client/models/drug_package.rb +308 -0
  48. data/lib/vericred_client/models/drug_search_response.rb +310 -0
  49. data/lib/vericred_client/models/meta.rb +298 -0
  50. data/lib/vericred_client/models/plan.rb +196 -22
  51. data/lib/vericred_client/models/plan_county.rb +15 -15
  52. data/lib/vericred_client/models/plan_county_bulk.rb +318 -0
  53. data/lib/vericred_client/models/{inline_response_200.rb → plan_find_response.rb} +13 -11
  54. data/lib/vericred_client/models/plan_search_result.rb +236 -42
  55. data/lib/vericred_client/models/pricing.rb +63 -3
  56. data/lib/vericred_client/models/provider.rb +51 -9
  57. data/lib/vericred_client/models/provider_response.rb +322 -0
  58. data/lib/vericred_client/models/rating_area.rb +5 -5
  59. data/lib/vericred_client/models/{query.rb → request_plan_find.rb} +14 -6
  60. data/lib/vericred_client/models/state.rb +29 -25
  61. data/lib/vericred_client/models/zip_code.rb +1 -1
  62. data/lib/vericred_client/models/zip_county.rb +1 -1
  63. data/lib/vericred_client/models/zip_county_bulk.rb +328 -0
  64. data/lib/vericred_client/models/{inline_response_200_2.rb → zip_county_response.rb} +20 -17
  65. data/lib/vericred_client/version.rb +2 -2
  66. data/spec/api/{drug_coverage_api_spec.rb → drugs_api_spec.rb} +14 -17
  67. data/spec/api/plans_api_spec.rb +7 -69
  68. data/spec/api/providers_api_spec.rb +12 -28
  69. data/spec/api/zip_counties_api_spec.rb +6 -13
  70. metadata +31 -15
  71. data/docs/DrugCoverageApi.md +0 -54
  72. data/docs/InlineResponse200.md +0 -9
  73. data/docs/InlineResponse2002.md +0 -10
  74. data/docs/Query.md +0 -15
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -133,27 +133,25 @@ module VericredClient
133
133
  @api_client = api_client
134
134
  end
135
135
 
136
- # Find a set of plans for a Zip Code and County
137
136
  #
138
- # @param query Plan query
137
+ #
139
138
  # @param [Hash] opts the optional parameters
140
- # @return [Array<Plan>]
141
- def plans_find_post(query, opts = {})
142
- data, _status_code, _headers = plans_find_post_with_http_info(query, opts)
139
+ # @option opts [RequestPlanFind] :body
140
+ # @return [PlanFindResponse]
141
+ def post_plans_find(opts = {})
142
+ data, _status_code, _headers = post_plans_find_with_http_info(opts)
143
143
  return data
144
144
  end
145
145
 
146
- # Find a set of plans for a Zip Code and County
147
146
  #
148
- # @param query Plan query
147
+ #
149
148
  # @param [Hash] opts the optional parameters
150
- # @return [Array<(Array<Plan>, Fixnum, Hash)>] Array<Plan> data, response status code and response headers
151
- def plans_find_post_with_http_info(query, opts = {})
149
+ # @option opts [RequestPlanFind] :body
150
+ # @return [Array<(PlanFindResponse, Fixnum, Hash)>] PlanFindResponse data, response status code and response headers
151
+ def post_plans_find_with_http_info(opts = {})
152
152
  if @api_client.config.debugging
153
- @api_client.config.logger.debug "Calling API: PlansApi.plans_find_post ..."
153
+ @api_client.config.logger.debug "Calling API: PlansApi.post_plans_find ..."
154
154
  end
155
- # verify the required parameter 'query' is set
156
- fail ArgumentError, "Missing the required parameter 'query' when calling PlansApi.plans_find_post" if query.nil?
157
155
  # resource path
158
156
  local_var_path = "/plans/find".sub('{format}','json')
159
157
 
@@ -175,7 +173,7 @@ module VericredClient
175
173
  form_params = {}
176
174
 
177
175
  # http body (model)
178
- post_body = @api_client.object_to_http_body(query)
176
+ post_body = @api_client.object_to_http_body(opts[:'body'])
179
177
  auth_names = []
180
178
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
181
179
  :header_params => header_params,
@@ -183,9 +181,9 @@ module VericredClient
183
181
  :form_params => form_params,
184
182
  :body => post_body,
185
183
  :auth_names => auth_names,
186
- :return_type => 'Array<Plan>')
184
+ :return_type => 'PlanFindResponse')
187
185
  if @api_client.config.debugging
188
- @api_client.config.logger.debug "API called: PlansApi#plans_find_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ @api_client.config.logger.debug "API called: PlansApi#post_plans_find\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
187
  end
190
188
  return data, status_code, headers
191
189
  end
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -133,41 +133,41 @@ module VericredClient
133
133
  @api_client = api_client
134
134
  end
135
135
 
136
- # Find providers by term and zip code
136
+ #
137
137
  #
138
138
  # @param search_term String to search by
139
139
  # @param zip_code Zip Code to search near
140
140
  # @param [Hash] opts the optional parameters
141
- # @option opts [String] :accepts_insurance Limit results to Providers who accept at least one insurance?
142
- # @option opts [Array<String>] :hios_ids HIOS id of one or more plans
141
+ # @option opts [String] :accepts_insurance Limit results to Providers who accept at least one insurance plan. Note that the inverse of this filter is not supported and any value will evaluate to true
143
142
  # @option opts [String] :page Page number
144
143
  # @option opts [String] :per_page Number of records to return per page
145
144
  # @option opts [String] :radius Radius (in miles) to use to limit results
146
- # @return [InlineResponse200]
147
- def providers_get(search_term, zip_code, opts = {})
148
- data, _status_code, _headers = providers_get_with_http_info(search_term, zip_code, opts)
145
+ # @option opts [String] :type Either organization or individual
146
+ # @return [ProviderResponse]
147
+ def get_providers(search_term, zip_code, opts = {})
148
+ data, _status_code, _headers = get_providers_with_http_info(search_term, zip_code, opts)
149
149
  return data
150
150
  end
151
151
 
152
- # Find providers by term and zip code
152
+ #
153
153
  #
154
154
  # @param search_term String to search by
155
155
  # @param zip_code Zip Code to search near
156
156
  # @param [Hash] opts the optional parameters
157
- # @option opts [String] :accepts_insurance Limit results to Providers who accept at least one insurance?
158
- # @option opts [Array<String>] :hios_ids HIOS id of one or more plans
157
+ # @option opts [String] :accepts_insurance Limit results to Providers who accept at least one insurance plan. Note that the inverse of this filter is not supported and any value will evaluate to true
159
158
  # @option opts [String] :page Page number
160
159
  # @option opts [String] :per_page Number of records to return per page
161
160
  # @option opts [String] :radius Radius (in miles) to use to limit results
162
- # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
163
- def providers_get_with_http_info(search_term, zip_code, opts = {})
161
+ # @option opts [String] :type Either organization or individual
162
+ # @return [Array<(ProviderResponse, Fixnum, Hash)>] ProviderResponse data, response status code and response headers
163
+ def get_providers_with_http_info(search_term, zip_code, opts = {})
164
164
  if @api_client.config.debugging
165
- @api_client.config.logger.debug "Calling API: ProvidersApi.providers_get ..."
165
+ @api_client.config.logger.debug "Calling API: ProvidersApi.get_providers ..."
166
166
  end
167
167
  # verify the required parameter 'search_term' is set
168
- fail ArgumentError, "Missing the required parameter 'search_term' when calling ProvidersApi.providers_get" if search_term.nil?
168
+ fail ArgumentError, "Missing the required parameter 'search_term' when calling ProvidersApi.get_providers" if search_term.nil?
169
169
  # verify the required parameter 'zip_code' is set
170
- fail ArgumentError, "Missing the required parameter 'zip_code' when calling ProvidersApi.providers_get" if zip_code.nil?
170
+ fail ArgumentError, "Missing the required parameter 'zip_code' when calling ProvidersApi.get_providers" if zip_code.nil?
171
171
  # resource path
172
172
  local_var_path = "/providers".sub('{format}','json')
173
173
 
@@ -176,10 +176,10 @@ module VericredClient
176
176
  query_params[:'search_term'] = search_term
177
177
  query_params[:'zip_code'] = zip_code
178
178
  query_params[:'accepts_insurance'] = opts[:'accepts_insurance'] if opts[:'accepts_insurance']
179
- query_params[:'hios_ids'] = @api_client.build_collection_param(opts[:'hios_ids'], :csv) if opts[:'hios_ids']
180
179
  query_params[:'page'] = opts[:'page'] if opts[:'page']
181
180
  query_params[:'per_page'] = opts[:'per_page'] if opts[:'per_page']
182
181
  query_params[:'radius'] = opts[:'radius'] if opts[:'radius']
182
+ query_params[:'type'] = opts[:'type'] if opts[:'type']
183
183
 
184
184
  # header parameters
185
185
  header_params = {}
@@ -204,34 +204,34 @@ module VericredClient
204
204
  :form_params => form_params,
205
205
  :body => post_body,
206
206
  :auth_names => auth_names,
207
- :return_type => 'InlineResponse200')
207
+ :return_type => 'ProviderResponse')
208
208
  if @api_client.config.debugging
209
- @api_client.config.logger.debug "API called: ProvidersApi#providers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
+ @api_client.config.logger.debug "API called: ProvidersApi#get_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
210
  end
211
211
  return data, status_code, headers
212
212
  end
213
213
 
214
- # Find a specific Provider
214
+ #
215
215
  #
216
216
  # @param npi NPI number
217
217
  # @param [Hash] opts the optional parameters
218
- # @return [InlineResponse2001]
219
- def providers_npi_get(npi, opts = {})
220
- data, _status_code, _headers = providers_npi_get_with_http_info(npi, opts)
218
+ # @return [ProviderResponse]
219
+ def get_providers_npi(npi, opts = {})
220
+ data, _status_code, _headers = get_providers_npi_with_http_info(npi, opts)
221
221
  return data
222
222
  end
223
223
 
224
- # Find a specific Provider
224
+ #
225
225
  #
226
226
  # @param npi NPI number
227
227
  # @param [Hash] opts the optional parameters
228
- # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
229
- def providers_npi_get_with_http_info(npi, opts = {})
228
+ # @return [Array<(ProviderResponse, Fixnum, Hash)>] ProviderResponse data, response status code and response headers
229
+ def get_providers_npi_with_http_info(npi, opts = {})
230
230
  if @api_client.config.debugging
231
- @api_client.config.logger.debug "Calling API: ProvidersApi.providers_npi_get ..."
231
+ @api_client.config.logger.debug "Calling API: ProvidersApi.get_providers_npi ..."
232
232
  end
233
233
  # verify the required parameter 'npi' is set
234
- fail ArgumentError, "Missing the required parameter 'npi' when calling ProvidersApi.providers_npi_get" if npi.nil?
234
+ fail ArgumentError, "Missing the required parameter 'npi' when calling ProvidersApi.get_providers_npi" if npi.nil?
235
235
  # resource path
236
236
  local_var_path = "/providers/{npi}".sub('{format}','json').sub('{' + 'npi' + '}', npi.to_s)
237
237
 
@@ -261,9 +261,9 @@ module VericredClient
261
261
  :form_params => form_params,
262
262
  :body => post_body,
263
263
  :auth_names => auth_names,
264
- :return_type => 'InlineResponse2001')
264
+ :return_type => 'ProviderResponse')
265
265
  if @api_client.config.debugging
266
- @api_client.config.logger.debug "API called: ProvidersApi#providers_npi_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ @api_client.config.logger.debug "API called: ProvidersApi#get_providers_npi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
267
267
  end
268
268
  return data, status_code, headers
269
269
  end
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -133,27 +133,27 @@ module VericredClient
133
133
  @api_client = api_client
134
134
  end
135
135
 
136
- # Find Zip Counties by Zip Code
136
+ #
137
137
  #
138
138
  # @param zip_prefix Partial five-digit Zip
139
139
  # @param [Hash] opts the optional parameters
140
- # @return [InlineResponse2002]
141
- def zip_counties_get(zip_prefix, opts = {})
142
- data, _status_code, _headers = zip_counties_get_with_http_info(zip_prefix, opts)
140
+ # @return [ZipCountyResponse]
141
+ def get_zip_counties(zip_prefix, opts = {})
142
+ data, _status_code, _headers = get_zip_counties_with_http_info(zip_prefix, opts)
143
143
  return data
144
144
  end
145
145
 
146
- # Find Zip Counties by Zip Code
146
+ #
147
147
  #
148
148
  # @param zip_prefix Partial five-digit Zip
149
149
  # @param [Hash] opts the optional parameters
150
- # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
151
- def zip_counties_get_with_http_info(zip_prefix, opts = {})
150
+ # @return [Array<(ZipCountyResponse, Fixnum, Hash)>] ZipCountyResponse data, response status code and response headers
151
+ def get_zip_counties_with_http_info(zip_prefix, opts = {})
152
152
  if @api_client.config.debugging
153
- @api_client.config.logger.debug "Calling API: ZipCountiesApi.zip_counties_get ..."
153
+ @api_client.config.logger.debug "Calling API: ZipCountiesApi.get_zip_counties ..."
154
154
  end
155
155
  # verify the required parameter 'zip_prefix' is set
156
- fail ArgumentError, "Missing the required parameter 'zip_prefix' when calling ZipCountiesApi.zip_counties_get" if zip_prefix.nil?
156
+ fail ArgumentError, "Missing the required parameter 'zip_prefix' when calling ZipCountiesApi.get_zip_counties" if zip_prefix.nil?
157
157
  # resource path
158
158
  local_var_path = "/zip_counties".sub('{format}','json')
159
159
 
@@ -184,9 +184,9 @@ module VericredClient
184
184
  :form_params => form_params,
185
185
  :body => post_body,
186
186
  :auth_names => auth_names,
187
- :return_type => 'InlineResponse2002')
187
+ :return_type => 'ZipCountyResponse')
188
188
  if @api_client.config.debugging
189
- @api_client.config.logger.debug "API called: ZipCountiesApi#zip_counties_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ @api_client.config.logger.debug "API called: ZipCountiesApi#get_zip_counties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
190
  end
191
191
  return data, status_code, headers
192
192
  end
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -127,12 +127,12 @@ require 'date'
127
127
 
128
128
  module VericredClient
129
129
  class Applicant
130
- # Primary key
131
- attr_accessor :id
132
-
133
130
  # Date of Birth
134
131
  attr_accessor :dob
135
132
 
133
+ # Primary key
134
+ attr_accessor :id
135
+
136
136
  # Foreign key to members
137
137
  attr_accessor :member_id
138
138
 
@@ -151,8 +151,8 @@ module VericredClient
151
151
  # Attribute mapping from ruby-style variable name to JSON key.
152
152
  def self.attribute_map
153
153
  {
154
- :'id' => :'id',
155
154
  :'dob' => :'dob',
155
+ :'id' => :'id',
156
156
  :'member_id' => :'member_id',
157
157
  :'name' => :'name',
158
158
  :'relationship' => :'relationship',
@@ -164,8 +164,8 @@ module VericredClient
164
164
  # Attribute type mapping.
165
165
  def self.swagger_types
166
166
  {
167
- :'id' => :'Integer',
168
167
  :'dob' => :'Date',
168
+ :'id' => :'Integer',
169
169
  :'member_id' => :'String',
170
170
  :'name' => :'String',
171
171
  :'relationship' => :'String',
@@ -182,14 +182,14 @@ module VericredClient
182
182
  # convert string to symbol for hash key
183
183
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
184
184
 
185
- if attributes.has_key?(:'id')
186
- self.id = attributes[:'id']
187
- end
188
-
189
185
  if attributes.has_key?(:'dob')
190
186
  self.dob = attributes[:'dob']
191
187
  end
192
188
 
189
+ if attributes.has_key?(:'id')
190
+ self.id = attributes[:'id']
191
+ end
192
+
193
193
  if attributes.has_key?(:'member_id')
194
194
  self.member_id = attributes[:'member_id']
195
195
  end
@@ -204,6 +204,8 @@ module VericredClient
204
204
 
205
205
  if attributes.has_key?(:'smoker')
206
206
  self.smoker = attributes[:'smoker']
207
+ else
208
+ self.smoker = false
207
209
  end
208
210
 
209
211
  if attributes.has_key?(:'ssn')
@@ -229,8 +231,8 @@ module VericredClient
229
231
  def ==(o)
230
232
  return true if self.equal?(o)
231
233
  self.class == o.class &&
232
- id == o.id &&
233
234
  dob == o.dob &&
235
+ id == o.id &&
234
236
  member_id == o.member_id &&
235
237
  name == o.name &&
236
238
  relationship == o.relationship &&
@@ -247,7 +249,7 @@ module VericredClient
247
249
  # Calculates hash code according to all attributes.
248
250
  # @return [Fixnum] Hash code
249
251
  def hash
250
- [id, dob, member_id, name, relationship, smoker, ssn].hash
252
+ [dob, id, member_id, name, relationship, smoker, ssn].hash
251
253
  end
252
254
 
253
255
  # Builds the object from hash
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -126,20 +126,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
126
126
  require 'date'
127
127
 
128
128
  module VericredClient
129
- class InlineResponse2001
130
- attr_accessor :provider
129
+ class Base
130
+ # Metadata for query
131
+ attr_accessor :meta
131
132
 
132
133
  # Attribute mapping from ruby-style variable name to JSON key.
133
134
  def self.attribute_map
134
135
  {
135
- :'provider' => :'provider'
136
+ :'meta' => :'meta'
136
137
  }
137
138
  end
138
139
 
139
140
  # Attribute type mapping.
140
141
  def self.swagger_types
141
142
  {
142
- :'provider' => :'Provider'
143
+ :'meta' => :'Meta'
143
144
  }
144
145
  end
145
146
 
@@ -151,8 +152,8 @@ module VericredClient
151
152
  # convert string to symbol for hash key
152
153
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
153
154
 
154
- if attributes.has_key?(:'provider')
155
- self.provider = attributes[:'provider']
155
+ if attributes.has_key?(:'meta')
156
+ self.meta = attributes[:'meta']
156
157
  end
157
158
 
158
159
  end
@@ -174,7 +175,7 @@ module VericredClient
174
175
  def ==(o)
175
176
  return true if self.equal?(o)
176
177
  self.class == o.class &&
177
- provider == o.provider
178
+ meta == o.meta
178
179
  end
179
180
 
180
181
  # @see the `==` method
@@ -186,7 +187,7 @@ module VericredClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Fixnum] Hash code
188
189
  def hash
189
- [provider].hash
190
+ [meta].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash
@@ -116,7 +116,7 @@ The response would be
116
116
 
117
117
 
118
118
 
119
- OpenAPI spec version:
119
+ OpenAPI spec version: 1.0.0
120
120
 
121
121
  Generated by: https://github.com/swagger-api/swagger-codegen.git
122
122
 
@@ -130,18 +130,18 @@ module VericredClient
130
130
  # Primary key
131
131
  attr_accessor :id
132
132
 
133
- # Name of the Carrier
134
- attr_accessor :name
135
-
136
133
  # URL for the Carrier's logo
137
134
  attr_accessor :logo_path
138
135
 
136
+ # Name of the Carrier
137
+ attr_accessor :name
138
+
139
139
  # Attribute mapping from ruby-style variable name to JSON key.
140
140
  def self.attribute_map
141
141
  {
142
142
  :'id' => :'id',
143
- :'name' => :'name',
144
- :'logo_path' => :'logo_path'
143
+ :'logo_path' => :'logo_path',
144
+ :'name' => :'name'
145
145
  }
146
146
  end
147
147
 
@@ -149,8 +149,8 @@ module VericredClient
149
149
  def self.swagger_types
150
150
  {
151
151
  :'id' => :'Integer',
152
- :'name' => :'String',
153
- :'logo_path' => :'String'
152
+ :'logo_path' => :'String',
153
+ :'name' => :'String'
154
154
  }
155
155
  end
156
156
 
@@ -166,14 +166,14 @@ module VericredClient
166
166
  self.id = attributes[:'id']
167
167
  end
168
168
 
169
- if attributes.has_key?(:'name')
170
- self.name = attributes[:'name']
171
- end
172
-
173
169
  if attributes.has_key?(:'logo_path')
174
170
  self.logo_path = attributes[:'logo_path']
175
171
  end
176
172
 
173
+ if attributes.has_key?(:'name')
174
+ self.name = attributes[:'name']
175
+ end
176
+
177
177
  end
178
178
 
179
179
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,8 +194,8 @@ module VericredClient
194
194
  return true if self.equal?(o)
195
195
  self.class == o.class &&
196
196
  id == o.id &&
197
- name == o.name &&
198
- logo_path == o.logo_path
197
+ logo_path == o.logo_path &&
198
+ name == o.name
199
199
  end
200
200
 
201
201
  # @see the `==` method
@@ -207,7 +207,7 @@ module VericredClient
207
207
  # Calculates hash code according to all attributes.
208
208
  # @return [Fixnum] Hash code
209
209
  def hash
210
- [id, name, logo_path].hash
210
+ [id, logo_path, name].hash
211
211
  end
212
212
 
213
213
  # Builds the object from hash