vericred_client 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -18
  3. data/docs/Applicant.md +3 -3
  4. data/docs/Carrier.md +1 -1
  5. data/docs/County.md +3 -3
  6. data/docs/Drug.md +3 -3
  7. data/docs/DrugCoverage.md +4 -4
  8. data/docs/DrugCoverageResponse.md +3 -1
  9. data/docs/DrugPackage.md +1 -1
  10. data/docs/DrugSearchResponse.md +2 -1
  11. data/docs/DrugsApi.md +71 -10
  12. data/docs/Meta.md +1 -1
  13. data/docs/Network.md +9 -0
  14. data/docs/NetworkSearchResponse.md +9 -0
  15. data/docs/NetworksApi.md +58 -0
  16. data/docs/Plan.md +10 -10
  17. data/docs/PlanCounty.md +1 -1
  18. data/docs/PlanCountyBulk.md +1 -1
  19. data/docs/{PlanFindResponse.md → PlanSearchResponse.md} +2 -1
  20. data/docs/PlanSearchResult.md +14 -14
  21. data/docs/PlansApi.md +69 -6
  22. data/docs/Provider.md +7 -6
  23. data/docs/ProvidersApi.md +39 -30
  24. data/docs/{ProviderResponse.md → ProvidersSearchResponse.md} +1 -1
  25. data/docs/RequestPlanFind.md +3 -2
  26. data/docs/RequestPlanFindApplicant.md +8 -0
  27. data/docs/RequestPlanFindProvider.md +8 -0
  28. data/docs/RequestProvidersSearch.md +17 -0
  29. data/docs/State.md +4 -4
  30. data/docs/ZipCountiesApi.md +11 -4
  31. data/docs/ZipCountiesResponse.md +11 -0
  32. data/docs/ZipCountyBulk.md +1 -1
  33. data/docs/ZipCountyResponse.md +2 -1
  34. data/lib/vericred_client/api/drugs_api.rb +86 -14
  35. data/lib/vericred_client/api/networks_api.rb +198 -0
  36. data/lib/vericred_client/api/plans_api.rb +134 -14
  37. data/lib/vericred_client/api/providers_api.rb +65 -59
  38. data/lib/vericred_client/api/zip_counties_api.rb +8 -5
  39. data/lib/vericred_client/api_client.rb +1 -1
  40. data/lib/vericred_client/api_error.rb +1 -1
  41. data/lib/vericred_client/models/applicant.rb +13 -15
  42. data/lib/vericred_client/models/base.rb +1 -1
  43. data/lib/vericred_client/models/carrier.rb +15 -15
  44. data/lib/vericred_client/models/carrier_subsidiary.rb +1 -1
  45. data/lib/vericred_client/models/county.rb +12 -16
  46. data/lib/vericred_client/models/county_bulk.rb +1 -1
  47. data/lib/vericred_client/models/drug.rb +26 -26
  48. data/lib/vericred_client/models/drug_coverage.rb +32 -38
  49. data/lib/vericred_client/models/drug_coverage_response.rb +40 -16
  50. data/lib/vericred_client/models/drug_package.rb +15 -15
  51. data/lib/vericred_client/models/drug_search_response.rb +21 -9
  52. data/lib/vericred_client/models/meta.rb +8 -8
  53. data/lib/vericred_client/models/network.rb +308 -0
  54. data/lib/vericred_client/models/{plan_find_response.rb → network_search_response.rb} +11 -11
  55. data/lib/vericred_client/models/plan.rb +62 -72
  56. data/lib/vericred_client/models/plan_county.rb +15 -15
  57. data/lib/vericred_client/models/plan_county_bulk.rb +15 -15
  58. data/lib/vericred_client/models/plan_search_response.rb +322 -0
  59. data/lib/vericred_client/models/plan_search_result.rb +102 -112
  60. data/lib/vericred_client/models/pricing.rb +1 -1
  61. data/lib/vericred_client/models/provider.rb +24 -22
  62. data/lib/vericred_client/models/{provider_response.rb → providers_search_response.rb} +2 -2
  63. data/lib/vericred_client/models/rating_area.rb +1 -1
  64. data/lib/vericred_client/models/request_plan_find.rb +16 -4
  65. data/lib/vericred_client/models/request_plan_find_applicant.rb +298 -0
  66. data/lib/vericred_client/models/request_plan_find_provider.rb +298 -0
  67. data/lib/vericred_client/models/request_providers_search.rb +372 -0
  68. data/lib/vericred_client/models/state.rb +25 -29
  69. data/lib/vericred_client/models/zip_code.rb +1 -1
  70. data/lib/vericred_client/models/zip_counties_response.rb +336 -0
  71. data/lib/vericred_client/models/zip_county.rb +1 -1
  72. data/lib/vericred_client/models/zip_county_bulk.rb +12 -12
  73. data/lib/vericred_client/models/zip_county_response.rb +21 -11
  74. data/lib/vericred_client/version.rb +2 -2
  75. data/lib/vericred_client.rb +10 -3
  76. data/spec/api/drugs_api_spec.rb +26 -5
  77. data/spec/api/networks_api_spec.rb +166 -0
  78. data/spec/api/plans_api_spec.rb +66 -6
  79. data/spec/api/providers_api_spec.rb +27 -19
  80. data/spec/api/zip_counties_api_spec.rb +4 -3
  81. metadata +22 -6
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -127,13 +127,13 @@ require 'date'
127
127
 
