vericred_client 0.0.27 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -25
  3. data/docs/ACAPlan.md +0 -5
  4. data/docs/ACAPlan2018.md +6 -5
  5. data/docs/ACAPlan2018Search.md +104 -0
  6. data/docs/ACAPlan2018SearchResponse.md +1 -1
  7. data/docs/ACAPlan2018SearchResult.md +6 -0
  8. data/docs/ACAPlanPre2018.md +0 -5
  9. data/docs/ACAPlanPre2018Search.md +97 -0
  10. data/docs/ACAPlanPre2018SearchResponse.md +1 -1
  11. data/docs/ACAPlanPre2018SearchResult.md +1 -1
  12. data/docs/AgeBanded.md +10 -0
  13. data/docs/BulkPlansApi.md +63 -0
  14. data/docs/DentalPlan.md +0 -4
  15. data/docs/DentalPlanSearch.md +25 -0
  16. data/docs/DentalPlanSearchResponse.md +1 -1
  17. data/docs/DentalPlanUpdate.md +2 -0
  18. data/docs/FormulariesApi.md +58 -0
  19. data/docs/FourTierComposite.md +12 -0
  20. data/docs/MajorMedicalPlansApi.md +8 -8
  21. data/docs/MedicalPlanBenefits.md +2 -0
  22. data/docs/{RequestPlanFind.md → MedicalPlanSearchRequest.md} +2 -3
  23. data/docs/MedicalPlanUpdate.md +6 -1
  24. data/docs/MedicalPlansApi.md +114 -0
  25. data/docs/MedicareAdvantagePlan.md +0 -2
  26. data/docs/MedicareAdvantagePlanSearch.md +30 -0
  27. data/docs/MedicareAdvantagePlanSearchResponse.md +1 -1
  28. data/docs/MembersCreateRequest.md +0 -1
  29. data/docs/Plan.md +0 -4
  30. data/docs/PlanMedicare.md +0 -4
  31. data/docs/PlanMedicareBulk.md +0 -4
  32. data/docs/PlansBulkSearchRequest.md +13 -0
  33. data/docs/PlansBulkSearchResponse.md +9 -0
  34. data/docs/Premiums.md +11 -0
  35. data/docs/ProviderDetails.md +1 -0
  36. data/docs/ProviderNetworks.md +2 -1
  37. data/docs/ProviderNetworksAddress.md +15 -0
  38. data/docs/ProviderPlanNetworkResponse.md +9 -0
  39. data/docs/ProviderPlanResponse.md +2 -0
  40. data/docs/ProvidersApi.md +2 -2
  41. data/docs/QuotingApi.md +9 -8
  42. data/docs/RateShow.md +4 -3
  43. data/docs/ServiceAreaUpdate.md +13 -0
  44. data/docs/ServiceAreaZipCountyUpdate.md +9 -0
  45. data/docs/ServiceAreasApi.md +65 -0
  46. data/docs/ThreeTierComposite.md +11 -0
  47. data/docs/TwoTierComposite.md +10 -0
  48. data/docs/V7ResponseProvidersProviderDetails.md +1 -0
  49. data/docs/VisionPlanUpdate.md +1 -0
  50. data/lib/vericred_client.rb +48 -13
  51. data/lib/vericred_client/api/{carrier_verification_medical_plans_api.rb → bulk_plans_api.rb} +47 -22
  52. data/lib/vericred_client/api/carrier_groups_api.rb +30 -5
  53. data/lib/vericred_client/api/carriers_api.rb +30 -5
  54. data/lib/vericred_client/api/dental_plans_api.rb +30 -5
  55. data/lib/vericred_client/api/drugs_api.rb +30 -5
  56. data/lib/vericred_client/api/embargoes_api.rb +30 -5
  57. data/lib/vericred_client/api/formularies_api.rb +91 -5
  58. data/lib/vericred_client/api/issuers_api.rb +30 -5
  59. data/lib/vericred_client/api/major_medical_plans_api.rb +38 -13
  60. data/lib/vericred_client/api/medical_plans_api.rb +147 -5
  61. data/lib/vericred_client/api/medicare_advantage_plans_api.rb +30 -5
  62. data/lib/vericred_client/api/network_sizes_api.rb +30 -5
  63. data/lib/vericred_client/api/networks_api.rb +30 -5
  64. data/lib/vericred_client/api/plans_api.rb +30 -5
  65. data/lib/vericred_client/api/providers_api.rb +34 -9
  66. data/lib/vericred_client/api/quoting_api.rb +46 -20
  67. data/lib/vericred_client/api/rates_api.rb +30 -5
  68. data/lib/vericred_client/api/{carrier_verification_dental_plans_api.rb → service_areas_api.rb} +53 -25
  69. data/lib/vericred_client/api/specialties_api.rb +30 -5
  70. data/lib/vericred_client/api/vision_plans_api.rb +30 -5
  71. data/lib/vericred_client/api/zip_counties_api.rb +30 -5
  72. data/lib/vericred_client/api_client.rb +30 -5
  73. data/lib/vericred_client/api_error.rb +30 -5
  74. data/lib/vericred_client/configuration.rb +30 -5
  75. data/lib/vericred_client/models/aca_plan.rb +31 -60
  76. data/lib/vericred_client/models/aca_plan2018.rb +91 -60
  77. data/lib/vericred_client/models/aca_plan2018_search.rb +2155 -0
  78. data/lib/vericred_client/models/aca_plan2018_search_response.rb +31 -6
  79. data/lib/vericred_client/models/aca_plan2018_search_result.rb +91 -6
  80. data/lib/vericred_client/models/aca_plan2018_show_response.rb +30 -5
  81. data/lib/vericred_client/models/aca_plan_pre2018.rb +31 -60
  82. data/lib/vericred_client/models/aca_plan_pre2018_search.rb +2085 -0
  83. data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +31 -6
  84. data/lib/vericred_client/models/aca_plan_pre2018_search_result.rb +31 -6
  85. data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +30 -5
  86. data/lib/vericred_client/models/address.rb +30 -5
  87. data/lib/vericred_client/models/age_banded.rb +1205 -0
  88. data/lib/vericred_client/models/ancillary_plan_identifier.rb +30 -5
  89. data/lib/vericred_client/models/base.rb +30 -5
  90. data/lib/vericred_client/models/base_plan_search_response.rb +30 -5
  91. data/lib/vericred_client/models/carrier.rb +30 -5
  92. data/lib/vericred_client/models/carrier_group_request.rb +30 -5
  93. data/lib/vericred_client/models/carrier_request.rb +30 -5
  94. data/lib/vericred_client/models/carrier_subsidiary.rb +30 -5
  95. data/lib/vericred_client/models/county.rb +30 -5
  96. data/lib/vericred_client/models/county_bulk.rb +30 -5
  97. data/lib/vericred_client/models/dental_plan.rb +31 -50
  98. data/lib/vericred_client/models/dental_plan_benefits.rb +30 -5
  99. data/lib/vericred_client/{api/provider_notification_subscriptions_api.rb → models/dental_plan_search.rb} +361 -157
  100. data/lib/vericred_client/models/dental_plan_search_applicant.rb +30 -5
  101. data/lib/vericred_client/models/dental_plan_search_request.rb +30 -5
  102. data/lib/vericred_client/models/dental_plan_search_response.rb +31 -6
  103. data/lib/vericred_client/models/dental_plan_show_response.rb +30 -5
  104. data/lib/vericred_client/models/dental_plan_update.rb +54 -9
  105. data/lib/vericred_client/models/dental_plan_update_request.rb +30 -5
  106. data/lib/vericred_client/models/dependent_create.rb +30 -5
  107. data/lib/vericred_client/models/dependent_create_request.rb +30 -5
  108. data/lib/vericred_client/models/dependent_show.rb +30 -5
  109. data/lib/vericred_client/models/drug.rb +30 -5
  110. data/lib/vericred_client/models/drug_coverage.rb +30 -5
  111. data/lib/vericred_client/models/drug_coverage_base.rb +30 -5
  112. data/lib/vericred_client/models/drug_coverage_response.rb +30 -5
  113. data/lib/vericred_client/models/drug_details.rb +30 -5
  114. data/lib/vericred_client/models/drug_package.rb +30 -5
  115. data/lib/vericred_client/models/drug_search_drug_package.rb +30 -5
  116. data/lib/vericred_client/models/drug_search_request.rb +30 -5
  117. data/lib/vericred_client/models/drug_search_response.rb +30 -5
  118. data/lib/vericred_client/models/embargo_request.rb +30 -5
  119. data/lib/vericred_client/models/formulary.rb +30 -5
  120. data/lib/vericred_client/models/formulary_drug_coverage.rb +30 -5
  121. data/lib/vericred_client/models/formulary_drug_package_response.rb +30 -5
  122. data/lib/vericred_client/models/formulary_response.rb +30 -5
  123. data/lib/vericred_client/models/four_tier_composite.rb +1225 -0
  124. data/lib/vericred_client/models/group_create.rb +30 -5
  125. data/lib/vericred_client/models/group_create_request.rb +30 -5
  126. data/lib/vericred_client/models/group_create_response.rb +30 -5
  127. data/lib/vericred_client/models/group_show.rb +30 -5
  128. data/lib/vericred_client/models/group_show_response.rb +30 -5
  129. data/lib/vericred_client/models/group_update.rb +30 -5
  130. data/lib/vericred_client/models/group_update_request.rb +30 -5
  131. data/lib/vericred_client/models/issuer_request.rb +30 -5
  132. data/lib/vericred_client/models/location_create.rb +30 -5
  133. data/lib/vericred_client/models/location_show.rb +30 -5
  134. data/lib/vericred_client/models/location_update.rb +30 -5
  135. data/lib/vericred_client/models/medical_plan_benefits.rb +51 -6
  136. data/lib/vericred_client/models/{request_plan_find_carrier_verification.rb → medical_plan_search_request.rb} +40 -35
  137. data/lib/vericred_client/models/medical_plan_update.rb +91 -16
  138. data/lib/vericred_client/models/medical_plan_update_request.rb +30 -5
  139. data/lib/vericred_client/models/medicare_advantage_plan.rb +31 -30
  140. data/lib/vericred_client/models/medicare_advantage_plan_benefits.rb +30 -5
  141. data/lib/vericred_client/models/medicare_advantage_plan_search.rb +1413 -0
  142. data/lib/vericred_client/models/medicare_advantage_plan_search_request.rb +30 -5
  143. data/lib/vericred_client/models/medicare_advantage_plan_search_response.rb +31 -6
  144. data/lib/vericred_client/models/medicare_advantage_plan_show_response.rb +30 -5
  145. data/lib/vericred_client/models/medicare_advantage_plan_update.rb +30 -5
  146. data/lib/vericred_client/models/medicare_advantage_plan_update_request.rb +30 -5
  147. data/lib/vericred_client/models/member_create.rb +30 -5
  148. data/lib/vericred_client/models/member_rate_show.rb +30 -5
  149. data/lib/vericred_client/models/member_rate_show_request.rb +30 -5
  150. data/lib/vericred_client/models/member_rates_show_response.rb +30 -5
  151. data/lib/vericred_client/models/member_show.rb +30 -5
  152. data/lib/vericred_client/models/members_create_request.rb +31 -16
  153. data/lib/vericred_client/models/members_create_response.rb +30 -5
  154. data/lib/vericred_client/models/members_show_response.rb +30 -5
  155. data/lib/vericred_client/models/meta.rb +30 -5
  156. data/lib/vericred_client/models/meta_plan_search_response.rb +30 -5
  157. data/lib/vericred_client/models/network.rb +30 -5
  158. data/lib/vericred_client/models/network_comparison.rb +30 -5
  159. data/lib/vericred_client/models/network_comparison_request.rb +30 -5
  160. data/lib/vericred_client/models/network_comparison_response.rb +30 -5
  161. data/lib/vericred_client/models/network_details.rb +30 -5
  162. data/lib/vericred_client/models/network_details_response.rb +30 -5
  163. data/lib/vericred_client/models/network_disruption_analysis.rb +30 -5
  164. data/lib/vericred_client/models/network_disruption_analysis_request.rb +30 -5
  165. data/lib/vericred_client/models/network_disruption_analysis_response.rb +30 -5
  166. data/lib/vericred_client/models/network_search.rb +30 -5
  167. data/lib/vericred_client/models/network_search_response.rb +30 -5
  168. data/lib/vericred_client/models/network_size.rb +30 -5
  169. data/lib/vericred_client/models/notification_subscription.rb +30 -5
  170. data/lib/vericred_client/models/notification_subscription_response.rb +30 -5
  171. data/lib/vericred_client/models/plan.rb +31 -50
  172. data/lib/vericred_client/models/plan_county.rb +30 -5
  173. data/lib/vericred_client/models/plan_county_bulk.rb +30 -5
  174. data/lib/vericred_client/models/plan_deleted.rb +30 -5
  175. data/lib/vericred_client/models/plan_identifier.rb +30 -5
  176. data/lib/vericred_client/models/plan_medicare.rb +31 -50
  177. data/lib/vericred_client/models/plan_medicare_bulk.rb +31 -50
  178. data/lib/vericred_client/models/plan_network.rb +30 -5
  179. data/lib/vericred_client/models/plan_pricing_medicare.rb +30 -5
  180. data/lib/vericred_client/models/plan_search_response.rb +30 -5
  181. data/lib/vericred_client/models/plan_show_response.rb +30 -5
  182. data/lib/vericred_client/models/plans_bulk_aca2018.rb +30 -5
  183. data/lib/vericred_client/models/plans_bulk_aca_pre2018.rb +30 -5
  184. data/lib/vericred_client/models/plans_bulk_base.rb +30 -5
  185. data/lib/vericred_client/models/plans_bulk_dental.rb +30 -5
  186. data/lib/vericred_client/models/{request_plan_find.rb → plans_bulk_search_request.rb} +54 -127
  187. data/lib/vericred_client/models/plans_bulk_search_response.rb +1197 -0
  188. data/lib/vericred_client/models/plans_bulk_vision.rb +30 -5
  189. data/lib/vericred_client/models/premiums.rb +1215 -0
  190. data/lib/vericred_client/models/provider.rb +30 -5
  191. data/lib/vericred_client/models/provider_details.rb +43 -6
  192. data/lib/vericred_client/models/provider_geocode.rb +30 -5
  193. data/lib/vericred_client/models/provider_network_event_notification.rb +30 -5
  194. data/lib/vericred_client/models/provider_network_specialty.rb +30 -5
  195. data/lib/vericred_client/models/provider_networks.rb +45 -10
  196. data/lib/vericred_client/models/provider_networks_address.rb +1257 -0
  197. data/lib/vericred_client/models/provider_plan_network_response.rb +1195 -0
  198. data/lib/vericred_client/models/provider_plan_response.rb +56 -9
  199. data/lib/vericred_client/models/provider_plans.rb +30 -5
  200. data/lib/vericred_client/models/provider_plans_request.rb +30 -5
  201. data/lib/vericred_client/models/provider_show_response.rb +30 -5
  202. data/lib/vericred_client/models/providers_geocode_response.rb +30 -5
  203. data/lib/vericred_client/models/providers_search_response.rb +30 -5
  204. data/lib/vericred_client/models/quote_create.rb +30 -5
  205. data/lib/vericred_client/models/quote_create_request.rb +30 -5
  206. data/lib/vericred_client/models/quote_create_response.rb +30 -5
  207. data/lib/vericred_client/models/quote_show.rb +30 -5
  208. data/lib/vericred_client/models/quote_show_response.rb +30 -5
  209. data/lib/vericred_client/models/rate_request.rb +30 -5
  210. data/lib/vericred_client/models/rate_search.rb +30 -5
  211. data/lib/vericred_client/models/rate_show.rb +44 -9
  212. data/lib/vericred_client/models/rate_show_request.rb +30 -5
  213. data/lib/vericred_client/models/rates_show_response.rb +30 -5
  214. data/lib/vericred_client/models/rating_area.rb +30 -5
  215. data/lib/vericred_client/models/request_plan_find_applicant.rb +30 -5
  216. data/lib/vericred_client/models/request_plan_find_drug_package.rb +30 -5
  217. data/lib/vericred_client/models/request_plan_find_provider.rb +30 -5
  218. data/lib/vericred_client/models/request_provider_notification_subscription.rb +30 -5
  219. data/lib/vericred_client/models/request_providers_search.rb +30 -5
  220. data/lib/vericred_client/models/request_rates_search.rb +30 -5
  221. data/lib/vericred_client/models/response_rates_search.rb +30 -5
  222. data/lib/vericred_client/models/rx_cui_identifier.rb +30 -5
  223. data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +30 -5
  224. data/lib/vericred_client/models/service_area.rb +30 -5
  225. data/lib/vericred_client/models/service_area_update.rb +1237 -0
  226. data/lib/vericred_client/models/service_area_zip_county.rb +30 -5
  227. data/lib/vericred_client/models/service_area_zip_county_update.rb +1195 -0
  228. data/lib/vericred_client/models/specialty_search_response.rb +30 -5
  229. data/lib/vericred_client/models/specialty_show.rb +30 -5
  230. data/lib/vericred_client/models/state.rb +30 -5
  231. data/lib/vericred_client/models/state_network_size_request.rb +30 -5
  232. data/lib/vericred_client/models/state_network_size_response.rb +30 -5
  233. data/lib/vericred_client/models/supplemental_options.rb +30 -5
  234. data/lib/vericred_client/models/supplemental_options_update.rb +30 -5
  235. data/lib/vericred_client/models/three_tier_composite.rb +1215 -0
  236. data/lib/vericred_client/models/two_tier_composite.rb +1205 -0
  237. data/lib/vericred_client/models/v7_network_comparison_response.rb +30 -5
  238. data/lib/vericred_client/models/v7_response_providers_provider_details.rb +43 -6
  239. data/lib/vericred_client/models/vision_plan.rb +30 -5
  240. data/lib/vericred_client/models/vision_plan_benefits.rb +30 -5
  241. data/lib/vericred_client/models/vision_plan_search_applicant.rb +30 -5
  242. data/lib/vericred_client/models/vision_plan_search_request.rb +30 -5
  243. data/lib/vericred_client/models/vision_plan_search_response.rb +30 -5
  244. data/lib/vericred_client/models/vision_plan_show_response.rb +30 -5
  245. data/lib/vericred_client/models/vision_plan_update.rb +44 -9
  246. data/lib/vericred_client/models/vision_plan_update_request.rb +30 -5
  247. data/lib/vericred_client/models/zip_code.rb +30 -5
  248. data/lib/vericred_client/models/zip_counties_response.rb +30 -5
  249. data/lib/vericred_client/models/zip_county.rb +30 -5
  250. data/lib/vericred_client/models/zip_county_bulk.rb +30 -5
  251. data/lib/vericred_client/models/zip_county_response.rb +30 -5
  252. data/lib/vericred_client/version.rb +31 -6
  253. data/spec/api/bulk_plans_api_spec.rb +1043 -0
  254. data/spec/api/carrier_groups_api_spec.rb +30 -5
  255. data/spec/api/carriers_api_spec.rb +30 -5
  256. data/spec/api/dental_plans_api_spec.rb +30 -5
  257. data/spec/api/drugs_api_spec.rb +30 -5
  258. data/spec/api/embargoes_api_spec.rb +30 -5
  259. data/spec/api/formularies_api_spec.rb +43 -5
  260. data/spec/api/issuers_api_spec.rb +30 -5
  261. data/spec/api/major_medical_plans_api_spec.rb +33 -8
  262. data/spec/api/medical_plans_api_spec.rb +55 -5
  263. data/spec/api/medicare_advantage_plans_api_spec.rb +30 -5
  264. data/spec/api/network_sizes_api_spec.rb +30 -5
  265. data/spec/api/networks_api_spec.rb +30 -5
  266. data/spec/api/plans_api_spec.rb +30 -5
  267. data/spec/api/providers_api_spec.rb +32 -7
  268. data/spec/api/quoting_api_spec.rb +36 -11
  269. data/spec/api/rates_api_spec.rb +30 -5
  270. data/spec/api/{carrier_verification_dental_plans_api_spec.rb → service_areas_api_spec.rb} +43 -17
  271. data/spec/api/specialties_api_spec.rb +30 -5
  272. data/spec/api/vision_plans_api_spec.rb +30 -5
  273. data/spec/api/zip_counties_api_spec.rb +30 -5
  274. data/spec/api_client_spec.rb +30 -5
  275. data/spec/configuration_spec.rb +30 -5
  276. data/spec/models/aca_plan2018_search_response_spec.rb +30 -5
  277. data/spec/models/aca_plan2018_search_result_spec.rb +66 -5
  278. data/spec/models/aca_plan2018_search_spec.rb +1614 -0
  279. data/spec/models/aca_plan2018_show_response_spec.rb +30 -5
  280. data/spec/models/aca_plan2018_spec.rb +60 -29
  281. data/spec/models/aca_plan_pre2018_search_response_spec.rb +30 -5
  282. data/spec/models/aca_plan_pre2018_search_result_spec.rb +30 -5
  283. data/spec/models/aca_plan_pre2018_search_spec.rb +1572 -0
  284. data/spec/models/aca_plan_pre2018_show_response_spec.rb +30 -5
  285. data/spec/models/aca_plan_pre2018_spec.rb +30 -35
  286. data/spec/models/aca_plan_spec.rb +30 -35
  287. data/spec/models/address_spec.rb +30 -5
  288. data/spec/models/age_banded_spec.rb +1050 -0
  289. data/spec/models/ancillary_plan_identifier_spec.rb +30 -5
  290. data/spec/models/base_plan_search_response_spec.rb +30 -5
  291. data/spec/models/base_spec.rb +30 -5
  292. data/spec/models/carrier_group_request_spec.rb +30 -5
  293. data/spec/models/carrier_request_spec.rb +30 -5
  294. data/spec/models/carrier_spec.rb +30 -5
  295. data/spec/models/carrier_subsidiary_spec.rb +30 -5
  296. data/spec/models/county_bulk_spec.rb +30 -5
  297. data/spec/models/county_spec.rb +30 -5
  298. data/spec/models/dental_plan_benefits_spec.rb +30 -5
  299. data/spec/models/dental_plan_search_applicant_spec.rb +30 -5
  300. data/spec/models/dental_plan_search_request_spec.rb +30 -5
  301. data/spec/models/dental_plan_search_response_spec.rb +30 -5
  302. data/spec/{api/provider_notification_subscriptions_api_spec.rb → models/dental_plan_search_spec.rb} +136 -38
  303. data/spec/models/dental_plan_show_response_spec.rb +30 -5
  304. data/spec/models/dental_plan_spec.rb +30 -29
  305. data/spec/models/dental_plan_update_request_spec.rb +30 -5
  306. data/spec/models/dental_plan_update_spec.rb +42 -5
  307. data/spec/models/dependent_create_request_spec.rb +30 -5
  308. data/spec/models/dependent_create_spec.rb +30 -5
  309. data/spec/models/dependent_show_spec.rb +30 -5
  310. data/spec/models/drug_coverage_base_spec.rb +30 -5
  311. data/spec/models/drug_coverage_response_spec.rb +30 -5
  312. data/spec/models/drug_coverage_spec.rb +30 -5
  313. data/spec/models/drug_details_spec.rb +30 -5
  314. data/spec/models/drug_package_spec.rb +30 -5
  315. data/spec/models/drug_search_drug_package_spec.rb +30 -5
  316. data/spec/models/drug_search_request_spec.rb +30 -5
  317. data/spec/models/drug_search_response_spec.rb +30 -5
  318. data/spec/models/drug_spec.rb +30 -5
  319. data/spec/models/embargo_request_spec.rb +30 -5
  320. data/spec/models/formulary_drug_coverage_spec.rb +30 -5
  321. data/spec/models/formulary_drug_package_response_spec.rb +30 -5
  322. data/spec/models/formulary_response_spec.rb +30 -5
  323. data/spec/models/formulary_spec.rb +30 -5
  324. data/spec/models/four_tier_composite_spec.rb +1062 -0
  325. data/spec/models/group_create_request_spec.rb +30 -5
  326. data/spec/models/group_create_response_spec.rb +30 -5
  327. data/spec/models/group_create_spec.rb +30 -5
  328. data/spec/models/group_show_response_spec.rb +30 -5
  329. data/spec/models/group_show_spec.rb +30 -5
  330. data/spec/models/group_update_request_spec.rb +30 -5
  331. data/spec/models/group_update_spec.rb +30 -5
  332. data/spec/models/issuer_request_spec.rb +30 -5
  333. data/spec/models/location_create_spec.rb +30 -5
  334. data/spec/models/location_show_spec.rb +30 -5
  335. data/spec/models/location_update_spec.rb +30 -5
  336. data/spec/models/medical_plan_benefits_spec.rb +42 -5
  337. data/spec/models/{request_plan_find_carrier_verification_spec.rb → medical_plan_search_request_spec.rb} +37 -24
  338. data/spec/models/medical_plan_update_request_spec.rb +30 -5
  339. data/spec/models/medical_plan_update_spec.rb +64 -9
  340. data/spec/models/medicare_advantage_plan_benefits_spec.rb +30 -5
  341. data/spec/models/medicare_advantage_plan_search_request_spec.rb +30 -5
  342. data/spec/models/medicare_advantage_plan_search_response_spec.rb +30 -5
  343. data/spec/models/medicare_advantage_plan_search_spec.rb +1170 -0
  344. data/spec/models/medicare_advantage_plan_show_response_spec.rb +30 -5
  345. data/spec/models/medicare_advantage_plan_spec.rb +30 -17
  346. data/spec/models/medicare_advantage_plan_update_request_spec.rb +30 -5
  347. data/spec/models/medicare_advantage_plan_update_spec.rb +30 -5
  348. data/spec/models/member_create_spec.rb +30 -5
  349. data/spec/models/member_rate_show_request_spec.rb +30 -5
  350. data/spec/models/member_rate_show_spec.rb +30 -5
  351. data/spec/models/member_rates_show_response_spec.rb +30 -5
  352. data/spec/models/member_show_spec.rb +30 -5
  353. data/spec/models/members_create_request_spec.rb +30 -11
  354. data/spec/models/members_create_response_spec.rb +30 -5
  355. data/spec/models/members_show_response_spec.rb +30 -5
  356. data/spec/models/meta_plan_search_response_spec.rb +30 -5
  357. data/spec/models/meta_spec.rb +30 -5
  358. data/spec/models/network_comparison_request_spec.rb +30 -5
  359. data/spec/models/network_comparison_response_spec.rb +30 -5
  360. data/spec/models/network_comparison_spec.rb +30 -5
  361. data/spec/models/network_details_response_spec.rb +30 -5
  362. data/spec/models/network_details_spec.rb +30 -5
  363. data/spec/models/network_disruption_analysis_request_spec.rb +30 -5
  364. data/spec/models/network_disruption_analysis_response_spec.rb +30 -5
  365. data/spec/models/network_disruption_analysis_spec.rb +30 -5
  366. data/spec/models/network_search_response_spec.rb +30 -5
  367. data/spec/models/network_search_spec.rb +30 -5
  368. data/spec/models/network_size_spec.rb +30 -5
  369. data/spec/models/network_spec.rb +30 -5
  370. data/spec/models/notification_subscription_response_spec.rb +30 -5
  371. data/spec/models/notification_subscription_spec.rb +30 -5
  372. data/spec/models/plan_county_bulk_spec.rb +30 -5
  373. data/spec/models/plan_county_spec.rb +30 -5
  374. data/spec/models/plan_deleted_spec.rb +30 -5
  375. data/spec/models/plan_identifier_spec.rb +30 -5
  376. data/spec/models/plan_medicare_bulk_spec.rb +30 -29
  377. data/spec/models/plan_medicare_spec.rb +30 -29
  378. data/spec/models/plan_network_spec.rb +30 -5
  379. data/spec/models/plan_pricing_medicare_spec.rb +30 -5
  380. data/spec/models/plan_search_response_spec.rb +30 -5
  381. data/spec/models/plan_show_response_spec.rb +30 -5
  382. data/spec/models/plan_spec.rb +30 -29
  383. data/spec/models/plans_bulk_aca2018_spec.rb +30 -5
  384. data/spec/models/plans_bulk_aca_pre2018_spec.rb +30 -5
  385. data/spec/models/plans_bulk_base_spec.rb +30 -5
  386. data/spec/models/plans_bulk_dental_spec.rb +30 -5
  387. data/spec/models/plans_bulk_search_request_spec.rb +1068 -0
  388. data/spec/{api/carrier_verification_plans_api_spec.rb → models/plans_bulk_search_response_spec.rb} +46 -20
  389. data/spec/models/plans_bulk_vision_spec.rb +30 -5
  390. data/spec/models/premiums_spec.rb +1056 -0
  391. data/spec/models/provider_details_spec.rb +36 -5
  392. data/spec/models/provider_geocode_spec.rb +30 -5
  393. data/spec/models/provider_network_event_notification_spec.rb +30 -5
  394. data/spec/models/provider_network_specialty_spec.rb +30 -5
  395. data/spec/models/{request_plan_find_spec.rb → provider_networks_address_spec.rb} +43 -60
  396. data/spec/models/provider_networks_spec.rb +36 -5
  397. data/spec/{api/carrier_verification_vision_plans_api_spec.rb → models/provider_plan_network_response_spec.rb} +46 -20
  398. data/spec/models/provider_plan_response_spec.rb +42 -5
  399. data/spec/models/provider_plans_request_spec.rb +30 -5
  400. data/spec/models/provider_plans_spec.rb +30 -5
  401. data/spec/models/provider_show_response_spec.rb +30 -5
  402. data/spec/models/provider_spec.rb +30 -5
  403. data/spec/models/providers_geocode_response_spec.rb +30 -5
  404. data/spec/models/providers_search_response_spec.rb +30 -5
  405. data/spec/models/quote_create_request_spec.rb +30 -5
  406. data/spec/models/quote_create_response_spec.rb +30 -5
  407. data/spec/models/quote_create_spec.rb +30 -5
  408. data/spec/models/quote_show_response_spec.rb +30 -5
  409. data/spec/models/quote_show_spec.rb +30 -5
  410. data/spec/models/rate_request_spec.rb +30 -5
  411. data/spec/models/rate_search_spec.rb +30 -5
  412. data/spec/models/rate_show_request_spec.rb +30 -5
  413. data/spec/models/rate_show_spec.rb +36 -5
  414. data/spec/models/rates_show_response_spec.rb +30 -5
  415. data/spec/models/rating_area_spec.rb +30 -5
  416. data/spec/models/request_plan_find_applicant_spec.rb +30 -5
  417. data/spec/models/request_plan_find_drug_package_spec.rb +30 -5
  418. data/spec/models/request_plan_find_provider_spec.rb +30 -5
  419. data/spec/models/request_provider_notification_subscription_spec.rb +30 -5
  420. data/spec/models/request_providers_search_spec.rb +30 -5
  421. data/spec/models/request_rates_search_spec.rb +30 -5
  422. data/spec/models/response_rates_search_spec.rb +30 -5
  423. data/spec/models/rx_cui_identifier_search_response_spec.rb +30 -5
  424. data/spec/models/rx_cui_identifier_spec.rb +30 -5
  425. data/spec/models/service_area_spec.rb +30 -5
  426. data/spec/models/service_area_update_spec.rb +1068 -0
  427. data/spec/models/service_area_zip_county_spec.rb +30 -5
  428. data/spec/{api/carrier_verification_medical_plans_api_spec.rb → models/service_area_zip_county_update_spec.rb} +46 -20
  429. data/spec/models/specialty_search_response_spec.rb +30 -5
  430. data/spec/models/specialty_show_spec.rb +30 -5
  431. data/spec/models/state_network_size_request_spec.rb +30 -5
  432. data/spec/models/state_network_size_response_spec.rb +30 -5
  433. data/spec/models/state_spec.rb +30 -5
  434. data/spec/models/supplemental_options_spec.rb +30 -5
  435. data/spec/models/supplemental_options_update_spec.rb +30 -5
  436. data/spec/models/three_tier_composite_spec.rb +1056 -0
  437. data/spec/models/two_tier_composite_spec.rb +1050 -0
  438. data/spec/models/v7_network_comparison_response_spec.rb +30 -5
  439. data/spec/models/v7_response_providers_provider_details_spec.rb +36 -5
  440. data/spec/models/vision_plan_benefits_spec.rb +30 -5
  441. data/spec/models/vision_plan_search_applicant_spec.rb +30 -5
  442. data/spec/models/vision_plan_search_request_spec.rb +30 -5
  443. data/spec/models/vision_plan_search_response_spec.rb +30 -5
  444. data/spec/models/vision_plan_show_response_spec.rb +30 -5
  445. data/spec/models/vision_plan_spec.rb +30 -5
  446. data/spec/models/vision_plan_update_request_spec.rb +30 -5
  447. data/spec/models/vision_plan_update_spec.rb +36 -5
  448. data/spec/models/zip_code_spec.rb +30 -5
  449. data/spec/models/zip_counties_response_spec.rb +30 -5
  450. data/spec/models/zip_county_bulk_spec.rb +30 -5
  451. data/spec/models/zip_county_response_spec.rb +30 -5
  452. data/spec/models/zip_county_spec.rb +30 -5
  453. data/spec/spec_helper.rb +30 -5
  454. data/vericred_client.gemspec +30 -5
  455. metadata +74 -34
  456. data/docs/CarrierVerificationDentalPlansApi.md +0 -63
  457. data/docs/CarrierVerificationMedicalPlansApi.md +0 -63
  458. data/docs/CarrierVerificationPlansApi.md +0 -63
  459. data/docs/CarrierVerificationVisionPlansApi.md +0 -63
  460. data/docs/DrugPackagesApi.md +0 -66
  461. data/docs/ProviderNotificationSubscriptionsApi.md +0 -173
  462. data/docs/RequestPlanFindCarrierVerification.md +0 -23
  463. data/lib/vericred_client/api/carrier_verification_plans_api.rb +0 -1051
  464. data/lib/vericred_client/api/carrier_verification_vision_plans_api.rb +0 -1051
  465. data/lib/vericred_client/api/drug_packages_api.rb +0 -1055
  466. data/spec/api/drug_packages_api_spec.rb +0 -1019
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -1016,6 +1041,9 @@ module VericredClient
1016
1041
  # Array of network ids
