vericred_client 0.0.3 → 0.0.4
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 +30 -20
 - data/docs/Applicant.md +2 -2
 - data/docs/{InlineResponse2001.md → Base.md} +2 -2
 - data/docs/Carrier.md +1 -1
 - data/docs/County.md +3 -3
 - data/docs/CountyBulk.md +10 -0
 - data/docs/Drug.md +2 -1
 - data/docs/DrugCoverage.md +4 -4
 - data/docs/DrugCoverageResponse.md +9 -0
 - data/docs/DrugPackage.md +9 -0
 - data/docs/DrugSearchResponse.md +9 -0
 - data/docs/DrugsApi.md +59 -0
 - data/docs/Meta.md +8 -0
 - data/docs/Plan.md +22 -6
 - data/docs/PlanCounty.md +1 -1
 - data/docs/PlanCountyBulk.md +10 -0
 - data/docs/PlanFindResponse.md +9 -0
 - data/docs/PlanSearchResult.md +26 -8
 - data/docs/PlansApi.md +11 -11
 - data/docs/Pricing.md +7 -1
 - data/docs/Provider.md +9 -6
 - data/docs/ProviderResponse.md +10 -0
 - data/docs/ProvidersApi.md +19 -21
 - data/docs/RatingArea.md +2 -2
 - data/docs/RequestPlanFind.md +15 -0
 - data/docs/State.md +4 -4
 - data/docs/ZipCountiesApi.md +7 -8
 - data/docs/ZipCountyBulk.md +11 -0
 - data/docs/ZipCountyResponse.md +10 -0
 - data/lib/vericred_client.rb +14 -6
 - data/lib/vericred_client/api/{drug_coverage_api.rb → drugs_api.rb} +25 -19
 - data/lib/vericred_client/api/plans_api.rb +14 -16
 - data/lib/vericred_client/api/providers_api.rb +29 -29
 - data/lib/vericred_client/api/zip_counties_api.rb +12 -12
 - 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 +14 -12
 - data/lib/vericred_client/models/{inline_response_200_1.rb → base.rb} +10 -9
 - 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 +18 -14
 - data/lib/vericred_client/models/county_bulk.rb +318 -0
 - data/lib/vericred_client/models/drug.rb +27 -15
 - data/lib/vericred_client/models/drug_coverage.rb +38 -32
 - data/lib/vericred_client/models/drug_coverage_response.rb +310 -0
 - data/lib/vericred_client/models/drug_package.rb +308 -0
 - data/lib/vericred_client/models/drug_search_response.rb +310 -0
 - data/lib/vericred_client/models/meta.rb +298 -0
 - data/lib/vericred_client/models/plan.rb +196 -22
 - data/lib/vericred_client/models/plan_county.rb +15 -15
 - data/lib/vericred_client/models/plan_county_bulk.rb +318 -0
 - data/lib/vericred_client/models/{inline_response_200.rb → plan_find_response.rb} +13 -11
 - data/lib/vericred_client/models/plan_search_result.rb +236 -42
 - data/lib/vericred_client/models/pricing.rb +63 -3
 - data/lib/vericred_client/models/provider.rb +51 -9
 - data/lib/vericred_client/models/provider_response.rb +322 -0
 - data/lib/vericred_client/models/rating_area.rb +5 -5
 - data/lib/vericred_client/models/{query.rb → request_plan_find.rb} +14 -6
 - data/lib/vericred_client/models/state.rb +29 -25
 - data/lib/vericred_client/models/zip_code.rb +1 -1
 - data/lib/vericred_client/models/zip_county.rb +1 -1
 - data/lib/vericred_client/models/zip_county_bulk.rb +328 -0
 - data/lib/vericred_client/models/{inline_response_200_2.rb → zip_county_response.rb} +20 -17
 - data/lib/vericred_client/version.rb +2 -2
 - data/spec/api/{drug_coverage_api_spec.rb → drugs_api_spec.rb} +14 -17
 - data/spec/api/plans_api_spec.rb +7 -69
 - data/spec/api/providers_api_spec.rb +12 -28
 - data/spec/api/zip_counties_api_spec.rb +6 -13
 - metadata +31 -15
 - data/docs/DrugCoverageApi.md +0 -54
 - data/docs/InlineResponse200.md +0 -9
 - data/docs/InlineResponse2002.md +0 -10
 - data/docs/Query.md +0 -15
 
| 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -126,28 +126,31 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git 
     | 
|
| 
       126 
126 
     | 
    
         
             
            require 'date'
         
     | 
| 
       127 
127 
     | 
    
         | 
| 
       128 
128 
     | 
    
         
             
            module VericredClient
         
     | 
| 
       129 
     | 
    
         
            -
              class  
     | 
| 
       130 
     | 
    
         
            -
                 
     | 
| 
       131 
     | 
    
         
            -
             
     | 
