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
  ]
@@ -1001,9 +1026,6 @@ module VericredClient
1001
1026
  # List of identifiers of this Plan
1002
1027
  attr_accessor :identifiers
1003
1028
 
1004
- # List of NPI numbers for Providers passed in who accept this Plan
1005
- attr_accessor :in_network_ids
1006
-
1007
1029
  # Name of the insurance carrier
1008
1030
  attr_accessor :issuer_name
1009
1031
 
@@ -1019,18 +1041,9 @@ module VericredClient
1019
1041
  # List of networks associated with the plan
1020
1042
  attr_accessor :networks
1021
1043
 
1022
- # List of NPI numbers for Providers passed in who do not accept this Plan
1023
- attr_accessor :out_of_network_ids
1024
-
1025
1044
  # Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity, PACE, Medicare-Medicaid, HMO w/POS, Cost, FFS, MSA)
1026
1045
  attr_accessor :plan_type
1027
1046
 
1028
- # Cumulative premium amount
1029
- attr_accessor :premium
1030
-
1031
- # Source of the base pricing data
1032
- attr_accessor :premium_source
1033
-
1034
1047
  # Source of the plan benefit data
1035
1048
  attr_accessor :source
1036
1049
 
@@ -1046,16 +1059,12 @@ module VericredClient
1046
1059
  :'benefits_summary_url' => :'benefits_summary_url',
1047
1060
  :'id' => :'id',
1048
1061
  :'identifiers' => :'identifiers',
1049
- :'in_network_ids' => :'in_network_ids',
1050
1062
  :'issuer_name' => :'issuer_name',
1051
1063
  :'logo_url' => :'logo_url',
1052
1064
  :'name' => :'name',
1053
1065
  :'network_size' => :'network_size',
1054
1066
  :'networks' => :'networks',
1055
- :'out_of_network_ids' => :'out_of_network_ids',
1056
1067
  :'plan_type' => :'plan_type',
1057
- :'premium' => :'premium',
1058
- :'premium_source' => :'premium_source',
1059
1068
  :'source' => :'source',
1060
1069
  :'stand_alone' => :'stand_alone'
1061
1070
  }
@@ -1069,16 +1078,12 @@ module VericredClient
1069
1078
  :'benefits_summary_url' => :'String',
1070
1079
  :'id' => :'String',
1071
1080
  :'identifiers' => :'Array<AncillaryPlanIdentifier>',
1072
- :'in_network_ids' => :'Array<Integer>',
1073
1081
  :'issuer_name' => :'String',
1074
1082
  :'logo_url' => :'String',
1075
1083
  :'name' => :'String',
1076
1084
  :'network_size' => :'Integer',
1077
1085
  :'networks' => :'Array<PlanNetwork>',
1078
- :'out_of_network_ids' => :'Array<Integer>',
1079
1086
  :'plan_type' => :'String',
1080
- :'premium' => :'Float',
1081
- :'premium_source' => :'String',
1082
1087
  :'source' => :'String',
1083
1088
  :'stand_alone' => :'BOOLEAN'
1084
1089
  }
@@ -1114,12 +1119,6 @@ module VericredClient
1114
1119
  end
1115
1120
  end
1116
1121
 
1117
- if attributes.has_key?(:'in_network_ids')
1118
- if (value = attributes[:'in_network_ids']).is_a?(Array)
1119
- self.in_network_ids = value
1120
- end
1121
- end
1122
-
1123
1122
  if attributes.has_key?(:'issuer_name')
1124
1123
  self.issuer_name = attributes[:'issuer_name']
1125
1124
  end
@@ -1142,24 +1141,10 @@ module VericredClient
1142
1141
  end
1143
1142
  end
1144
1143
 
1145
- if attributes.has_key?(:'out_of_network_ids')
1146
- if (value = attributes[:'out_of_network_ids']).is_a?(Array)
1147
- self.out_of_network_ids = value
1148
- end
1149
- end
1150
-
1151
1144
  if attributes.has_key?(:'plan_type')
1152
1145
  self.plan_type = attributes[:'plan_type']