1017
1042
  attr_accessor :network_ids
1018
1043
 
1044
+ # Provider networks
1045
+ attr_accessor :networks
1046
+
1019
1047
  # The National Provider Index (NPI) numbers associated with this provider.
1020
1048
  attr_accessor :npis
1021
1049
 
@@ -1069,6 +1097,7 @@ module VericredClient
1069
1097
  :'longitude' => :'longitude',
1070
1098
  :'middle_name' => :'middle_name',
1071
1099
  :'network_ids' => :'network_ids',
1100
+ :'networks' => :'networks',
1072
1101
  :'npis' => :'npis',
1073
1102
  :'organization_name' => :'organization_name',
1074
1103
  :'phone' => :'phone',
@@ -1098,6 +1127,7 @@ module VericredClient
1098
1127
  :'longitude' => :'Float',
1099
1128
  :'middle_name' => :'String',
1100
1129
  :'network_ids' => :'Array<Integer>',
1130
+ :'networks' => :'Array<ProviderNetworks>',
1101
1131
  :'npis' => :'Array<Integer>',
1102
1132
  :'organization_name' => :'String',
1103
1133
  :'phone' => :'String',
@@ -1164,6 +1194,12 @@ module VericredClient
1164
1194
  end
1165
1195
  end
1166
1196
 
