vericred_client 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +116 -13
  3. data/docs/Base.md +1 -1
  4. data/docs/Drug.md +1 -0
  5. data/docs/DrugCoverage.md +2 -1
  6. data/docs/DrugCoverageResponse.md +1 -1
  7. data/docs/DrugCoveragesApi.md +69 -0
  8. data/docs/DrugPackage.md +1 -0
  9. data/docs/DrugPackagesApi.md +66 -0
  10. data/docs/DrugSearchResponse.md +1 -1
  11. data/docs/DrugsApi.md +0 -61
  12. data/docs/Formulary.md +9 -0
  13. data/docs/FormularyDrugPackageResponse.md +10 -0
  14. data/docs/FormularyResponse.md +9 -0
  15. data/docs/Network.md +1 -1
  16. data/docs/NetworkDetails.md +10 -0
  17. data/docs/NetworkDetailsResponse.md +8 -0
  18. data/docs/NetworkSearchResponse.md +1 -1
  19. data/docs/NetworkSize.md +10 -0
  20. data/docs/NetworkSizesApi.md +124 -0
  21. data/docs/NetworksApi.md +55 -0
  22. data/docs/Plan.md +6 -4
  23. data/docs/PlanSearchResponse.md +2 -2
  24. data/docs/PlanSearchResponseMeta.md +9 -0
  25. data/docs/PlanSearchResult.md +6 -4
  26. data/docs/PlansApi.md +12 -10
  27. data/docs/Provider.md +1 -6
  28. data/docs/ProviderDetails.md +31 -0
  29. data/docs/ProviderGeocode.md +10 -0
  30. data/docs/ProvidersApi.md +61 -7
  31. data/docs/ProvidersGeocodeResponse.md +9 -0
  32. data/docs/ProvidersSearchResponse.md +1 -1
  33. data/docs/RequestPlanFindApplicant.md +2 -0
  34. data/docs/RequestPlanFindDrugPackage.md +1 -0
  35. data/docs/RequestProvidersSearch.md +5 -2
  36. data/docs/StateNetworkSizeRequest.md +9 -0
  37. data/docs/StateNetworkSizeResponse.md +9 -0
  38. data/docs/ZipCountiesApi.md +56 -1
  39. data/lib/vericred_client.rb +103 -2
  40. data/lib/vericred_client/api/drug_coverages_api.rb +295 -0
  41. data/lib/vericred_client/api/drug_packages_api.rb +289 -0
  42. data/lib/vericred_client/api/drugs_api.rb +88 -68
  43. data/lib/vericred_client/api/network_sizes_api.rb +348 -0
  44. data/lib/vericred_client/api/networks_api.rb +145 -1
  45. data/lib/vericred_client/api/plans_api.rb +108 -15
  46. data/lib/vericred_client/api/providers_api.rb +155 -9
  47. data/lib/vericred_client/api/zip_counties_api.rb +148 -4
  48. data/lib/vericred_client/api_client.rb +110 -21
  49. data/lib/vericred_client/api_error.rb +88 -1
  50. data/lib/vericred_client/configuration.rb +88 -1
  51. data/lib/vericred_client/models/applicant.rb +90 -3
  52. data/lib/vericred_client/models/base.rb +91 -4
  53. data/lib/vericred_client/models/carrier.rb +90 -3
  54. data/lib/vericred_client/models/carrier_subsidiary.rb +90 -3
  55. data/lib/vericred_client/models/county.rb +90 -3
  56. data/lib/vericred_client/models/county_bulk.rb +90 -3
  57. data/lib/vericred_client/models/drug.rb +101 -4
  58. data/lib/vericred_client/models/drug_coverage.rb +111 -14
  59. data/lib/vericred_client/models/drug_coverage_response.rb +91 -4
  60. data/lib/vericred_client/models/drug_package.rb +104 -7
  61. data/lib/vericred_client/models/drug_search_response.rb +91 -4
  62. data/lib/vericred_client/models/formulary.rb +404 -0
  63. data/lib/vericred_client/models/formulary_drug_package_response.rb +414 -0
  64. data/lib/vericred_client/models/formulary_response.rb +406 -0
  65. data/lib/vericred_client/models/meta.rb +90 -3
  66. data/lib/vericred_client/models/network.rb +91 -4
  67. data/lib/vericred_client/models/network_details.rb +416 -0
  68. data/lib/vericred_client/models/{pricing.rb → network_details_response.rb} +99 -112
  69. data/lib/vericred_client/models/network_search_response.rb +91 -4
  70. data/lib/vericred_client/models/network_size.rb +414 -0
  71. data/lib/vericred_client/models/plan.rb +115 -8
  72. data/lib/vericred_client/models/plan_county.rb +90 -3
  73. data/lib/vericred_client/models/plan_county_bulk.rb +90 -3
  74. data/lib/vericred_client/models/plan_search_response.rb +93 -6
  75. data/lib/vericred_client/models/plan_search_response_meta.rb +404 -0
  76. data/lib/vericred_client/models/plan_search_result.rb +115 -8
  77. data/lib/vericred_client/models/plan_show_response.rb +90 -3
  78. data/lib/vericred_client/models/provider.rb +101 -66
  79. data/lib/vericred_client/models/provider_details.rb +628 -0
  80. data/lib/vericred_client/models/provider_geocode.rb +414 -0
  81. data/lib/vericred_client/models/provider_show_response.rb +90 -3
  82. data/lib/vericred_client/models/providers_geocode_response.rb +406 -0
  83. data/lib/vericred_client/models/providers_search_response.rb +91 -4
  84. data/lib/vericred_client/models/rating_area.rb +90 -3
  85. data/lib/vericred_client/models/request_plan_find.rb +90 -3
  86. data/lib/vericred_client/models/request_plan_find_applicant.rb +114 -7
  87. data/lib/vericred_client/models/request_plan_find_drug_package.rb +104 -7
  88. data/lib/vericred_client/models/request_plan_find_provider.rb +90 -3
  89. data/lib/vericred_client/models/request_providers_search.rb +143 -26
  90. data/lib/vericred_client/models/service_area.rb +90 -3
  91. data/lib/vericred_client/models/service_area_zip_county.rb +90 -3
  92. data/lib/vericred_client/models/state.rb +90 -3
  93. data/lib/vericred_client/models/state_network_size_request.rb +408 -0
  94. data/lib/vericred_client/models/state_network_size_response.rb +406 -0
  95. data/lib/vericred_client/models/zip_code.rb +90 -3
  96. data/lib/vericred_client/models/zip_counties_response.rb +90 -3
  97. data/lib/vericred_client/models/zip_county.rb +90 -3
  98. data/lib/vericred_client/models/zip_county_bulk.rb +90 -3
  99. data/lib/vericred_client/models/zip_county_response.rb +90 -3
  100. data/lib/vericred_client/version.rb +89 -2
  101. data/spec/api/drug_coverages_api_spec.rb +254 -0
  102. data/spec/api/drug_packages_api_spec.rb +253 -0
  103. data/spec/api/drugs_api_spec.rb +88 -15
  104. data/spec/api/network_sizes_api_spec.rb +266 -0
  105. data/spec/api/networks_api_spec.rb +100 -1
  106. data/spec/api/plans_api_spec.rb +92 -4
  107. data/spec/api/providers_api_spec.rb +102 -3
  108. data/spec/api/zip_counties_api_spec.rb +101 -2
  109. data/spec/api_client_spec.rb +91 -25
  110. data/spec/configuration_spec.rb +88 -1
  111. data/spec/models/applicant_spec.rb +88 -1
  112. data/spec/models/base_spec.rb +88 -1
  113. data/spec/models/carrier_spec.rb +88 -1
  114. data/spec/models/carrier_subsidiary_spec.rb +88 -1
  115. data/spec/models/county_bulk_spec.rb +88 -1
  116. data/spec/models/county_spec.rb +88 -1
  117. data/spec/models/drug_coverage_response_spec.rb +88 -1
  118. data/spec/models/drug_coverage_spec.rb +95 -2
  119. data/spec/models/drug_package_spec.rb +94 -1
  120. data/spec/models/drug_search_response_spec.rb +88 -1
  121. data/spec/models/drug_spec.rb +94 -1
  122. data/spec/models/formulary_drug_package_response_spec.rb +259 -0
  123. data/spec/models/formulary_response_spec.rb +253 -0
  124. data/spec/models/formulary_spec.rb +253 -0
  125. data/spec/models/meta_spec.rb +88 -1
  126. data/spec/models/network_details_response_spec.rb +247 -0
  127. data/spec/models/network_details_spec.rb +259 -0
  128. data/spec/models/network_search_response_spec.rb +88 -1
  129. data/spec/models/network_size_spec.rb +259 -0
  130. data/spec/models/network_spec.rb +88 -1
  131. data/spec/models/plan_county_bulk_spec.rb +88 -1
  132. data/spec/models/plan_county_spec.rb +88 -1
  133. data/spec/models/plan_search_response_meta_spec.rb +253 -0
  134. data/spec/models/plan_search_response_spec.rb +88 -1
  135. data/spec/models/plan_search_result_spec.rb +100 -1
  136. data/spec/models/plan_show_response_spec.rb +88 -1
  137. data/spec/models/plan_spec.rb +100 -1
  138. data/spec/models/provider_details_spec.rb +385 -0
  139. data/spec/models/provider_geocode_spec.rb +259 -0
  140. data/spec/models/provider_show_response_spec.rb +88 -1
  141. data/spec/models/provider_spec.rb +94 -37
  142. data/spec/models/providers_geocode_response_spec.rb +253 -0
  143. data/spec/models/providers_search_response_spec.rb +88 -1
  144. data/spec/models/rating_area_spec.rb +88 -1
  145. data/spec/models/request_plan_find_applicant_spec.rb +100 -1
  146. data/spec/models/request_plan_find_drug_package_spec.rb +94 -1
  147. data/spec/models/request_plan_find_provider_spec.rb +88 -1
  148. data/spec/models/request_plan_find_spec.rb +88 -1
  149. data/spec/models/request_providers_search_spec.rb +109 -4
  150. data/spec/models/service_area_spec.rb +88 -1
  151. data/spec/models/service_area_zip_county_spec.rb +88 -1
  152. data/spec/models/state_network_size_request_spec.rb +253 -0
  153. data/spec/models/state_network_size_response_spec.rb +253 -0
  154. data/spec/models/state_spec.rb +88 -1
  155. data/spec/models/zip_code_spec.rb +88 -1
  156. data/spec/models/zip_counties_response_spec.rb +88 -1
  157. data/spec/models/zip_county_bulk_spec.rb +88 -1
  158. data/spec/models/zip_county_response_spec.rb +88 -1
  159. data/spec/models/zip_county_spec.rb +88 -1
  160. data/spec/spec_helper.rb +88 -1
  161. data/vericred_client.gemspec +90 -2
  162. metadata +66 -16
  163. data/docs/Pricing.md +0 -18
  164. data/spec/models/pricing_spec.rb +0 -220