1153
1146
  end
1154
1147
 
1155
- if attributes.has_key?(:'premium')
1156
- self.premium = attributes[:'premium']
1157
- end
1158
-
1159
- if attributes.has_key?(:'premium_source')
1160
- self.premium_source = attributes[:'premium_source']
1161
- end
1162
-
1163
1148
  if attributes.has_key?(:'source')
1164
1149
  self.source = attributes[:'source']
1165
1150
  end
@@ -1193,16 +1178,12 @@ module VericredClient
1193
1178
  benefits_summary_url == o.benefits_summary_url &&
1194
1179
  id == o.id &&
1195
1180
  identifiers == o.identifiers &&
1196
- in_network_ids == o.in_network_ids &&
1197
1181
  issuer_name == o.issuer_name &&
1198
1182
  logo_url == o.logo_url &&
1199
1183
  name == o.name &&
1200
1184
  network_size == o.network_size &&
1201
1185
  networks == o.networks &&
1202
- out_of_network_ids == o.out_of_network_ids &&
1203
1186
  plan_type == o.plan_type &&
1204
- premium == o.premium &&
1205
- premium_source == o.premium_source &&
1206
1187
  source == o.source &&
1207
1188
  stand_alone == o.stand_alone
1208
1189
  end
@@ -1216,7 +1197,7 @@ module VericredClient
1216
1197
  # Calculates hash code according to all attributes.
1217
1198
  # @return [Fixnum] Hash code
1218
1199
  def hash
1219
- [audience, benefits, benefits_summary_url, id, identifiers, in_network_ids, issuer_name, logo_url, name, network_size, networks, out_of_network_ids, plan_type, premium, premium_source, source, stand_alone].hash
1200
+ [audience, benefits, benefits_summary_url, id, identifiers, issuer_name, logo_url, name, network_size, networks, plan_type, source, stand_alone].hash
1220
1201
  end
1221
1202
 
1222
1203
  # 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
  ]
@@ -981,179 +1006,358 @@ limitations under the License.
981
1006
 
982
1007
  =end
983
1008
 
984
- require "uri"
1009
+ require 'date'
985
1010
 
986
1011
  module VericredClient
987
- class ProviderNotificationSubscriptionsApi
988
- attr_accessor :api_client
989
1012
 
990
- def initialize(api_client = ApiClient.default)
991
- @api_client = api_client
1013
+ class DentalPlanSearch
1014
+ # The dental plan audience
1015
+ attr_accessor :audience
1016
+
1017
+ # Dental Plan Benefits
1018
+ attr_accessor :benefits
1019
+
1020
+ # Link to the summary of benefits and coverage (SBC) document.
1021
+ attr_accessor :benefits_summary_url
1022
+
1023
+ # The dental plan identifier
1024
+ attr_accessor :id
1025
+
1026
+ # List of identifiers of this Plan
1027
+ attr_accessor :identifiers
1028
+
1029
+ # List of NPI numbers for Providers passed in who accept this Plan
1030
+ attr_accessor :in_network_ids
1031
+
1032
+ # Name of the insurance carrier
1033
+ attr_accessor :issuer_name
1034
+
1035
+ # Link to a copy of the insurance carrier's logo
1036
+ attr_accessor :logo_url
1037
+
1038
+ # Marketing name of the plan
1039
+ attr_accessor :name
1040
+
1041
+ # Total number of Providers in network
1042
+ attr_accessor :network_size
1043
+
1044
+ # List of networks associated with the plan
1045
+ attr_accessor :networks
1046
+
1047
+ # List of NPI numbers for Providers passed in who do not accept this Plan
1048
+ attr_accessor :out_of_network_ids
1049
+
1050
+ # Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity, PACE, Medicare-Medicaid, HMO w/POS, Cost, FFS, MSA)
1051
+ attr_accessor :plan_type
1052
+
1053
+ # Cumulative premium amount
1054
+ attr_accessor :premium
1055
+
1056
+ # Source of the base pricing data
1057
+ attr_accessor :premium_source
1058
+
1059
+ # Cumulative premium amount after subsidy
1060
+ attr_accessor :premium_subsidized
1061
+
1062
+ # Source of the plan benefit data
1063
+ attr_accessor :source
1064
+
1065
+ # Stand alone flag for dental plan
1066
+ attr_accessor :stand_alone
1067
+
1068
+
1069
+ # Attribute mapping from ruby-style variable name to JSON key.
1070
+ def self.attribute_map
1071
+ {
1072
+ :'audience' => :'audience',
1073
+ :'benefits' => :'benefits',
1074
+ :'benefits_summary_url' => :'benefits_summary_url',
1075
+ :'id' => :'id',
1076
+ :'identifiers' => :'identifiers',
1077
+ :'in_network_ids' => :'in_network_ids',
1078
+ :'issuer_name' => :'issuer_name',
1079
+ :'logo_url' => :'logo_url',
1080
+ :'name' => :'name',
1081
+ :'network_size' => :'network_size',
1082
+ :'networks' => :'networks',
1083
+ :'out_of_network_ids' => :'out_of_network_ids',
1084
+ :'plan_type' => :'plan_type',
1085
+ :'premium' => :'premium',
1086
+ :'premium_source' => :'premium_source',
1087
+ :'premium_subsidized' => :'premium_subsidized',
1088
+ :'source' => :'source',
1089
+ :'stand_alone' => :'stand_alone'
1090
+ }
992
1091
  end