128
128
  module VericredClient
129
129
  class Applicant
130
- # Date of Birth
131
- attr_accessor :dob
132
-
133
130
  # Primary key
134
131
  attr_accessor :id
135
132
 
136
- # Foreign key to members
133
+ # Date of Birth
134
+ attr_accessor :dob
135
+
136
+ # Member token
137
137
  attr_accessor :member_id
138
138
 
139
139
  # Full name of the Applicant
@@ -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
- :'dob' => :'dob',
155
154
  :'id' => :'id',
155
+ :'dob' => :'dob',
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
- :'dob' => :'Date',
168
167
  :'id' => :'Integer',
168
+ :'dob' => :'Date',
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?(:'dob')
186
- self.dob = attributes[:'dob']
187
- end
188
-
189
185
  if attributes.has_key?(:'id')
190
186
  self.id = attributes[:'id']
191
187
  end
192
188
 
189
+ if attributes.has_key?(:'dob')
190
+ self.dob = attributes[:'dob']
191
+ end
192
+
193
193
  if attributes.has_key?(:'member_id')
194
194
  self.member_id = attributes[:'member_id']
195
195
  end
@@ -204,8 +204,6 @@ module VericredClient
204
204
 
205
205
  if attributes.has_key?(:'smoker')
206
206
  self.smoker = attributes[:'smoker']
207
- else
208
- self.smoker = false
209
207
  end
210
208
 
211
209
  if attributes.has_key?(:'ssn')
@@ -231,8 +229,8 @@ module VericredClient
231
229
  def ==(o)
232
230
  return true if self.equal?(o)
233
231
  self.class == o.class &&
234
- dob == o.dob &&
235
232
  id == o.id &&
233
+ dob == o.dob &&
236
234
  member_id == o.member_id &&
237
235
  name == o.name &&
238
236
  relationship == o.relationship &&
@@ -249,7 +247,7 @@ module VericredClient
249
247
  # Calculates hash code according to all attributes.
250
248
  # @return [Fixnum] Hash code
251
249
  def hash
252
- [dob, id, member_id, name, relationship, smoker, ssn].hash
250
+ [id, dob, member_id, name, relationship, smoker, ssn].hash
253
251
  end
254
252
 
255
253
  # Builds the object from hash
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -130,18 +130,18 @@ module VericredClient
130
130
  # Primary key
131
131
  attr_accessor :id
132
132
 
133
- # URL for the Carrier's logo
134
- attr_accessor :logo_path
135
-
136
133
  # Name of the Carrier
137
134
  attr_accessor :name
138
135
 
136
+ # URL for the Carrier's logo
137
+ attr_accessor :logo_path
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
- :'logo_path' => :'logo_path',
144
- :'name' => :'name'
143
+ :'name' => :'name',
144
+ :'logo_path' => :'logo_path'
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
- :'logo_path' => :'String',
153
- :'name' => :'String'
152
+ :'name' => :'String',
153
+ :'logo_path' => :'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?(:'logo_path')
170
- self.logo_path = attributes[:'logo_path']
171
- end
172
-
173
169
  if attributes.has_key?(:'name')