1197
+ if attributes.has_key?(:'networks')
1198
+ if (value = attributes[:'networks']).is_a?(Array)
1199
+ self.networks = value
1200
+ end
1201
+ end
1202
+
1167
1203
  if attributes.has_key?(:'npis')
1168
1204
  if (value = attributes[:'npis']).is_a?(Array)
1169
1205
  self.npis = value
@@ -1248,6 +1284,7 @@ module VericredClient
1248
1284
  longitude == o.longitude &&
1249
1285
  middle_name == o.middle_name &&
1250
1286
  network_ids == o.network_ids &&
1287
+ networks == o.networks &&
1251
1288
  npis == o.npis &&
1252
1289
  organization_name == o.organization_name &&
1253
1290
  phone == o.phone &&
@@ -1272,7 +1309,7 @@ module VericredClient
1272
1309
  # Calculates hash code according to all attributes.
1273
1310
  # @return [Fixnum] Hash code
1274
1311
  def hash
1275
- [city, email, first_name, gender, id, last_name, latitude, longitude, middle_name, network_ids, npis, organization_name, phone, presentation_name, specialty, state, state_id, street_line_1, street_line_2, suffix, title, type, zip_code].hash
1312
+ [city, email, first_name, gender, id, last_name, latitude, longitude, middle_name, network_ids, networks, npis, organization_name, phone, presentation_name, specialty, state, state_id, street_line_1, street_line_2, suffix, title, type, zip_code].hash
1276
1313
  end