993
1092
 
994
- # Subscribe
995
- # Subscribe to receive webhook notifications when providers join or leave a network. The request must include a list of National Provider Index (NPI) numbers for providers, a callback URL where notifications should be sent, and either a plan ID or a network ID. The response will include a `nonce` value. The `nonce` will be included in all webhook notifications originating from this subscription and will be used as the identifier for all subsequent requests. The `network_id` and `plan_id` are mutually exclusive. The request must include a value for one of the fields, but cannot include both. Examples of valid request bodies are as follows: ``` { \"npis\": [\"2712589\", \"8498549\", \"19528190\"], \"plan_id\": 1, \"callback_url\": \"https://example.com/webhook\" } ``` ``` { \"npis\": [\"2712589\", \"8498549\", \"19528190\"], \"network_id\": 1, \"callback_url\": \"https://example.com/webhook\" } ```
996
- # @param [Hash] opts the optional parameters
997
- # @option opts [RequestProviderNotificationSubscription] :root
998
- # @return [NotificationSubscriptionResponse]
999
- def create_provider_notification_subscription(opts = {})
1000
- data, _status_code, _headers = create_provider_notification_subscription_with_http_info(opts)
1001
- return data
1093
+ # Attribute type mapping.
1094
+ def self.swagger_types
1095
+ {
1096
+ :'audience' => :'String',
1097
+ :'benefits' => :'DentalPlanBenefits',
1098
+ :'benefits_summary_url' => :'String',
1099
+ :'id' => :'String',
1100
+ :'identifiers' => :'Array<AncillaryPlanIdentifier>',
1101
+ :'in_network_ids' => :'Array<Integer>',
1102
+ :'issuer_name' => :'String',
1103
+ :'logo_url' => :'String',
1104
+ :'name' => :'String',
1105
+ :'network_size' => :'Integer',
1106
+ :'networks' => :'Array<PlanNetwork>',
1107
+ :'out_of_network_ids' => :'Array<Integer>',
1108
+ :'plan_type' => :'String',
1109
+ :'premium' => :'Float',
1110
+ :'premium_source' => :'String',
1111
+ :'premium_subsidized' => :'Float',
1112
+ :'source' => :'String',
1113
+ :'stand_alone' => :'BOOLEAN'
1114
+ }
1002
1115
  end
1003
1116
 
