vericred_client 0.0.8 → 0.0.9

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -6
  3. data/docs/CountyBulk.md +2 -0
  4. data/docs/Plan.md +3 -0
  5. data/docs/PlanSearchResult.md +3 -0
  6. data/docs/PlanShowResponse.md +8 -0
  7. data/docs/PlansApi.md +56 -0
  8. data/docs/ProvidersApi.md +8 -2
  9. data/docs/RequestPlanFind.md +2 -1
  10. data/docs/RequestPlanFindDrugPackage.md +8 -0
  11. data/docs/RequestProvidersSearch.md +1 -0
  12. data/docs/ServiceArea.md +10 -0
  13. data/docs/ServiceAreaZipCounty.md +10 -0
  14. data/lib/vericred_client/api/plans_api.rb +56 -0
  15. data/lib/vericred_client/api/providers_api.rb +6 -0
  16. data/lib/vericred_client/api_client.rb +9 -3
  17. data/lib/vericred_client/configuration.rb +22 -1
  18. data/lib/vericred_client/models/county_bulk.rb +24 -4
  19. data/lib/vericred_client/models/plan.rb +31 -1
  20. data/lib/vericred_client/models/plan_search_result.rb +31 -1
  21. data/lib/vericred_client/models/plan_show_response.rb +307 -0
  22. data/lib/vericred_client/models/request_plan_find.rb +14 -2
  23. data/lib/vericred_client/models/request_plan_find_drug_package.rb +307 -0
  24. data/lib/vericred_client/models/request_providers_search.rb +11 -1
  25. data/lib/vericred_client/models/service_area.rb +327 -0
  26. data/lib/vericred_client/models/{plan_zip_county.rb → service_area_zip_county.rb} +14 -14
  27. data/lib/vericred_client/version.rb +1 -1
  28. data/lib/vericred_client.rb +4 -1
  29. data/spec/api/plans_api_spec.rb +12 -0
  30. data/spec/api/providers_api_spec.rb +2 -0
  31. data/spec/api_client_spec.rb +20 -79
  32. data/spec/configuration_spec.rb +11 -6
  33. data/spec/models/county_bulk_spec.rb +12 -0
  34. data/spec/models/plan_search_result_spec.rb +18 -0
  35. data/spec/models/plan_show_response_spec.rb +160 -0
  36. data/spec/models/plan_spec.rb +18 -0
  37. data/spec/models/request_plan_find_drug_package_spec.rb +160 -0
  38. data/spec/models/request_plan_find_spec.rb +6 -0
  39. data/spec/models/request_providers_search_spec.rb +6 -0
  40. data/spec/models/service_area_spec.rb +172 -0
  41. data/spec/models/{plan_zip_county_spec.rb → service_area_zip_county_spec.rb} +8 -8
  42. metadata +18 -6
  43. data/docs/PlanZipCounty.md +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a47e8147aa4e0ff91088e13acc97778b022b1a60
4
- data.tar.gz: 0ab05c597e77133b665fb0d7753ab9753da58deb
3
+ metadata.gz: 44bc98edb27a69315b72cc1a35c323516da232bc
4
+ data.tar.gz: 75ba17d0544d7df0040385733c03e3b3f7fb7ca6
5
5
  SHA512:
6
- metadata.gz: 1e4d74878709e42941e2ed1b3ef732266ab30cf47ddc38d46af6161d9f92206b5f0fe9d9dad47999e7d3af97b3b7b3725a4fd4d4dc67cddf47e966d81ba20104
7
- data.tar.gz: 131fa2f97f8f91ff69ba327bc4dc877d22f0a371e139ff3930a1cccfe177aa628a050b836f8074ebbd4962d6f5145fce0bb4be31fafdd941a1a29f05e89f86a6
6
+ metadata.gz: b3fc7bf16393cd1aa603b5035ef5164d79db40edb272de19162581ad06cb93c62ae99ab71de344a4efb3348ce03128ebe73474e409d7774db8f7441aa98f1bfa
7
+ data.tar.gz: 0a0165d5bbf87117426193e6880cc5481b2bb8da51b3a732d943110179dfb1734ca68c70649e200f31f9dbc86cd89744fdf302ddd95a68b33d50f92a557efabe
data/README.md CHANGED
@@ -114,8 +114,8 @@ The response would be
114
114
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
115
115
 