| 
      
 129 
     | 
    
         
            +
              class ZipCountyResponse
         
     | 
| 
      
 130 
     | 
    
         
            +
                # Counties that exist in the provided zip prefix.
         
     | 
| 
       132 
131 
     | 
    
         
             
                attr_accessor :counties
         
     | 
| 
       133 
132 
     | 
    
         | 
| 
      
 133 
     | 
    
         
            +
                # ZipCodes that exist in the provided zip prefix.
         
     | 
| 
       134 
134 
     | 
    
         
             
                attr_accessor :zip_codes
         
     | 
| 
       135 
135 
     | 
    
         | 
| 
      
 136 
     | 
    
         
            +
                # ZipCounties that exist in the provided zip prefix.
         
     | 
| 
      
 137 
     | 
    
         
            +
                attr_accessor :zip_counties
         
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
       136 
139 
     | 
    
         
             
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
       137 
140 
     | 
    
         
             
                def self.attribute_map
         
     | 
| 
       138 
141 
     | 
    
         
             
                  {
         
     | 
| 
       139 
     | 
    
         
            -
                    :'zip_counties' => :'zip_counties',
         
     | 
| 
       140 
142 
     | 
    
         
             
                    :'counties' => :'counties',
         
     | 
| 
       141 
     | 
    
         
            -
                    :'zip_codes' => :'zip_codes'
         
     | 
| 
      
 143 
     | 
    
         
            +
                    :'zip_codes' => :'zip_codes',
         
     | 
| 
      
 144 
     | 
    
         
            +
                    :'zip_counties' => :'zip_counties'
         
     | 
| 
       142 
145 
     | 
    
         
             
                  }
         
     | 
| 
       143 
146 
     | 
    
         
             
                end
         
     | 
| 
       144 
147 
     | 
    
         | 
| 
       145 
148 
     | 
    
         
             
                # Attribute type mapping.
         
     | 
| 
       146 
149 
     | 
    
         
             
                def self.swagger_types
         
     | 
| 
       147 
150 
     | 
    
         
             
                  {
         
     | 
| 
       148 
     | 
    
         
            -
                    :'zip_counties' => :'Array<ZipCounty>',
         
     | 
| 
       149 
151 
     | 
    
         
             
                    :'counties' => :'Array<County>',
         
     | 
| 
       150 
     | 
    
         
            -
                    :'zip_codes' => :'Array<ZipCode>'
         
     | 
| 
      
 152 
     | 
    
         
            +
                    :'zip_codes' => :'Array<ZipCode>',
         
     | 
| 
      
 153 
     | 
    
         
            +
                    :'zip_counties' => :'Array<ZipCounty>'
         
     | 
| 
       151 
154 
     | 
    
         
             
                  }
         
     | 
| 
       152 
155 
     | 
    
         
             
                end
         
     | 
| 
       153 
156 
     | 
    
         | 
| 
         @@ -159,12 +162,6 @@ module VericredClient 
     | 
|
| 
       159 
162 
     | 
    
         
             
                  # convert string to symbol for hash key
         
     | 
| 
       160 
163 
     | 
    
         
             
                  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
         
     | 
| 
       161 
164 
     | 
    
         | 
| 
       162 
     | 
    
         
            -
                  if attributes.has_key?(:'zip_counties')
         
     | 
| 
       163 
     | 
    
         
            -
                    if (value = attributes[:'zip_counties']).is_a?(Array)
         
     | 
| 
       164 
     | 
    
         
            -
                      self.zip_counties = value
         
     | 
| 
       165 
     | 
    
         
            -
                    end
         
     | 
| 
       166 
     | 
    
         
            -
                  end
         
     | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
165 
     | 
    
         
             
                  if attributes.has_key?(:'counties')
         
     | 
| 
       169 
166 
     | 
    
         
             
                    if (value = attributes[:'counties']).is_a?(Array)
         
     | 
| 
       170 
167 
     | 
    
         
             
                      self.counties = value
         
     | 
| 
         @@ -177,6 +174,12 @@ module VericredClient 
     | 
|
| 
       177 
174 
     | 
    
         
             
                    end
         
     | 
| 
       178 
175 
     | 
    
         
             
                  end
         
     | 
| 
       179 
176 
     | 
    
         | 
| 
      
 177 
     | 
    
         
            +
                  if attributes.has_key?(:'zip_counties')
         
     | 
| 
      
 178 
     | 
    
         
            +
                    if (value = attributes[:'zip_counties']).is_a?(Array)
         
     | 
| 
      
 179 
     | 
    
         
            +
                      self.zip_counties = value
         
     | 
| 
      
 180 
     | 
    
         
            +
                    end
         
     | 
| 
      
 181 
     | 
    
         
            +
                  end
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
       180 
183 
     | 
    
         
             
                end
         
     | 
| 
       181 
184 
     | 
    
         | 