@@ -1,18 +0,0 @@
1
- # VericredClient::Pricing
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **age** | **Integer** | Age of applicant | [optional]
7
- **effective_date** | **Date** | Effective date of plan | [optional]
8
- **expiration_date** | **Date** | Plan expiration date | [optional]
9
- **plan_id** | **Integer** | Foreign key to plans | [optional]
10
- **premium_child_only** | **Float** | Child-only premium | [optional]
11
- **premium_family** | **Float** | Family premium | [optional]
12
- **premium_single** | **Float** | Single-person premium | [optional]
13
- **premium_single_and_children** | **Float** | Single person including children premium | [optional]
14
- **premium_single_and_spouse** | **Float** | Person with spouse premium | [optional]
15
- **premium_single_smoker** | **Float** | Premium for single smoker | [optional]
16
- **rating_area_id** | **String** | Foreign key to rating areas | [optional]
17
-
18
-
@@ -1,220 +0,0 @@
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
- Endpoints that accept `page` and `per_page` parameters are paginated. They expose
35
- four additional fields that contain data about your position in the response,
36
- namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
37
-
38
- For example, to display 5 results per page and view the second page of a
39
- `GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
40
-
41
- ## Sideloading
42
-
43
- When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
44
- we sideload the associated data. In this example, we would provide an Array of
45
- `State`s and a `state_id` for each provider. This is done primarily to reduce the
46
- payload size since many of the `Provider`s will share a `State`
47
-
48
- ```
49
- {
50
- providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
51
- states: [{ id: 1, code: 'NY' }]
52
- }
53
- ```
54
-
55
- If you need the second level of the object graph, you can just match the
56
- corresponding id.
57
-
58
- ## Selecting specific data
59
-
60
- All endpoints allow you to specify which fields you would like to return.
61
- This allows you to limit the response to contain only the data you need.
62
-
63
- For example, let's take a request that returns the following JSON by default
64
-
65
- ```
66
- {
67
- provider: {
68
- id: 1,
69
- name: 'John',
70
- phone: '1234567890',
71
- field_we_dont_care_about: 'value_we_dont_care_about'
72
- },
73
- states: [{
74
- id: 1,
75
- name: 'New York',
76
- code: 'NY',
77
- field_we_dont_care_about: 'value_we_dont_care_about'
78
- }]
79
- }
80
- ```
81
-
82
- To limit our results to only return the fields we care about, we specify the
83
- `select` query string parameter for the corresponding fields in the JSON
84
- document.
85
-
86
- In this case, we want to select `name` and `phone` from the `provider` key,
87
- so we would add the parameters `select=provider.name,provider.phone`.
88
- We also want the `name` and `code` from the `states` key, so we would
89
- add the parameters `select=states.name,staes.code`. The id field of
90
- each document is always returned whether or not it is requested.
91
-
92
- Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
93
-
94
- The response would be
95
-
96
- ```
97
- {
98
- provider: {
99
- id: 1,
100
- name: 'John',
101
- phone: '1234567890'
102
- },
103
- states: [{
104
- id: 1,
105
- name: 'New York',
106
- code: 'NY'
107
- }]
108
- }
109
- ```
110
-
111
-
112
-
113
- OpenAPI spec version: 1.0.0
114
-
115
- Generated by: https://github.com/swagger-api/swagger-codegen.git
116
-
117
- Licensed under the Apache License, Version 2.0 (the "License");
118
- you may not use this file except in compliance with the License.
119
- You may obtain a copy of the License at
120
-
121
- http://www.apache.org/licenses/LICENSE-2.0
122
-
123
- Unless required by applicable law or agreed to in writing, software
124
- distributed under the License is distributed on an "AS IS" BASIS,
125
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
126
- See the License for the specific language governing permissions and
127
- limitations under the License.
128
-
129
- =end
130
-
131
- require 'spec_helper'
132
- require 'json'
133
- require 'date'
134
-
135
- # Unit tests for VericredClient::Pricing
136
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
137
- # Please update as you see appropriate
138
- describe 'Pricing' do
139
- before do
140
- # run before each test
141
- @instance = VericredClient::Pricing.new
142
- end
143
-
144
- after do
145
- # run after each test
146
- end
147
-
148
- describe 'test an instance of Pricing' do
149
- it 'should create an instact of Pricing' do
150
- expect(@instance).to be_instance_of(VericredClient::Pricing)
151
- end
152
- end
153
- describe 'test attribute "age"' do
154
- it 'should work' do
155
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
- end
157
- end
158
-
159
- describe 'test attribute "effective_date"' do
160
- it 'should work' do
161
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
- end
163
- end
164
-
165
- describe 'test attribute "expiration_date"' do
166
- it 'should work' do
167
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
168
- end
169
- end
170
-
171
- describe 'test attribute "plan_id"' do
172
- it 'should work' do
173
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
- end
175
- end
176
-
177
- describe 'test attribute "premium_child_only"' do
178
- it 'should work' do
179
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
180
- end
181
- end
182
-
183
- describe 'test attribute "premium_family"' do
184
- it 'should work' do
185
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
186
- end
187
- end
188
-
189
- describe 'test attribute "premium_single"' do
190
- it 'should work' do
191
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
- end
193
- end
194
-
195
- describe 'test attribute "premium_single_and_children"' do
196
- it 'should work' do
197
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
198
- end
199
- end
200
-
201
- describe 'test attribute "premium_single_and_spouse"' do
202
- it 'should work' do
203
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
204
- end
205
- end
206
-
207
- describe 'test attribute "premium_single_smoker"' do
208
- it 'should work' do
209
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
210
- end
211
- end
212
-
213
- describe 'test attribute "rating_area_id"' do
214
- it 'should work' do
215
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
216
- end
217
- end
218
-
219
- end
220
-