1004
- # Subscribe
1005
- # Subscribe to receive webhook notifications when providers join or leave a network. The request must include a list of National Provider Index (NPI) numbers for providers, a callback URL where notifications should be sent, and either a plan ID or a network ID. The response will include a &#x60;nonce&#x60; value. The &#x60;nonce&#x60; will be included in all webhook notifications originating from this subscription and will be used as the identifier for all subsequent requests. The &#x60;network_id&#x60; and &#x60;plan_id&#x60; are mutually exclusive. The request must include a value for one of the fields, but cannot include both. Examples of valid request bodies are as follows: &#x60;&#x60;&#x60; { \&quot;npis\&quot;: [\&quot;2712589\&quot;, \&quot;8498549\&quot;, \&quot;19528190\&quot;], \&quot;plan_id\&quot;: 1, \&quot;callback_url\&quot;: \&quot;https://example.com/webhook\&quot; } &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; { \&quot;npis\&quot;: [\&quot;2712589\&quot;, \&quot;8498549\&quot;, \&quot;19528190\&quot;], \&quot;network_id\&quot;: 1, \&quot;callback_url\&quot;: \&quot;https://example.com/webhook\&quot; } &#x60;&#x60;&#x60;
1006
- # @param [Hash] opts the optional parameters
1007
- # @option opts [RequestProviderNotificationSubscription] :root
1008
- # @return [Array<(NotificationSubscriptionResponse, Fixnum, Hash)>] NotificationSubscriptionResponse data, response status code and response headers
1009
- def create_provider_notification_subscription_with_http_info(opts = {})
1010
- if @api_client.config.debugging
1011
- @api_client.config.logger.debug "Calling API: ProviderNotificationSubscriptionsApi.create_provider_notification_subscription ..."
1117
+ # Initializes the object
1118
+ # @param [Hash] attributes Model attributes in the form of hash
1119
+ def initialize(attributes = {})
1120
+ return unless attributes.is_a?(Hash)
1121
+
1122
+ # convert string to symbol for hash key
1123
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
1124
+
1125
+ if attributes.has_key?(:'audience')
1126
+ self.audience = attributes[:'audience']
1127
+ end
1128
+
1129
+ if attributes.has_key?(:'benefits')
1130
+ self.benefits = attributes[:'benefits']
1131
+ end
1132
+
1133
+ if attributes.has_key?(:'benefits_summary_url')
1134
+ self.benefits_summary_url = attributes[:'benefits_summary_url']
1135
+ end
1136
+
1137
+ if attributes.has_key?(:'id')
1138
+ self.id = attributes[:'id']
1012
1139
  end
1013
- # resource path
1014
- local_var_path = "/providers/subscription".sub('{format}','json')
1015
-
1016
- # query parameters
1017
- query_params = {}
1018
-
1019
- # header parameters
1020
- header_params = {}
1021
-
1022
- # HTTP header 'Accept' (if needed)
1023
- local_header_accept = ['application/json']
1024
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1025
-
1026
- # HTTP header 'Content-Type'
1027
- local_header_content_type = ['application/json']
1028
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1029
-
1030
- # form parameters
1031
- form_params = {}
1032
-
1033
- # http body (model)
1034
- post_body = @api_client.object_to_http_body(opts[:'root'])
1035
- auth_names = ['Vericred-Api-Key']
1036
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1037
- :header_params => header_params,
1038
- :query_params => query_params,
1039
- :form_params => form_params,
1040
- :body => post_body,
1041
- :auth_names => auth_names,
1042
- :return_type => 'NotificationSubscriptionResponse')
1043
- if @api_client.config.debugging
1044
- @api_client.config.logger.debug "API called: ProviderNotificationSubscriptionsApi#create_provider_notification_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1140
+
1141
+ if attributes.has_key?(:'identifiers')
1142
+ if (value = attributes[:'identifiers']).is_a?(Array)
1143
+ self.identifiers = value
1144
+ end
1145
+ end
1146
+
1147
+ if attributes.has_key?(:'in_network_ids')
1148
+ if (value = attributes[:'in_network_ids']).is_a?(Array)
1149
+ self.in_network_ids = value
1150
+ end
1151
+ end
1152
+
1153
+ if attributes.has_key?(:'issuer_name')
1154
+ self.issuer_name = attributes[:'issuer_name']
1155
+ end
1156
+
1157
+ if attributes.has_key?(:'logo_url')
1158
+ self.logo_url = attributes[:'logo_url']
1159
+ end
1160
+
1161
+ if attributes.has_key?(:'name')
1162
+ self.name = attributes[:'name']
1045
1163
  end