1277
1314
 
1278
1315
  # Builds the object from hash
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -777,11 +777,36 @@ Response
777
777
  "rates": [
778
778
  ...
779
779
  {
780
+ "id": "123abc",
780
781
  "plan_id": "12345NY6789012",
781
- "total_premium": 2800.0,
782
- "member_premium": 1000.0,
783
- "dependent_premium": 1800.0,
784
- "id": "123abc"
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
785
810
  }
786
811
  ...
787
812
  ]
@@ -829,7 +854,7 @@ Response
829
854
  "member_external_id": "externally-supplied-id",
830
855
  "member_premium": 500.0,
831
856
  "dependent_premium": 600.0,
832
- "total_premium": 1100.0,
857
+ "total_premium": 1100.0
833
858
  }
834
859
  ...
835
860
  ]
@@ -1007,6 +1032,9 @@ module VericredClient
1007
1032
  # Specialties
1008
1033
  attr_accessor :specialties
1009
1034
 
1035
+ # Network Tier a provider belongs to
1036
+ attr_accessor :tier
1037
+
1010
1038
 
1011
1039
  # Attribute mapping from ruby-style variable name to JSON key.
1012
1040
  def self.attribute_map
@@ -1017,20 +1045,22 @@ module VericredClient
1017
1045
  :'name' => :'name',
1018
1046
  :'pcp' => :'pcp',
1019
1047
  :'pcp_id' => :'pcp_id',
1020
- :'specialties' => :'specialties'
1048
+ :'specialties' => :'specialties',
1049
+ :'tier' => :'tier'
1021
1050
  }
1022
1051
  end
1023
1052
 
1024
1053
  # Attribute type mapping.
1025
1054
  def self.swagger_types
1026
1055
  {
1027
- :'addresses' => :'Array<Address>',
1056
+ :'addresses' => :'Array<ProviderNetworksAddress>',
1028
1057
  :'carrier_name' => :'String',
1029
1058
  :'id' => :'Integer',
1030
1059
  :'name' => :'String',
1031
1060
  :'pcp' => :'BOOLEAN',
1032
1061
  :'pcp_id' => :'String',
1033
- :'specialties' => :'Array<ProviderNetworkSpecialty>'
1062
+ :'specialties' => :'Array<ProviderNetworkSpecialty>',
1063
+ :'tier' => :'String'
1034
1064
  }
1035
1065
  end
1036
1066
 
@@ -1074,6 +1104,10 @@ module VericredClient
1074
1104
  end
1075
1105
  end
1076
1106
 
1107
+ if attributes.has_key?(:'tier')
1108
+ self.tier = attributes[:'tier']
1109
+ end
1110
+
1077
1111
  end
1078
1112
 
1079
1113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1100,7 +1134,8 @@ module VericredClient
1100
1134
  name == o.name &&
1101
1135
  pcp == o.pcp &&
1102
1136
  pcp_id == o.pcp_id &&
1103
- specialties == o.specialties
1137
+ specialties == o.specialties &&
1138
+ tier == o.tier
1104
1139
  end
1105
1140
 
1106
1141
  # @see the `==` method
@@ -1112,7 +1147,7 @@ module VericredClient
1112
1147
  # Calculates hash code according to all attributes.
1113
1148
  # @return [Fixnum] Hash code
1114
1149
  def hash
1115
- [addresses, carrier_name, id, name, pcp, pcp_id, specialties].hash
1150
+ [addresses, carrier_name, id, name, pcp, pcp_id, specialties, tier].hash
1116
1151
  end
1117
1152
 
1118
1153
  # Builds the object from hash
