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.
- checksums.yaml +4 -4
- data/README.md +31 -18
- data/docs/Applicant.md +3 -3
- data/docs/Carrier.md +1 -1
- data/docs/County.md +3 -3
- data/docs/Drug.md +3 -3
- data/docs/DrugCoverage.md +4 -4
- data/docs/DrugCoverageResponse.md +3 -1
- data/docs/DrugPackage.md +1 -1
- data/docs/DrugSearchResponse.md +2 -1
- data/docs/DrugsApi.md +71 -10
- data/docs/Meta.md +1 -1
- data/docs/Network.md +9 -0
- data/docs/NetworkSearchResponse.md +9 -0
- data/docs/NetworksApi.md +58 -0
- data/docs/Plan.md +10 -10
- data/docs/PlanCounty.md +1 -1
- data/docs/PlanCountyBulk.md +1 -1
- data/docs/{PlanFindResponse.md → PlanSearchResponse.md} +2 -1
- data/docs/PlanSearchResult.md +14 -14
- data/docs/PlansApi.md +69 -6
- data/docs/Provider.md +7 -6
- data/docs/ProvidersApi.md +39 -30
- data/docs/{ProviderResponse.md → ProvidersSearchResponse.md} +1 -1
- data/docs/RequestPlanFind.md +3 -2
- data/docs/RequestPlanFindApplicant.md +8 -0
- data/docs/RequestPlanFindProvider.md +8 -0
- data/docs/RequestProvidersSearch.md +17 -0
- data/docs/State.md +4 -4
- data/docs/ZipCountiesApi.md +11 -4
- data/docs/ZipCountiesResponse.md +11 -0
- data/docs/ZipCountyBulk.md +1 -1
- data/docs/ZipCountyResponse.md +2 -1
- data/lib/vericred_client/api/drugs_api.rb +86 -14
- data/lib/vericred_client/api/networks_api.rb +198 -0
- data/lib/vericred_client/api/plans_api.rb +134 -14
- data/lib/vericred_client/api/providers_api.rb +65 -59
- data/lib/vericred_client/api/zip_counties_api.rb +8 -5
- data/lib/vericred_client/api_client.rb +1 -1
- data/lib/vericred_client/api_error.rb +1 -1
- data/lib/vericred_client/models/applicant.rb +13 -15
- data/lib/vericred_client/models/base.rb +1 -1
- data/lib/vericred_client/models/carrier.rb +15 -15
- data/lib/vericred_client/models/carrier_subsidiary.rb +1 -1
- data/lib/vericred_client/models/county.rb +12 -16
- data/lib/vericred_client/models/county_bulk.rb +1 -1
- data/lib/vericred_client/models/drug.rb +26 -26
- data/lib/vericred_client/models/drug_coverage.rb +32 -38
- data/lib/vericred_client/models/drug_coverage_response.rb +40 -16
- data/lib/vericred_client/models/drug_package.rb +15 -15
- data/lib/vericred_client/models/drug_search_response.rb +21 -9
- data/lib/vericred_client/models/meta.rb +8 -8
- data/lib/vericred_client/models/network.rb +308 -0
- data/lib/vericred_client/models/{plan_find_response.rb → network_search_response.rb} +11 -11
- data/lib/vericred_client/models/plan.rb +62 -72
- data/lib/vericred_client/models/plan_county.rb +15 -15
- data/lib/vericred_client/models/plan_county_bulk.rb +15 -15
- data/lib/vericred_client/models/plan_search_response.rb +322 -0
- data/lib/vericred_client/models/plan_search_result.rb +102 -112
- data/lib/vericred_client/models/pricing.rb +1 -1
- data/lib/vericred_client/models/provider.rb +24 -22
- data/lib/vericred_client/models/{provider_response.rb → providers_search_response.rb} +2 -2
- data/lib/vericred_client/models/rating_area.rb +1 -1
- data/lib/vericred_client/models/request_plan_find.rb +16 -4
- data/lib/vericred_client/models/request_plan_find_applicant.rb +298 -0
- data/lib/vericred_client/models/request_plan_find_provider.rb +298 -0
- data/lib/vericred_client/models/request_providers_search.rb +372 -0
- data/lib/vericred_client/models/state.rb +25 -29
- data/lib/vericred_client/models/zip_code.rb +1 -1
- data/lib/vericred_client/models/zip_counties_response.rb +336 -0
- data/lib/vericred_client/models/zip_county.rb +1 -1
- data/lib/vericred_client/models/zip_county_bulk.rb +12 -12
- data/lib/vericred_client/models/zip_county_response.rb +21 -11
- data/lib/vericred_client/version.rb +2 -2
- data/lib/vericred_client.rb +10 -3
- data/spec/api/drugs_api_spec.rb +26 -5
- data/spec/api/networks_api_spec.rb +166 -0
- data/spec/api/plans_api_spec.rb +66 -6
- data/spec/api/providers_api_spec.rb +27 -19
- data/spec/api/zip_counties_api_spec.rb +4 -3
- metadata +22 -6
@@ -0,0 +1,336 @@
|
|
1
|
+
=begin
|
2
|
+
Vericred API
|
3
|
+
|
4
|
+
Vericred's API allows you to search for Health Plans that a specific doctor
|
5
|
+
accepts.
|
6
|
+
|
7
|
+
## Getting Started
|
8
|
+
|
9
|
+
Visit our [Developer Portal](https://vericred.3scale.net) to
|
10
|
+
create an account.
|
11
|
+
|
12
|
+
Once you have created an account, you can create one Application for
|
13
|
+
Production and another for our Sandbox (select the appropriate Plan when
|
14
|
+
you create the Application).
|
15
|
+
|
16
|
+
## Authentication
|
17
|
+
|
18
|
+
To authenticate, pass the API Key you created in the Developer Portal as
|
19
|
+
a `Vericred-Api-Key` header.
|
20
|
+
|
21
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
22
|
+
|
23
|
+
## Versioning
|
24
|
+
|
25
|
+
Vericred's API default to the latest version. However, if you need a specific
|
26
|
+
version, you can request it with an `Accept-Version` header.
|
27
|
+
|
28
|
+
The current version is `v3`. Previous versions are `v1` and `v2`.
|
29
|
+
|
30
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
31
|
+
|
32
|
+
## Pagination
|
33
|
+
|
34
|
+
Most endpoints are not paginated. It will be noted in the documentation if/when
|
35
|
+
an endpoint is paginated.
|
36
|
+
|
37
|
+
When pagination is present, a `meta` stanza will be present in the response
|
38
|
+
with the total number of records
|
39
|
+
|
40
|
+
```
|
41
|
+
{
|
42
|
+
things: [{ id: 1 }, { id: 2 }],
|
43
|
+
meta: { total: 500 }
|
44
|
+
}
|
45
|
+
```
|
46
|
+
|
47
|
+
## Sideloading
|
48
|
+
|
49
|
+
When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
|
50
|
+
we sideload the associated data. In this example, we would provide an Array of
|
51
|
+
`State`s and a `state_id` for each provider. This is done primarily to reduce the
|
52
|
+
payload size since many of the `Provider`s will share a `State`
|
53
|
+
|
54
|
+
```
|
55
|
+
{
|
56
|
+
providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
|
57
|
+
states: [{ id: 1, code: 'NY' }]
|
58
|
+
}
|
59
|
+
```
|
60
|
+
|
61
|
+
If you need the second level of the object graph, you can just match the
|
62
|
+
corresponding id.
|
63
|
+
|
64
|
+
## Selecting specific data
|
65
|
+
|
66
|
+
All endpoints allow you to specify which fields you would like to return.
|
67
|
+
This allows you to limit the response to contain only the data you need.
|
68
|
+
|
69
|
+
For example, let's take a request that returns the following JSON by default
|
70
|
+
|
71
|
+
```
|
72
|
+
{
|
73
|
+
provider: {
|
74
|
+
id: 1,
|
75
|
+
name: 'John',
|
76
|
+
phone: '1234567890',
|
77
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
78
|
+
},
|
79
|
+
states: [{
|
80
|
+
id: 1,
|
81
|
+
name: 'New York',
|
82
|
+
code: 'NY',
|
83
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
84
|
+
}]
|
85
|
+
}
|
86
|
+
```
|
87
|
+
|
88
|
+
To limit our results to only return the fields we care about, we specify the
|
89
|
+
`select` query string parameter for the corresponding fields in the JSON
|
90
|
+
document.
|
91
|
+
|
92
|
+
In this case, we want to select `name` and `phone` from the `provider` key,
|
93
|
+
so we would add the parameters `select=provider.name,provider.phone`.
|
94
|
+
We also want the `name` and `code` from the `states` key, so we would
|
95
|
+
add the parameters `select=states.name,staes.code`. The id field of
|
96
|
+
each document is always returned whether or not it is requested.
|
97
|
+
|
98
|
+
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
99
|
+
|
100
|
+
The response would be
|
101
|
+
|
102
|
+
```
|
103
|
+
{
|
104
|
+
provider: {
|
105
|
+
id: 1,
|
106
|
+
name: 'John',
|
107
|
+
phone: '1234567890'
|
108
|
+
},
|
109
|
+
states: [{
|
110
|
+
id: 1,
|
111
|
+
name: 'New York',
|
112
|
+
code: 'NY'
|
113
|
+
}]
|
114
|
+
}
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
OpenAPI spec version: 1.0.0
|
120
|
+
|
121
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
122
|
+
|
123
|
+
|
124
|
+
=end
|
125
|
+
|
126
|
+
require 'date'
|
127
|
+
|
128
|
+
module VericredClient
|
129
|
+
class ZipCountiesResponse
|
130
|
+
# Counties that exist in the provided zip prefix.
|
131
|
+
attr_accessor :counties
|
132
|
+
|
133
|
+
# States that exist in the provided zip prefix.
|
134
|
+
attr_accessor :states
|
135
|
+
|
136
|
+
# ZipCounties that exist in the provided zip prefix.
|
137
|
+
attr_accessor :zip_counties
|
138
|
+
|
139
|
+
# ZipCodes that exist in the provided zip prefix.
|
140
|
+
attr_accessor :zip_codes
|
141
|
+
|
142
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
143
|
+
def self.attribute_map
|
144
|
+
{
|
145
|
+
:'counties' => :'counties',
|
146
|
+
:'states' => :'states',
|
147
|
+
:'zip_counties' => :'zip_counties',
|
148
|
+
:'zip_codes' => :'zip_codes'
|
149
|
+
}
|
150
|
+
end
|
151
|
+
|
152
|
+
# Attribute type mapping.
|
153
|
+
def self.swagger_types
|
154
|
+
{
|
155
|
+
:'counties' => :'Array<County>',
|
156
|
+
:'states' => :'Array<State>',
|
157
|
+
:'zip_counties' => :'Array<ZipCounty>',
|
158
|
+
:'zip_codes' => :'Array<ZipCode>'
|
159
|
+
}
|
160
|
+
end
|
161
|
+
|
162
|
+
# Initializes the object
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
+
def initialize(attributes = {})
|
165
|
+
return unless attributes.is_a?(Hash)
|
166
|
+
|
167
|
+
# convert string to symbol for hash key
|
168
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
169
|
+
|
170
|
+
if attributes.has_key?(:'counties')
|
171
|
+
if (value = attributes[:'counties']).is_a?(Array)
|
172
|
+
self.counties = value
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.has_key?(:'states')
|
177
|
+
if (value = attributes[:'states']).is_a?(Array)
|
178
|
+
self.states = value
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.has_key?(:'zip_counties')
|
183
|
+
if (value = attributes[:'zip_counties']).is_a?(Array)
|
184
|
+
self.zip_counties = value
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.has_key?(:'zip_codes')
|
189
|
+
if (value = attributes[:'zip_codes']).is_a?(Array)
|
190
|
+
self.zip_codes = value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|
195
|
+
|
196
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
197
|
+
# @return Array for valid properies with the reasons
|
198
|
+
def list_invalid_properties
|
199
|
+
invalid_properties = Array.new
|
200
|
+
return invalid_properties
|
201
|
+
end
|
202
|
+
|
203
|
+
# Check to see if the all the properties in the model are valid
|
204
|
+
# @return true if the model is valid
|
205
|
+
def valid?
|
206
|
+
end
|
207
|
+
|
208
|
+
# Checks equality by comparing each attribute.
|
209
|
+
# @param [Object] Object to be compared
|
210
|
+
def ==(o)
|
211
|
+
return true if self.equal?(o)
|
212
|
+
self.class == o.class &&
|
213
|
+
counties == o.counties &&
|
214
|
+
states == o.states &&
|
215
|
+
zip_counties == o.zip_counties &&
|
216
|
+
zip_codes == o.zip_codes
|
217
|
+
end
|
218
|
+
|
219
|
+
# @see the `==` method
|
220
|
+
# @param [Object] Object to be compared
|
221
|
+
def eql?(o)
|
222
|
+
self == o
|
223
|
+
end
|
224
|
+
|
225
|
+
# Calculates hash code according to all attributes.
|
226
|
+
# @return [Fixnum] Hash code
|
227
|
+
def hash
|
228
|
+
[counties, states, zip_counties, zip_codes].hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Builds the object from hash
|
232
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
233
|
+
# @return [Object] Returns the model itself
|
234
|
+
def build_from_hash(attributes)
|
235
|
+
return nil unless attributes.is_a?(Hash)
|
236
|
+
self.class.swagger_types.each_pair do |key, type|
|
237
|
+
if type =~ /^Array<(.*)>/i
|
238
|
+
# check to ensure the input is an array given that the the attribute
|
239
|
+
# is documented as an array but the input is not
|
240
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
241
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
242
|
+
end
|
243
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
244
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
245
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
246
|
+
end
|
247
|
+
|
248
|
+
self
|
249
|
+
end
|
250
|
+
|
251
|
+
# Deserializes the data based on type
|
252
|
+
# @param string type Data type
|
253
|
+
# @param string value Value to be deserialized
|
254
|
+
# @return [Object] Deserialized data
|
255
|
+
def _deserialize(type, value)
|
256
|
+
case type.to_sym
|
257
|
+
when :DateTime
|
258
|
+
DateTime.parse(value)
|
259
|
+
when :Date
|
260
|
+
Date.parse(value)
|
261
|
+
when :String
|
262
|
+
value.to_s
|
263
|
+
when :Integer
|
264
|
+
value.to_i
|
265
|
+
when :Float
|
266
|
+
value.to_f
|
267
|
+
when :BOOLEAN
|
268
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
269
|
+
true
|
270
|
+
else
|
271
|
+
false
|
272
|
+
end
|
273
|
+
when :Object
|
274
|
+
# generic object (usually a Hash), return directly
|
275
|
+
value
|
276
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
277
|
+
inner_type = Regexp.last_match[:inner_type]
|
278
|
+
value.map { |v| _deserialize(inner_type, v) }
|
279
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
280
|
+
k_type = Regexp.last_match[:k_type]
|
281
|
+
v_type = Regexp.last_match[:v_type]
|
282
|
+
{}.tap do |hash|
|
283
|
+
value.each do |k, v|
|
284
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
else # model
|
288
|
+
temp_model = VericredClient.const_get(type).new
|
289
|
+
temp_model.build_from_hash(value)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# Returns the string representation of the object
|
294
|
+
# @return [String] String presentation of the object
|
295
|
+
def to_s
|
296
|
+
to_hash.to_s
|
297
|
+
end
|
298
|
+
|
299
|
+
# to_body is an alias to to_hash (backward compatibility)
|
300
|
+
# @return [Hash] Returns the object in the form of hash
|
301
|
+
def to_body
|
302
|
+
to_hash
|
303
|
+
end
|
304
|
+
|
305
|
+
# Returns the object in the form of hash
|
306
|
+
# @return [Hash] Returns the object in the form of hash
|
307
|
+
def to_hash
|
308
|
+
hash = {}
|
309
|
+
self.class.attribute_map.each_pair do |attr, param|
|
310
|
+
value = self.send(attr)
|
311
|
+
next if value.nil?
|
312
|
+
hash[param] = _to_hash(value)
|
313
|
+
end
|
314
|
+
hash
|
315
|
+
end
|
316
|
+
|
317
|
+
# Outputs non-array value in the form of hash
|
318
|
+
# For object, use to_hash. Otherwise, just return the value
|
319
|
+
# @param [Object] value Any valid value
|
320
|
+
# @return [Hash] Returns the value in the form of hash
|
321
|
+
def _to_hash(value)
|
322
|
+
if value.is_a?(Array)
|
323
|
+
value.compact.map{ |v| _to_hash(v) }
|
324
|
+
elsif value.is_a?(Hash)
|
325
|
+
{}.tap do |hash|
|
326
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
327
|
+
end
|
328
|
+
elsif value.respond_to? :to_hash
|
329
|
+
value.to_hash
|
330
|
+
else
|
331
|
+
value
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
end
|
336
|
+
end
|
@@ -6,7 +6,7 @@ accepts.
|
|
6
6
|
|
7
7
|
## Getting Started
|
8
8
|
|
9
|
-
Visit our [Developer Portal](https://vericred.3scale.net
|
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
|
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,24 +127,24 @@ require 'date'
|
|
127
127
|
|
128
128
|
module VericredClient
|
129
129
|
class ZipCountyBulk
|
130
|
-
# Foreign key for county (fips code)
|
131
|
-
attr_accessor :county_id
|
132
|
-
|
133
130
|
# Primary key
|
134
131
|
attr_accessor :id
|
135
132
|
|
136
133
|
# Foreign key for rating area
|
137
134
|
attr_accessor :rating_area_id
|
138
135
|
|
136
|
+
# Foreign key for county (fips code)
|
137
|
+
attr_accessor :county_id
|
138
|
+
|
139
139
|
# Foreign key for zip code (zip code)
|
140
140
|
attr_accessor :zip_code_id
|
141
141
|
|
142
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
143
143
|
def self.attribute_map
|
144
144
|
{
|
145
|
-
:'county_id' => :'county_id',
|
146
145
|
:'id' => :'id',
|
147
146
|
:'rating_area_id' => :'rating_area_id',
|
147
|
+
:'county_id' => :'county_id',
|
148
148
|
:'zip_code_id' => :'zip_code_id'
|
149
149
|
}
|
150
150
|
end
|
@@ -152,9 +152,9 @@ module VericredClient
|
|
152
152
|
# Attribute type mapping.
|
153
153
|
def self.swagger_types
|
154
154
|
{
|
155
|
-
:'county_id' => :'String',
|
156
155
|
:'id' => :'Integer',
|
157
156
|
:'rating_area_id' => :'String',
|
157
|
+
:'county_id' => :'String',
|
158
158
|
:'zip_code_id' => :'String'
|
159
159
|
}
|
160
160
|
end
|
@@ -167,10 +167,6 @@ 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?(:'county_id')
|
171
|
-
self.county_id = attributes[:'county_id']
|
172
|
-
end
|
173
|
-
|
174
170
|
if attributes.has_key?(:'id')
|
175
171
|
self.id = attributes[:'id']
|
176
172
|
end
|
@@ -179,6 +175,10 @@ module VericredClient
|
|
179
175
|
self.rating_area_id = attributes[:'rating_area_id']
|
180
176
|
end
|
181
177
|
|
178
|
+
if attributes.has_key?(:'county_id')
|
179
|
+
self.county_id = attributes[:'county_id']
|
180
|
+
end
|
181
|
+
|
182
182
|
if attributes.has_key?(:'zip_code_id')
|
183
183
|
self.zip_code_id = attributes[:'zip_code_id']
|
184
184
|
end
|
@@ -202,9 +202,9 @@ module VericredClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
county_id == o.county_id &&
|
206
205
|
id == o.id &&
|
207
206
|
rating_area_id == o.rating_area_id &&
|
207
|
+
county_id == o.county_id &&
|
208
208
|
zip_code_id == o.zip_code_id
|
209
209
|
end
|
210
210
|
|
@@ -217,7 +217,7 @@ module VericredClient
|
|
217
217
|
# Calculates hash code according to all attributes.
|
218
218
|
# @return [Fixnum] Hash code
|
219
219
|
def hash
|
220
|
-
[
|
220
|
+
[id, rating_area_id, county_id, zip_code_id].hash
|
221
221
|
end
|
222
222
|
|
223
223
|
# 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
|
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,22 @@ module VericredClient
|
|
130
130
|
# Counties that exist in the provided zip prefix.
|
131
131
|
attr_accessor :counties
|
132
132
|
|
133
|
+
# States that exist in the provided zip prefix.
|
134
|
+
attr_accessor :states
|
135
|
+
|
133
136
|
# ZipCodes that exist in the provided zip prefix.
|
134
137
|
attr_accessor :zip_codes
|
135
138
|
|
136
|
-
#
|
137
|
-
attr_accessor :
|
139
|
+
# ZipCounty data
|
140
|
+
attr_accessor :zip_county
|
138
141
|
|
139
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
140
143
|
def self.attribute_map
|
141
144
|
{
|
142
145
|
:'counties' => :'counties',
|
146
|
+
:'states' => :'states',
|
143
147
|
:'zip_codes' => :'zip_codes',
|
144
|
-
:'
|
148
|
+
:'zip_county' => :'zip_county'
|
145
149
|
}
|
146
150
|
end
|
147
151
|
|
@@ -149,8 +153,9 @@ module VericredClient
|
|
149
153
|
def self.swagger_types
|
150
154
|
{
|
151
155
|
:'counties' => :'Array<County>',
|
156
|
+
:'states' => :'Array<State>',
|
152
157
|
:'zip_codes' => :'Array<ZipCode>',
|
153
|
-
:'
|
158
|
+
:'zip_county' => :'ZipCounty'
|
154
159
|
}
|
155
160
|
end
|
156
161
|
|
@@ -168,16 +173,20 @@ module VericredClient
|
|
168
173
|
end
|
169
174
|
end
|
170
175
|
|
176
|
+
if attributes.has_key?(:'states')
|
177
|
+
if (value = attributes[:'states']).is_a?(Array)
|
178
|
+
self.states = value
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
171
182
|
if attributes.has_key?(:'zip_codes')
|
172
183
|
if (value = attributes[:'zip_codes']).is_a?(Array)
|
173
184
|
self.zip_codes = value
|
174
185
|
end
|
175
186
|
end
|
176
187
|
|
177
|
-
if attributes.has_key?(:'
|
178
|
-
|
179
|
-
self.zip_counties = value
|
180
|
-
end
|
188
|
+
if attributes.has_key?(:'zip_county')
|
189
|
+
self.zip_county = attributes[:'zip_county']
|
181
190
|
end
|
182
191
|
|
183
192
|
end
|
@@ -200,8 +209,9 @@ module VericredClient
|
|
200
209
|
return true if self.equal?(o)
|
201
210
|
self.class == o.class &&
|
202
211
|
counties == o.counties &&
|
212
|
+
states == o.states &&
|
203
213
|
zip_codes == o.zip_codes &&
|
204
|
-
|
214
|
+
zip_county == o.zip_county
|
205
215
|
end
|
206
216
|
|
207
217
|
# @see the `==` method
|
@@ -213,7 +223,7 @@ module VericredClient
|
|
213
223
|
# Calculates hash code according to all attributes.
|
214
224
|
# @return [Fixnum] Hash code
|
215
225
|
def hash
|
216
|
-
[counties, zip_codes,
|
226
|
+
[counties, states, zip_codes, zip_county].hash
|
217
227
|
end
|
218
228
|
|
219
229
|
# 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
|
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
|
@@ -124,5 +124,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
124
124
|
=end
|
125
125
|
|
126
126
|
module VericredClient
|
127
|
-
VERSION = "0.0.
|
127
|
+
VERSION = "0.0.5"
|
128
128
|
end
|
data/lib/vericred_client.rb
CHANGED
@@ -6,7 +6,7 @@ accepts.
|
|
6
6
|
|
7
7
|
## Getting Started
|
8
8
|
|
9
|
-
Visit our [Developer Portal](https://vericred.3scale.net
|
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
|
@@ -142,24 +142,31 @@ require 'vericred_client/models/drug_coverage_response'
|
|
142
142
|
require 'vericred_client/models/drug_package'
|
143
143
|
require 'vericred_client/models/drug_search_response'
|
144
144
|
require 'vericred_client/models/meta'
|
145
|
+
require 'vericred_client/models/network'
|
146
|
+
require 'vericred_client/models/network_search_response'
|
145
147
|
require 'vericred_client/models/plan'
|
146
148
|
require 'vericred_client/models/plan_county'
|
147
149
|
require 'vericred_client/models/plan_county_bulk'
|
148
|
-
require 'vericred_client/models/
|
150
|
+
require 'vericred_client/models/plan_search_response'
|
149
151
|
require 'vericred_client/models/plan_search_result'
|
150
152
|
require 'vericred_client/models/pricing'
|
151
153
|
require 'vericred_client/models/provider'
|
152
|
-
require 'vericred_client/models/
|
154
|
+
require 'vericred_client/models/providers_search_response'
|
153
155
|
require 'vericred_client/models/rating_area'
|
154
156
|
require 'vericred_client/models/request_plan_find'
|
157
|
+
require 'vericred_client/models/request_plan_find_applicant'
|
158
|
+
require 'vericred_client/models/request_plan_find_provider'
|
159
|
+
require 'vericred_client/models/request_providers_search'
|
155
160
|
require 'vericred_client/models/state'
|
156
161
|
require 'vericred_client/models/zip_code'
|
162
|
+
require 'vericred_client/models/zip_counties_response'
|
157
163
|
require 'vericred_client/models/zip_county'
|
158
164
|
require 'vericred_client/models/zip_county_bulk'
|
159
165
|
require 'vericred_client/models/zip_county_response'
|
160
166
|
|
161
167
|
# APIs
|
162
168
|
require 'vericred_client/api/drugs_api'
|
169
|
+
require 'vericred_client/api/networks_api'
|
163
170
|
require 'vericred_client/api/plans_api'
|
164
171
|
require 'vericred_client/api/providers_api'
|
165
172
|
require 'vericred_client/api/zip_counties_api'
|
data/spec/api/drugs_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@ accepts.
|
|
6
6
|
|
7
7
|
## Getting Started
|
8
8
|
|
9
|
-
Visit our [Developer Portal](https://vericred.3scale.net
|
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
|
@@ -145,14 +145,35 @@ describe 'DrugsApi' do
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
# unit tests for
|
149
|
-
#
|
150
|
-
# Drug Coverages are the specific tier level, quantity limit, prior
|
148
|
+
# unit tests for get_drug_coverages
|
149
|
+
# Search for DrugCoverages
|
150
|
+
# Drug Coverages are the specific tier level, quantity limit, prior
|
151
|
+
authorization and step therapy for a given Drug/Plan combination. This endpoint
|
152
|
+
returns all DrugCoverages for a given Drug
|
151
153
|
# @param ndc_package_code NDC package code
|
154
|
+
# @param audience Two-character state code
|
152
155
|
# @param state_code Two-character state code
|
153
156
|
# @param [Hash] opts the optional parameters
|
157
|
+
# @option opts [String] :vericred_api_key API Key
|
154
158
|
# @return [DrugCoverageResponse]
|
155
|
-
describe '
|
159
|
+
describe 'get_drug_coverages test' do
|
160
|
+
it "should work" do
|
161
|
+
# assertion here
|
162
|
+
# should be_a()
|
163
|
+
# should be_nil
|
164
|
+
# should ==
|
165
|
+
# should_not ==
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# unit tests for list_drugs
|
170
|
+
# Drug Search
|
171
|
+
# Search for drugs by proprietary name
|
172
|
+
# @param search_term Full or partial proprietary name of drug
|
173
|
+
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [String] :vericred_api_key API Key
|
175
|
+
# @return [DrugSearchResponse]
|
176
|
+
describe 'list_drugs test' do
|
156
177
|
it "should work" do
|
157
178
|
# assertion here
|
158
179
|
# should be_a()
|