1046
- return data, status_code, headers
1164
+
1165
+ if attributes.has_key?(:'network_size')
1166
+ self.network_size = attributes[:'network_size']
1167
+ end
1168
+
1169
+ if attributes.has_key?(:'networks')
1170
+ if (value = attributes[:'networks']).is_a?(Array)
1171
+ self.networks = value
1172
+ end
1173
+ end
1174
+
1175
+ if attributes.has_key?(:'out_of_network_ids')
1176
+ if (value = attributes[:'out_of_network_ids']).is_a?(Array)
1177
+ self.out_of_network_ids = value
1178
+ end
1179
+ end
1180
+
1181
+ if attributes.has_key?(:'plan_type')
1182
+ self.plan_type = attributes[:'plan_type']
1183
+ end
1184
+
1185
+ if attributes.has_key?(:'premium')
1186
+ self.premium = attributes[:'premium']
1187
+ end
1188
+
1189
+ if attributes.has_key?(:'premium_source')
1190
+ self.premium_source = attributes[:'premium_source']
1191
+ end
1192
+
1193
+ if attributes.has_key?(:'premium_subsidized')
1194
+ self.premium_subsidized = attributes[:'premium_subsidized']
1195
+ end
1196
+
1197
+ if attributes.has_key?(:'source')
1198
+ self.source = attributes[:'source']
1199
+ end
1200
+
1201
+ if attributes.has_key?(:'stand_alone')
1202
+ self.stand_alone = attributes[:'stand_alone']
1203
+ end
1204
+
1205
+ end
1206
+
1207
+ # Show invalid properties with the reasons. Usually used together with valid?
1208
+ # @return Array for valid properies with the reasons
1209
+ def list_invalid_properties
1210
+ invalid_properties = Array.new
1211
+ return invalid_properties
1212
+ end
1213
+
1214
+ # Check to see if the all the properties in the model are valid
1215
+ # @return true if the model is valid
1216
+ def valid?
1217
+ return true
1218
+ end
1219
+
1220
+ # Checks equality by comparing each attribute.
1221
+ # @param [Object] Object to be compared
1222
+ def ==(o)
1223
+ return true if self.equal?(o)
1224
+ self.class == o.class &&
1225
+ audience == o.audience &&
1226
+ benefits == o.benefits &&
1227
+ benefits_summary_url == o.benefits_summary_url &&
1228
+ id == o.id &&
1229
+ identifiers == o.identifiers &&
1230
+ in_network_ids == o.in_network_ids &&
1231
+ issuer_name == o.issuer_name &&
1232
+ logo_url == o.logo_url &&
1233
+ name == o.name &&
1234
+ network_size == o.network_size &&
1235
+ networks == o.networks &&
1236
+ out_of_network_ids == o.out_of_network_ids &&
1237
+ plan_type == o.plan_type &&
1238
+ premium == o.premium &&
1239
+ premium_source == o.premium_source &&
1240
+ premium_subsidized == o.premium_subsidized &&
1241
+ source == o.source &&
1242
+ stand_alone == o.stand_alone
1243
+ end
1244
+
1245
+ # @see the `==` method
1246
+ # @param [Object] Object to be compared
1247
+ def eql?(o)
1248
+ self == o
1047
1249
  end
1048
1250
 
1049
- # Unsubscribe
1050
- # Unsubscribe from an existing webhook notification.
1051
- # @param nonce The nonce value that was included in the response when the subscription was created
1052
- # @param [Hash] opts the optional parameters
1053
- # @return [nil]
1054
- def delete_provider_notification_subscription(nonce, opts = {})
1055
- delete_provider_notification_subscription_with_http_info(nonce, opts)
1056
- return nil
1251
+ # Calculates hash code according to all attributes.
1252
+ # @return [Fixnum] Hash code
1253
+ def hash
1254
+ [audience, benefits, benefits_summary_url, id, identifiers, in_network_ids, issuer_name, logo_url, name, network_size, networks, out_of_network_ids, plan_type, premium, premium_source, premium_subsidized, source, stand_alone].hash
1057
1255
  end