@@ -0,0 +1,1257 @@
1
+ =begin
2
+ #Vericred API
3
+
4
+ ## Getting Started
5
+
6
+ ## Signing Up
7
+
8
+ Visit our [Developer Portal](https://developers.vericred.com) to
9
+ create an account.
10
+
11
+ Once you have created an account, you can create one Application for your
12
+ Production environment and another for a Sandbox (select the appropriate Plan when you create the Application).
13
+
14
+ ## SDKs
15
+
16
+ Our API follows standard REST conventions, so you can use any HTTP client
17
+ to integrate with us. You will likely find it easier to use one of our
18
+ [autogenerated SDKs](https://github.com/vericred/?query=vericred-),
19
+ which we make available for several common programming languages.
20
+
21
+ ## Authentication
22
+
23
+ To authenticate, pass the API Key you created in the Developer Portal as
24
+ a `Vericred-Api-Key` header.
25
+
26
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/drugs?search_term=Lipitor"`
27
+
28
+ ## Versioning
29
+
30
+ Vericred's API default to the latest version. However, if you need a specific
31
+ version, you can request it with an `Accept-Version` header.
32
+
33
+ The current version is `v6`. We support prior versions. Our latest
34
+ stable version is `v7` and we will indicate in the documentation for an
35
+ endpoint if it's required.
36
+
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v6' "https://api.vericred.com/drugs?search_term=Lipitor"`
38
+
39
+ ## Pagination
40
+
41
+ Endpoints that accept `page` and `per_page` parameters are paginated. They expose
42
+ four additional fields that contain data about your position in the response,
43
+ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
44
+
45
+ For example, to display 5 results per page and view the second page of a
46
+ `GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
47
+
48
+ ## Sideloading
49
+
50
+ When we return multiple levels of an object graph (e.g. `Provider`s and their
51
+ `State`s we typically the associated data. In this example, we would
52
+ provide an Array of `State`s and a `state_id` for each provider. This is
53
+ done primarily to reduce the payload size since many of the `Provider`s
54
+ will share a `State`
55
+
56
+ ### Simplified Example
57
+ ```
58
+ {
59
+ providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
60
+ states: [{ id: 1, code: 'NY' }]
61
+ }
62
+ ```
63
+
64
+ If you need the second level of the object graph, you can just match the
65
+ corresponding id.
66
+
67
+ ## Selecting specific data
68
+
69
+ All endpoints allow you to specify which fields you would like to return.
70
+ This allows you to limit the response to contain only the data you need.
71
+
72
+ For example, let's take a request that returns the following JSON by default
73
+
74
+ ```
75
+ {
76
+ provider: {
77
+ id: 1,
78
+ name: 'John',
79
+ phone: '1234567890',
80
+ field_we_dont_care_about: 'value_we_dont_care_about'
81
+ },
82
+ states: [{
83
+ id: 1,
84
+ name: 'New York',
85
+ code: 'NY',
86
+ field_we_dont_care_about: 'value_we_dont_care_about'
87
+ }]
88
+ }
89
+ ```
90
+
91
+ To limit our results to only return the fields we care about, we specify the
92
+ `select` in the query string for a `GET` or the body for a `POST`.
93
+
94
+ In this case, we want to select `name` and `phone` from the `provider` key,
95
+ so we would add the parameters `select=provider.name,provider.phone`.
96
+ We also want the `name` and `code` from the `states` key, so we would
97
+ add the parameters `select=states.name,states.code`. The id field of
98
+ each document is always returned whether or not it is requested.
99
+
100
+ Our final request would be `GET /providers/1234567898?select=provider.name,provider.phone,states.name,states.code`
101
+
102
+ The response would be
103
+
104
+ ```
105
+ {
106
+ provider: {
107
+ id: 1234567898,
108
+ name: 'John',
109
+ phone: '1234567890'
110
+ },
111
+ states: [{
112
+ id: 1,
113
+ name: 'New York',
114
+ code: 'NY'
115
+ }]
116
+ }
117
+ ```
118
+
119
+ # Plan and Rate Data
120
+
121
+ Vericred's Plan and Rate Data let you search and quote Major Medical and Ancillary Insurance Plans in a given area for a particular family in the Individual Market or a group of families in the Small Group Market. Vericred provides the relevant data via this API and via our Bulk Format (documented [below](#Bulk Plan and Rate Data))
122
+
123
+ ## Plans
124
+
125
+ A Plan defines a set of Benefits available to its purchaser. For example, a Major Medical Plan would specify cost-share Benefits for services like a Primary Care Provider visit, a Specialist visit or an Emergency Room visit. A Dental Plan might specify Benefits for Periodontics and Fluroride Treatments. The Benefits for each Product type ([Major Medical](#header-major-medical), [Dental](#header-dental), and [Vision](#header-vision)) are documented below.
126
+
127
+ ### Benefits Format
128
+
129
+ Benefits for Plans can be quite complex. With the goals of capturing and standardizing the complexity while retaining a human-readable format, we have developed a [Bakus-Naur Form](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form)(BNF) context-free grammar, with which we present Benefits.
130
+
131
+ Benefit cost-share strings are formatted to capture:
132
+ * Network tiers
133
+ * Compound or conditional cost-share
134
+ * Limits on the cost-share
135
+ * Benefit-specific maximum out-of-pocket costs
136
+
137
+ **Example #1**
138
+ As an example, we would represent [this Summary of Benefits &amp; Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/33602TX0780032.pdf) as:
139
+
140
+ * **Hospital stay facility fees**:
141
+ - Network Provider: `$400 copay/admit plus 20% coinsurance`
142
+ - Out-of-Network Provider: `$1,500 copay/admit plus 50% coinsurance`
143
+ - Vericred's format for this benefit: `In-Network: $400 before deductible then 20% after deductible / Out-of-Network: $1,500 before deductible then 50% after deductible`
144
+
145
+ * **Rehabilitation services:**
146
+ - Network Provider: `20% coinsurance`
147
+ - Out-of-Network Provider: `50% coinsurance`
148
+ - Limitations & Exceptions: `35 visit maximum per benefit period combined with Chiropractic care.`
149
+ - Vericred's format for this benefit: `In-Network: 20% after deductible / Out-of-Network: 50% after deductible | limit: 35 visit(s) per Benefit Period`
150
+
151
+ **Example #2**
152
+ In [this other Summary of Benefits &amp; Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/40733CA0110568.pdf), the **specialty_drugs** cost-share has a maximum out-of-pocket for in-network pharmacies.
153
+ * **Specialty drugs:**
154
+ - Network Provider: `40% coinsurance up to a $500 maximum for up to a 30 day supply`
155
+ - Out-of-Network Provider `Not covered`
156
+ - Vericred's format for this benefit: `In-Network: 40% after deductible, up to $500 per script / Out-of-Network: 100%`
157
+
158
+ **BNF**
159
+
160
+ Here's a description of the benefits summary string, represented as a context-free grammar:
161
+
162
+ ```
163
+ root ::= coverage
164
+
165
+ coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
166
+ tiered_coverage ::= tier (space slash space tier)*
167
+ tier ::= tier_name colon space (tier_coverage | not_applicable)
168
+ tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
169
+ simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
170
+ coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
171
+ waived_if_admitted ::= ("copay" space)? "waived if admitted"
172
+ simple_limitation ::= pre_coverage_limitation space "copay applies"
173
+ tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
174
+ limit_condition ::= "limit" | "condition"
175
+ tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
176
+ coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
177
+ pre_coverage_limitation ::= first space digits space time_unit plural?
178
+ post_coverage_limitation ::= (((then space currency) | "per condition") space)? "per" space (treatment_unit | (integer space time_unit) | time_unit) plural?
179
+ coverage_condition ::= ("before deductible" | "after deductible" | "penalty" | allowance | "in-state" | "out-of-state") (space allowance)?
180
+ allowance ::= upto_allowance | after_allowance
181
+ upto_allowance ::= "up to" space (currency space)? "allowance"
182
+ after_allowance ::= "after" space (currency space)? "allowance"
183
+ see_carrier_documentation ::= "see carrier documentation for more information"
184
+ shared_across_tiers ::= "shared across all tiers"
185
+ unknown ::= "unknown"
186
+ unlimited ::= /[uU]nlimited/
187
+ included ::= /[iI]ncluded in [mM]edical/
188
+ time_unit ::= /[hH]our/ | (((/[cC]alendar/ | /[cC]ontract/) space)? /[yY]ear/) | /[mM]onth/ | /[dD]ay/ | /[wW]eek/ | /[vV]isit/ | /[lL]ifetime/ | ((((/[bB]enefit/ plural?) | /[eE]ligibility/) space)? /[pP]eriod/)
189
+ treatment_unit ::= /[pP]erson/ | /[gG]roup/ | /[cC]ondition/ | /[sS]cript/ | /[vV]isit/ | /[eE]xam/ | /[iI]tem/ | /[sS]tay/ | /[tT]reatment/ | /[aA]dmission/ | /[eE]pisode/
190
+ comma ::= ","
191
+ colon ::= ":"
192
+ semicolon ::= ";"
193
+ pipe ::= "|"
194
+ slash ::= "/"
195
+ plural ::= "(s)" | "s"
196
+ then ::= "then" | ("," space) | space
197
+ or ::= "or"
198
+ and ::= "and"
199
+ not_applicable ::= "Not Applicable" | "N/A" | "NA"
200
+ first ::= "first"
201
+ currency ::= "$" number
202
+ percentage ::= number "%"
203
+ number ::= float | integer
204
+ float ::= digits "." digits
205
+ integer ::= /[0-9]/+ (comma_int | under_int)*
206
+ comma_int ::= ("," /[0-9]/*3) !"_"
207
+ under_int ::= ("_" /[0-9]/*3) !","
208
+ digits ::= /[0-9]/+ ("_" /[0-9]/+)*
209
+ space ::= /[ \t]/+
210
+ ```
211
+
212
+
213
+ ### Major Medical
214
+
215
+ Vericred's data covers all Major Medical Plans available in the Individual and Small Groups (2-50 or 2-100) Markets in the US. These Plans are governed by CMS and are ACA-compliant. We do not include certain Plans that fall outside of the ACA, for example, Faith-Based Plans or Short-Term Medical Plans
216
+
217
+ We support the following Benefits Fields for Major Medical Plans. These represent the vast majority of fields available on a [Summary of Benefits and Coverage](https://www.healthcare.gov/health-care-law-protections/summary-of-benefits-and-coverage/)
218
+
219
+ The following are the appropriate Benefit Fields for Major Medical:
220
+
221
+ - ambulance
222
+ - child\_eye\_exam
223
+ - child\_eyewear
224
+ - chiropractic\_services
225
+ - diagnostic\_test
226
+ - durable\_medical\_equipment
227
+ - emergency\_room
228
+ - family\_drug\_deductible
229
+ - family\_drug\_moop
230
+ - family\_medical\_deductible
231
+ - family\_medical\_moop
232
+ - generic\_drugs
233
+ - habilitation\_services
234
+ - home\_health\_care
235
+ - hospice\_service
236
+ - imaging\_center
237
+ - imaging\_physician
238
+ - individual\_drug\_deductible
239
+ - individual\_drug\_moop
240
+ - individual\_medical\_deductible
241
+ - individual\_medical\_moop
242
+ - inpatient\_birth
243
+ - inpatient\_facility
244
+ - inpatient\_mental\_health
245
+ - inpatient\_physician
246
+ - inpatient\_substance
247
+ - lab\_test
248
+ - non\_preferred\_brand\_drugs
249
+ - nonpreferred\_generic\_drug\_share
250
+ - nonpreferred\_specialty\_drug\_share
251
+ - outpatient\_ambulatory\_care\_center
252
+ - outpatient\_facility
253
+ - outpatient\_mental\_health
254
+ - outpatient\_physician
255
+ - outpatient\_substance
256
+ - postnatal\_care
257
+ - preferred\_brand\_drugs
258
+ - prenatal\_care
259
+ - preventative\_care
260
+ - primary\_care\_physician
261
+ - rehabilitation\_services
262
+ - skilled\_nursing
263
+ - specialist
264
+ - specialty\_drugs
265
+ - urgent\_care
266
+
267
+ ### Dental
268
+
269
+ Dental benefits are less standardized than [Major Medical](#header-major-medical). Because of this, we have captured benefits for the most commonly specified services and procedures. If a Plan only specifies cost-share for "Major", "Minor", "Elective", etc, we determine the category for each of the benefits that we support and display the appropriate value for its category.
270
+
271
+ To view the technical documentation, [click here](#dental-plans).
272
+
273
+ The following are the supported Benefit Fields for Dental:
274
+
275
+ - bridges
276
+ - crowns
277
+ - denture\_relines\_rebases
278
+ - denture\_repair\_and\_adjustments
279
+ - dentures
280
+ - emergency\_treatment
281
+ - endodontics
282
+ - family\_annual\_max
283
+ - family\_deductible
284
+ - fluoride\_treatment
285
+ - implants
286
+ - individual\_annual\_max
287
+ - individual\_deductible
288
+ - inlays
289
+ - onlays
290
+ - oral\_exam
291
+ - oral\_surgery
292
+ - orthodontics\_adult
293
+ - orthodontics\_child
294
+ - periodontal\_maintenance
295
+ - periodontics
296
+ - prophylaxis\_cleaning
297
+ - radiograph\_bitewings
298
+ - radiograph\_other
299
+ - restoration\_fillings
300
+ - sealant
301
+ - simple\_extraction
302
+ - space\_maintainers
303
+
304
+ ### Vision
305
+
306
+ Vision benefits are similar in structure to [Dental](#header-dental). Again, when benefits are broken out by category, we determine the appropriate category for each service or procedure and display the approprate value for its category.
307
+
308
+ To view the technical documentation, [click here](#vision-plans).
309
+
310
+ The following are the supported Benefit Fields for Vision:
311
+
312
+ - eye\_exam
313
+ - retinal\_imaging
314
+ - frame
315
+ - eyeglass\_lenses\_single\_vision
316
+ - eyeglass\_lenses\_bifocal
317
+ - eyeglass\_lenses\_trifocal
318
+ - eyeglass\_lenses\_lenticular
319
+ - uv\_coating
320
+ - tint
321
+ - standard\_antireflective\_coating
322
+ - premium\_antireflective\_coating
323
+ - standard\_polycarbonate\_lenses\_child
324
+ - standard\_polycarbonate\_lenses\_adult
325
+ - standard\_progressive\_lenses
326
+ - premium\_progressive\_lenses
327
+ - standard\_scratch\_resistance
328
+ - polarized\_lenses
329
+ - photochromatic\_lenses
330
+ - standard\_contact\_lens\_fit\_and\_follow\_up
331
+ - premium\_contact\_lens\_fit\_and\_follow\_up
332
+ - contact\_lenses\_conventional
333
+ - contact\_lenses\_disposable
334
+ - contact\_lenses\_medically\_necessary
335
+ - laser\_vision\_correction
336
+ - additional\_pairs\_of\_eyeglasses
337
+
338
+ ### Medicare Advantage
339
+
340
+ Medicare Advantage endpoints support MA (Medicare Advantage plans without prescription drug benefits), MAPD (Medicare Advantage plans with prescription drug benefits), and PDP (prescription drug benefits only) plans.
341
+
342
+ Medical and hospital benefits - we support over 4000 individual plans through our API nationwide. At this time, we do not support EGHP (employer group health plans).
343
+
344
+ Prescription drug benefits - drug benefits are categorized into initial coverage phase, coverage gap phase, and catastrophic phase. Each phase is broken down by drug tiers, pharmacy tiers, and length of supply.
345
+
346
+ [Click here](#header-medicare-advantage-quotes) to learn more about quoting Medicare Advantage plans.
347
+
348
+ ## Rates
349
+
350
+ Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
351
+
352
+ ### Sheet Rates
353
+ When a Carrier supplies us with Sheet Rates, we display *exactly* the value provided to us. For example, in the Major Medical market, most Carriers provide a single rate for each combination of Applicant age and tobacco status in a given [Rating Area](#header-rating-areas). For example, in Austin, TX, a 21-year-old non-tobacco-user may be $312.41 per month while a 22-year-old tobacco-user may be $401.75 per month. Certain Vision and Dental Carriers supply Sheet Rates as well, though it is less common.
354
+
355
+ ### Rate Factors
356
+ Certain [Major Medical](#header-major-medical) Carriers and most [Vision](#header-vision) and [Dental](#header-dental) Carriers supply Rate Factors. The attributes on which the factors are based are the same as [Sheet Rates](#header-sheet-rates) for the [Major Medical](#header-major-medical) market (due to restrictions on what factors may be used in ACA Plans, which limit the possible factors to age and tobacco status).
357
+
358
+ In [Dental](#header-dental) and [Vision](#header-vision), the types of [Rate Factors](#header-rate-factors) are more varied. For example, SIC Code and Group size in the Group market and Gender in the Individual Market are commonly used [Rate Factors](#header-rate-factors)
359
+
360
+ Other common [Rate Factors](#header-rate-factors) for [Dental](#header-dental) and [Vision](#header-vision) products are Geographic and "Trend" (enrollment date) Factors. In [Major Medical](#header-major-medical), these types of variance are handled by CMS-defined [Rating Areas](#header-rating-areas).
361
+
362
+ In order to calculate a Rate using [Rate Factors](#header-rate-factors), the following methodology is applied:
363
+
364
+ ```
365
+ B = Base Rate
366
+ f = Rate Factor Function 1
367
+ f' = Rate Factor Function 2
368
+
369
+ B * f(x) * f'(y) [* f''(z)] ... = n
370
+ ```
371
+
372
+ ## Rating Areas
373
+ For [Major Medical](#header-major-medical) products, [CMS](https://www.cms.gov/) defines [Rating Areas](https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-gra.html). Under the ACA, *all* [Rate Factors](#header-rate-factors) in a Rating Area must be identical for a given time period. E.g. in Arizona, the rate for a 21-year-old non-tobacco user must be identical in all counties contained in Rating Area 1 (Mohave, Coconino, Apache, and Navajo), but *may* be different than the rate for a 21-year-old non-tobacco user in all counties Rating Area 2 (Yavapai county only) for a given year in the Individual Market and a given quartern in the Small Group market.
374
+
375
+ [Rating Areas](#header-rating-areas) are defined either by County, Zip Code or both, depending on the State. Because of this variance, all API endpoints that require a [Location](#header-specifying-the-location) require both `zip_code` and `fips_code` (a county code). [Bulk Data](#bulkplanandratedata) for [Rating Areas](#bulkratingareas) and [Service Areas](#bulkserviceareas) also specifies locations using both `zip_code` and `fips_code`.
376
+
377
+ *Rating Areas do not apply to products other than [Major Medical](#header-major-medical)*
378
+
379
+ ## Service Areas
380
+ CMS mandates that [Major Medical](#header-major-medical) Rates be defined by [Rating Areas](#header-rating-areas), which themselves define a geography in which Plans are offered. Carriers often choose *not* to offer a Plan in and entire [Rating Area](#header-rating-areas) due to network coverage or other factors. Instead, the Carrier would define a [Service Area](#header-service-areas) that specifies where a given Plan is offered.
381
+
382
+ Each Plan is available in a single [Service Area](#header-service-areas) and each [Service Area](#header-service-areas) is defined by either County, Zip Code, or both, depending on the Carrier. Because of this variance, all API endpoints that require a [Location](#header-specifying-the-location) require both `zip_code` and `fips_code` (a county code). [Bulk Data](#bulkplanandratedata) for [Rating Areas](#bulkratingareas) and [Service Areas](#bulkserviceareas) also specifies locations using both `zip_code` and `fips_code`.
383
+
384
+ In [Dental](#header-dental) and [Vision](#header-vision) plans, we use a [Service Area](#header-service-areas) to define availability as well, although it typically mirrors a Geographic [Rate Factor](#header-rate-factors).
385
+
386
+ # Quoting
387
+
388
+ One of the primary use-cases for the Vericred API is to run Quotes to determine the Rate for a given family (in the Individual Market) or group (in the Small Group Market). We support quoting across [Major Medical](#header-major-medical), [Vision](#header-vision), and [Dental](#header-dental). In both cases, the process of generating a Quote is broken out into several steps:
389
+
390
+ 1. Find all available [Plans](#header-plans) in the relevent [Service Areas](#header-service-areas) for the family or group.
391
+ 1. Using [Business Rules](#header-business-rules) for each [Plan](#header-plans), determine if the family or group is eligible for that [Plan](#header-plans).
392
+ 1. Using [Business Rules](#header-business-rules) for each [Plan](#header-plans), determine which members of the family or which members of each family in the group should be considered for Rating.
393
+ 1. Using the [Sheet Rates](#header-sheet-rates) or [Rate Factors](#header-rate-factors) for each [Plan](#header-plans), determine the Rate the family, or for each family in the group.
394
+ 1. If running a [Composite](#compositerates) quote, determine the portion of the total Rate that each family will pay.
395
+
396
+ ## Individual Quotes
397
+ An Individual Quote is one for Plans that are available to a particular family, outside the context of their Employer. In the [Major Medical](#header-major-medical) market, many of these Plans are available on [Healthcare.gov](https://www.healthcare.gov) or the State-Based Exchange for non-Healthcare.gov states. The API supports both on-market and off-market Plans.
398
+
399
+ For details on Major Medical Quoting API calls see [below](#medicalplans-medicalplans-post)
400
+
401
+ ### Specifying the Location
402
+ In order to determine which plans are [available](#header-service-areas) and the [rate](#header-rating-areas) for each Plan, you must specify a location. When creating a [Quote](#header-quoting) for the Individual Market, that information is contained in the `POST` body of the request:
403
+ ```
404
+ POST /plans/medical/search
405
+ {
406
+ ...
407
+ "zip_code": "11201",
408
+ "fips_code": "36047"
409
+ ...
410
+ }
411
+
412
+ ```
413
+
414
+ ### Specifying Applicants
415
+ Applicants are the members of the family being quoted and are specified in the `POST` body of the request.
416
+ ```
417
+ POST /plans/medical/search
418
+ {
419
+ ...
420
+ "applicants": [
421
+ {
422
+ "age": 34,
423
+ "smoker": true,
424
+ "child": false
425
+ },
426
+ {
427
+ "age": 32,
428
+ "smoker": false,
429
+ "child": false
430
+ },
431
+ {
432
+ "age": 4,
433
+ "smoker": false,
434
+ "child": true
435
+ }
436
+ ]
437
+ ...
438
+ }
439
+ ```
440
+
441
+ ### Specifying Enrollment Date
442
+ The `enrollment_date` determines which [Plans](#header-plans) and [Rates](#header-rates) are returned. Specifying an `enrollment_date` in the past allows you to calculate historical data as far back as 2014.
443
+
444
+ ### Plan Benefits
445
+ Plan Benefits are returned in the response for [Individual Quotes](#individualquotes)
446
+ ```
447
+ POST /plans/medical/search
448
+ {
449
+ ...
450
+ }
451
+
452
+ Response:
453
+ {
454
+ "plans": [
455
+ {
456
+ ...
457
+ "individual_medical_deductible": "$5,000",
458
+ "family_medical_deductible": "$10,000"
459
+ ...
460
+ }
461
+
462
+ ]
463
+ }
464
+
465
+ ```
466
+
467
+ ### Premiums
468
+ The value for the family being quoted is returned in the `premium` field. If no [Applicants](#specifyingapplicants) are provided, the `premium` field will be `0`
469
+
470
+ ### Major Medical Quotes
471
+ In order to [Quote](#header-quoting) [Major Medical](#header-major-medical) Plans, send a `POST` to `/plans/medical/search`. In addition, the `age`, `smoker` and `child` attributes of each Applicant must be present.
472
+
473
+ #### Subsidies
474
+ On-market ([Healthcare.gov](https://www.healthcare.gov) and State-Based Exchange) [Major Medical](#header-major-medical) Plans are eligible for government subsidies. The subsidy calculation is based on the percentage of the family's income that the IRS has designated as "affordable" for that family and the Second Lowest-Cost Silver Plan available to that family.
475
+
476
+ In order to calculate subsidies for a family the following parameters must be supplied:
477
+ ```
478
+ POST /plans/medical/search
479
+ {
480
+ ...
481
+ "household_size": 4,
482
+ "household_income": 40000
483
+ ...
484
+ }
485
+ ```
486
+
487
+ The amount that the family will pay after subsidy is returned in the `premium_subsidized` field for each plan.
488
+
489
+ ##### Subsidy Calculation
490
+ Here is how subsidies are calculated. This is fully handled by the Vericred API, but the steps are enumerated below for clarity.
491
+
492
+ 1. Determine the percentage of the [Federal Poverty Level](https://aspe.hhs.gov/poverty-guidelines) for the family based on the household size and income.
493
+ 1. Reference the [CMS table](https://www.irs.gov/pub/irs-drop/rp-17-36.pdf) to determine the appropriate percentage of income for the family to spend on healthcare.
494
+ 1. Multiply that value by the family's income. This is the total amount that the family can spend on healthcare for the year, after the subsidy.
495
+ 1. Find the cost of the Second Least-Expensive Silver Plan available to the family, accounting for the percentage of premium that goes to [Essential Health Benefits](https://www.healthcare.gov/glossary/essential-health-benefits/)
496
+ 1. Calculate the difference in price between the amount the family should spend on healthcare and the Second Least-Expensive Silver Plan's premium. This is the subsidy.
497
+ 1. Apply the subsidy to all on-market Plans available to the family. The subsidized premium can never be below $0 (for example, a low-cost Bronze Plan may be less expensive than the subsidy)
498
+
499
+ #### Cost Sharing Reduction Plans
500
+ [Cost Sharing Reduction (CSR)](https://www.healthcare.gov/glossary/cost-sharing-reduction/) Plans are available to lower income families and offer enhanced benefits for certain Silver Plans at the same cost as the non-CSR Plans available to higher-income families.
501
+
502
+ If a family is eligible for CSR Plans, the Vericred API will return the relevant Plan in place of the non-CSR version.
503
+
504
+ In order to include CSR Plans where applicable, the following parameters must be supplied:
505
+ ```
506
+ POST /plans/medical/search
507
+ {
508
+ ...
509
+ "household_size": 4,
510
+ "household_income": 40000
511
+ ...
512
+ }
513
+ ```
514
+
515
+ #### The Children's Health Insurance Program (CHIP)
516
+ [The Children's Health Insurance Program (CHIP)](https://www.healthcare.gov/medicaid-chip/childrens-health-insurance-program/) provides low-cost health coverage to children in families that earn too much money to qualify for Medicaid.
517
+
518
+ If a family is eligible for CHIP, the Vericred API will include the subsidy in the returned premiums. In order to include CHIP subsidies in premium calculations, the following parameters must be supplied:
519
+ ```
520
+ POST /plans/medical/search
521
+ {
522
+ ...
523
+ "applicants": [
524
+ {
525
+ "age": 34,
526
+ "smoker": true,
527
+ "child": false
528
+ },
529
+ {
530
+ "age": 32,
531
+ "smoker": false,
532
+ "child": false
533
+ },
534
+ {
535
+ "age": 4,
536
+ "smoker": false,
537
+ "child": true
538
+ },
539
+ {
540
+ "age": 4,
541
+ "smoker": false,
542
+ "child": true
543
+ }
544
+ ],
545
+ "household_size": 4,
546
+ "household_income": 40000
547
+ ...
548
+ }
549
+ ```
550
+
551
+ CHIP eligibility is displayed within the meta-tag in the response as `eligible_for_chip_medicaid`:
552
+ ```
553
+ {
554
+ "meta": {
555
+ "total": 150,
556
+ "eligible_for_chip_medicaid": true,
557
+ "premium_tax_credit": 500.20
558
+ },
559
+ "coverages": [],
560
+ "plans": [...]
561
+ }
562
+ ```
563
+
564
+ If you do not want CHIP subsidies to be included in the premiums, simply do not include the `household_income` parameter in the request.
565
+
566
+ ### Dental Quotes
567
+ Quoting [Dental](#header-dental) Plans for a family requires slightly different parameters for [Applicants](#specifyingapplicants), due to the method with which Plans are [rated](#header-rate-factors). The folloiwng example contains the require parameters:
568
+ ```
569
+ POST /plans/dental/search
570
+ {
571
+ ...
572
+ "applicants": [
573
+ {
574
+ "age": 34,
575
+ "gender": "M",
576
+ "child": false
577
+ },
578
+ {
579
+ "age": 32,
580
+ "gender": "F",
581
+ "child": false
582
+ },
583
+ {
584
+ "age": 4,
585
+ "gender": "M",
586
+ "child": true
587
+ }
588
+ ]
589
+ ...
590
+ }
591
+ ```
592
+
593
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Dental Quotes](#dentalquotes) require `gender`, but *do not* require `smoker`.
594
+
595
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Dental Quotes](#dentalquotes).
596
+
597
+ ### Vision Quotes
598
+
599
+ Quoting [Vision](#header-vision) Plans for a family requires slightly different parameters for [Applicants](#specifyingapplicants), due to the method with which Plans are [rated](#header-rate-factors). The folloiwng example contains the require parameters:
600
+ ```
601
+ POST /plans/vision/search
602
+ {
603
+ ...
604
+ "applicants": [
605
+ {
606
+ "age": 34,
607
+ "gender": "M",
608
+ "child": false
609
+ },
610
+ {
611
+ "age": 32,
612
+ "gender": "F",
613
+ "child": false
614
+ },
615
+ {
616
+ "age": 4,
617
+ "gender": "M",
618
+ "child": true
619
+ }
620
+ ]
621
+ ...
622
+ }
623
+ ```
624
+
625
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Quotes](#visionquotes) require `gender`, but *do not* require `smoker`.
626
+
627
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
628
+
629
+ ### Medicare Advantage quotes
630
+
631
+ Given an enrollment date and location, you can search all plans available at this location using [/plans/medadv/search](#medicare-advantage-plans-medicare-advantage-plans-post); you can also search a specific plan using its plan ID with [/plans/medadv/{plan_id}](#medicare-advantage-plans-medicare-advantage-plans-get) if the plan ID is already known. The following example contains the required parameters:
632
+ ```
633
+ {
634
+ "zip_code": "02880",
635
+ "fips_code": "44009",
636
+ "enrollment_date": "2019-01-01"
637
+ }
638
+ ```
639
+ To view the technical documentation, [click here](#medicare-advantage-plans).
640
+
641
+
642
+ ## Quotes for Groups
643
+ A Group Quote finds [Plans](#header-plans) and [Rates](#header-rates) for a group of employees for a small business. Different [Plans](#header-plans) are available to small groups than are available in [Individual Quoting](#individualquotes). In addition, [Business Rules](#header-business-rules) that apply across multiple families or based upon employer attributes such as [SIC](https://en.wikipedia.org/wiki/Standard_Industrial_Classification) code factor into rates and availability.
644
+
645
+ In addition, due to performance requirements and for enhanced auditing, [Group Quotes](#groupquotes) are persisted across requests. This means that a given [Quote](#groupquotes) can be retrieved after it has been created.
646
+
647
+ ### Identifiers
648
+ In order to make it easier to cross-reference local copies of data with [Quotes](#header-creating-a-quote) and other data in the Vericred API, most entities allow for the specification of an `external_id` field. You can use this to store a primary or natural key from your system in order to easily match records returned from the API with records in your system.
649
+
650
+ ### Specifying the Group
651
+ Creating a group is the first step in [Group Quoting](#groupquoting). The API requires that certain information such as `sic_code`, and `chamber_association` be provided and returns a the attributes and `id` for the newly created `Group`
652
+
653
+ Full documentation is available [below](#groupscreate)
654
+
655
+ ### Specifying the Locations
656
+ When creating a `Group`, you must also specify one or more `Location`s. Of those `Location`s specified, one must be `primary`. That `Location` is used to calculate Plan eligibility using the relevant [Service Areas](#header-service-areas). Some Carriers use secondary `Location`s to determine eligibility as well, which is why those must be specified as well.
657
+
658
+ ```
659
+ POST /groups
660
+ {
661
+ "group": {
662
+ ...
663
+ },
664
+ "locations": [
665
+ {
666
+ ...
667
+ "zip_code": "11201",
668
+ "fips_code": "36047",
669
+ "primary": true
670
+ ...
671
+ }
672
+ ]
673
+ }
674
+ ```
675
+
676
+ ### Specifying the Census
677
+ A Census is the collection of `Member`s contained in the `Group`. The attributes of each `Member` and his or her `Dependent`s determine the [Rate](#header-rates) for the `Group` as a whole. Certain attributes of the `Member` are important for calculating [Rates](#header-rates) and applying [Business Rules](#header-business-rules). For example, the `Member`'s home address and in which office he or she works are relevant for certain [Business Rules](#header-business-rules).
678
+
679
+ #### Dependent Relationships
680
+ The `Dependent`s for a given `Member` also factor into the [Rates](#header-rates) and application of [Business Rules](#header-business-rules). For example, certain [Plans](#header-plans) cover only `Dependent`s of particular types and/or only `Dependent`s of a particular type who live in the same household as the primary `Member`
681
+
682
+ Valid Dependent Relationships:
683
+ - `adopted_child`
684
+ - `child`
685
+ - `court_appointed_guardian`
686
+ - `dependent_of_dependent`
687
+ - `ex_spouse`
688
+ - `foster_child`
689
+ - `grand_child`
690
+ - `guardian`
691
+ - `life_partner`
692
+ - `other`
693
+ - `sibling`
694
+ - `sponsored_dependent`
695
+ - `spouse`
696
+ - `step_child`
697
+ - `ward`
698
+
699
+ ```
700
+ POST
701
+
702
+ /groups/{id}/members
703
+ {
704
+ "members": [
705
+ ...
706
+ {
707
+ "cobra": false,
708
+ "date_of_birth": "1980-01-01",
709
+ "fips_code": "36047"
710
+ "gender": "M",
711
+ "last_used_tobacco": "2017-01-01",
712
+ "location_id": :location_id
713
+ "retiree": false,
714
+ "zip_code": "11201",
715
+ "dependents": [
716
+ ...
717
+ {
718
+ "relationship": "child",
719
+ "same_household": true
720
+ }
721
+ ...
722
+ ]
723
+ }
724
+ ...
725
+ ]
726
+ }
727
+
728
+ ```
729
+
730
+ ### Creating a Quote
731
+ Once the [Census](#header-specifying-the-census) has been created, we can generate a `Quote` for the `Group`.
732
+
733
+ #### Major Medical Quotes
734
+ To generate a [Major Medical](#header-major-medical) Quote, specify the `product_line` of `Quote` as `medical`
735
+
736
+ ```
737
+ POST /groups/{id}/quotes
738
+ {
739
+ ...
740
+ "product_line": "medical"
741
+ ...
742
+ }
743
+ ```
744
+
745
+ #### Dental Quotes
746
+ To generate a [Dental](#header-dental) Quote, specify the `product_line` of `Quote` as `dental`
747
+
748
+ ```
749
+ POST /groups/{id}/quotes
750
+ {
751
+ ...
752
+ "product_line": "dental"
753
+ ...
754
+ }
755
+ ```
756
+
757
+ #### Vision Quotes
758
+ To generate a [Vision](#header-vision) Quote, specify the `product_line` of `Quote` as `vision`
759
+
760
+ ```
761
+ POST /groups/{id}/quotes
762
+ {
763
+ ...
764
+ "product_line": "vision"
765
+ ...
766
+ }
767
+ ```
768
+
769
+ ### Retrieving Aggregate Rates
770
+ Once you have created a [Quote](#header-creating-a-quote), you can retrieve its aggregate [Rates](#header-rates). [Rates](#header-rates) are broken down by `Member` and `Dependent`, so that you can show the final cost in different scenarios where an employer might cover a different percentage of `Member` and `Dependent` costs.
771
+
772
+ ```
773
+ GET /quotes/{id}/rates
774
+
775
+ Response
776
+ {
777
+ "rates": [
778
+ ...
779
+ {
780
+ "id": "123abc",
781
+ "plan_id": "12345NY6789012",
782
+ "total_premium": "2800.00",
783
+ "member_premium": "1000.00",
784
+ "dependent_premium": "1800.00",
785
+ "premiums": {
786
+ "age_banded": {
787
+ "total_member": "1000.00",
788
+ "total_dependent": "1800.00",
789
+ "total": "2800.00"
790
+ },
791
+ "2_tier_composite": {
792
+ "employee_only": "200.00",
793
+ "employee_plus_family": "400.00",
794
+ "total": "2800.00"
795
+ },
796
+ "3_tier_composite": {
797
+ "employee_only": "200.00",
798
+ "employee_plus_one": "250.00",
799
+ "employee_plus_family": "330.00",
800
+ "total": "2800.00"
801
+ },
802
+ "4_tier_composite": {
803
+ "employee_only": "200.00",
804
+ "employee_plus_child": "220.00",
805
+ "employee_plus_spouse": "250.00",
806
+ "employee_plus_family": "330.00",
807
+ "total": "2800.00"
808
+ }
809
+ }
810
+ }
811
+ ...
812
+ ]
813
+ }
814
+ ```
815
+
816
+
817
+ #### Loading Plan Data
818
+ Aggregate [Rates](#header-rates) responses *do not* include [Plan](#header-plans) details in order to keep the payload small. [Plan](#header-plans) data can be retrieved in one of two ways:
819
+
820
+ Loading the [Plan](#header-plans) from the API:
821
+ ```
822
+ GET /plans/{id}
823
+
824
+ Response:
825
+ {
826
+ "plans": [
827
+ ...
828
+ {
829
+ ...
830
+ "individual_medical_deductible": "$5,000",
831
+ "family_medical_deductible": "$10,000",
832
+ ...
833
+ }
834
+ ...
835
+
836
+ ]
837
+ }
838
+ ```
839
+ Pulling in [Bulk Plan Data](#bulkplans) and matching up [Plans](#header-plans) by their `id`.
840
+
841
+ ### Retrieving Member-Level Rates
842
+ In order to retrieve the exact [Rate](#header-rates) for each `Member` and their `Dependents` for given [Plan](#header-plans), you can load Member-Level `Rates`.
843
+
844
+ ```
845
+ GET /rates/{id}/member_rates
846
+
847
+ Response
848
+ {
849
+ "member_rates": [
850
+ ...
851
+ {
852
+ "id": "123abc",
853
+ "member_id": "234def",
854
+ "member_external_id": "externally-supplied-id",
855
+ "member_premium": 500.0,
856
+ "dependent_premium": 600.0,
857
+ "total_premium": 1100.0
858
+ }
859
+ ...
860
+ ]
861
+ }
862
+
863
+ ```
864
+
865
+ Note that *all* `MemberRate`s are for one particular [Plan](#header-plans) - the one referenced by the parent [Rate](#header-rates).
866
+
867
+ ### Business Rules
868
+ Vericred works with our Carrier partners to acquire and apply Business Rules that can affect either [Plan](#header-plans) availability or the way in which `Member`s and `Dependent`s are rated. For example, one Carrier's Business Rules might specify that `Member`s and `Dependent`s who have used tobacco in the past 4 months are considered "tobacco-users", while another's may specify that period to be 1 year.
869
+
870
+ These rules are applied transparently during the [Quoting](#header-quoting) process and *do not* require any additional action or input on your part.
871
+
872
+ For a full accounting of Business Rules and a list of Carriers whose Business Rules are applied, please contact support@vericred.com
873
+
874
+ ### Composite Rates
875
+ Composite Rates are commonly used in [Major Medical](#header-major-medical), [Dental](#header-dental), and [Vision](#header-vision) [Plans](#header-plans) to simplify operations by charging each family the weighted average of the `Group`'s total premium. The most common methodology is as follows:
876
+
877
+ 1. Calculate the [Rates](#header-rates) for the entire `Group` using [Sheet Rates](#header-sheet-rates) or [Rate Factors](#header-rate-factors) as appropriate
878
+ 1. Categorize each Family within the Group. The categorization differs depending on whether the Composite Rate is 2, 3, or 4-tier
879
+ 1. Multiply the number of Families in each category by the constant for that category. These constants are provided to Vericred by the Carrier. This determines the total number of "Rating Units"
880
+ 1. Divide the total premium calculated in Step 1 by the total number of Rating Units to get the price per Rating Unit
881
+ 1. The [Rate](#header-rates) each Family pays is the constant for that Family's category multiplied by the price per Rating Unit.
882
+
883
+ You can request that a [Quote](#header-quoting) be calculated using Composite Rates when creating it:
884
+ ```
885
+ POST /quotes
886
+ {
887
+ ...
888
+ "rating_method": "4_tier_composite"
889
+ ...
890
+ }
891
+ ```
892
+ If no Composite Rates methodology is available, the Vericred API will return standard age-banded Rates.
893
+
894
+ # Network and Provider Data
895
+
896
+ A `Provider` is an individual or organization in the medical profession. For example, an individual doctor is a `Provider` as are certain clinics and hospitals.
897
+
898
+ `Provider`s are related to `Network`s. A `Network` is a collection of `Provider`s that are under a particular contract with a given `Carrier`. A given `Carrier` will often have multiple `Network`s. For example, there may be a large national `Network` as well as several smaller regional `Network`s.
899
+
900
+ Each `Plan` has a `Network`. A consumer who visits a `Provider` typically incurs fewer costs when visiting a `Provider` in the `Network` covered by his or her `Plan`. The `premium` for a `Plan` is often proportional to the size of its `Network`
901
+
902
+ ## Finding Providers
903
+ In order to determine if a particular `Plan` covers a given `Provider`, you must first identify the `Provider`. To do so, use the [Provider Search API endpoint](#providers-providers-post) and specify some search criteria:
904
+
905
+ ```
906
+ POST /providers/search
907
+ {
908
+ "search_term": "foo",
909
+ "zip_code": "11201"
910
+ }
911
+ ```
912
+
913
+ The API will return an ordered list of `Provider`s who match the query along with their names, addresses, and other demographic data. The `id` field returned refers to the `Provider`'s [NPI number](https://www.cms.gov/Regulations-and-Guidance/Administrative-Simplification/NationalProvIdentStand/). This is the key that is used to identify the `Provider` across different API endpoints.
914
+
915
+ ## Finding Networks
916
+
917
+ A `Network` is a collection of `Provider`s that are under a particular contract with a given `Carrier`. A given `Carrier` will often have multiple `Network`s. For example, there may be a large national `Network` as well as several smaller regional `Network`s.
918
+
919
+ The API supports searching for `Networks` by Carrier, market and state. For more details view the [endpoint documentation](#networks-networks-get)
920
+
921
+ ## Matching Providers to Networks
922
+ In order to determine if a `Provider` is covered by a user's `Plan`, you will need to map the `Provider` to a `Network`. There are several methods to do this using the API
923
+
924
+ ### Using Plan Search
925
+ You can specify one or more `npi` values in the [`plan` search](#majormedicalplans-majormedicalplans-post). To do so, include a list of `providers` in the request
926
+ ```
927
+ POST /plans/medical/search
928
+ {
929
+ ...
930
+ "providers": [
931
+ { "npi": 1234567890 },
932
+ { "npi": 2345678901 }
933
+ ]
934
+ ...
935
+ }
936
+
937
+ The response will then return a list of `in_network_ids` and `out_of_network_ids` for each `Plan`
938
+
939
+ ```
940
+ {
941
+ "plans": [
942
+ ...
943
+ {
944
+ ...
945
+ "id": "12345NY1234567",
946
+ "in_network_ids": [1234567890],
947
+ "out_of_network_ids": [1234567890]
948
+ ...
949
+ },
950
+ {
951
+ ...
952
+ "id": "12345NY2345678",
953
+ "in_network_ids": [1234567890, 1234567890],
954
+ "out_of_network_ids": []
955
+ ...
956
+ }
957
+ ...
958
+ ]
959
+ }
960
+
961
+ Simply reference the `Provider` in question by its `id` for each `Plan` to see if that `Provider` is in-network for the `Plan`.
962
+
963
+ ### Matching by Plan ID
964
+ Given a `Provider`'s `id`, you can retrieve all of his or her `hios_ids`
965
+
966
+ For more details see the [endpoint documentation](#providers-providers-get)
967
+
968
+ ```
969
+ GET /providers/1234567890
970
+ {
971
+ "provider": {
972
+ ...
973
+ "hios_ids": [
974
+ ...
975
+ "12345NY1234567"
976
+ ...
977
+ ]
978
+ ...
979
+ }
980
+ }
981
+ ```
982
+
983
+ The returned `hios_ids` can be used to cross-reference a `Plan`
984
+
985
+ ### Matching by Network
986
+ Once you have an ID returned from the [`Network` search endpoint](#networks-networks-get), you can cross-reference it with the `network_ids` returned from both the [`Provider` search](#providers-providers-post) and [`Provider` details](#providers-providers-get) endpoints.
987
+
988
+ This is useful for large group data or when you are not dealing with `Plan`s directly, but rather at the `Network` level.
989
+
990
+
991
+ OpenAPI spec version: 1.0.0
992
+
993
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
994
+
995
+ Licensed under the Apache License, Version 2.0 (the "License");
996
+ you may not use this file except in compliance with the License.
997
+ You may obtain a copy of the License at
998
+
999
+ http://www.apache.org/licenses/LICENSE-2.0
1000
+
1001
+ Unless required by applicable law or agreed to in writing, software
1002
+ distributed under the License is distributed on an "AS IS" BASIS,
1003
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1004
+ See the License for the specific language governing permissions and
1005
+ limitations under the License.
1006
+
1007
+ =end
1008
+
1009
+ require 'date'
1010
+
1011
+ module VericredClient
1012
+
1013
+ class ProviderNetworksAddress
1014
+ # City name (e.g. Springfield).
1015
+ attr_accessor :city
1016
+
1017
+ # Latitude of provider
1018
+ attr_accessor :latitude
1019
+
1020
+ # Longitude of provider
1021
+ attr_accessor :longitude
1022
+
1023
+ # Provider phone numbers
1024
+ attr_accessor :phone_numbers
1025
+
1026
+ # State code for the provider's address (e.g. NY).
1027
+ attr_accessor :state
1028
+
1029
+ # First line of the provider's street address.
1030
+ attr_accessor :street_line_1
1031
+
1032
+ # Second line of the provider's street address.
1033
+ attr_accessor :street_line_2
1034
+
1035
+ # Postal code for the provider's address (e.g. 11215)
1036
+ attr_accessor :zip_code
1037
+
1038
+
1039
+ # Attribute mapping from ruby-style variable name to JSON key.
1040
+ def self.attribute_map
1041
+ {
1042
+ :'city' => :'city',
1043
+ :'latitude' => :'latitude',
1044
+ :'longitude' => :'longitude',
1045
+ :'phone_numbers' => :'phone_numbers',
1046
+ :'state' => :'state',
1047
+ :'street_line_1' => :'street_line_1',
1048
+ :'street_line_2' => :'street_line_2',
1049
+ :'zip_code' => :'zip_code'
1050
+ }
1051
+ end
1052
+
1053
+ # Attribute type mapping.
1054
+ def self.swagger_types
1055
+ {
1056
+ :'city' => :'String',
1057
+ :'latitude' => :'Float',
1058
+ :'longitude' => :'Float',
1059
+ :'phone_numbers' => :'Array<String>',
1060
+ :'state' => :'String',
1061
+ :'street_line_1' => :'String',
1062
+ :'street_line_2' => :'String',
1063
+ :'zip_code' => :'String'
1064
+ }
1065
+ end
1066
+
1067
+ # Initializes the object
1068
+ # @param [Hash] attributes Model attributes in the form of hash
1069
+ def initialize(attributes = {})
1070
+ return unless attributes.is_a?(Hash)
1071
+
1072
+ # convert string to symbol for hash key
1073
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
1074
+
1075
+ if attributes.has_key?(:'city')
1076
+ self.city = attributes[:'city']
1077
+ end
1078
+
1079
+ if attributes.has_key?(:'latitude')
1080
+ self.latitude = attributes[:'latitude']
1081
+ end
1082
+
1083
+ if attributes.has_key?(:'longitude')
1084
+ self.longitude = attributes[:'longitude']
1085
+ end
1086
+
1087
+ if attributes.has_key?(:'phone_numbers')
1088
+ if (value = attributes[:'phone_numbers']).is_a?(Array)
1089
+ self.phone_numbers = value
1090
+ end
1091
+ end
1092
+
1093
+ if attributes.has_key?(:'state')
1094
+ self.state = attributes[:'state']
1095
+ end
1096
+
1097
+ if attributes.has_key?(:'street_line_1')
1098
+ self.street_line_1 = attributes[:'street_line_1']
1099
+ end
1100
+
1101
+ if attributes.has_key?(:'street_line_2')
1102
+ self.street_line_2 = attributes[:'street_line_2']
1103
+ end
1104
+
1105
+ if attributes.has_key?(:'zip_code')
1106
+ self.zip_code = attributes[:'zip_code']
1107
+ end
1108
+
1109
+ end
1110
+
1111
+ # Show invalid properties with the reasons. Usually used together with valid?
1112
+ # @return Array for valid properies with the reasons
1113
+ def list_invalid_properties
1114
+ invalid_properties = Array.new
1115
+ return invalid_properties
1116
+ end
1117
+
1118
+ # Check to see if the all the properties in the model are valid
1119
+ # @return true if the model is valid
1120
+ def valid?
1121
+ return true
1122
+ end
1123
+
1124
+ # Checks equality by comparing each attribute.
1125
+ # @param [Object] Object to be compared
1126
+ def ==(o)
1127
+ return true if self.equal?(o)
1128
+ self.class == o.class &&
1129
+ city == o.city &&
1130
+ latitude == o.latitude &&
1131
+ longitude == o.longitude &&
1132
+ phone_numbers == o.phone_numbers &&
1133
+ state == o.state &&
1134
+ street_line_1 == o.street_line_1 &&
1135
+ street_line_2 == o.street_line_2 &&
1136
+ zip_code == o.zip_code
1137
+ end
1138
+
1139
+ # @see the `==` method
1140
+ # @param [Object] Object to be compared
1141
+ def eql?(o)
1142
+ self == o
1143
+ end
1144
+
1145
+ # Calculates hash code according to all attributes.
1146
+ # @return [Fixnum] Hash code
1147
+ def hash
1148
+ [city, latitude, longitude, phone_numbers, state, street_line_1, street_line_2, zip_code].hash
1149
+ end
1150
+
1151
+ # Builds the object from hash
1152
+ # @param [Hash] attributes Model attributes in the form of hash
1153
+ # @return [Object] Returns the model itself
1154
+ def build_from_hash(attributes)
1155
+ return nil unless attributes.is_a?(Hash)
1156
+ self.class.swagger_types.each_pair do |key, type|
1157
+ if type =~ /\AArray<(.*)>/i
1158
+ # check to ensure the input is an array given that the the attribute
1159
+ # is documented as an array but the input is not
1160
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1161
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
1162
+ end
1163
+ elsif !attributes[self.class.attribute_map[key]].nil?
1164
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1165
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
1166
+ end
1167
+
1168
+ self
1169
+ end
1170
+
1171
+ # Deserializes the data based on type
1172
+ # @param string type Data type
1173
+ # @param string value Value to be deserialized
1174
+ # @return [Object] Deserialized data
1175
+ def _deserialize(type, value)
1176
+ case type.to_sym
1177
+ when :DateTime
1178
+ DateTime.parse(value)
1179
+ when :Date
1180
+ Date.parse(value)
1181
+ when :String
1182
+ value.to_s
1183
+ when :Integer
1184
+ value.to_i
1185
+ when :Float
1186
+ value.to_f
1187
+ when :BOOLEAN
1188
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1189
+ true
1190
+ else
1191
+ false
1192
+ end
1193
+ when :Object
1194
+ # generic object (usually a Hash), return directly
1195
+ value
1196
+ when /\AArray<(?<inner_type>.+)>\z/
1197
+ inner_type = Regexp.last_match[:inner_type]
1198
+ value.map { |v| _deserialize(inner_type, v) }
1199
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
1200
+ k_type = Regexp.last_match[:k_type]
1201
+ v_type = Regexp.last_match[:v_type]
1202
+ {}.tap do |hash|
1203
+ value.each do |k, v|
1204
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1205
+ end
1206
+ end
1207
+ else # model
1208
+ temp_model = VericredClient.const_get(type).new
1209
+ temp_model.build_from_hash(value)
1210
+ end
1211
+ end
1212
+
1213
+ # Returns the string representation of the object
1214
+ # @return [String] String presentation of the object
1215
+ def to_s
1216
+ to_hash.to_s
1217
+ end
1218
+
1219
+ # to_body is an alias to to_hash (backward compatibility)
1220
+ # @return [Hash] Returns the object in the form of hash
1221
+ def to_body
1222
+ to_hash
1223
+ end
1224
+
1225
+ # Returns the object in the form of hash
1226
+ # @return [Hash] Returns the object in the form of hash
1227
+ def to_hash
1228
+ hash = {}
1229
+ self.class.attribute_map.each_pair do |attr, param|
1230
+ value = self.send(attr)
1231
+ next if value.nil?
1232
+ hash[param] = _to_hash(value)
1233
+ end
1234
+ hash
1235
+ end
1236
+
1237
+ # Outputs non-array value in the form of hash
1238
+ # For object, use to_hash. Otherwise, just return the value
1239
+ # @param [Object] value Any valid value
1240
+ # @return [Hash] Returns the value in the form of hash
1241
+ def _to_hash(value)
1242
+ if value.is_a?(Array)
1243
+ value.compact.map{ |v| _to_hash(v) }
1244
+ elsif value.is_a?(Hash)
1245
+ {}.tap do |hash|
1246
+ value.each { |k, v| hash[k] = _to_hash(v) }
1247
+ end
1248
+ elsif value.respond_to? :to_hash
1249
+ value.to_hash
1250
+ else
1251
+ value
1252
+ end
1253
+ end
1254
+
1255
+ end
1256
+
1257
+ end