174
170
  self.name = attributes[:'name']
175
171
  end
176
172
 
173
+ if attributes.has_key?(:'logo_path')
174
+ self.logo_path = attributes[:'logo_path']
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
- logo_path == o.logo_path &&
198
- name == o.name
197
+ name == o.name &&
198
+ logo_path == o.logo_path
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, logo_path, name].hash
210
+ [id, name, logo_path].hash
211
211
  end
212
212
 
213
213
  # Builds the object from hash
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -127,12 +127,12 @@ require 'date'
127
127
 
128
128
  module VericredClient
129
129
  class County
130
- # State FIPS code
131
- attr_accessor :fips_code
132
-
133
130
  # Primary key
134
131
  attr_accessor :id
135
132
 
133
+ # State FIPS code
134
+ attr_accessor :fips_code
135
+
136
136
  # Human-readable name
137
137
  attr_accessor :name
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
- :'fips_code' => :'fips_code',
155
154
  :'id' => :'id',
155
+ :'fips_code' => :'fips_code',
156
156
  :'name' => :'name',
157
157
  :'state_code' => :'state_code',
158
158
  :'state_id' => :'state_id',
@@ -164,8 +164,8 @@ module VericredClient
164
164
  # Attribute type mapping.
165
165
  def self.swagger_types