1058
1256
 
1059
- # Unsubscribe
1060
- # Unsubscribe from an existing webhook notification.
1061
- # @param nonce The nonce value that was included in the response when the subscription was created
1062
- # @param [Hash] opts the optional parameters
1063
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1064
- def delete_provider_notification_subscription_with_http_info(nonce, opts = {})
1065
- if @api_client.config.debugging
1066
- @api_client.config.logger.debug "Calling API: ProviderNotificationSubscriptionsApi.delete_provider_notification_subscription ..."
1257
+ # Builds the object from hash
1258
+ # @param [Hash] attributes Model attributes in the form of hash
1259
+ # @return [Object] Returns the model itself
1260
+ def build_from_hash(attributes)
1261
+ return nil unless attributes.is_a?(Hash)
1262
+ self.class.swagger_types.each_pair do |key, type|
1263
+ if type =~ /\AArray<(.*)>/i
1264
+ # check to ensure the input is an array given that the the attribute
1265
+ # is documented as an array but the input is not
1266
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1267
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
1268
+ end
1269
+ elsif !attributes[self.class.attribute_map[key]].nil?
1270
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1271
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
1067
1272
  end
1068
- # verify the required parameter 'nonce' is set
1069
- fail ArgumentError, "Missing the required parameter 'nonce' when calling ProviderNotificationSubscriptionsApi.delete_provider_notification_subscription" if nonce.nil?
1070
- # resource path
1071
- local_var_path = "/providers/subscription/{nonce}".sub('{format}','json').sub('{' + 'nonce' + '}', nonce.to_s)
1072
-
1073
- # query parameters
1074
- query_params = {}
1075
-
1076
- # header parameters
1077
- header_params = {}
1078
-
1079
- # HTTP header 'Accept' (if needed)
1080
- local_header_accept = []
1081
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1082
-
1083
- # HTTP header 'Content-Type'
1084
- local_header_content_type = ['application/json']
1085
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1086
-
1087
- # form parameters
1088
- form_params = {}
1089
-
1090
- # http body (model)
1091
- post_body = nil
1092
- auth_names = ['Vericred-Api-Key']
1093
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1094
- :header_params => header_params,
1095
- :query_params => query_params,
1096
- :form_params => form_params,
1097
- :body => post_body,
1098
- :auth_names => auth_names)
1099
- if @api_client.config.debugging
1100
- @api_client.config.logger.debug "API called: ProviderNotificationSubscriptionsApi#delete_provider_notification_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1273
+
1274
+ self
1275
+ end
1276
+
1277
+ # Deserializes the data based on type
1278
+ # @param string type Data type
1279
+ # @param string value Value to be deserialized
1280
+ # @return [Object] Deserialized data
1281
+ def _deserialize(type, value)
1282
+ case type.to_sym
1283
+ when :DateTime
1284
+ DateTime.parse(value)
1285
+ when :Date
1286
+ Date.parse(value)
1287
+ when :String
1288
+ value.to_s
1289
+ when :Integer
1290
+ value.to_i
1291
+ when :Float
1292
+ value.to_f
1293
+ when :BOOLEAN
1294
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1295
+ true
1296
+ else
1297
+ false
1298
+ end
1299
+ when :Object
1300
+ # generic object (usually a Hash), return directly
1301
+ value
1302
+ when /\AArray<(?<inner_type>.+)>\z/
1303
+ inner_type = Regexp.last_match[:inner_type]
1304
+ value.map { |v| _deserialize(inner_type, v) }
1305
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
1306
+ k_type = Regexp.last_match[:k_type]
1307
+ v_type = Regexp.last_match[:v_type]
1308
+ {}.tap do |hash|
1309
+ value.each do |k, v|
1310
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1311
+ end
1312
+ end
1313
+ else # model
1314
+ temp_model = VericredClient.const_get(type).new
1315
+ temp_model.build_from_hash(value)
1101
1316
  end