| 
       182 
185 
     | 
    
         
             
                # Show invalid properties with the reasons. Usually used together with valid?
         
     | 
| 
         @@ -196,9 +199,9 @@ module VericredClient 
     | 
|
| 
       196 
199 
     | 
    
         
             
                def ==(o)
         
     | 
| 
       197 
200 
     | 
    
         
             
                  return true if self.equal?(o)
         
     | 
| 
       198 
201 
     | 
    
         
             
                  self.class == o.class &&
         
     | 
| 
       199 
     | 
    
         
            -
                      zip_counties == o.zip_counties &&
         
     | 
| 
       200 
202 
     | 
    
         
             
                      counties == o.counties &&
         
     | 
| 
       201 
     | 
    
         
            -
                      zip_codes == o.zip_codes
         
     | 
| 
      
 203 
     | 
    
         
            +
                      zip_codes == o.zip_codes &&
         
     | 
| 
      
 204 
     | 
    
         
            +
                      zip_counties == o.zip_counties
         
     | 
| 
       202 
205 
     | 
    
         
             
                end
         
     | 
| 
       203 
206 
     | 
    
         | 
| 
       204 
207 
     | 
    
         
             
                # @see the `==` method
         
     | 
| 
         @@ -210,7 +213,7 @@ module VericredClient 
     | 
|
| 
       210 
213 
     | 
    
         
             
                # Calculates hash code according to all attributes.
         
     | 
| 
       211 
214 
     | 
    
         
             
                # @return [Fixnum] Hash code
         
     | 
| 
       212 
215 
     | 
    
         
             
                def hash
         
     | 