166
166
  {
167
- :'fips_code' => :'String',
168
167
  :'id' => :'Integer',
168
+ :'fips_code' => :'String',
169
169
  :'name' => :'String',
170
170
  :'state_code' => :'String',
171
171
  :'state_id' => :'Integer',
@@ -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?(:'fips_code')
186
- self.fips_code = attributes[:'fips_code']
187
- end
188
-
189
185
  if attributes.has_key?(:'id')
190
186
  self.id = attributes[:'id']
191
187
  end
192
188
 
189
+ if attributes.has_key?(:'fips_code')
190
+ self.fips_code = attributes[:'fips_code']
191
+ end
192
+
193
193
  if attributes.has_key?(:'name')
194
194
  self.name = attributes[:'name']
195
195
  end
@@ -204,14 +204,10 @@ module VericredClient
204
204
 
205
205
  if attributes.has_key?(:'state_live')
206
206
  self.state_live = attributes[:'state_live']
207
- else
208
- self.state_live = false
209
207
  end
210
208
 
211
209
  if attributes.has_key?(:'state_live_for_business')
212
210
  self.state_live_for_business = attributes[:'state_live_for_business']
213
- else
214
- self.state_live_for_business = false
215
211
  end
216
212
 
217
213
  end
@@ -233,8 +229,8 @@ module VericredClient
233
229
  def ==(o)
234
230
  return true if self.equal?(o)
235
231
  self.class == o.class &&
236
- fips_code == o.fips_code &&
237
232
  id == o.id &&
233
+ fips_code == o.fips_code &&
238
234
  name == o.name &&
239
235
  state_code == o.state_code &&
240
236
  state_id == o.state_id &&
@@ -251,7 +247,7 @@ module VericredClient
251
247
  # Calculates hash code according to all attributes.
252
248
  # @return [Fixnum] Hash code
253
249
  def hash
254
- [fips_code, id, name, state_code, state_id, state_live, state_live_for_business].hash
250
+ [id, fips_code, name, state_code, state_id, state_live, state_live_for_business].hash
255
251
  end
256
252
 
257
253
  # Builds the object from hash
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -128,34 +128,34 @@ require 'date'
128
128
  module VericredClient
129
129
  class Drug
130
130
  # National Drug Code ID
131
- attr_accessor :ndc
131
+ attr_accessor :id
132
+
133
+ # Proprietary name of drug
134
+ attr_accessor :proprietary_name
132
135
 
133
136
  # Non-proprietary name of drug
134
137
  attr_accessor :non_proprietary_name
135
138
 
136
- # Available retail/prescription packages for this drug
137
- attr_accessor :packages
138
-
139
- # Proprietary name of drug
140
- attr_accessor :proprietary_name
139
+ # Array of drug package Ids
140
+ attr_accessor :drug_package_ids
141
141
 
142
142
  # Attribute mapping from ruby-style variable name to JSON key.
143
143
  def self.attribute_map
144
144
  {
145
- :'ndc' => :'ndc',
145
+ :'id' => :'id',
146
+ :'proprietary_name' => :'proprietary_name',
146
147
  :'non_proprietary_name' => :'non_proprietary_name',
147
- :'packages' => :'packages',
148
- :'proprietary_name' => :'proprietary_name'
148
+ :'drug_package_ids' => :'drug_package_ids'
149
149
  }
150
150
  end
151
151
 
152
152
  # Attribute type mapping.
153
153
  def self.swagger_types
154
154
  {
155
- :'ndc' => :'String',
155
+ :'id' => :'String',
156
+ :'proprietary_name' => :'String',
156
157
  :'non_proprietary_name' => :'String',
157
- :'packages' => :'Array<DrugPackage>',
158
- :'proprietary_name' => :'String'
158
+ :'drug_package_ids' => :'Array<String>'
159
159
  }
160
160
  end
161
161
 
@@ -167,24 +167,24 @@ module VericredClient
167
167
  # convert string to symbol for hash key
168
168
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
169
169
 
170
- if attributes.has_key?(:'ndc')
171
- self.ndc = attributes[:'ndc']
170
+ if attributes.has_key?(:'id')
171
+ self.id = attributes[:'id']
172
+ end
173
+
174
+ if attributes.has_key?(:'proprietary_name')
175
+ self.proprietary_name = attributes[:'proprietary_name']
172
176
  end
173
177
 
174
178
  if attributes.has_key?(:'non_proprietary_name')
175
179
  self.non_proprietary_name = attributes[:'non_proprietary_name']
176
180
  end
177
181
 
178
- if attributes.has_key?(:'packages')
179
- if (value = attributes[:'packages']).is_a?(Array)
180
- self.packages = value
182
+ if attributes.has_key?(:'drug_package_ids')
183
+ if (value = attributes[:'drug_package_ids']).is_a?(Array)
184
+ self.drug_package_ids = value
181
185
  end
182
186
  end
183
187
 
184
- if attributes.has_key?(:'proprietary_name')
185
- self.proprietary_name = attributes[:'proprietary_name']
186
- end
187
-
188
188
  end
189
189
 
190
190
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -204,10 +204,10 @@ module VericredClient
204
204
  def ==(o)
205
205
  return true if self.equal?(o)
206
206
  self.class == o.class &&
207
- ndc == o.ndc &&
207
+ id == o.id &&
208
+ proprietary_name == o.proprietary_name &&
208
209
  non_proprietary_name == o.non_proprietary_name &&
209
- packages == o.packages &&
210
- proprietary_name == o.proprietary_name
210
+ drug_package_ids == o.drug_package_ids
211
211
  end
212
212
 
213
213
  # @see the `==` method
@@ -219,7 +219,7 @@ module VericredClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Fixnum] Hash code
221
221
  def hash
222
- [ndc, non_proprietary_name, packages, proprietary_name].hash
222
+ [id, proprietary_name, non_proprietary_name, drug_package_ids].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -127,45 +127,45 @@ require 'date'
127
127
 
128
128
  module VericredClient
129
129
  class DrugCoverage
130
- # NDC package code
131
- attr_accessor :ndc_package_code
132
-
133
130
  # Health Insurance Oversight System id
134
131
  attr_accessor :plan_id
135
132
 
136
- # Prior authorization required
137
- attr_accessor :prior_authorization
133
+ # NDC package code
134
+ attr_accessor :drug_package_id
135
+
136
+ # Tier Name
137
+ attr_accessor :tier
138
138
 
139
139
  # Quantity limit exists
140
140
  attr_accessor :quantity_limit
141
141
 
142
+ # Prior authorization required
143
+ attr_accessor :prior_authorization
144
+
142
145
  # Step Treatment required
143
146
  attr_accessor :step_therapy