1102
- return data, status_code, headers
1103
1317
  end
1104
1318
 
1105
- # Webhook
1106
- # Webhook notifications are sent when there are events relevant to a subscription. Notifications will be sent to the callback URL that was provided in the original request. The endpoint handling this request should respond with a successful status code (200 <= Status Code < 300). If a successful status code is not returned the notification will be sent again at a regular interval.
1107
- # @param [Hash] opts the optional parameters
1108
- # @option opts [ProviderNetworkEventNotification] :root
1109
- # @return [nil]
1110
- def notify_provider_notification_subscription(opts = {})
1111
- notify_provider_notification_subscription_with_http_info(opts)
1112
- return nil
1319
+ # Returns the string representation of the object
1320
+ # @return [String] String presentation of the object
1321
+ def to_s
1322
+ to_hash.to_s
1323
+ end
1324
+
1325
+ # to_body is an alias to to_hash (backward compatibility)
1326
+ # @return [Hash] Returns the object in the form of hash
1327
+ def to_body
1328
+ to_hash
1113
1329
  end
1114
1330
 
1115
- # Webhook
1116
- # Webhook notifications are sent when there are events relevant to a subscription. Notifications will be sent to the callback URL that was provided in the original request. The endpoint handling this request should respond with a successful status code (200 &lt;&#x3D; Status Code &lt; 300). If a successful status code is not returned the notification will be sent again at a regular interval.
1117
- # @param [Hash] opts the optional parameters
1118
- # @option opts [ProviderNetworkEventNotification] :root
1119
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1120
- def notify_provider_notification_subscription_with_http_info(opts = {})
1121
- if @api_client.config.debugging
1122
- @api_client.config.logger.debug "Calling API: ProviderNotificationSubscriptionsApi.notify_provider_notification_subscription ..."
1331
+ # Returns the object in the form of hash
1332
+ # @return [Hash] Returns the object in the form of hash
1333
+ def to_hash
1334
+ hash = {}
1335
+ self.class.attribute_map.each_pair do |attr, param|
1336
+ value = self.send(attr)
1337
+ next if value.nil?
1338
+ hash[param] = _to_hash(value)
1123
1339
  end
1124
- # resource path
1125
- local_var_path = "/CALLBACK_URL".sub('{format}','json')
1126
-
1127
- # query parameters
1128
- query_params = {}
1129
-
1130
- # header parameters
1131
- header_params = {}
1132
-
1133
- # HTTP header 'Accept' (if needed)
1134
- local_header_accept = []
1135
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1136
-
1137
- # HTTP header 'Content-Type'
1138
- local_header_content_type = ['application/json']
1139
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1140
-
1141
- # form parameters
1142
- form_params = {}
1143
-
1144
- # http body (model)
1145
- post_body = @api_client.object_to_http_body(opts[:'root'])
1146
- auth_names = ['Vericred-Api-Key']
1147
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1148
- :header_params => header_params,
1149
- :query_params => query_params,
1150
- :form_params => form_params,
1151
- :body => post_body,
1152
- :auth_names => auth_names)
1153
- if @api_client.config.debugging
1154
- @api_client.config.logger.debug "API called: ProviderNotificationSubscriptionsApi#notify_provider_notification_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1340
+ hash
1341
+ end
1342
+
1343
+ # Outputs non-array value in the form of hash
1344
+ # For object, use to_hash. Otherwise, just return the value
1345
+ # @param [Object] value Any valid value
1346
+ # @return [Hash] Returns the value in the form of hash
1347
+ def _to_hash(value)
1348
+ if value.is_a?(Array)
1349
+ value.compact.map{ |v| _to_hash(v) }
1350
+ elsif value.is_a?(Hash)
1351
+ {}.tap do |hash|
1352
+ value.each { |k, v| hash[k] = _to_hash(v) }
1353
+ end
1354
+ elsif value.respond_to? :to_hash
1355
+ value.to_hash
1356
+ else
1357
+ value
1155
1358
  end
1156
- return data, status_code, headers
1157
1359
  end
1360
+
1158
1361
  end
1362
+
1159
1363
  end