116
116
  - API version: 1.0.0
117
- - Package version: 0.0.8
118
- - Build date: 2016-06-28T09:52:26.520-04:00
117
+ - Package version: 0.0.9
118
+ - Build date: 2016-08-24T12:43:06.743-04:00
119
119
  - Build package: class io.swagger.codegen.languages.RubyClientCodegen
120
120
 
121
121
  ## Installation
@@ -131,15 +131,15 @@ gem build vericred_client.gemspec
131
131
  Then either install the gem locally:
132
132
 
133
133
  ```shell
134
- gem install ./vericred_client-0.0.8.gem
134
+ gem install ./vericred_client-0.0.9.gem
135
135
  ```
136
- (for development, run `gem install --dev ./vericred_client-0.0.8.gem` to install the development dependencies)
136
+ (for development, run `gem install --dev ./vericred_client-0.0.9.gem` to install the development dependencies)
137
137
 
138
138
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
139
139
 
140
140
  Finally add this to the Gemfile:
141
141
 
142
- gem 'vericred_client', '~> 0.0.8'
142
+ gem 'vericred_client', '~> 0.0.9'
143
143
 
144
144
  ### Install from Git
145
145
 
@@ -199,6 +199,7 @@ Class | Method | HTTP request | Description
199
199
  *VericredClient::DrugsApi* | [**list_drugs**](docs/DrugsApi.md#list_drugs) | **GET** /drugs | Drug Search
200
200
  *VericredClient::NetworksApi* | [**list_networks**](docs/NetworksApi.md#list_networks) | **GET** /networks | Networks
201
201
  *VericredClient::PlansApi* | [**find_plans**](docs/PlansApi.md#find_plans) | **POST** /plans/search | Find Plans
202
+ *VericredClient::PlansApi* | [**show_plan**](docs/PlansApi.md#show_plan) | **GET** /plans/{id} | Show Plan
202
203
  *VericredClient::ProvidersApi* | [**get_provider**](docs/ProvidersApi.md#get_provider) | **GET** /providers/{npi} | Find a Provider
203
204
  *VericredClient::ProvidersApi* | [**get_providers**](docs/ProvidersApi.md#get_providers) | **POST** /providers/search | Find Providers
204
205
  *VericredClient::ZipCountiesApi* | [**get_zip_counties**](docs/ZipCountiesApi.md#get_zip_counties) | **GET** /zip_counties | Search for Zip Counties
@@ -225,7 +226,7 @@ Class | Method | HTTP request | Description
225
226
  - [VericredClient::PlanCountyBulk](docs/PlanCountyBulk.md)
226
227
  - [VericredClient::PlanSearchResponse](docs/PlanSearchResponse.md)
227
228
  - [VericredClient::PlanSearchResult](docs/PlanSearchResult.md)
228
- - [VericredClient::PlanZipCounty](docs/PlanZipCounty.md)
229
+ - [VericredClient::PlanShowResponse](docs/PlanShowResponse.md)
229
230
  - [VericredClient::Pricing](docs/Pricing.md)
230
231
  - [VericredClient::Provider](docs/Provider.md)
231
232
  - [VericredClient::ProviderShowResponse](docs/ProviderShowResponse.md)
@@ -233,8 +234,11 @@ Class | Method | HTTP request | Description
233
234
  - [VericredClient::RatingArea](docs/RatingArea.md)
234
235
  - [VericredClient::RequestPlanFind](docs/RequestPlanFind.md)
235
236
  - [VericredClient::RequestPlanFindApplicant](docs/RequestPlanFindApplicant.md)
237
+ - [VericredClient::RequestPlanFindDrugPackage](docs/RequestPlanFindDrugPackage.md)
236
238
  - [VericredClient::RequestPlanFindProvider](docs/RequestPlanFindProvider.md)
237
239
  - [VericredClient::RequestProvidersSearch](docs/RequestProvidersSearch.md)
240
+ - [VericredClient::ServiceArea](docs/ServiceArea.md)
241
+ - [VericredClient::ServiceAreaZipCounty](docs/ServiceAreaZipCounty.md)
238
242
  - [VericredClient::State](docs/State.md)
239
243
  - [VericredClient::ZipCode](docs/ZipCode.md)
240
244
  - [VericredClient::ZipCountiesResponse](docs/ZipCountiesResponse.md)
data/docs/CountyBulk.md CHANGED
@@ -6,5 +6,7 @@ Name | Type | Description | Notes
6
6
  **id** | **String** | FIPs code for the county | [optional]
7
7
  **name** | **String** | Name of the county | [optional]
8
8
  **state_id** | **String** | State code | [optional]
9
+ **rating_area_count** | **String** | Count of unique rating areas in the county | [optional]
10
+ **service_area_count** | **String** | Count of unique service areas in the county | [optional]
9
11
 
10
12
 
data/docs/Plan.md CHANGED
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **customer_service_phone_number** | **String** | Phone number to contact the insurance carrier | [optional]
16
16
  **durable_medical_equipment** | **String** | Benefits summary for durable medical equipment | [optional]
17
17
  **diagnostic_test** | **String** | Diagnostic tests benefit summary | [optional]
18
+ **display_name** | **String** | Alternate name for the Plan | [optional]
18
19
  **dp_rider** | **BOOLEAN** | Is this a domestic plan? | [optional]
19
20
  **drug_formulary_url** | **String** | Link to the summary of drug benefits for the plan | [optional]
20
21
  **effective_date** | **String** | Effective date of coverage. | [optional]
@@ -30,6 +31,7 @@ Name | Type | Description | Notes
30
31
  **hios_issuer_id** | **String** | | [optional]
31
32
  **home_health_care** | **String** | Home health care benefits summary | [optional]
32
33
  **hospice_service** | **String** | Hospice service benefits summary | [optional]
34
+ **hsa_eligible** | **BOOLEAN** | Is the plan HSA eligible? | [optional]
33
35
  **id** | **String** | Government-issued HIOS plan ID | [optional]
34
36
  **imaging** | **String** | Benefits summary for imaging coverage | [optional]
35
37
  **in_network_ids** | **Array<Integer>** | List of NPI numbers for Providers passed in who accept this Plan | [optional]
@@ -64,6 +66,7 @@ Name | Type | Description | Notes
64
66
  **premium** | **Float** | Cumulative premium amount | [optional]
65
67
  **primary_care_physician** | **String** | Cost under the plan to visit a Primary Care Physician | [optional]
66
68
  **rehabilitation_services** | **String** | Benefits summary for rehabilitation services | [optional]
69
+ **service_area_id** | **String** | Foreign key for service area | [optional]
67
70
  **skilled_nursing** | **String** | Benefits summary for skilled nursing services | [optional]
68
71
  **specialist** | **String** | Cost under the plan to visit a specialist | [optional]
69
72
  **specialty_drugs** | **String** | Cost under the plan for specialty drugs | [optional]
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **customer_service_phone_number** | **String** | Phone number to contact the insurance carrier | [optional]
16
16
  **durable_medical_equipment** | **String** | Benefits summary for durable medical equipment | [optional]
17
17
  **diagnostic_test** | **String** | Diagnostic tests benefit summary | [optional]
18
+ **display_name** | **String** | Alternate name for the Plan | [optional]
18
19
  **dp_rider** | **BOOLEAN** | Is this a domestic plan? | [optional]
19
20
  **drug_formulary_url** | **String** | Link to the summary of drug benefits for the plan | [optional]
20
21
  **effective_date** | **String** | Effective date of coverage. | [optional]
@@ -30,6 +31,7 @@ Name | Type | Description | Notes
30
31
  **hios_issuer_id** | **String** | | [optional]
31
32
  **home_health_care** | **String** | Home health care benefits summary | [optional]
32
33
  **hospice_service** | **String** | Hospice service benefits summary | [optional]
34
+ **hsa_eligible** | **BOOLEAN** | Is the plan HSA eligible? | [optional]
33
35
  **id** | **String** | Government-issued HIOS plan ID | [optional]
34
36
  **imaging** | **String** | Benefits summary for imaging coverage | [optional]
35
37
  **in_network_ids** | **Array<Integer>** | List of NPI numbers for Providers passed in who accept this Plan | [optional]
@@ -63,6 +65,7 @@ Name | Type | Description | Notes
63
65
  **premium** | **Float** | Cumulative premium amount | [optional]
64
66
  **primary_care_physician** | **String** | Cost under the plan to visit a Primary Care Physician | [optional]
65
67
  **rehabilitation_services** | **String** | Benefits summary for rehabilitation services | [optional]
68
+ **service_area_id** | **String** | Foreign key for service area | [optional]
66
69
  **skilled_nursing** | **String** | Benefits summary for skilled nursing services | [optional]
67
70
  **specialist** | **String** | Cost under the plan to visit a specialist | [optional]
68
71
  **specialty_drugs** | **String** | Cost under the plan for specialty drugs | [optional]
@@ -0,0 +1,8 @@
1
+ # VericredClient::PlanShowResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **plan** | [**Plan**](Plan.md) | Plan response | [optional]
7
+
8
+
data/docs/PlansApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.vericred.com/*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**find_plans**](PlansApi.md#find_plans) | **POST** /plans/search | Find Plans
8
+ [**show_plan**](PlansApi.md#show_plan) | **GET** /plans/{id} | Show Plan
8
9
 
9
10
 
10
11
  # **find_plans**
@@ -62,3 +63,58 @@ Name | Type | Description | Notes
62
63
 
63
64
 
64
65
 
66
+ # **show_plan**
67
+ > PlanShowResponse show_plan(opts)
68
+
69
+ Show Plan
70
+
71
+ Show the details of an individual Plan. This includes deductibles, maximums out of pocket, and co-pay/coinsurance for benefits
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'vericred_client'
77
+ # setup authorization
78
+ VericredClient.configure do |config|
79
+ # Configure API key authorization: Vericred-Api-Key
80
+ config.api_key['Vericred-Api-Key'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['Vericred-Api-Key'] = 'Bearer'
83
+ end
84
+
85
+ api_instance = VericredClient::PlansApi.new
86
+
87
+ opts = {
88
+ year: 2016 # Integer | Plan year (defaults to current year)
89
+ }
90
+
91
+ begin
92
+ #Show Plan
93
+ result = api_instance.show_plan(opts)
94
+ p result
95
+ rescue VericredClient::ApiError => e
96
+ puts "Exception when calling PlansApi->show_plan: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **year** | **Integer**| Plan year (defaults to current year) | [optional]
105
+
106
+ ### Return type
107
+
108
+ [**PlanShowResponse**](PlanShowResponse.md)
109
+
110
+ ### Authorization
111
+
112
+ [Vericred-Api-Key](../README.md#Vericred-Api-Key)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: application/json
117
+ - **Accept**: application/json
118
+
119
+
120
+
data/docs/ProvidersApi.md CHANGED
@@ -9,7 +9,7 @@ Method | HTTP request | Description
9
9
 
10
10
 
11
11
  # **get_provider**
12
- > ProviderShowResponse get_provider(npi)
12
+ > ProviderShowResponse get_provider(npi, opts)
13
13
 
14
14
  Find a Provider
15
15
 
@@ -31,10 +31,14 @@ api_instance = VericredClient::ProvidersApi.new
31
31
 
32
32
  npi = "1234567890" # String | NPI number
33
33
 
34
+ opts = {
35
+ year: "2016", # String | Only show plan ids for the given year
36
+ state: "NY" # String | Only show plan ids for the given state
37
+ }
34
38
 
35
39
  begin
36
40
  #Find a Provider
37
- result = api_instance.get_provider(npi)
41
+ result = api_instance.get_provider(npi, opts)
38
42
  p result
39
43
  rescue VericredClient::ApiError => e
40
44
  puts "Exception when calling ProvidersApi->get_provider: #{e}"
@@ -46,6 +50,8 @@ end
46
50
  Name | Type | Description | Notes
47
51
  ------------- | ------------- | ------------- | -------------
48
52
  **npi** | **String**| NPI number |
53
+ **year** | **String**| Only show plan ids for the given year | [optional]
54
+ **state** | **String**| Only show plan ids for the given state | [optional]
49
55
 
50
56
  ### Return type
51
57
 
@@ -5,10 +5,11 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **applicants** | [**Array<RequestPlanFindApplicant>**](RequestPlanFindApplicant.md) | Applicants for desired plans. | [optional]
7
7
  **enrollment_date** | **String** | Date of enrollment | [optional]
8
- **drug_packages** | [**Array<DrugPackage>**](DrugPackage.md) | National Drug Code Package Id | [optional]
8
+ **drug_packages** | [**Array<RequestPlanFindDrugPackage>**](RequestPlanFindDrugPackage.md) | National Drug Code Package Id | [optional]
9
9
  **fips_code** | **String** | County code to determine eligibility | [optional]
10
10
  **household_income** | **Integer** | Total household income. | [optional]
11
11
  **household_size** | **Integer** | Number of people living in household. | [optional]
12
+ **ids** | **Array<Integer>** | List of plan IDs to filter by | [optional]
12
13
  **market** | **String** | Type of plan to search for. | [optional]
13
14
  **providers** | [**Array<RequestPlanFindProvider>**](RequestPlanFindProvider.md) | List of providers to search for. | [optional]
14
15
  **page** | **Integer** | Selected page of paginated response. | [optional]
@@ -0,0 +1,8 @@
1
+ # VericredClient::RequestPlanFindDrugPackage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | National Drug Code ID (Package) | [optional]
7
+
8
+
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **accepts_insurance** | **BOOLEAN** | 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 | [optional]
7
7
  **hios_ids** | **Array<String>** | List of HIOS ids | [optional]
8
+ **min_score** | **Float** | Minimum search threshold to be included in the results | [optional]
8
9
  **page** | **Integer** | Page number | [optional]
9
10
  **per_page** | **Integer** | Number of records to return per page | [optional]
10
11
  **radius** | **Integer** | Radius (in miles) to use to limit results | [optional]
@@ -0,0 +1,10 @@
1
+ # VericredClient::ServiceArea
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Primary key | [optional]
7
+ **issuer_id** | **String** | Issuer foreign key | [optional]
8
+ **name** | **String** | Name of the Service Area | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # VericredClient::ServiceAreaZipCounty
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **county_id** | **String** | Foreign key to county | [optional]
7
+ **service_area_id** | **String** | Foreign key to service area | [optional]
8
+ **zip_code_id** | **String** | Foreign key to zip code | [optional]
9
+
10
+
@@ -192,5 +192,61 @@ module VericredClient
192
192
  end
193
193
  return data, status_code, headers
194
194
  end
195
+
196
+ # Show Plan
197
+ # Show the details of an individual Plan. This includes deductibles, maximums out of pocket, and co-pay/coinsurance for benefits
198
+ # @param [Hash] opts the optional parameters
199
+ # @option opts [Integer] :year Plan year (defaults to current year)
200
+ # @return [PlanShowResponse]
201
+ def show_plan(opts = {})
202
+ data, _status_code, _headers = show_plan_with_http_info(opts)
203
+ return data
204
+ end
205
+
206
+ # Show Plan
207
+ # Show the details of an individual Plan. This includes deductibles, maximums out of pocket, and co-pay/coinsurance for benefits
208
+ # @param [Hash] opts the optional parameters
209
+ # @option opts [Integer] :year Plan year (defaults to current year)
210
+ # @return [Array<(PlanShowResponse, Fixnum, Hash)>] PlanShowResponse data, response status code and response headers
211
+ def show_plan_with_http_info(opts = {})
212
+ if @api_client.config.debugging
213
+ @api_client.config.logger.debug "Calling API: PlansApi.show_plan ..."
214
+ end
215
+ # resource path
216
+ local_var_path = "/plans/{id}".sub('{format}','json')
217
+
218
+ # query parameters
219
+ query_params = {}
220
+ query_params[:'year'] = opts[:'year'] if !opts[:'year'].nil?
221
+
222
+ # header parameters
223
+ header_params = {}
224
+
225
+ # HTTP header 'Accept' (if needed)
226
+ local_header_accept = ['application/json']
227
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
228
+
229
+ # HTTP header 'Content-Type'
230
+ local_header_content_type = ['application/json']
231
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
232
+
233
+ # form parameters
234
+ form_params = {}
235
+
236
+ # http body (model)
237
+ post_body = nil
238
+ auth_names = ['Vericred-Api-Key']
239
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
240
+ :header_params => header_params,
241
+ :query_params => query_params,
242
+ :form_params => form_params,
243
+ :body => post_body,
244
+ :auth_names => auth_names,
245
+ :return_type => 'PlanShowResponse')
246
+ if @api_client.config.debugging
247
+ @api_client.config.logger.debug "API called: PlansApi#show_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
248
+ end
249
+ return data, status_code, headers
250
+ end
195
251
  end
196
252
  end
@@ -142,6 +142,8 @@ module VericredClient
142
142
  # To retrieve a specific provider, just perform a GET using his NPI number
143
143
  # @param npi NPI number
144
144
  # @param [Hash] opts the optional parameters
145
+ # @option opts [String] :year Only show plan ids for the given year
146
+ # @option opts [String] :state Only show plan ids for the given state
145
147
  # @return [ProviderShowResponse]
146
148
  def get_provider(npi, opts = {})
147
149
  data, _status_code, _headers = get_provider_with_http_info(npi, opts)
@@ -152,6 +154,8 @@ module VericredClient
152
154
  # To retrieve a specific provider, just perform a GET using his NPI number
153
155
  # @param npi NPI number
154
156
  # @param [Hash] opts the optional parameters
157
+ # @option opts [String] :year Only show plan ids for the given year
158
+ # @option opts [String] :state Only show plan ids for the given state
155
159
  # @return [Array<(ProviderShowResponse, Fixnum, Hash)>] ProviderShowResponse data, response status code and response headers
156
160
  def get_provider_with_http_info(npi, opts = {})
157
161
  if @api_client.config.debugging
@@ -164,6 +168,8 @@ module VericredClient
164
168
 
165
169
  # query parameters
166
170
  query_params = {}
171
+ query_params[:'year'] = opts[:'year'] if !opts[:'year'].nil?
172
+ query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
167
173
 
168
174
  # header parameters
169
175
  header_params = {}
@@ -146,7 +146,7 @@ module VericredClient
146
146
  attr_accessor :default_headers
147
147
 
148
148
  # Initializes the ApiClient
149
- # @option config [Configuration] Configuraiton for initializing the object, default to Configuration.default
149
+ # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
150
150
  def initialize(config = Configuration.default)
151
151
  @config = config
152
152
  @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
@@ -206,17 +206,23 @@ module VericredClient
206
206
 
207
207
  update_params_for_auth! header_params, query_params, opts[:auth_names]
208
208
 
209
+ # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
210
+ _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
211
+
209
212
  req_opts = {
210
213
  :method => http_method,
211
214
  :headers => header_params,
212
215
  :params => query_params,
216
+ :params_encoding => @config.params_encoding,
213
217
  :timeout => @config.timeout,
214
218
  :ssl_verifypeer => @config.verify_ssl,
219
+ :ssl_verifyhost => _verify_ssl_host,
215
220
  :sslcert => @config.cert_file,
216
221
  :sslkey => @config.key_file,
217
222
  :verbose => @config.debugging
218
223
  }
219
224
 
225
+ # set custom cert, if provided
220
226
  req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
221
227
 
222
228
  if [:post, :patch, :put, :delete].include?(http_method)
@@ -322,7 +328,7 @@ module VericredClient
322
328
  # @return [Tempfile] the file downloaded
323
329
  def download_file(response)
324
330
  content_disposition = response.headers['Content-Disposition']
325
- if content_disposition
331
+ if content_disposition and content_disposition =~ /filename=/i
326
332
  filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
327
333
  prefix = sanitize_filename(filename)
328
334
  else
@@ -389,7 +395,7 @@ module VericredClient
389
395
  # Update hearder and query params based on authentication settings.
390
396
  #
391
397
  # @param [Hash] header_params Header parameters
392
- # @param [Hash] form_params Query parameters
398
+ # @param [Hash] query_params Query parameters
393
399
  # @param [String] auth_names Authentication scheme name
394
400
  def update_params_for_auth!(header_params, query_params, auth_names)
395
401
  Array(auth_names).each do |auth_name|
@@ -194,7 +194,7 @@ module VericredClient
194
194
  # Default to 0 (never times out).
195
195
  attr_accessor :timeout
196
196
 
197
- ### TLS/SSL
197
+ ### TLS/SSL setting
198
198
  # Set this to false to skip verifying SSL certificate when calling API from https server.
199
199
  # Default to true.
200
200
  #
@@ -203,6 +203,16 @@ module VericredClient
203
203
  # @return [true, false]
204
204
  attr_accessor :verify_ssl
205
205
 
206
+ ### TLS/SSL setting
207
+ # Set this to false to skip verifying SSL host name
208
+ # Default to true.
209
+ #
210
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
211
+ #
212
+ # @return [true, false]
213
+ attr_accessor :verify_ssl_host
214
+
215
+ ### TLS/SSL setting
206
216
  # Set this to customize the certificate file to verify the peer.
207
217
  #
208
218
  # @return [String] the path to the certificate file
@@ -211,12 +221,21 @@ module VericredClient
211
221
  # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
212
222
  attr_accessor :ssl_ca_cert
213
223
 
224
+ ### TLS/SSL setting
214
225
  # Client certificate file (for client certificate)
215
226
  attr_accessor :cert_file
216
227
 
228
+ ### TLS/SSL setting
217
229
  # Client private key file (for client certificate)
218
230
  attr_accessor :key_file
219
231
 
232
+ # Set this to customize parameters encoding of array parameter with multi collectionFormat.
233
+ # Default to nil.
234
+ #
235
+ # @see The params_encoding option of Ethon. Related source code:
236
+ # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
237
+ attr_accessor :params_encoding
238
+
220
239
  attr_accessor :inject_format
221
240
 
222
241
  attr_accessor :force_ending_format
@@ -229,6 +248,8 @@ module VericredClient
229
248
  @api_key_prefix = {}
230
249
  @timeout = 0
231
250
  @verify_ssl = true
251
+ @verify_ssl_host = true
252
+ @params_encoding = nil
232
253
  @cert_file = nil
233
254
  @key_file = nil
234
255
  @debugging = false
@@ -142,13 +142,21 @@ module VericredClient
142
142
  # State code
143
143
  attr_accessor :state_id
144
144
 
145
+ # Count of unique rating areas in the county
146
+ attr_accessor :rating_area_count
147
+
148
+ # Count of unique service areas in the county
149
+ attr_accessor :service_area_count
150
+
145
151
 
146
152
  # Attribute mapping from ruby-style variable name to JSON key.
147
153
  def self.attribute_map
148
154
  {
149
155
  :'id' => :'id',
150
156
  :'name' => :'name',
151
- :'state_id' => :'state_id'
157
+ :'state_id' => :'state_id',
158
+ :'rating_area_count' => :'rating_area_count',
159
+ :'service_area_count' => :'service_area_count'
152
160
  }
153
161
  end
154
162
 
@@ -157,7 +165,9 @@ module VericredClient
157
165
  {
158
166
  :'id' => :'String',
159
167
  :'name' => :'String',
160
- :'state_id' => :'String'
168
+ :'state_id' => :'String',
169
+ :'rating_area_count' => :'String',
170
+ :'service_area_count' => :'String'
161
171
  }
162
172
  end
163
173
 
@@ -181,6 +191,14 @@ module VericredClient
181
191
  self.state_id = attributes[:'state_id']
182
192
  end
183
193
 
194
+ if attributes.has_key?(:'rating_area_count')
195
+ self.rating_area_count = attributes[:'rating_area_count']
196
+ end
197
+
198
+ if attributes.has_key?(:'service_area_count')
199
+ self.service_area_count = attributes[:'service_area_count']
200
+ end
201
+
184
202
  end
185
203
 
186
204
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -203,7 +221,9 @@ module VericredClient
203
221
  self.class == o.class &&
204
222
  id == o.id &&
205
223
  name == o.name &&
206
- state_id == o.state_id
224
+ state_id == o.state_id &&
225
+ rating_area_count == o.rating_area_count &&
226
+ service_area_count == o.service_area_count
207
227
  end
208
228
 
209
229
  # @see the `==` method
@@ -215,7 +235,7 @@ module VericredClient
215
235
  # Calculates hash code according to all attributes.
216
236
  # @return [Fixnum] Hash code
217
237
  def hash
218
- [id, name, state_id].hash
238
+ [id, name, state_id, rating_area_count, service_area_count].hash
219
239
  end
220
240
 
221
241
  # Builds the object from hash