144
147
 
145
- # Tier Name
146
- attr_accessor :tier
147
-
148
148
  # Attribute mapping from ruby-style variable name to JSON key.
149
149
  def self.attribute_map
150
150
  {
151
- :'ndc_package_code' => :'ndc_package_code',
152
151
  :'plan_id' => :'plan_id',
153
- :'prior_authorization' => :'prior_authorization',
152
+ :'drug_package_id' => :'drug_package_id',
153
+ :'tier' => :'tier',
154
154
  :'quantity_limit' => :'quantity_limit',
155
- :'step_therapy' => :'step_therapy',
156
- :'tier' => :'tier'
155
+ :'prior_authorization' => :'prior_authorization',
156
+ :'step_therapy' => :'step_therapy'
157
157
  }
158
158
  end
159
159
 
160
160
  # Attribute type mapping.
161
161
  def self.swagger_types
162
162
  {
163
- :'ndc_package_code' => :'String',
164
163
  :'plan_id' => :'String',
165
- :'prior_authorization' => :'BOOLEAN',
164
+ :'drug_package_id' => :'String',
165
+ :'tier' => :'String',
166
166
  :'quantity_limit' => :'BOOLEAN',
167
- :'step_therapy' => :'BOOLEAN',
168
- :'tier' => :'String'
167
+ :'prior_authorization' => :'BOOLEAN',
168
+ :'step_therapy' => :'BOOLEAN'
169
169
  }
170
170
  end
171
171
 
@@ -177,34 +177,28 @@ module VericredClient
177
177
  # convert string to symbol for hash key
178
178
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
179
179
 
180
- if attributes.has_key?(:'ndc_package_code')
181
- self.ndc_package_code = attributes[:'ndc_package_code']
182
- end
183
-
184
180
  if attributes.has_key?(:'plan_id')
185
181
  self.plan_id = attributes[:'plan_id']
186
182
  end
187
183
 
188
- if attributes.has_key?(:'prior_authorization')
189
- self.prior_authorization = attributes[:'prior_authorization']
190
- else
191
- self.prior_authorization = false
184
+ if attributes.has_key?(:'drug_package_id')
185
+ self.drug_package_id = attributes[:'drug_package_id']
186
+ end
187
+
188
+ if attributes.has_key?(:'tier')
189
+ self.tier = attributes[:'tier']
192
190
  end
193
191
 
194
192
  if attributes.has_key?(:'quantity_limit')
195
193
  self.quantity_limit = attributes[:'quantity_limit']
196
- else
197
- self.quantity_limit = false
198
194
  end
199
195
 
200
- if attributes.has_key?(:'step_therapy')
201
- self.step_therapy = attributes[:'step_therapy']
202
- else
203
- self.step_therapy = false
196
+ if attributes.has_key?(:'prior_authorization')
197
+ self.prior_authorization = attributes[:'prior_authorization']
204
198
  end
205
199
 
206
- if attributes.has_key?(:'tier')
207
- self.tier = attributes[:'tier']
200
+ if attributes.has_key?(:'step_therapy')
201
+ self.step_therapy = attributes[:'step_therapy']
208
202
  end
209
203
 
210
204
  end
@@ -226,12 +220,12 @@ module VericredClient
226
220
  def ==(o)
227
221
  return true if self.equal?(o)
228
222
  self.class == o.class &&
229
- ndc_package_code == o.ndc_package_code &&
230
223
  plan_id == o.plan_id &&
231
- prior_authorization == o.prior_authorization &&
224
+ drug_package_id == o.drug_package_id &&
225
+ tier == o.tier &&
232
226
  quantity_limit == o.quantity_limit &&
233
- step_therapy == o.step_therapy &&
234
- tier == o.tier
227
+ prior_authorization == o.prior_authorization &&
228
+ step_therapy == o.step_therapy
235
229
  end
236
230
 
237
231
  # @see the `==` method
@@ -243,7 +237,7 @@ module VericredClient
243
237
  # Calculates hash code according to all attributes.
244
238
  # @return [Fixnum] Hash code
245
239
  def hash