| 
       213 
     | 
    
         
            -
                  [ 
     | 
| 
      
 216 
     | 
    
         
            +
                  [counties, zip_codes, zip_counties].hash
         
     | 
| 
       214 
217 
     | 
    
         
             
                end
         
     | 
| 
       215 
218 
     | 
    
         | 
| 
       216 
219 
     | 
    
         
             
                # Builds the object from hash
         
     | 
| 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -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.4"
         
     | 
| 
       128 
128 
     | 
    
         
             
            end
         
     | 
| 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -126,36 +126,33 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git 
     | 
|
| 
       126 
126 
     | 
    
         
             
            require 'spec_helper'
         
     | 
| 
       127 
127 
     | 
    
         
             
            require 'json'
         
     | 
| 
       128 
128 
     | 
    
         | 
| 
       129 
     | 
    
         
            -
            # Unit tests for VericredClient:: 
     | 
| 
      
 129 
     | 
    
         
            +
            # Unit tests for VericredClient::DrugsApi
         
     | 
| 
       130 
130 
     | 
    
         
             
            # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
         
     | 
| 
       131 
131 
     | 
    
         
             
            # Please update as you see appropriate
         
     | 
| 
       132 
     | 
    
         
            -
            describe ' 
     | 
| 
      
 132 
     | 
    
         
            +
            describe 'DrugsApi' do
         
     | 
| 
       133 
133 
     | 
    
         
             
              before do
         
     | 
| 
       134 
134 
     | 
    
         
             
                # run before each test
         
     | 
| 
       135 
     | 
    
         
            -
                @instance = VericredClient:: 
     | 
| 
      
 135 
     | 
    
         
            +
                @instance = VericredClient::DrugsApi.new
         
     | 
| 
       136 
136 
     | 
    
         
             
              end
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
138 
     | 
    
         
             
              after do
         
     | 
| 
       139 
139 
     | 
    
         
             
                # run after each test
         
     | 
| 
       140 
140 
     | 
    
         
             
              end
         
     | 
| 
       141 
141 
     | 
    
         | 
| 
       142 
     | 
    
         
            -
              describe 'test an instance of  
     | 
| 
       143 
     | 
    
         
            -
                it 'should create an instact of  
     | 
| 
       144 
     | 
    
         
            -
                  @instance.should be_a(VericredClient:: 
     | 
| 
      
 142 
     | 
    
         
            +
              describe 'test an instance of DrugsApi' do
         
     | 
| 
      
 143 
     | 
    
         
            +
                it 'should create an instact of DrugsApi' do
         
     | 
| 
      
 144 
     | 
    
         
            +
                  @instance.should be_a(VericredClient::DrugsApi)
         
     | 
| 
       145 
145 
     | 
    
         
             
                end
         
     | 
| 
       146 
146 
     | 
    
         
             
              end
         
     | 
| 
       147 
147 
     | 
    
         | 
| 
       148 
     | 
    
         
            -
              # unit tests for  
     | 
| 
       149 
     | 
    
         
            -
              #  
     | 
| 
       150 
     | 
    
         
            -
              # Drug Coverages are the specific tier level, quantity limit, prior authorization
         
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
              # @param ndc NDC for a drug
         
     | 
| 
      
 148 
     | 
    
         
            +
              # unit tests for get_drugs_coverages_ndc
         
     | 
| 
      
 149 
     | 
    
         
            +
              # Drug Coverages are the specific tier level, quantity limit, prior authorization and step therapy for a given Drug/Plan
         
     | 
| 
      
 150 
     | 
    
         
            +
              # Drug Coverages are the specific tier level, quantity limit, prior authorization and step therapy for a given Drug/Plan combination. This endpoint returns all DrugCoverages for a given Drug
         
     | 
| 
      
 151 
     | 
    
         
            +
              # @param ndc_package_code NDC package code
         
     | 
| 
      
 152 
     | 
    
         
            +
              # @param state_code Two-character state code
         
     | 
| 
       156 
153 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       157 
     | 
    
         
            -
              # @return [ 
     | 
| 
       158 
     | 
    
         
            -
              describe ' 
     | 
| 
      
 154 
     | 
    
         
            +
              # @return [DrugCoverageResponse]
         
     | 
| 
      
 155 
     | 
    
         
            +
              describe 'get_drugs_coverages_ndc test' do
         
     | 
| 
       159 
156 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       160 
157 
     | 
    
         
             
                  # assertion here
         
     | 
| 
       161 
158 
     | 
    
         
             
                  # should be_a()
         
     | 
    
        data/spec/api/plans_api_spec.rb
    CHANGED
    
    | 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -145,75 +145,13 @@ describe 'PlansApi' do 
     | 
|
| 
       145 
145 
     | 
    
         
             
                end
         
     | 
| 
       146 
146 
     | 
    
         
             
              end
         
     | 
| 
       147 
147 
     | 
    
         | 
| 
       148 
     | 
    
         
            -
              # unit tests for  
     | 
| 
       149 
     | 
    
         
            -
              #  
     | 
| 
       150 
     | 
    
         
            -
              #  
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
       152 
     | 
    
         
            -
            Searching for a set of plans requires a `zip_code` and `fips_code`
         
     | 
| 
       153 
     | 
    
         
            -
            code.  These are used to determine pricing and availabity
         
     | 
| 
       154 
     | 
    
         
            -
            of health plans.
         
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
            Optionally, you may provide a list of Applicants or Providers
         
     | 
| 
       157 
     | 
    
         
            -
             
     | 
| 
       158 
     | 
    
         
            -
            ### Applicants
         
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
            This is a list of people who will be covered by the plan.  We
         
     | 
| 
       161 
     | 
    
         
            -
            use this list to calculate the premium.  You must include `age`
         
     | 
| 
       162 
     | 
    
         
            -
            and can include `smoker`, which also factors into pricing in some
         
     | 
| 
       163 
     | 
    
         
            -
            states.
         
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
            Applicants *must* include an age.  If smoker is omitted, its value is assumed
         
     | 
| 
       166 
     | 
    
         
            -
            to be false.
         
     | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
     | 
    
         
            -
            #### Multiple Applicants
         
     | 
| 
       169 
     | 
    
         
            -
             
     | 
| 
       170 
     | 
    
         
            -
            To get pricing for multiple applicants, just append multiple sets
         
     | 
| 
       171 
     | 
    
         
            -
            of data to the URL with the age and smoking status of each applicant
         
     | 
| 
       172 
     | 
    
         
            -
            next to each other.
         
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
            For example, given two applicants - one age 32 and a non-smoker and one
         
     | 
| 
       175 
     | 
    
         
            -
            age 29 and a smoker, you could use the following request
         
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
            `GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true`
         
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
            It would also be acceptible to include `applicants[][smoker]=false` after the
         
     | 
| 
       180 
     | 
    
         
            -
            first applicant's age.
         
     | 
| 
       181 
     | 
    
         
            -
             
     | 
| 
       182 
     | 
    
         
            -
            ### Providers
         
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
     | 
    
         
            -
            We identify Providers (Doctors) by their National Practitioner
         
     | 
| 
       185 
     | 
    
         
            -
            Index number (NPI).  If you pass a list of Providers, keyed by
         
     | 
| 
       186 
     | 
    
         
            -
            their NPI number, we will return a list of which Providers are
         
     | 
| 
       187 
     | 
    
         
            -
            in and out of network for each plan returned.
         
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
       189 
     | 
    
         
            -
            For example, if we had two providers with the NPI numbers `12345` and `23456`
         
     | 
| 
       190 
     | 
    
         
            -
            you would make the following request
         
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
            `GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456`
         
     | 
| 
       193 
     | 
    
         
            -
             
     | 
| 
       194 
     | 
    
         
            -
            ### Enrollment Date
         
     | 
| 
       195 
     | 
    
         
            -
             
     | 
| 
       196 
     | 
    
         
            -
            To calculate plan pricing and availability, we default to the current date
         
     | 
| 
       197 
     | 
    
         
            -
            as the enrollment date.  To specify a date in the future (or the past), pass
         
     | 
| 
       198 
     | 
    
         
            -
            a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter.
         
     | 
| 
       199 
     | 
    
         
            -
             
     | 
| 
       200 
     | 
    
         
            -
            `GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01`
         
     | 
| 
       201 
     | 
    
         
            -
             
     | 
| 
       202 
     | 
    
         
            -
            ### Subsidy
         
     | 
| 
       203 
     | 
    
         
            -
             
     | 
| 
       204 
     | 
    
         
            -
            On-marketplace plans are eligible for a subsidy based on the
         
     | 
| 
       205 
     | 
    
         
            -
            `household_size` and `household_income` of the applicants.  If you
         
     | 
| 
       206 
     | 
    
         
            -
            pass those values, we will calculate the `subsidized_premium`
         
     | 
| 
       207 
     | 
    
         
            -
            and return it for each plan.  If no values are provided, the
         
     | 
| 
       208 
     | 
    
         
            -
            `subsidized_premium` will be the same as the `premium`
         
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
            `GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000`
         
     | 
| 
       211 
     | 
    
         
            -
             
     | 
| 
       212 
     | 
    
         
            -
             
     | 
| 
       213 
     | 
    
         
            -
              # @param query Plan query
         
     | 
| 
      
 148 
     | 
    
         
            +
              # unit tests for post_plans_find
         
     | 
| 
      
 149 
     | 
    
         
            +
              # 
         
     | 
| 
      
 150 
     | 
    
         
            +
              # 
         
     | 
| 
       214 
151 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       215 
     | 
    
         
            -
              # @ 
     | 
| 
       216 
     | 
    
         
            -
               
     | 
| 
      
 152 
     | 
    
         
            +
              # @option opts [RequestPlanFind] :body 
         
     | 
| 
      
 153 
     | 
    
         
            +
              # @return [PlanFindResponse]
         
     | 
| 
      
 154 
     | 
    
         
            +
              describe 'post_plans_find test' do
         
     | 
| 
       217 
155 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       218 
156 
     | 
    
         
             
                  # assertion here
         
     | 
| 
       219 
157 
     | 
    
         
             
                  # should be_a()
         
     | 
| 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -145,33 +145,19 @@ describe 'ProvidersApi' do 
     | 
|
| 
       145 
145 
     | 
    
         
             
                end
         
     | 
| 
       146 
146 
     | 
    
         
             
              end
         
     | 
| 
       147 
147 
     | 
    
         | 
| 
       148 
     | 
    
         
            -
              # unit tests for  
     | 
| 
       149 
     | 
    
         
            -
              #  
     | 
| 
       150 
     | 
    
         
            -
              #  
     | 
| 
       151 
     | 
    
         
            -
            the search results to favor `Provider`s that are near the user.  For example,
         
     | 
| 
       152 
     | 
    
         
            -
            we would want "Dr. John Smith" who is 5 miles away to appear before
         
     | 
| 
       153 
     | 
    
         
            -
            "Dr. John Smith" who is 100 miles away.
         
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
            The weighting also allows for non-exact matches.  In our prior example, we
         
     | 
| 
       156 
     | 
    
         
            -
            would want "Dr. Jon Smith" who is 2 miles away to appear before the exact
         
     | 
| 
       157 
     | 
    
         
            -
            match "Dr. John Smith" who is 100 miles away because it is more likely that
         
     | 
| 
       158 
     | 
    
         
            -
            the user just entered an incorrect name.
         
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
            The free text search also supports Specialty name search and "body part"
         
     | 
| 
       161 
     | 
    
         
            -
            Specialty name search.  So, searching "John Smith nose" would return
         
     | 
| 
       162 
     | 
    
         
            -
            "Dr. John Smith", the ENT Specialist before "Dr. John Smith" the Internist.
         
     | 
| 
       163 
     | 
    
         
            -
             
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
      
 148 
     | 
    
         
            +
              # unit tests for get_providers
         
     | 
| 
      
 149 
     | 
    
         
            +
              # 
         
     | 
| 
      
 150 
     | 
    
         
            +
              # 
         
     | 
| 
       165 
151 
     | 
    
         
             
              # @param search_term String to search by
         
     | 
| 
       166 
152 
     | 
    
         
             
              # @param zip_code Zip Code to search near
         
     | 
| 
       167 
153 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       168 
154 
     | 
    
         
             
              # @option opts [String] :accepts_insurance Limit results to Providers who accept at least one insurance plan.  Note that the inverse of this filter is not supported and any value will evaluate to true
         
     | 
| 
       169 
     | 
    
         
            -
              # @option opts [Array<String>] :hios_ids HIOS id of one or more plans
         
     | 
| 
       170 
155 
     | 
    
         
             
              # @option opts [String] :page Page number
         
     | 
| 
       171 
156 
     | 
    
         
             
              # @option opts [String] :per_page Number of records to return per page
         
     | 
| 
       172 
157 
     | 
    
         
             
              # @option opts [String] :radius Radius (in miles) to use to limit results
         
     | 
| 
       173 
     | 
    
         
            -
              # @ 
     | 
| 
       174 
     | 
    
         
            -
               
     | 
| 
      
 158 
     | 
    
         
            +
              # @option opts [String] :type Either organization or individual
         
     | 
| 
      
 159 
     | 
    
         
            +
              # @return [ProviderResponse]
         
     | 
| 
      
 160 
     | 
    
         
            +
              describe 'get_providers test' do
         
     | 
| 
       175 
161 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       176 
162 
     | 
    
         
             
                  # assertion here
         
     | 
| 
       177 
163 
     | 
    
         
             
                  # should be_a()
         
     | 
| 
         @@ -181,15 +167,13 @@ Specialty name search.  So, searching "John Smith nose" would return 
     | 
|
| 
       181 
167 
     | 
    
         
             
                end
         
     | 
| 
       182 
168 
     | 
    
         
             
              end
         
     | 
| 
       183 
169 
     | 
    
         | 
| 
       184 
     | 
    
         
            -
              # unit tests for  
     | 
| 
       185 
     | 
    
         
            -
              #  
     | 
| 
       186 
     | 
    
         
            -
              #  
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
      
 170 
     | 
    
         
            +
              # unit tests for get_providers_npi
         
     | 
| 
      
 171 
     | 
    
         
            +
              # 
         
     | 
| 
      
 172 
     | 
    
         
            +
              # 
         
     | 
| 
       189 
173 
     | 
    
         
             
              # @param npi NPI number
         
     | 
| 
       190 
174 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       191 
     | 
    
         
            -
              # @return [ 
     | 
| 
       192 
     | 
    
         
            -
              describe ' 
     | 
| 
      
 175 
     | 
    
         
            +
              # @return [ProviderResponse]
         
     | 
| 
      
 176 
     | 
    
         
            +
              describe 'get_providers_npi test' do
         
     | 
| 
       193 
177 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       194 
178 
     | 
    
         
             
                  # assertion here
         
     | 
| 
       195 
179 
     | 
    
         
             
                  # should be_a()
         
     | 
| 
         @@ -116,7 +116,7 @@ The response would be 
     | 
|
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
            OpenAPI spec version: 
         
     | 
| 
      
 119 
     | 
    
         
            +
            OpenAPI spec version: 1.0.0
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generated by: https://github.com/swagger-api/swagger-codegen.git
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
         @@ -145,20 +145,13 @@ describe 'ZipCountiesApi' do 
     | 
|
| 
       145 
145 
     | 
    
         
             
                end
         
     | 
| 
       146 
146 
     | 
    
         
             
              end
         
     | 
| 
       147 
147 
     | 
    
         | 
| 
       148 
     | 
    
         
            -
              # unit tests for  
     | 
| 
       149 
     | 
    
         
            -
              #  
     | 
| 
       150 
     | 
    
         
            -
              #  
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
       152 
     | 
    
         
            -
            Our `Plan` endpoints require a zip code and a fips (county) code.  This is
         
     | 
| 
       153 
     | 
    
         
            -
            because plan pricing requires both of these elements.  Users are unlikely to
         
     | 
| 
       154 
     | 
    
         
            -
            know their fips code, so we provide this endpoint to look up a `ZipCounty` by
         
     | 
| 
       155 
     | 
    
         
            -
            zip code and return both the selected zip and fips codes.
         
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
             
     | 
| 
      
 148 
     | 
    
         
            +
              # unit tests for get_zip_counties
         
     | 
| 
      
 149 
     | 
    
         
            +
              # 
         
     | 
| 
      
 150 
     | 
    
         
            +
              # 
         
     | 
| 
       158 
151 
     | 
    
         
             
              # @param zip_prefix Partial five-digit Zip
         
     | 
| 
       159 
152 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       160 
     | 
    
         
            -
              # @return [ 
     | 
| 
       161 
     | 
    
         
            -
              describe ' 
     | 
| 
      
 153 
     | 
    
         
            +
              # @return [ZipCountyResponse]
         
     | 
| 
      
 154 
     | 
    
         
            +
              describe 'get_zip_counties test' do
         
     | 
| 
       162 
155 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       163 
156 
     | 
    
         
             
                  # assertion here
         
     | 
| 
       164 
157 
     | 
    
         
             
                  # should be_a()
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: vericred_client
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Vericred Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-05-11 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: typhoeus
         
     | 
| 
         @@ -199,30 +199,38 @@ extra_rdoc_files: [] 
     | 
|
| 
       199 
199 
     | 
    
         
             
            files:
         
     | 
| 
       200 
200 
     | 
    
         
             
            - README.md
         
     | 
| 
       201 
201 
     | 
    
         
             
            - docs/Applicant.md
         
     | 
| 
      
 202 
     | 
    
         
            +
            - docs/Base.md
         
     | 
| 
       202 
203 
     | 
    
         
             
            - docs/Carrier.md
         
     | 
| 
       203 
204 
     | 
    
         
             
            - docs/CarrierSubsidiary.md
         
     | 
| 
       204 
205 
     | 
    
         
             
            - docs/County.md
         
     | 
| 
      
 206 
     | 
    
         
            +
            - docs/CountyBulk.md
         
     | 
| 
       205 
207 
     | 
    
         
             
            - docs/Drug.md
         
     | 
| 
       206 
208 
     | 
    
         
             
            - docs/DrugCoverage.md
         
     | 
| 
       207 
     | 
    
         
            -
            - docs/ 
     | 
| 
       208 
     | 
    
         
            -
            - docs/ 
     | 
| 
       209 
     | 
    
         
            -
            - docs/ 
     | 
| 
       210 
     | 
    
         
            -
            - docs/ 
     | 
| 
      
 209 
     | 
    
         
            +
            - docs/DrugCoverageResponse.md
         
     | 
| 
      
 210 
     | 
    
         
            +
            - docs/DrugPackage.md
         
     | 
| 
      
 211 
     | 
    
         
            +
            - docs/DrugSearchResponse.md
         
     | 
| 
      
 212 
     | 
    
         
            +
            - docs/DrugsApi.md
         
     | 
| 
      
 213 
     | 
    
         
            +
            - docs/Meta.md
         
     | 
| 
       211 
214 
     | 
    
         
             
            - docs/Plan.md
         
     | 
| 
       212 
215 
     | 
    
         
             
            - docs/PlanCounty.md
         
     | 
| 
      
 216 
     | 
    
         
            +
            - docs/PlanCountyBulk.md
         
     | 
| 
      
 217 
     | 
    
         
            +
            - docs/PlanFindResponse.md
         
     | 
| 
       213 
218 
     | 
    
         
             
            - docs/PlanSearchResult.md
         
     | 
| 
       214 
219 
     | 
    
         
             
            - docs/PlansApi.md
         
     | 
| 
       215 
220 
     | 
    
         
             
            - docs/Pricing.md
         
     | 
| 
       216 
221 
     | 
    
         
             
            - docs/Provider.md
         
     | 
| 
      
 222 
     | 
    
         
            +
            - docs/ProviderResponse.md
         
     | 
| 
       217 
223 
     | 
    
         
             
            - docs/ProvidersApi.md
         
     | 
| 
       218 
     | 
    
         
            -
            - docs/Query.md
         
     | 
| 
       219 
224 
     | 
    
         
             
            - docs/RatingArea.md
         
     | 
| 
      
 225 
     | 
    
         
            +
            - docs/RequestPlanFind.md
         
     | 
| 
       220 
226 
     | 
    
         
             
            - docs/State.md
         
     | 
| 
       221 
227 
     | 
    
         
             
            - docs/ZipCode.md
         
     | 
| 
       222 
228 
     | 
    
         
             
            - docs/ZipCountiesApi.md
         
     | 
| 
       223 
229 
     | 
    
         
             
            - docs/ZipCounty.md
         
     | 
| 
      
 230 
     | 
    
         
            +
            - docs/ZipCountyBulk.md
         
     | 
| 
      
 231 
     | 
    
         
            +
            - docs/ZipCountyResponse.md
         
     | 
| 
       224 
232 
     | 
    
         
             
            - lib/vericred_client.rb
         
     | 
| 
       225 
     | 
    
         
            -
            - lib/vericred_client/api/ 
     | 
| 
      
 233 
     | 
    
         
            +
            - lib/vericred_client/api/drugs_api.rb
         
     | 
| 
       226 
234 
     | 
    
         
             
            - lib/vericred_client/api/plans_api.rb
         
     | 
| 
       227 
235 
     | 
    
         
             
            - lib/vericred_client/api/providers_api.rb
         
     | 
| 
       228 
236 
     | 
    
         
             
            - lib/vericred_client/api/zip_counties_api.rb
         
     | 
| 
         @@ -230,26 +238,34 @@ files: 
     | 
|
| 
       230 
238 
     | 
    
         
             
            - lib/vericred_client/api_error.rb
         
     | 
| 
       231 
239 
     | 
    
         
             
            - lib/vericred_client/configuration.rb
         
     | 
| 
       232 
240 
     | 
    
         
             
            - lib/vericred_client/models/applicant.rb
         
     | 
| 
      
 241 
     | 
    
         
            +
            - lib/vericred_client/models/base.rb
         
     | 
| 
       233 
242 
     | 
    
         
             
            - lib/vericred_client/models/carrier.rb
         
     | 
| 
       234 
243 
     | 
    
         
             
            - lib/vericred_client/models/carrier_subsidiary.rb
         
     | 
| 
       235 
244 
     | 
    
         
             
            - lib/vericred_client/models/county.rb
         
     | 
| 
      
 245 
     | 
    
         
            +
            - lib/vericred_client/models/county_bulk.rb
         
     | 
| 
       236 
246 
     | 
    
         
             
            - lib/vericred_client/models/drug.rb
         
     | 
| 
       237 
247 
     | 
    
         
             
            - lib/vericred_client/models/drug_coverage.rb
         
     | 
| 
       238 
     | 
    
         
            -
            - lib/vericred_client/models/ 
     | 
| 
       239 
     | 
    
         
            -
            - lib/vericred_client/models/ 
     | 
| 
       240 
     | 
    
         
            -
            - lib/vericred_client/models/ 
     | 
| 
      
 248 
     | 
    
         
            +
            - lib/vericred_client/models/drug_coverage_response.rb
         
     | 
| 
      
 249 
     | 
    
         
            +
            - lib/vericred_client/models/drug_package.rb
         
     | 
| 
      
 250 
     | 
    
         
            +
            - lib/vericred_client/models/drug_search_response.rb
         
     | 
| 
      
 251 
     | 
    
         
            +
            - lib/vericred_client/models/meta.rb
         
     | 
| 
       241 
252 
     | 
    
         
             
            - lib/vericred_client/models/plan.rb
         
     | 
| 
       242 
253 
     | 
    
         
             
            - lib/vericred_client/models/plan_county.rb
         
     | 
| 
      
 254 
     | 
    
         
            +
            - lib/vericred_client/models/plan_county_bulk.rb
         
     | 
| 
      
 255 
     | 
    
         
            +
            - lib/vericred_client/models/plan_find_response.rb
         
     | 
| 
       243 
256 
     | 
    
         
             
            - lib/vericred_client/models/plan_search_result.rb
         
     | 
| 
       244 
257 
     | 
    
         
             
            - lib/vericred_client/models/pricing.rb
         
     | 
| 
       245 
258 
     | 
    
         
             
            - lib/vericred_client/models/provider.rb
         
     | 
| 
       246 
     | 
    
         
            -
            - lib/vericred_client/models/ 
     | 
| 
      
 259 
     | 
    
         
            +
            - lib/vericred_client/models/provider_response.rb
         
     | 
| 
       247 
260 
     | 
    
         
             
            - lib/vericred_client/models/rating_area.rb
         
     | 
| 
      
 261 
     | 
    
         
            +
            - lib/vericred_client/models/request_plan_find.rb
         
     | 
| 
       248 
262 
     | 
    
         
             
            - lib/vericred_client/models/state.rb
         
     | 
| 
       249 
263 
     | 
    
         
             
            - lib/vericred_client/models/zip_code.rb
         
     | 
| 
       250 
264 
     | 
    
         
             
            - lib/vericred_client/models/zip_county.rb
         
     | 
| 
      
 265 
     | 
    
         
            +
            - lib/vericred_client/models/zip_county_bulk.rb
         
     | 
| 
      
 266 
     | 
    
         
            +
            - lib/vericred_client/models/zip_county_response.rb
         
     | 
| 
       251 
267 
     | 
    
         
             
            - lib/vericred_client/version.rb
         
     | 
| 
       252 
     | 
    
         
            -
            - spec/api/ 
     | 
| 
      
 268 
     | 
    
         
            +
            - spec/api/drugs_api_spec.rb
         
     | 
| 
       253 
269 
     | 
    
         
             
            - spec/api/plans_api_spec.rb
         
     | 
| 
       254 
270 
     | 
    
         
             
            - spec/api/providers_api_spec.rb
         
     | 
| 
       255 
271 
     | 
    
         
             
            - spec/api/zip_counties_api_spec.rb
         
     | 
| 
         @@ -274,12 +290,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       274 
290 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       275 
291 
     | 
    
         
             
            requirements: []
         
     | 
| 
       276 
292 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       277 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 293 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
       278 
294 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       279 
295 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       280 
296 
     | 
    
         
             
            summary: Vericred API Ruby Gem
         
     | 
| 
       281 
297 
     | 
    
         
             
            test_files:
         
     | 
| 
       282 
     | 
    
         
            -
            - spec/api/ 
     | 
| 
      
 298 
     | 
    
         
            +
            - spec/api/drugs_api_spec.rb
         
     | 
| 
       283 
299 
     | 
    
         
             
            - spec/api/plans_api_spec.rb
         
     | 
| 
       284 
300 
     | 
    
         
             
            - spec/api/providers_api_spec.rb
         
     | 
| 
       285 
301 
     | 
    
         
             
            - spec/api/zip_counties_api_spec.rb
         
     |