246
- [ndc_package_code, plan_id, prior_authorization, quantity_limit, step_therapy, tier].hash
240
+ [plan_id, drug_package_id, tier, quantity_limit, prior_authorization, step_therapy].hash
247
241
  end
248
242
 
249
243
  # Builds the object from hash
@@ -6,7 +6,7 @@ accepts.
6
6
 
7
7
  ## Getting Started
8
8
 
9
- Visit our [Developer Portal](https://vericred.3scale.net/access_code?access_code=vericred&cms_token=3545ca52af07bde85b7c0c3aa9d1985e) to
9
+ Visit our [Developer Portal](https://vericred.3scale.net) to
10
10
  create an account.
11
11
 
12
12
  Once you have created an account, you can create one Application for
@@ -127,25 +127,35 @@ require 'date'
127
127
 
128
128
  module VericredClient
129
129
  class DrugCoverageResponse
130
- # DrugCoverage search results
131
- attr_accessor :coverages
132
-
133
130
  # Metadata for query
134
131
  attr_accessor :meta
135
132
 
133
+ # DrugCoverage search results
134
+ attr_accessor :drug_coverages
135
+
136
+ # Drug
137
+ attr_accessor :drugs
138
+
139
+ # Drug Packages
140
+ attr_accessor :drug_packages
141
+
136
142
  # Attribute mapping from ruby-style variable name to JSON key.
137
143
  def self.attribute_map
138
144
  {
139
- :'coverages' => :'coverages',
140
- :'meta' => :'meta'
145
+ :'meta' => :'meta',
146
+ :'drug_coverages' => :'drug_coverages',
147
+ :'drugs' => :'drugs',
148
+ :'drug_packages' => :'drug_packages'
141
149
  }
142
150
  end
143
151
 
144
152
  # Attribute type mapping.
145
153
  def self.swagger_types
146
154
  {
147
- :'coverages' => :'Array<DrugCoverage>',
148
- :'meta' => :'Meta'
155
+ :'meta' => :'Meta',
156
+ :'drug_coverages' => :'Array<DrugCoverage>',
157
+ :'drugs' => :'Array<Drug>',
158
+ :'drug_packages' => :'Array<DrugPackage>'
149
159
  }
150
160
  end
151
161
 
@@ -157,14 +167,26 @@ module VericredClient
157
167
  # convert string to symbol for hash key
158
168
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
159
169
 
160
- if attributes.has_key?(:'coverages')
161
- if (value = attributes[:'coverages']).is_a?(Array)
162
- self.coverages = value
170
+ if attributes.has_key?(:'meta')
171
+ self.meta = attributes[:'meta']
172
+ end
173
+
174
+ if attributes.has_key?(:'drug_coverages')
175
+ if (value = attributes[:'drug_coverages']).is_a?(Array)
176
+ self.drug_coverages = value
163
177
  end
164
178
  end
165
179
 
166
- if attributes.has_key?(:'meta')
167
- self.meta = attributes[:'meta']
180
+ if attributes.has_key?(:'drugs')
181
+ if (value = attributes[:'drugs']).is_a?(Array)
182
+ self.drugs = value
183
+ end
184
+ end
185
+
186
+ if attributes.has_key?(:'drug_packages')
187
+ if (value = attributes[:'drug_packages']).is_a?(Array)
188
+ self.drug_packages = value
189
+ end
168
190
  end
169
191
 
170
192
  end
@@ -186,8 +208,10 @@ module VericredClient
186
208
  def ==(o)
187
209
  return true if self.equal?(o)
188
210
  self.class == o.class &&
189
- coverages == o.coverages &&
190
- meta == o.meta
211
+ meta == o.meta &&
212
+ drug_coverages == o.drug_coverages &&
213
+ drugs == o.drugs &&
214
+ drug_packages == o.drug_packages
191
215
  end
192
216
 
193
217
  # @see the `==` method
@@ -199,7 +223,7 @@ module VericredClient
199
223
  # Calculates hash code according to all attributes.
200
224
  # @return [Fixnum] Hash code
201
225
  def hash
202
- [coverages, meta].hash
226
+ [meta, drug_coverages, drugs, drug_packages].hash
203
227
  end
204
228
 
205
229
  # Builds the object from hash