pharmaobservatory 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (575) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +163 -9
  3. data/docs/AnimalWelfareAssurancesResponse.md +58 -0
  4. data/docs/{BiomarkerAssayEvidenceResponseBuild.md → AnimalWelfareAssurancesResponseBuild.md} +2 -2
  5. data/docs/{BiomarkerAssayEvidenceResponseFreshness.md → AnimalWelfareAssurancesResponseFreshness.md} +2 -2
  6. data/docs/{BiomarkerAssayEvidenceResponseScope.md → AnimalWelfareAssurancesResponseScope.md} +2 -2
  7. data/docs/AnimalWelfareAssurancesRow.md +48 -0
  8. data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
  9. data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
  10. data/docs/BiomarkerAssayEvidenceResponse.md +3 -3
  11. data/docs/BiomarkerAssayProvidersResponse.md +58 -0
  12. data/docs/BiomarkerAssayProvidersRow.md +72 -0
  13. data/docs/BiomarkerAssayWhitespaceResponse.md +3 -3
  14. data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
  15. data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
  16. data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
  17. data/docs/BiomarkerEvidenceByYearRow.md +32 -0
  18. data/docs/BiomarkerEvidenceResponse.md +3 -3
  19. data/docs/BiomarkerLiteratureResponse.md +3 -3
  20. data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
  21. data/docs/BiomarkerRelationsResponse.md +3 -3
  22. data/docs/BiomarkerSampleCoverageResponse.md +3 -3
  23. data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
  24. data/docs/BiomarkerTraversalStatusResponse.md +58 -0
  25. data/docs/BiomarkerTraversalStatusRow.md +36 -0
  26. data/docs/BiomarkerValidationResponse.md +3 -3
  27. data/docs/BiomarkerVariantMentionsResponse.md +3 -3
  28. data/docs/BiomarkersApi.md +320 -0
  29. data/docs/BiomarkersRecord.md +2 -2
  30. data/docs/BiomarkersResponse.md +3 -3
  31. data/docs/BrandCompaniesResponse.md +3 -3
  32. data/docs/BrandRevenueResponse.md +3 -3
  33. data/docs/CatalystsResponse.md +3 -3
  34. data/docs/CellLinesRecord.md +2 -2
  35. data/docs/CellLinesResponse.md +3 -3
  36. data/docs/CliaCertificatesResponse.md +3 -3
  37. data/docs/CompaniesApi.md +2113 -391
  38. data/docs/CompaniesRecord.md +2 -2
  39. data/docs/CompaniesRecordAttributes.md +2 -0
  40. data/docs/CompaniesResponse.md +3 -3
  41. data/docs/CompanyAssetsResponse.md +3 -3
  42. data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
  43. data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
  44. data/docs/CompanyCollaboratorsResponse.md +58 -0
  45. data/docs/CompanyCollaboratorsRow.md +42 -0
  46. data/docs/CompanyCompetitorActivityResponse.md +58 -0
  47. data/docs/CompanyCompetitorActivityRow.md +42 -0
  48. data/docs/CompanyCompetitorsResponse.md +58 -0
  49. data/docs/CompanyCompetitorsRow.md +66 -0
  50. data/docs/CompanyFinancialsResponse.md +58 -0
  51. data/docs/CompanyFinancialsRow.md +108 -0
  52. data/docs/CompanyFirmographicsResponse.md +58 -0
  53. data/docs/CompanyFirmographicsRow.md +80 -0
  54. data/docs/CompanyFundingEventsResponse.md +3 -3
  55. data/docs/CompanyFundingSummaryResponse.md +3 -3
  56. data/docs/CompanyMembersResponse.md +3 -3
  57. data/docs/CompanyProgramsResponse.md +3 -3
  58. data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
  59. data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
  60. data/docs/CompanyTargetsResponse.md +3 -3
  61. data/docs/CompanyTimelineResponse.md +58 -0
  62. data/docs/CompanyTimelineRow.md +68 -0
  63. data/docs/CompanyTrialGeographyResponse.md +3 -3
  64. data/docs/CompanyTrialSitesResponse.md +3 -3
  65. data/docs/CompanyUsPatentsResponse.md +58 -0
  66. data/docs/CompanyUsPatentsRow.md +34 -0
  67. data/docs/ConditionAdverseEventsResponse.md +3 -3
  68. data/docs/ConditionBurdenResponse.md +3 -3
  69. data/docs/ConditionDeliveryResponse.md +3 -3
  70. data/docs/ConditionDrugsResponse.md +3 -3
  71. data/docs/ConditionInvestigatorOrganizationsResponse.md +58 -0
  72. data/docs/ConditionInvestigatorOrganizationsRow.md +44 -0
  73. data/docs/ConditionPrevalenceResponse.md +3 -3
  74. data/docs/ConditionPublicationsResponse.md +3 -3
  75. data/docs/ConditionRecruitmentByPhaseResponse.md +3 -3
  76. data/docs/ConditionRecruitmentDurationResponse.md +3 -3
  77. data/docs/ConditionSitesResponse.md +3 -3
  78. data/docs/ConditionTrialStartForecastResponse.md +3 -3
  79. data/docs/ConditionTrialsResponse.md +3 -3
  80. data/docs/ConditionsApi.md +160 -0
  81. data/docs/ConditionsRecord.md +2 -2
  82. data/docs/ConditionsResponse.md +3 -3
  83. data/docs/CroFootprintResponse.md +3 -3
  84. data/docs/CroTrialsResponse.md +3 -3
  85. data/docs/DebarmentsResponse.md +3 -3
  86. data/docs/DrugApprovalsResponse.md +3 -3
  87. data/docs/DrugAspCodesResponse.md +3 -3
  88. data/docs/DrugBrandsResponse.md +3 -3
  89. data/docs/DrugCombinationsResponse.md +3 -3
  90. data/docs/DrugDeclaredPatentsResponse.md +3 -3
  91. data/docs/DrugInvestigatorsResponse.md +58 -0
  92. data/docs/DrugInvestigatorsRow.md +32 -0
  93. data/docs/DrugLabelSafetyResponse.md +3 -3
  94. data/docs/DrugMedicareSpendResponse.md +3 -3
  95. data/docs/DrugPatentCliffResponse.md +3 -3
  96. data/docs/DrugPatentMentionsResponse.md +3 -3
  97. data/docs/DrugPatentOwnersResponse.md +3 -3
  98. data/docs/DrugPricingResponse.md +3 -3
  99. data/docs/DrugRecallsResponse.md +3 -3
  100. data/docs/DrugRegulatoryResponse.md +3 -3
  101. data/docs/DrugSitesResponse.md +3 -3
  102. data/docs/DrugTargetsResponse.md +3 -3
  103. data/docs/DrugTrialConditionsResponse.md +3 -3
  104. data/docs/DrugTrialsResponse.md +3 -3
  105. data/docs/DrugVariantsResponse.md +3 -3
  106. data/docs/DrugsApi.md +80 -0
  107. data/docs/DrugsRecord.md +2 -2
  108. data/docs/DrugsResponse.md +3 -3
  109. data/docs/EnforcementEventsResponse.md +3 -3
  110. data/docs/EnforcementEventsRow.md +22 -4
  111. data/docs/GxpFacilitiesResponse.md +3 -3
  112. data/docs/GxpFacilitiesRow.md +49 -1
  113. data/docs/HospitalBedsYearlyResponse.md +3 -3
  114. data/docs/HospitalFacilityChangesResponse.md +3 -3
  115. data/docs/HospitalsApi.md +80 -0
  116. data/docs/HospitalsRecord.md +2 -2
  117. data/docs/HospitalsResponse.md +3 -3
  118. data/docs/ImportRefusalsResponse.md +3 -3
  119. data/docs/InspectionFindingsResponse.md +3 -3
  120. data/docs/InspectionsResponse.md +3 -3
  121. data/docs/InstitutionalHoldingsResponse.md +3 -3
  122. data/docs/InstitutionalQuarterTotalsResponse.md +3 -3
  123. data/docs/InvestigatorConditionsResponse.md +58 -0
  124. data/docs/InvestigatorConditionsRow.md +28 -0
  125. data/docs/InvestigatorDebarmentsResponse.md +58 -0
  126. data/docs/InvestigatorDebarmentsRow.md +32 -0
  127. data/docs/InvestigatorHospitalsResponse.md +58 -0
  128. data/docs/InvestigatorHospitalsRow.md +28 -0
  129. data/docs/InvestigatorInspectionsResponse.md +58 -0
  130. data/docs/InvestigatorInspectionsRow.md +46 -0
  131. data/docs/InvestigatorPublicationsResponse.md +58 -0
  132. data/docs/InvestigatorPublicationsRow.md +34 -0
  133. data/docs/InvestigatorTopicsResponse.md +58 -0
  134. data/docs/InvestigatorTopicsRow.md +34 -0
  135. data/docs/InvestigatorTrialsResponse.md +58 -0
  136. data/docs/InvestigatorTrialsRow.md +64 -0
  137. data/docs/InvestigatorsApi.md +1113 -0
  138. data/docs/InvestigatorsRecord.md +38 -0
  139. data/docs/InvestigatorsResponse.md +58 -0
  140. data/docs/InvestigatorsRow.md +70 -0
  141. data/docs/InvestorFundsResponse.md +3 -3
  142. data/docs/InvestorPortfolioResponse.md +3 -3
  143. data/docs/InvestorPrivateFundsResponse.md +3 -3
  144. data/docs/InvestorsRecord.md +2 -2
  145. data/docs/InvestorsResponse.md +3 -3
  146. data/docs/InvestorsRow.md +6 -0
  147. data/docs/LegalEntitiesApi.md +1401 -281
  148. data/docs/LegalEntitiesRecord.md +2 -2
  149. data/docs/LegalEntitiesRecordAttributes.md +6 -0
  150. data/docs/LegalEntitiesResponse.md +3 -3
  151. data/docs/LegalEntitySecFilingsResponse.md +58 -0
  152. data/docs/LegalEntitySecFilingsRow.md +44 -0
  153. data/docs/ManagersRecord.md +2 -2
  154. data/docs/ManagersResponse.md +3 -3
  155. data/docs/OrgDisclosureTrendResponse.md +58 -0
  156. data/docs/OrgDisclosureTrendRow.md +62 -0
  157. data/docs/OrgDisclosuresResponse.md +3 -3
  158. data/docs/OrgRelationshipsResponse.md +3 -3
  159. data/docs/OwnershipObservationsResponse.md +58 -0
  160. data/docs/OwnershipObservationsRow.md +168 -0
  161. data/docs/OwnershipPercentagesResponse.md +3 -3
  162. data/docs/OwnershipPositionsResponse.md +3 -3
  163. data/docs/OwnershipSourceCoverageResponse.md +58 -0
  164. data/docs/OwnershipSourceCoverageRow.md +62 -0
  165. data/docs/PdufaDatesResponse.md +3 -3
  166. data/docs/ProgramLicensingCandidatesResponse.md +3 -3
  167. data/docs/ProgramsResponse.md +3 -3
  168. data/docs/RareDiseaseGenesResponse.md +3 -3
  169. data/docs/RareDiseaseHierarchyResponse.md +3 -3
  170. data/docs/RareDiseaseInvestigatorCoverageResponse.md +3 -3
  171. data/docs/RareDiseaseInvestigatorsResponse.md +3 -3
  172. data/docs/RareDiseaseMappingsResponse.md +3 -3
  173. data/docs/RareDiseaseOrganizationsResponse.md +3 -3
  174. data/docs/RareDiseasePrevalenceResponse.md +3 -3
  175. data/docs/RareDiseaseRarityEvidenceResponse.md +3 -3
  176. data/docs/RareDiseaseRarityResponse.md +3 -3
  177. data/docs/RareDiseaseReplacementsResponse.md +3 -3
  178. data/docs/RareDiseaseSiteCoverageResponse.md +3 -3
  179. data/docs/RareDiseaseSponsorsResponse.md +3 -3
  180. data/docs/RareDiseaseTrialCoverageResponse.md +3 -3
  181. data/docs/RareDiseaseTrialSitesResponse.md +3 -3
  182. data/docs/RareDiseaseTrialsResponse.md +3 -3
  183. data/docs/RareDiseasesRecord.md +2 -2
  184. data/docs/RareDiseasesResponse.md +3 -3
  185. data/docs/RecallsResponse.md +3 -3
  186. data/docs/RwdConductorDeliveryResponse.md +58 -0
  187. data/docs/RwdConductorDeliveryRow.md +74 -0
  188. data/docs/RwdConductorFootprintResponse.md +58 -0
  189. data/docs/RwdConductorFootprintRow.md +40 -0
  190. data/docs/RwdConductorStudiesResponse.md +58 -0
  191. data/docs/RwdConductorStudiesRow.md +42 -0
  192. data/docs/RwdConductorsApi.md +393 -0
  193. data/docs/RwdConductorsRecord.md +38 -0
  194. data/docs/RwdConductorsResponse.md +58 -0
  195. data/docs/RwdConductorsRow.md +72 -0
  196. data/docs/RwdCoverageResponse.md +3 -3
  197. data/docs/RwdInstitutionsApi.md +153 -0
  198. data/docs/RwdInstitutionsRecord.md +38 -0
  199. data/docs/RwdInstitutionsResponse.md +58 -0
  200. data/docs/RwdInstitutionsRow.md +154 -0
  201. data/docs/RwdNetworksApi.md +153 -0
  202. data/docs/RwdNetworksRecord.md +38 -0
  203. data/docs/RwdNetworksResponse.md +58 -0
  204. data/docs/RwdNetworksRow.md +110 -0
  205. data/docs/RwdRegisterProvenanceResponse.md +3 -3
  206. data/docs/RwdRegistersRecord.md +2 -2
  207. data/docs/RwdSourceAgeBandsResponse.md +3 -3
  208. data/docs/RwdSourceConditionsResponse.md +3 -3
  209. data/docs/RwdSourceEtlMappingsResponse.md +3 -3
  210. data/docs/RwdSourceLinkagesResponse.md +3 -3
  211. data/docs/RwdSourceTypesResponse.md +3 -3
  212. data/docs/RwdSourceVocabulariesResponse.md +3 -3
  213. data/docs/RwdSourcesRecord.md +2 -2
  214. data/docs/RwdSourcesResponse.md +3 -3
  215. data/docs/RwdStudiesApi.md +80 -0
  216. data/docs/RwdStudiesRecord.md +2 -2
  217. data/docs/RwdStudiesResponse.md +3 -3
  218. data/docs/RwdStudyConditionsResponse.md +3 -3
  219. data/docs/RwdStudyDataSourcesResponse.md +3 -3
  220. data/docs/RwdStudyDrugsResponse.md +3 -3
  221. data/docs/RwdStudyMilestonesResponse.md +3 -3
  222. data/docs/RwdWithheldFieldsResponse.md +3 -3
  223. data/docs/SbtiCrosscheckResponse.md +58 -0
  224. data/docs/SbtiCrosscheckRow.md +48 -0
  225. data/docs/SecPdufaDatesResponse.md +3 -3
  226. data/docs/SiteBedsYearlyResponse.md +3 -3
  227. data/docs/SiteCroTrialsResponse.md +3 -3
  228. data/docs/SiteHospitalsResponse.md +3 -3
  229. data/docs/SiteInvestigatorsResponse.md +3 -3
  230. data/docs/SiteTrialConditionsResponse.md +3 -3
  231. data/docs/SiteTrialDrugsResponse.md +3 -3
  232. data/docs/SiteTrialsResponse.md +3 -3
  233. data/docs/SitesRecord.md +2 -2
  234. data/docs/SitesResponse.md +3 -3
  235. data/docs/SponsorDeliveryResponse.md +58 -0
  236. data/docs/SponsorDeliveryRow.md +52 -0
  237. data/docs/SponsorPatentMentionsResponse.md +58 -0
  238. data/docs/SponsorPatentMentionsRow.md +42 -0
  239. data/docs/SponsorPublicationsResponse.md +58 -0
  240. data/docs/SponsorPublicationsRow.md +42 -0
  241. data/docs/SponsorRecruitmentByPhaseResponse.md +3 -3
  242. data/docs/SponsorRecruitmentDurationResponse.md +3 -3
  243. data/docs/SponsorTrialConditionsResponse.md +58 -0
  244. data/docs/SponsorTrialConditionsRow.md +36 -0
  245. data/docs/SponsorTrialDrugsResponse.md +58 -0
  246. data/docs/SponsorTrialDrugsRow.md +34 -0
  247. data/docs/SponsorTrialStartForecastResponse.md +3 -3
  248. data/docs/SponsorTrialsResponse.md +3 -3
  249. data/docs/SupplierCapabilityEsgResponse.md +3 -3
  250. data/docs/SupplierServicesResponse.md +3 -3
  251. data/docs/SupplierSitesResponse.md +3 -3
  252. data/docs/SuppliersRecord.md +2 -2
  253. data/docs/SuppliersResponse.md +3 -3
  254. data/docs/SuppliersRow.md +2 -0
  255. data/docs/TargetAssociationsResponse.md +3 -3
  256. data/docs/TargetCrowdingResponse.md +3 -3
  257. data/docs/TargetDrugsResponse.md +3 -3
  258. data/docs/TargetEvidenceResponse.md +3 -3
  259. data/docs/TargetInvestigatorsResponse.md +58 -0
  260. data/docs/TargetInvestigatorsRow.md +30 -0
  261. data/docs/TargetPatentMentionsResponse.md +3 -3
  262. data/docs/TargetProgramsResponse.md +3 -3
  263. data/docs/TargetPublicationsResponse.md +3 -3
  264. data/docs/TargetRegulatoryPrecedentResponse.md +3 -3
  265. data/docs/TargetTrialsResponse.md +3 -3
  266. data/docs/TargetsApi.md +80 -0
  267. data/docs/TargetsRecord.md +2 -2
  268. data/docs/TargetsResponse.md +3 -3
  269. data/docs/TrialAdverseEventsResponse.md +3 -3
  270. data/docs/TrialChangesResponse.md +3 -3
  271. data/docs/TrialDeliveryResponse.md +3 -3
  272. data/docs/TrialDemographicsResponse.md +3 -3
  273. data/docs/TrialDrugClassesResponse.md +3 -3
  274. data/docs/TrialDrugsResponse.md +3 -3
  275. data/docs/TrialEnrollmentHistoryResponse.md +3 -3
  276. data/docs/TrialEnrollmentRateResponse.md +3 -3
  277. data/docs/TrialExtractedEndpointsResponse.md +3 -3
  278. data/docs/TrialKolsResponse.md +3 -3
  279. data/docs/TrialOutcomeMeasuresResponse.md +3 -3
  280. data/docs/TrialResearchPaymentsResponse.md +3 -3
  281. data/docs/TrialSiteHistoryResponse.md +3 -3
  282. data/docs/TrialSitesResponse.md +3 -3
  283. data/docs/TrialsRecord.md +2 -2
  284. data/docs/TrialsResponse.md +3 -3
  285. data/docs/UnmatchedProductRevenueResponse.md +3 -3
  286. data/docs/UntitledLettersResponse.md +3 -3
  287. data/docs/WarningLettersResponse.md +3 -3
  288. data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
  289. data/lib/pharmaobservatory/api/companies_api.rb +2360 -449
  290. data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
  291. data/lib/pharmaobservatory/api/drugs_api.rb +84 -0
  292. data/lib/pharmaobservatory/api/hospitals_api.rb +84 -0
  293. data/lib/pharmaobservatory/api/investigators_api.rb +1169 -0
  294. data/lib/pharmaobservatory/api/legal_entities_api.rb +1460 -284
  295. data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
  296. data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
  297. data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
  298. data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
  299. data/lib/pharmaobservatory/api/targets_api.rb +84 -0
  300. data/lib/pharmaobservatory/models/animal_welfare_assurances_response.rb +478 -0
  301. data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_build.rb → animal_welfare_assurances_response_build.rb} +3 -3
  302. data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_freshness.rb → animal_welfare_assurances_response_freshness.rb} +3 -3
  303. data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_scope.rb → animal_welfare_assurances_response_scope.rb} +3 -3
  304. data/lib/pharmaobservatory/models/animal_welfare_assurances_row.rb +392 -0
  305. data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
  306. data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
  307. data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +3 -3
  308. data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
  309. data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
  310. data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +3 -3
  311. data/lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb +3 -3
  312. data/lib/pharmaobservatory/models/biomarker_cdx_assertions_response.rb +3 -3
  313. data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
  314. data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
  315. data/lib/pharmaobservatory/models/biomarker_evidence_response.rb +3 -3
  316. data/lib/pharmaobservatory/models/biomarker_literature_response.rb +3 -3
  317. data/lib/pharmaobservatory/models/biomarker_publishing_companies_response.rb +3 -3
  318. data/lib/pharmaobservatory/models/biomarker_relations_response.rb +3 -3
  319. data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +3 -3
  320. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +3 -3
  321. data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
  322. data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
  323. data/lib/pharmaobservatory/models/biomarker_validation_response.rb +3 -3
  324. data/lib/pharmaobservatory/models/biomarker_variant_mentions_response.rb +3 -3
  325. data/lib/pharmaobservatory/models/biomarkers_record.rb +2 -2
  326. data/lib/pharmaobservatory/models/biomarkers_response.rb +3 -3
  327. data/lib/pharmaobservatory/models/brand_companies_response.rb +3 -3
  328. data/lib/pharmaobservatory/models/brand_revenue_response.rb +3 -3
  329. data/lib/pharmaobservatory/models/catalysts_response.rb +3 -3
  330. data/lib/pharmaobservatory/models/cell_lines_record.rb +2 -2
  331. data/lib/pharmaobservatory/models/cell_lines_response.rb +3 -3
  332. data/lib/pharmaobservatory/models/clia_certificates_response.rb +3 -3
  333. data/lib/pharmaobservatory/models/companies_record.rb +2 -2
  334. data/lib/pharmaobservatory/models/companies_record_attributes.rb +10 -1
  335. data/lib/pharmaobservatory/models/companies_response.rb +3 -3
  336. data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
  337. data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
  338. data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
  339. data/lib/pharmaobservatory/models/company_collaborators_response.rb +478 -0
  340. data/lib/pharmaobservatory/models/company_collaborators_row.rb +355 -0
  341. data/lib/pharmaobservatory/models/company_competitor_activity_response.rb +478 -0
  342. data/lib/pharmaobservatory/models/company_competitor_activity_row.rb +355 -0
  343. data/lib/pharmaobservatory/models/company_competitors_response.rb +478 -0
  344. data/lib/pharmaobservatory/models/company_competitors_row.rb +493 -0
  345. data/lib/pharmaobservatory/models/company_financials_response.rb +478 -0
  346. data/lib/pharmaobservatory/models/company_financials_row.rb +718 -0
  347. data/lib/pharmaobservatory/models/company_firmographics_response.rb +478 -0
  348. data/lib/pharmaobservatory/models/company_firmographics_row.rb +566 -0
  349. data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
  350. data/lib/pharmaobservatory/models/company_funding_summary_response.rb +3 -3
  351. data/lib/pharmaobservatory/models/company_members_response.rb +3 -3
  352. data/lib/pharmaobservatory/models/company_programs_response.rb +3 -3
  353. data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
  354. data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
  355. data/lib/pharmaobservatory/models/company_targets_response.rb +3 -3
  356. data/lib/pharmaobservatory/models/company_timeline_response.rb +478 -0
  357. data/lib/pharmaobservatory/models/company_timeline_row.rb +498 -0
  358. data/lib/pharmaobservatory/models/company_trial_geography_response.rb +3 -3
  359. data/lib/pharmaobservatory/models/company_trial_sites_response.rb +3 -3
  360. data/lib/pharmaobservatory/models/company_us_patents_response.rb +478 -0
  361. data/lib/pharmaobservatory/models/company_us_patents_row.rb +311 -0
  362. data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +3 -3
  363. data/lib/pharmaobservatory/models/condition_burden_response.rb +3 -3
  364. data/lib/pharmaobservatory/models/condition_delivery_response.rb +3 -3
  365. data/lib/pharmaobservatory/models/condition_drugs_response.rb +3 -3
  366. data/lib/pharmaobservatory/models/condition_investigator_organizations_response.rb +478 -0
  367. data/lib/pharmaobservatory/models/condition_investigator_organizations_row.rb +366 -0
  368. data/lib/pharmaobservatory/models/condition_prevalence_response.rb +3 -3
  369. data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
  370. data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +3 -3
  371. data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +3 -3
  372. data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
  373. data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +3 -3
  374. data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
  375. data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
  376. data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
  377. data/lib/pharmaobservatory/models/cro_footprint_response.rb +3 -3
  378. data/lib/pharmaobservatory/models/cro_trials_response.rb +3 -3
  379. data/lib/pharmaobservatory/models/debarments_response.rb +3 -3
  380. data/lib/pharmaobservatory/models/drug_approvals_response.rb +3 -3
  381. data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +3 -3
  382. data/lib/pharmaobservatory/models/drug_brands_response.rb +3 -3
  383. data/lib/pharmaobservatory/models/drug_combinations_response.rb +3 -3
  384. data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +3 -3
  385. data/lib/pharmaobservatory/models/drug_investigators_response.rb +478 -0
  386. data/lib/pharmaobservatory/models/drug_investigators_row.rb +302 -0
  387. data/lib/pharmaobservatory/models/drug_label_safety_response.rb +3 -3
  388. data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +3 -3
  389. data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
  390. data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +3 -3
  391. data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +3 -3
  392. data/lib/pharmaobservatory/models/drug_pricing_response.rb +3 -3
  393. data/lib/pharmaobservatory/models/drug_recalls_response.rb +3 -3
  394. data/lib/pharmaobservatory/models/drug_regulatory_response.rb +3 -3
  395. data/lib/pharmaobservatory/models/drug_sites_response.rb +3 -3
  396. data/lib/pharmaobservatory/models/drug_targets_response.rb +3 -3
  397. data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +3 -3
  398. data/lib/pharmaobservatory/models/drug_trials_response.rb +3 -3
  399. data/lib/pharmaobservatory/models/drug_variants_response.rb +3 -3
  400. data/lib/pharmaobservatory/models/drugs_record.rb +2 -2
  401. data/lib/pharmaobservatory/models/drugs_response.rb +3 -3
  402. data/lib/pharmaobservatory/models/enforcement_events_response.rb +3 -3
  403. data/lib/pharmaobservatory/models/enforcement_events_row.rb +104 -5
  404. data/lib/pharmaobservatory/models/gxp_facilities_response.rb +3 -3
  405. data/lib/pharmaobservatory/models/gxp_facilities_row.rb +266 -2
  406. data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +3 -3
  407. data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +3 -3
  408. data/lib/pharmaobservatory/models/hospitals_record.rb +2 -2
  409. data/lib/pharmaobservatory/models/hospitals_response.rb +3 -3
  410. data/lib/pharmaobservatory/models/import_refusals_response.rb +3 -3
  411. data/lib/pharmaobservatory/models/inspection_findings_response.rb +3 -3
  412. data/lib/pharmaobservatory/models/inspections_response.rb +3 -3
  413. data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
  414. data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +3 -3
  415. data/lib/pharmaobservatory/models/investigator_conditions_response.rb +478 -0
  416. data/lib/pharmaobservatory/models/investigator_conditions_row.rb +278 -0
  417. data/lib/pharmaobservatory/models/investigator_debarments_response.rb +478 -0
  418. data/lib/pharmaobservatory/models/investigator_debarments_row.rb +300 -0
  419. data/lib/pharmaobservatory/models/investigator_hospitals_response.rb +478 -0
  420. data/lib/pharmaobservatory/models/investigator_hospitals_row.rb +280 -0
  421. data/lib/pharmaobservatory/models/investigator_inspections_response.rb +478 -0
  422. data/lib/pharmaobservatory/models/investigator_inspections_row.rb +377 -0
  423. data/lib/pharmaobservatory/models/investigator_publications_response.rb +478 -0
  424. data/lib/pharmaobservatory/models/investigator_publications_row.rb +311 -0
  425. data/lib/pharmaobservatory/models/investigator_topics_response.rb +478 -0
  426. data/lib/pharmaobservatory/models/investigator_topics_row.rb +311 -0
  427. data/lib/pharmaobservatory/models/investigator_trials_response.rb +478 -0
  428. data/lib/pharmaobservatory/models/investigator_trials_row.rb +478 -0
  429. data/lib/pharmaobservatory/models/investigators_record.rb +385 -0
  430. data/lib/pharmaobservatory/models/investigators_response.rb +478 -0
  431. data/lib/pharmaobservatory/models/investigators_row.rb +511 -0
  432. data/lib/pharmaobservatory/models/investor_funds_response.rb +3 -3
  433. data/lib/pharmaobservatory/models/investor_portfolio_response.rb +3 -3
  434. data/lib/pharmaobservatory/models/investor_private_funds_response.rb +3 -3
  435. data/lib/pharmaobservatory/models/investors_record.rb +2 -2
  436. data/lib/pharmaobservatory/models/investors_response.rb +3 -3
  437. data/lib/pharmaobservatory/models/investors_row.rb +34 -1
  438. data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
  439. data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +28 -1
  440. data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
  441. data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
  442. data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
  443. data/lib/pharmaobservatory/models/managers_record.rb +2 -2
  444. data/lib/pharmaobservatory/models/managers_response.rb +3 -3
  445. data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
  446. data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
  447. data/lib/pharmaobservatory/models/org_disclosures_response.rb +3 -3
  448. data/lib/pharmaobservatory/models/org_relationships_response.rb +3 -3
  449. data/lib/pharmaobservatory/models/ownership_observations_response.rb +478 -0
  450. data/lib/pharmaobservatory/models/ownership_observations_row.rb +1048 -0
  451. data/lib/pharmaobservatory/models/ownership_percentages_response.rb +3 -3
  452. data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
  453. data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
  454. data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
  455. data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
  456. data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +3 -3
  457. data/lib/pharmaobservatory/models/programs_response.rb +3 -3
  458. data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +3 -3
  459. data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +3 -3
  460. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +3 -3
  461. data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +3 -3
  462. data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +3 -3
  463. data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +3 -3
  464. data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +3 -3
  465. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +3 -3
  466. data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +3 -3
  467. data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +3 -3
  468. data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +3 -3
  469. data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +3 -3
  470. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +3 -3
  471. data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +3 -3
  472. data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +3 -3
  473. data/lib/pharmaobservatory/models/rare_diseases_record.rb +2 -2
  474. data/lib/pharmaobservatory/models/rare_diseases_response.rb +3 -3
  475. data/lib/pharmaobservatory/models/recalls_response.rb +3 -3
  476. data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
  477. data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
  478. data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
  479. data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
  480. data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
  481. data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
  482. data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
  483. data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
  484. data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
  485. data/lib/pharmaobservatory/models/rwd_coverage_response.rb +3 -3
  486. data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
  487. data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
  488. data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
  489. data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
  490. data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
  491. data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
  492. data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +3 -3
  493. data/lib/pharmaobservatory/models/rwd_registers_record.rb +2 -2
  494. data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +3 -3
  495. data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +3 -3
  496. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +3 -3
  497. data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +3 -3
  498. data/lib/pharmaobservatory/models/rwd_source_types_response.rb +3 -3
  499. data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +3 -3
  500. data/lib/pharmaobservatory/models/rwd_sources_record.rb +2 -2
  501. data/lib/pharmaobservatory/models/rwd_sources_response.rb +3 -3
  502. data/lib/pharmaobservatory/models/rwd_studies_record.rb +2 -2
  503. data/lib/pharmaobservatory/models/rwd_studies_response.rb +3 -3
  504. data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +3 -3
  505. data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +3 -3
  506. data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +3 -3
  507. data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +3 -3
  508. data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +3 -3
  509. data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
  510. data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
  511. data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +3 -3
  512. data/lib/pharmaobservatory/models/site_beds_yearly_response.rb +3 -3
  513. data/lib/pharmaobservatory/models/site_cro_trials_response.rb +3 -3
  514. data/lib/pharmaobservatory/models/site_hospitals_response.rb +3 -3
  515. data/lib/pharmaobservatory/models/site_investigators_response.rb +3 -3
  516. data/lib/pharmaobservatory/models/site_trial_conditions_response.rb +3 -3
  517. data/lib/pharmaobservatory/models/site_trial_drugs_response.rb +3 -3
  518. data/lib/pharmaobservatory/models/site_trials_response.rb +3 -3
  519. data/lib/pharmaobservatory/models/sites_record.rb +2 -2
  520. data/lib/pharmaobservatory/models/sites_response.rb +3 -3
  521. data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
  522. data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
  523. data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
  524. data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
  525. data/lib/pharmaobservatory/models/sponsor_publications_response.rb +478 -0
  526. data/lib/pharmaobservatory/models/sponsor_publications_row.rb +355 -0
  527. data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_response.rb +3 -3
  528. data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
  529. data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
  530. data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
  531. data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
  532. data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
  533. data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
  534. data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
  535. data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +3 -3
  536. data/lib/pharmaobservatory/models/supplier_services_response.rb +3 -3
  537. data/lib/pharmaobservatory/models/supplier_sites_response.rb +3 -3
  538. data/lib/pharmaobservatory/models/suppliers_record.rb +2 -2
  539. data/lib/pharmaobservatory/models/suppliers_response.rb +3 -3
  540. data/lib/pharmaobservatory/models/suppliers_row.rb +12 -1
  541. data/lib/pharmaobservatory/models/target_associations_response.rb +3 -3
  542. data/lib/pharmaobservatory/models/target_crowding_response.rb +3 -3
  543. data/lib/pharmaobservatory/models/target_drugs_response.rb +3 -3
  544. data/lib/pharmaobservatory/models/target_evidence_response.rb +3 -3
  545. data/lib/pharmaobservatory/models/target_investigators_response.rb +478 -0
  546. data/lib/pharmaobservatory/models/target_investigators_row.rb +291 -0
  547. data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +3 -3
  548. data/lib/pharmaobservatory/models/target_programs_response.rb +3 -3
  549. data/lib/pharmaobservatory/models/target_publications_response.rb +3 -3
  550. data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +3 -3
  551. data/lib/pharmaobservatory/models/target_trials_response.rb +3 -3
  552. data/lib/pharmaobservatory/models/targets_record.rb +2 -2
  553. data/lib/pharmaobservatory/models/targets_response.rb +3 -3
  554. data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +3 -3
  555. data/lib/pharmaobservatory/models/trial_changes_response.rb +3 -3
  556. data/lib/pharmaobservatory/models/trial_delivery_response.rb +3 -3
  557. data/lib/pharmaobservatory/models/trial_demographics_response.rb +3 -3
  558. data/lib/pharmaobservatory/models/trial_drug_classes_response.rb +3 -3
  559. data/lib/pharmaobservatory/models/trial_drugs_response.rb +3 -3
  560. data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +3 -3
  561. data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +3 -3
  562. data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +3 -3
  563. data/lib/pharmaobservatory/models/trial_kols_response.rb +3 -3
  564. data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
  565. data/lib/pharmaobservatory/models/trial_research_payments_response.rb +3 -3
  566. data/lib/pharmaobservatory/models/trial_site_history_response.rb +3 -3
  567. data/lib/pharmaobservatory/models/trial_sites_response.rb +3 -3
  568. data/lib/pharmaobservatory/models/trials_record.rb +2 -2
  569. data/lib/pharmaobservatory/models/trials_response.rb +3 -3
  570. data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +3 -3
  571. data/lib/pharmaobservatory/models/untitled_letters_response.rb +3 -3
  572. data/lib/pharmaobservatory/models/warning_letters_response.rb +3 -3
  573. data/lib/pharmaobservatory/version.rb +1 -1
  574. data/lib/pharmaobservatory.rb +93 -3
  575. metadata +188 -8
@@ -19,6 +19,90 @@ module PharmaObservatory
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Animal welfare assurances
23
+ # @param id [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
26
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
27
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
28
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
29
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
30
+ # @return [AnimalWelfareAssurancesResponse]
31
+ def legal_entities_animal_welfare_assurances(id, opts = {})
32
+ data, _status_code, _headers = legal_entities_animal_welfare_assurances_with_http_info(id, opts)
33
+ data
34
+ end
35
+
36
+ # Animal welfare assurances
37
+ # @param id [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
40
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
41
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
42
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
43
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
44
+ # @return [Array<(AnimalWelfareAssurancesResponse, Integer, Hash)>] AnimalWelfareAssurancesResponse data, response status code and response headers
45
+ def legal_entities_animal_welfare_assurances_with_http_info(id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_animal_welfare_assurances ...'
48
+ end
49
+ # verify the required parameter 'id' is set
50
+ if @api_client.config.client_side_validation && id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_animal_welfare_assurances"
52
+ end
53
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
54
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_animal_welfare_assurances, must be smaller than or equal to 500.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_animal_welfare_assurances, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/api/v1/legal_entities/{id}/animal_welfare_assurances'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
67
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
68
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
69
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
70
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
71
+
72
+ # header parameters
73
+ header_params = opts[:header_params] || {}
74
+ # HTTP header 'Accept' (if needed)
75
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
76
+
77
+ # form parameters
78
+ form_params = opts[:form_params] || {}
79
+
80
+ # http body (model)
81
+ post_body = opts[:debug_body]
82
+
83
+ # return_type
84
+ return_type = opts[:debug_return_type] || 'AnimalWelfareAssurancesResponse'
85
+
86
+ # auth_names
87
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
88
+
89
+ new_options = opts.merge(
90
+ :operation => :"LegalEntitiesApi.legal_entities_animal_welfare_assurances",
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => return_type
97
+ )
98
+
99
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_animal_welfare_assurances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ end
103
+ return data, status_code, headers
104
+ end
105
+
22
106
  # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
23
107
  # @param id [String]
24
108
  # @param [Hash] opts the optional parameters
@@ -271,7 +355,7 @@ module PharmaObservatory
271
355
  return data, status_code, headers
272
356
  end
273
357
 
274
- # Company programs
358
+ # Company biomarker capability
275
359
  # @param id [String]
276
360
  # @param [Hash] opts the optional parameters
277
361
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -279,13 +363,13 @@ module PharmaObservatory
279
363
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
280
364
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
281
365
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
282
- # @return [CompanyProgramsResponse]
283
- def legal_entities_company_programs(id, opts = {})
284
- data, _status_code, _headers = legal_entities_company_programs_with_http_info(id, opts)
366
+ # @return [CompanyBiomarkerCapabilityResponse]
367
+ def legal_entities_company_biomarker_capability(id, opts = {})
368
+ data, _status_code, _headers = legal_entities_company_biomarker_capability_with_http_info(id, opts)
285
369
  data
286
370
  end
287
371
 
288
- # Company programs
372
+ # Company biomarker capability
289
373
  # @param id [String]
290
374
  # @param [Hash] opts the optional parameters
291
375
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -293,25 +377,25 @@ module PharmaObservatory
293
377
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
294
378
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
295
379
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
296
- # @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
297
- def legal_entities_company_programs_with_http_info(id, opts = {})
380
+ # @return [Array<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
381
+ def legal_entities_company_biomarker_capability_with_http_info(id, opts = {})
298
382
  if @api_client.config.debugging
299
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_programs ...'
383
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_biomarker_capability ...'
300
384
  end
301
385
  # verify the required parameter 'id' is set
302
386
  if @api_client.config.client_side_validation && id.nil?
303
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_programs"
387
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_biomarker_capability"
304
388
  end
305
389
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
306
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be smaller than or equal to 500.'
390
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_biomarker_capability, must be smaller than or equal to 500.'
307
391
  end
308
392
 
309
393
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
310
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be greater than or equal to 1.'
394
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_biomarker_capability, must be greater than or equal to 1.'
311
395
  end
312
396
 
313
397
  # resource path
314
- local_var_path = '/api/v1/legal_entities/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
398
+ local_var_path = '/api/v1/legal_entities/{id}/company_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
315
399
 
316
400
  # query parameters
317
401
  query_params = opts[:query_params] || {}
@@ -333,13 +417,13 @@ module PharmaObservatory
333
417
  post_body = opts[:debug_body]
334
418
 
335
419
  # return_type
336
- return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
420
+ return_type = opts[:debug_return_type] || 'CompanyBiomarkerCapabilityResponse'
337
421
 
338
422
  # auth_names
339
423
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
340
424
 
341
425
  new_options = opts.merge(
342
- :operation => :"LegalEntitiesApi.legal_entities_company_programs",
426
+ :operation => :"LegalEntitiesApi.legal_entities_company_biomarker_capability",
343
427
  :header_params => header_params,
344
428
  :query_params => query_params,
345
429
  :form_params => form_params,
@@ -350,12 +434,12 @@ module PharmaObservatory
350
434
 
351
435
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
352
436
  if @api_client.config.debugging
353
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
437
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
438
  end
355
439
  return data, status_code, headers
356
440
  end
357
441
 
358
- # FDA firm debarments
442
+ # Company SEC financials
359
443
  # @param id [String]
360
444
  # @param [Hash] opts the optional parameters
361
445
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -363,13 +447,13 @@ module PharmaObservatory
363
447
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
364
448
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
365
449
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
366
- # @return [DebarmentsResponse]
367
- def legal_entities_debarments(id, opts = {})
368
- data, _status_code, _headers = legal_entities_debarments_with_http_info(id, opts)
450
+ # @return [CompanyFinancialsResponse]
451
+ def legal_entities_company_financials(id, opts = {})
452
+ data, _status_code, _headers = legal_entities_company_financials_with_http_info(id, opts)
369
453
  data
370
454
  end
371
455
 
372
- # FDA firm debarments
456
+ # Company SEC financials
373
457
  # @param id [String]
374
458
  # @param [Hash] opts the optional parameters
375
459
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -377,25 +461,25 @@ module PharmaObservatory
377
461
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
378
462
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
379
463
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
380
- # @return [Array<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
381
- def legal_entities_debarments_with_http_info(id, opts = {})
464
+ # @return [Array<(CompanyFinancialsResponse, Integer, Hash)>] CompanyFinancialsResponse data, response status code and response headers
465
+ def legal_entities_company_financials_with_http_info(id, opts = {})
382
466
  if @api_client.config.debugging
383
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_debarments ...'
467
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_financials ...'
384
468
  end
385
469
  # verify the required parameter 'id' is set
386
470
  if @api_client.config.client_side_validation && id.nil?
387
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_debarments"
471
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_financials"
388
472
  end
389
473
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
390
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_debarments, must be smaller than or equal to 500.'
474
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_financials, must be smaller than or equal to 500.'
391
475
  end
392
476
 
393
477
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
394
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_debarments, must be greater than or equal to 1.'
478
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_financials, must be greater than or equal to 1.'
395
479
  end
396
480
 
397
481
  # resource path
398
- local_var_path = '/api/v1/legal_entities/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
482
+ local_var_path = '/api/v1/legal_entities/{id}/company_financials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
399
483
 
400
484
  # query parameters
401
485
  query_params = opts[:query_params] || {}
@@ -417,13 +501,13 @@ module PharmaObservatory
417
501
  post_body = opts[:debug_body]
418
502
 
419
503
  # return_type
420
- return_type = opts[:debug_return_type] || 'DebarmentsResponse'
504
+ return_type = opts[:debug_return_type] || 'CompanyFinancialsResponse'
421
505
 
422
506
  # auth_names
423
507
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
424
508
 
425
509
  new_options = opts.merge(
426
- :operation => :"LegalEntitiesApi.legal_entities_debarments",
510
+ :operation => :"LegalEntitiesApi.legal_entities_company_financials",
427
511
  :header_params => header_params,
428
512
  :query_params => query_params,
429
513
  :form_params => form_params,
@@ -434,12 +518,12 @@ module PharmaObservatory
434
518
 
435
519
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
436
520
  if @api_client.config.debugging
437
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
521
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_financials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
438
522
  end
439
523
  return data, status_code, headers
440
524
  end
441
525
 
442
- # Patent-cliff exposure
526
+ # Company programs
443
527
  # @param id [String]
444
528
  # @param [Hash] opts the optional parameters
445
529
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -447,13 +531,13 @@ module PharmaObservatory
447
531
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
448
532
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
449
533
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
450
- # @return [DrugPatentCliffResponse]
451
- def legal_entities_drug_patent_cliff(id, opts = {})
452
- data, _status_code, _headers = legal_entities_drug_patent_cliff_with_http_info(id, opts)
534
+ # @return [CompanyProgramsResponse]
535
+ def legal_entities_company_programs(id, opts = {})
536
+ data, _status_code, _headers = legal_entities_company_programs_with_http_info(id, opts)
453
537
  data
454
538
  end
455
539
 
456
- # Patent-cliff exposure
540
+ # Company programs
457
541
  # @param id [String]
458
542
  # @param [Hash] opts the optional parameters
459
543
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -461,25 +545,25 @@ module PharmaObservatory
461
545
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
462
546
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
463
547
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
464
- # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
465
- def legal_entities_drug_patent_cliff_with_http_info(id, opts = {})
548
+ # @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
549
+ def legal_entities_company_programs_with_http_info(id, opts = {})
466
550
  if @api_client.config.debugging
467
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
551
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_programs ...'
468
552
  end
469
553
  # verify the required parameter 'id' is set
470
554
  if @api_client.config.client_side_validation && id.nil?
471
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_drug_patent_cliff"
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_programs"
472
556
  end
473
557
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
474
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be smaller than or equal to 500.'
558
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be smaller than or equal to 500.'
475
559
  end
476
560
 
477
561
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
478
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be greater than or equal to 1.'
562
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be greater than or equal to 1.'
479
563
  end
480
564
 
481
565
  # resource path
482
- local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
566
+ local_var_path = '/api/v1/legal_entities/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
483
567
 
484
568
  # query parameters
485
569
  query_params = opts[:query_params] || {}
@@ -501,13 +585,13 @@ module PharmaObservatory
501
585
  post_body = opts[:debug_body]
502
586
 
503
587
  # return_type
504
- return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
588
+ return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
505
589
 
506
590
  # auth_names
507
591
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
508
592
 
509
593
  new_options = opts.merge(
510
- :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
594
+ :operation => :"LegalEntitiesApi.legal_entities_company_programs",
511
595
  :header_params => header_params,
512
596
  :query_params => query_params,
513
597
  :form_params => form_params,
@@ -518,12 +602,12 @@ module PharmaObservatory
518
602
 
519
603
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
520
604
  if @api_client.config.debugging
521
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
605
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
522
606
  end
523
607
  return data, status_code, headers
524
608
  end
525
609
 
526
- # FDA enforcement events
610
+ # Organization-wide rare disease declarations
527
611
  # @param id [String]
528
612
  # @param [Hash] opts the optional parameters
529
613
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -531,13 +615,13 @@ module PharmaObservatory
531
615
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
532
616
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
533
617
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
534
- # @return [EnforcementEventsResponse]
535
- def legal_entities_enforcement_events(id, opts = {})
536
- data, _status_code, _headers = legal_entities_enforcement_events_with_http_info(id, opts)
618
+ # @return [CompanyRareDiseaseDeclarationsResponse]
619
+ def legal_entities_company_rare_disease_declarations(id, opts = {})
620
+ data, _status_code, _headers = legal_entities_company_rare_disease_declarations_with_http_info(id, opts)
537
621
  data
538
622
  end
539
623
 
540
- # FDA enforcement events
624
+ # Organization-wide rare disease declarations
541
625
  # @param id [String]
542
626
  # @param [Hash] opts the optional parameters
543
627
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -545,25 +629,25 @@ module PharmaObservatory
545
629
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
546
630
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
547
631
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
548
- # @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
549
- def legal_entities_enforcement_events_with_http_info(id, opts = {})
632
+ # @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
633
+ def legal_entities_company_rare_disease_declarations_with_http_info(id, opts = {})
550
634
  if @api_client.config.debugging
551
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_enforcement_events ...'
635
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_rare_disease_declarations ...'
552
636
  end
553
637
  # verify the required parameter 'id' is set
554
638
  if @api_client.config.client_side_validation && id.nil?
555
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_enforcement_events"
639
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations"
556
640
  end
557
641
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
558
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be smaller than or equal to 500.'
642
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be smaller than or equal to 500.'
559
643
  end
560
644
 
561
645
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
562
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be greater than or equal to 1.'
646
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be greater than or equal to 1.'
563
647
  end
564
648
 
565
649
  # resource path
566
- local_var_path = '/api/v1/legal_entities/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
650
+ local_var_path = '/api/v1/legal_entities/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
567
651
 
568
652
  # query parameters
569
653
  query_params = opts[:query_params] || {}
@@ -585,13 +669,13 @@ module PharmaObservatory
585
669
  post_body = opts[:debug_body]
586
670
 
587
671
  # return_type
588
- return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
672
+ return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
589
673
 
590
674
  # auth_names
591
675
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
592
676
 
593
677
  new_options = opts.merge(
594
- :operation => :"LegalEntitiesApi.legal_entities_enforcement_events",
678
+ :operation => :"LegalEntitiesApi.legal_entities_company_rare_disease_declarations",
595
679
  :header_params => header_params,
596
680
  :query_params => query_params,
597
681
  :form_params => form_params,
@@ -602,37 +686,60 @@ module PharmaObservatory
602
686
 
603
687
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
604
688
  if @api_client.config.debugging
605
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
689
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
690
  end
607
691
  return data, status_code, headers
608
692
  end
609
693
 
610
- # One legal entity
694
+ # FDA firm debarments
611
695
  # @param id [String]
612
696
  # @param [Hash] opts the optional parameters
613
- # @return [LegalEntitiesRecord]
614
- def legal_entities_get(id, opts = {})
615
- data, _status_code, _headers = legal_entities_get_with_http_info(id, opts)
697
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
698
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
699
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
700
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
701
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
702
+ # @return [DebarmentsResponse]
703
+ def legal_entities_debarments(id, opts = {})
704
+ data, _status_code, _headers = legal_entities_debarments_with_http_info(id, opts)
616
705
  data
617
706
  end
618
707
 
619
- # One legal entity
708
+ # FDA firm debarments
620
709
  # @param id [String]
621
710
  # @param [Hash] opts the optional parameters
622
- # @return [Array<(LegalEntitiesRecord, Integer, Hash)>] LegalEntitiesRecord data, response status code and response headers
623
- def legal_entities_get_with_http_info(id, opts = {})
711
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
712
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
713
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
714
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
715
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
716
+ # @return [Array<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
717
+ def legal_entities_debarments_with_http_info(id, opts = {})
624
718
  if @api_client.config.debugging
625
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
719
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_debarments ...'
626
720
  end
627
721
  # verify the required parameter 'id' is set
628
722
  if @api_client.config.client_side_validation && id.nil?
629
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
723
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_debarments"
724
+ end
725
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
726
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_debarments, must be smaller than or equal to 500.'
727
+ end
728
+
729
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
730
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_debarments, must be greater than or equal to 1.'
630
731
  end
732
+
631
733
  # resource path
632
- local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
734
+ local_var_path = '/api/v1/legal_entities/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
633
735
 
634
736
  # query parameters
635
737
  query_params = opts[:query_params] || {}
738
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
739
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
740
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
741
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
742
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
636
743
 
637
744
  # header parameters
638
745
  header_params = opts[:header_params] || {}
@@ -646,13 +753,13 @@ module PharmaObservatory
646
753
  post_body = opts[:debug_body]
647
754
 
648
755
  # return_type
649
- return_type = opts[:debug_return_type] || 'LegalEntitiesRecord'
756
+ return_type = opts[:debug_return_type] || 'DebarmentsResponse'
650
757
 
651
758
  # auth_names
652
759
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
653
760
 
654
761
  new_options = opts.merge(
655
- :operation => :"LegalEntitiesApi.legal_entities_get",
762
+ :operation => :"LegalEntitiesApi.legal_entities_debarments",
656
763
  :header_params => header_params,
657
764
  :query_params => query_params,
658
765
  :form_params => form_params,
@@ -663,12 +770,12 @@ module PharmaObservatory
663
770
 
664
771
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
665
772
  if @api_client.config.debugging
666
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
667
774
  end
668
775
  return data, status_code, headers
669
776
  end
670
777
 
671
- # GxP facilities and quality signals
778
+ # Patent-cliff exposure
672
779
  # @param id [String]
673
780
  # @param [Hash] opts the optional parameters
674
781
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -676,13 +783,13 @@ module PharmaObservatory
676
783
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
677
784
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
678
785
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
679
- # @return [GxpFacilitiesResponse]
680
- def legal_entities_gxp_facilities(id, opts = {})
681
- data, _status_code, _headers = legal_entities_gxp_facilities_with_http_info(id, opts)
786
+ # @return [DrugPatentCliffResponse]
787
+ def legal_entities_drug_patent_cliff(id, opts = {})
788
+ data, _status_code, _headers = legal_entities_drug_patent_cliff_with_http_info(id, opts)
682
789
  data
683
790
  end
684
791
 
685
- # GxP facilities and quality signals
792
+ # Patent-cliff exposure
686
793
  # @param id [String]
687
794
  # @param [Hash] opts the optional parameters
688
795
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -690,25 +797,25 @@ module PharmaObservatory
690
797
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
691
798
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
692
799
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
693
- # @return [Array<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
694
- def legal_entities_gxp_facilities_with_http_info(id, opts = {})
800
+ # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
801
+ def legal_entities_drug_patent_cliff_with_http_info(id, opts = {})
695
802
  if @api_client.config.debugging
696
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_gxp_facilities ...'
803
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
697
804
  end
698
805
  # verify the required parameter 'id' is set
699
806
  if @api_client.config.client_side_validation && id.nil?
700
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_gxp_facilities"
807
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_drug_patent_cliff"
701
808
  end
702
809
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
703
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_gxp_facilities, must be smaller than or equal to 500.'
810
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be smaller than or equal to 500.'
704
811
  end
705
812
 
706
813
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
707
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_gxp_facilities, must be greater than or equal to 1.'
814
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be greater than or equal to 1.'
708
815
  end
709
816
 
710
817
  # resource path
711
- local_var_path = '/api/v1/legal_entities/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
818
+ local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
712
819
 
713
820
  # query parameters
714
821
  query_params = opts[:query_params] || {}
@@ -730,13 +837,13 @@ module PharmaObservatory
730
837
  post_body = opts[:debug_body]
731
838
 
732
839
  # return_type
733
- return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
840
+ return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
734
841
 
735
842
  # auth_names
736
843
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
737
844
 
738
845
  new_options = opts.merge(
739
- :operation => :"LegalEntitiesApi.legal_entities_gxp_facilities",
846
+ :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
740
847
  :header_params => header_params,
741
848
  :query_params => query_params,
742
849
  :form_params => form_params,
@@ -747,12 +854,12 @@ module PharmaObservatory
747
854
 
748
855
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
749
856
  if @api_client.config.debugging
750
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
857
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
751
858
  end
752
859
  return data, status_code, headers
753
860
  end
754
861
 
755
- # FDA import refusals
862
+ # Regulatory enforcement events
756
863
  # @param id [String]
757
864
  # @param [Hash] opts the optional parameters
758
865
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -760,13 +867,13 @@ module PharmaObservatory
760
867
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
761
868
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
762
869
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
763
- # @return [ImportRefusalsResponse]
764
- def legal_entities_import_refusals(id, opts = {})
765
- data, _status_code, _headers = legal_entities_import_refusals_with_http_info(id, opts)
870
+ # @return [EnforcementEventsResponse]
871
+ def legal_entities_enforcement_events(id, opts = {})
872
+ data, _status_code, _headers = legal_entities_enforcement_events_with_http_info(id, opts)
766
873
  data
767
874
  end
768
875
 
769
- # FDA import refusals
876
+ # Regulatory enforcement events
770
877
  # @param id [String]
771
878
  # @param [Hash] opts the optional parameters
772
879
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -774,25 +881,25 @@ module PharmaObservatory
774
881
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
775
882
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
776
883
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
777
- # @return [Array<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
778
- def legal_entities_import_refusals_with_http_info(id, opts = {})
884
+ # @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
885
+ def legal_entities_enforcement_events_with_http_info(id, opts = {})
779
886
  if @api_client.config.debugging
780
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_import_refusals ...'
887
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_enforcement_events ...'
781
888
  end
782
889
  # verify the required parameter 'id' is set
783
890
  if @api_client.config.client_side_validation && id.nil?
784
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_import_refusals"
891
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_enforcement_events"
785
892
  end
786
893
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
787
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_import_refusals, must be smaller than or equal to 500.'
894
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be smaller than or equal to 500.'
788
895
  end
789
896
 
790
897
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
791
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_import_refusals, must be greater than or equal to 1.'
898
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be greater than or equal to 1.'
792
899
  end
793
900
 
794
901
  # resource path
795
- local_var_path = '/api/v1/legal_entities/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
902
+ local_var_path = '/api/v1/legal_entities/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
796
903
 
797
904
  # query parameters
798
905
  query_params = opts[:query_params] || {}
@@ -814,13 +921,13 @@ module PharmaObservatory
814
921
  post_body = opts[:debug_body]
815
922
 
816
923
  # return_type
817
- return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
924
+ return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
818
925
 
819
926
  # auth_names
820
927
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
821
928
 
822
929
  new_options = opts.merge(
823
- :operation => :"LegalEntitiesApi.legal_entities_import_refusals",
930
+ :operation => :"LegalEntitiesApi.legal_entities_enforcement_events",
824
931
  :header_params => header_params,
825
932
  :query_params => query_params,
826
933
  :form_params => form_params,
@@ -831,19 +938,248 @@ module PharmaObservatory
831
938
 
832
939
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
833
940
  if @api_client.config.debugging
834
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
941
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
835
942
  end
836
943
  return data, status_code, headers
837
944
  end
838
945
 
839
- # FDA inspection findings
946
+ # One legal entity
840
947
  # @param id [String]
841
948
  # @param [Hash] opts the optional parameters
842
- # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
843
- # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
844
- # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
845
- # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
846
- # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
949
+ # @return [LegalEntitiesRecord]
950
+ def legal_entities_get(id, opts = {})
951
+ data, _status_code, _headers = legal_entities_get_with_http_info(id, opts)
952
+ data
953
+ end
954
+
955
+ # One legal entity
956
+ # @param id [String]
957
+ # @param [Hash] opts the optional parameters
958
+ # @return [Array<(LegalEntitiesRecord, Integer, Hash)>] LegalEntitiesRecord data, response status code and response headers
959
+ def legal_entities_get_with_http_info(id, opts = {})
960
+ if @api_client.config.debugging
961
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
962
+ end
963
+ # verify the required parameter 'id' is set
964
+ if @api_client.config.client_side_validation && id.nil?
965
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
966
+ end
967
+ # resource path
968
+ local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
969
+
970
+ # query parameters
971
+ query_params = opts[:query_params] || {}
972
+
973
+ # header parameters
974
+ header_params = opts[:header_params] || {}
975
+ # HTTP header 'Accept' (if needed)
976
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
977
+
978
+ # form parameters
979
+ form_params = opts[:form_params] || {}
980
+
981
+ # http body (model)
982
+ post_body = opts[:debug_body]
983
+
984
+ # return_type
985
+ return_type = opts[:debug_return_type] || 'LegalEntitiesRecord'
986
+
987
+ # auth_names
988
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
989
+
990
+ new_options = opts.merge(
991
+ :operation => :"LegalEntitiesApi.legal_entities_get",
992
+ :header_params => header_params,
993
+ :query_params => query_params,
994
+ :form_params => form_params,
995
+ :body => post_body,
996
+ :auth_names => auth_names,
997
+ :return_type => return_type
998
+ )
999
+
1000
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1001
+ if @api_client.config.debugging
1002
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1003
+ end
1004
+ return data, status_code, headers
1005
+ end
1006
+
1007
+ # GxP facilities and quality signals
1008
+ # @param id [String]
1009
+ # @param [Hash] opts the optional parameters
1010
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1011
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1012
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1013
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1014
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1015
+ # @return [GxpFacilitiesResponse]
1016
+ def legal_entities_gxp_facilities(id, opts = {})
1017
+ data, _status_code, _headers = legal_entities_gxp_facilities_with_http_info(id, opts)
1018
+ data
1019
+ end
1020
+
1021
+ # GxP facilities and quality signals
1022
+ # @param id [String]
1023
+ # @param [Hash] opts the optional parameters
1024
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1025
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1026
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1027
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1028
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1029
+ # @return [Array<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
1030
+ def legal_entities_gxp_facilities_with_http_info(id, opts = {})
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_gxp_facilities ...'
1033
+ end
1034
+ # verify the required parameter 'id' is set
1035
+ if @api_client.config.client_side_validation && id.nil?
1036
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_gxp_facilities"
1037
+ end
1038
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1039
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_gxp_facilities, must be smaller than or equal to 500.'
1040
+ end
1041
+
1042
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1043
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_gxp_facilities, must be greater than or equal to 1.'
1044
+ end
1045
+
1046
+ # resource path
1047
+ local_var_path = '/api/v1/legal_entities/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1048
+
1049
+ # query parameters
1050
+ query_params = opts[:query_params] || {}
1051
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1052
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1053
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1054
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1055
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1056
+
1057
+ # header parameters
1058
+ header_params = opts[:header_params] || {}
1059
+ # HTTP header 'Accept' (if needed)
1060
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1061
+
1062
+ # form parameters
1063
+ form_params = opts[:form_params] || {}
1064
+
1065
+ # http body (model)
1066
+ post_body = opts[:debug_body]
1067
+
1068
+ # return_type
1069
+ return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
1070
+
1071
+ # auth_names
1072
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1073
+
1074
+ new_options = opts.merge(
1075
+ :operation => :"LegalEntitiesApi.legal_entities_gxp_facilities",
1076
+ :header_params => header_params,
1077
+ :query_params => query_params,
1078
+ :form_params => form_params,
1079
+ :body => post_body,
1080
+ :auth_names => auth_names,
1081
+ :return_type => return_type
1082
+ )
1083
+
1084
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ # FDA import refusals
1092
+ # @param id [String]
1093
+ # @param [Hash] opts the optional parameters
1094
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1095
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1096
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1097
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1098
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1099
+ # @return [ImportRefusalsResponse]
1100
+ def legal_entities_import_refusals(id, opts = {})
1101
+ data, _status_code, _headers = legal_entities_import_refusals_with_http_info(id, opts)
1102
+ data
1103
+ end
1104
+
1105
+ # FDA import refusals
1106
+ # @param id [String]
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1109
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1110
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1111
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1112
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1113
+ # @return [Array<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
1114
+ def legal_entities_import_refusals_with_http_info(id, opts = {})
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_import_refusals ...'
1117
+ end
1118
+ # verify the required parameter 'id' is set
1119
+ if @api_client.config.client_side_validation && id.nil?
1120
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_import_refusals"
1121
+ end
1122
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1123
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_import_refusals, must be smaller than or equal to 500.'
1124
+ end
1125
+
1126
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1127
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_import_refusals, must be greater than or equal to 1.'
1128
+ end
1129
+
1130
+ # resource path
1131
+ local_var_path = '/api/v1/legal_entities/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1132
+
1133
+ # query parameters
1134
+ query_params = opts[:query_params] || {}
1135
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1136
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1137
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1138
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1139
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1140
+
1141
+ # header parameters
1142
+ header_params = opts[:header_params] || {}
1143
+ # HTTP header 'Accept' (if needed)
1144
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1145
+
1146
+ # form parameters
1147
+ form_params = opts[:form_params] || {}
1148
+
1149
+ # http body (model)
1150
+ post_body = opts[:debug_body]
1151
+
1152
+ # return_type
1153
+ return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
1154
+
1155
+ # auth_names
1156
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1157
+
1158
+ new_options = opts.merge(
1159
+ :operation => :"LegalEntitiesApi.legal_entities_import_refusals",
1160
+ :header_params => header_params,
1161
+ :query_params => query_params,
1162
+ :form_params => form_params,
1163
+ :body => post_body,
1164
+ :auth_names => auth_names,
1165
+ :return_type => return_type
1166
+ )
1167
+
1168
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1169
+ if @api_client.config.debugging
1170
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
+ end
1172
+ return data, status_code, headers
1173
+ end
1174
+
1175
+ # FDA inspection findings
1176
+ # @param id [String]
1177
+ # @param [Hash] opts the optional parameters
1178
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1179
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1180
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1181
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1182
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
847
1183
  # @return [InspectionFindingsResponse]
848
1184
  def legal_entities_inspection_findings(id, opts = {})
849
1185
  data, _status_code, _headers = legal_entities_inspection_findings_with_http_info(id, opts)
@@ -1018,7 +1354,841 @@ module PharmaObservatory
1018
1354
  data
1019
1355
  end
1020
1356
 
1021
- # Institutional holdings (SEC Form 13F)
1357
+ # Institutional holdings (SEC Form 13F)
1358
+ # @param id [String]
1359
+ # @param [Hash] opts the optional parameters
1360
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1361
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1362
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1363
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1364
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1365
+ # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1366
+ def legal_entities_institutional_holdings_with_http_info(id, opts = {})
1367
+ if @api_client.config.debugging
1368
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
1369
+ end
1370
+ # verify the required parameter 'id' is set
1371
+ if @api_client.config.client_side_validation && id.nil?
1372
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_holdings"
1373
+ end
1374
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1375
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be smaller than or equal to 500.'
1376
+ end
1377
+
1378
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1379
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be greater than or equal to 1.'
1380
+ end
1381
+
1382
+ # resource path
1383
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1384
+
1385
+ # query parameters
1386
+ query_params = opts[:query_params] || {}
1387
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1388
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1389
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1390
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1391
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1392
+
1393
+ # header parameters
1394
+ header_params = opts[:header_params] || {}
1395
+ # HTTP header 'Accept' (if needed)
1396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1397
+
1398
+ # form parameters
1399
+ form_params = opts[:form_params] || {}
1400
+
1401
+ # http body (model)
1402
+ post_body = opts[:debug_body]
1403
+
1404
+ # return_type
1405
+ return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
1406
+
1407
+ # auth_names
1408
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1409
+
1410
+ new_options = opts.merge(
1411
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
1412
+ :header_params => header_params,
1413
+ :query_params => query_params,
1414
+ :form_params => form_params,
1415
+ :body => post_body,
1416
+ :auth_names => auth_names,
1417
+ :return_type => return_type
1418
+ )
1419
+
1420
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1421
+ if @api_client.config.debugging
1422
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1423
+ end
1424
+ return data, status_code, headers
1425
+ end
1426
+
1427
+ # Institutional quarter totals (SEC Form 13F)
1428
+ # @param id [String]
1429
+ # @param [Hash] opts the optional parameters
1430
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1431
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1432
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1433
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1434
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1435
+ # @return [InstitutionalQuarterTotalsResponse]
1436
+ def legal_entities_institutional_quarter_totals(id, opts = {})
1437
+ data, _status_code, _headers = legal_entities_institutional_quarter_totals_with_http_info(id, opts)
1438
+ data
1439
+ end
1440
+
1441
+ # Institutional quarter totals (SEC Form 13F)
1442
+ # @param id [String]
1443
+ # @param [Hash] opts the optional parameters
1444
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1445
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1446
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1447
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1448
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1449
+ # @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
1450
+ def legal_entities_institutional_quarter_totals_with_http_info(id, opts = {})
1451
+ if @api_client.config.debugging
1452
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_quarter_totals ...'
1453
+ end
1454
+ # verify the required parameter 'id' is set
1455
+ if @api_client.config.client_side_validation && id.nil?
1456
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals"
1457
+ end
1458
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1459
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be smaller than or equal to 500.'
1460
+ end
1461
+
1462
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1463
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be greater than or equal to 1.'
1464
+ end
1465
+
1466
+ # resource path
1467
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1468
+
1469
+ # query parameters
1470
+ query_params = opts[:query_params] || {}
1471
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1472
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1473
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1474
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1475
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1476
+
1477
+ # header parameters
1478
+ header_params = opts[:header_params] || {}
1479
+ # HTTP header 'Accept' (if needed)
1480
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1481
+
1482
+ # form parameters
1483
+ form_params = opts[:form_params] || {}
1484
+
1485
+ # http body (model)
1486
+ post_body = opts[:debug_body]
1487
+
1488
+ # return_type
1489
+ return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
1490
+
1491
+ # auth_names
1492
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1493
+
1494
+ new_options = opts.merge(
1495
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_quarter_totals",
1496
+ :header_params => header_params,
1497
+ :query_params => query_params,
1498
+ :form_params => form_params,
1499
+ :body => post_body,
1500
+ :auth_names => auth_names,
1501
+ :return_type => return_type
1502
+ )
1503
+
1504
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1505
+ if @api_client.config.debugging
1506
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1507
+ end
1508
+ return data, status_code, headers
1509
+ end
1510
+
1511
+ # SEC filer records
1512
+ # @param id [String]
1513
+ # @param [Hash] opts the optional parameters
1514
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1515
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1516
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1517
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1518
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1519
+ # @return [LegalEntitySecFilingsResponse]
1520
+ def legal_entities_legal_entity_sec_filings(id, opts = {})
1521
+ data, _status_code, _headers = legal_entities_legal_entity_sec_filings_with_http_info(id, opts)
1522
+ data
1523
+ end
1524
+
1525
+ # SEC filer records
1526
+ # @param id [String]
1527
+ # @param [Hash] opts the optional parameters
1528
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1529
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1530
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1531
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1532
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1533
+ # @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
1534
+ def legal_entities_legal_entity_sec_filings_with_http_info(id, opts = {})
1535
+ if @api_client.config.debugging
1536
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_legal_entity_sec_filings ...'
1537
+ end
1538
+ # verify the required parameter 'id' is set
1539
+ if @api_client.config.client_side_validation && id.nil?
1540
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings"
1541
+ end
1542
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1543
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be smaller than or equal to 500.'
1544
+ end
1545
+
1546
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1547
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be greater than or equal to 1.'
1548
+ end
1549
+
1550
+ # resource path
1551
+ local_var_path = '/api/v1/legal_entities/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1552
+
1553
+ # query parameters
1554
+ query_params = opts[:query_params] || {}
1555
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1556
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1557
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1558
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1559
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1560
+
1561
+ # header parameters
1562
+ header_params = opts[:header_params] || {}
1563
+ # HTTP header 'Accept' (if needed)
1564
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1565
+
1566
+ # form parameters
1567
+ form_params = opts[:form_params] || {}
1568
+
1569
+ # http body (model)
1570
+ post_body = opts[:debug_body]
1571
+
1572
+ # return_type
1573
+ return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
1574
+
1575
+ # auth_names
1576
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1577
+
1578
+ new_options = opts.merge(
1579
+ :operation => :"LegalEntitiesApi.legal_entities_legal_entity_sec_filings",
1580
+ :header_params => header_params,
1581
+ :query_params => query_params,
1582
+ :form_params => form_params,
1583
+ :body => post_body,
1584
+ :auth_names => auth_names,
1585
+ :return_type => return_type
1586
+ )
1587
+
1588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1589
+ if @api_client.config.debugging
1590
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
+ end
1592
+ return data, status_code, headers
1593
+ end
1594
+
1595
+ # List legal entities
1596
+ # @param [Hash] opts the optional parameters
1597
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1598
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1599
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1600
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1601
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1602
+ # @return [LegalEntitiesResponse]
1603
+ def legal_entities_list(opts = {})
1604
+ data, _status_code, _headers = legal_entities_list_with_http_info(opts)
1605
+ data
1606
+ end
1607
+
1608
+ # List legal entities
1609
+ # @param [Hash] opts the optional parameters
1610
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1611
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1612
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1613
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1614
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1615
+ # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
1616
+ def legal_entities_list_with_http_info(opts = {})
1617
+ if @api_client.config.debugging
1618
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
1619
+ end
1620
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1621
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be smaller than or equal to 500.'
1622
+ end
1623
+
1624
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1625
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be greater than or equal to 1.'
1626
+ end
1627
+
1628
+ # resource path
1629
+ local_var_path = '/api/v1/legal_entities'
1630
+
1631
+ # query parameters
1632
+ query_params = opts[:query_params] || {}
1633
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1634
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1635
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1636
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1637
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1638
+
1639
+ # header parameters
1640
+ header_params = opts[:header_params] || {}
1641
+ # HTTP header 'Accept' (if needed)
1642
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1643
+
1644
+ # form parameters
1645
+ form_params = opts[:form_params] || {}
1646
+
1647
+ # http body (model)
1648
+ post_body = opts[:debug_body]
1649
+
1650
+ # return_type
1651
+ return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
1652
+
1653
+ # auth_names
1654
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1655
+
1656
+ new_options = opts.merge(
1657
+ :operation => :"LegalEntitiesApi.legal_entities_list",
1658
+ :header_params => header_params,
1659
+ :query_params => query_params,
1660
+ :form_params => form_params,
1661
+ :body => post_body,
1662
+ :auth_names => auth_names,
1663
+ :return_type => return_type
1664
+ )
1665
+
1666
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1667
+ if @api_client.config.debugging
1668
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1669
+ end
1670
+ return data, status_code, headers
1671
+ end
1672
+
1673
+ # Organization disclosure trend
1674
+ # @param id [String]
1675
+ # @param [Hash] opts the optional parameters
1676
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1677
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1678
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1679
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1680
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1681
+ # @return [OrgDisclosureTrendResponse]
1682
+ def legal_entities_org_disclosure_trend(id, opts = {})
1683
+ data, _status_code, _headers = legal_entities_org_disclosure_trend_with_http_info(id, opts)
1684
+ data
1685
+ end
1686
+
1687
+ # Organization disclosure trend
1688
+ # @param id [String]
1689
+ # @param [Hash] opts the optional parameters
1690
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1691
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1692
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1693
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1694
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1695
+ # @return [Array<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
1696
+ def legal_entities_org_disclosure_trend_with_http_info(id, opts = {})
1697
+ if @api_client.config.debugging
1698
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosure_trend ...'
1699
+ end
1700
+ # verify the required parameter 'id' is set
1701
+ if @api_client.config.client_side_validation && id.nil?
1702
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosure_trend"
1703
+ end
1704
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1705
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosure_trend, must be smaller than or equal to 500.'
1706
+ end
1707
+
1708
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1709
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosure_trend, must be greater than or equal to 1.'
1710
+ end
1711
+
1712
+ # resource path
1713
+ local_var_path = '/api/v1/legal_entities/{id}/org_disclosure_trend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1714
+
1715
+ # query parameters
1716
+ query_params = opts[:query_params] || {}
1717
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1718
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1719
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1720
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1721
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1722
+
1723
+ # header parameters
1724
+ header_params = opts[:header_params] || {}
1725
+ # HTTP header 'Accept' (if needed)
1726
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1727
+
1728
+ # form parameters
1729
+ form_params = opts[:form_params] || {}
1730
+
1731
+ # http body (model)
1732
+ post_body = opts[:debug_body]
1733
+
1734
+ # return_type
1735
+ return_type = opts[:debug_return_type] || 'OrgDisclosureTrendResponse'
1736
+
1737
+ # auth_names
1738
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1739
+
1740
+ new_options = opts.merge(
1741
+ :operation => :"LegalEntitiesApi.legal_entities_org_disclosure_trend",
1742
+ :header_params => header_params,
1743
+ :query_params => query_params,
1744
+ :form_params => form_params,
1745
+ :body => post_body,
1746
+ :auth_names => auth_names,
1747
+ :return_type => return_type
1748
+ )
1749
+
1750
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1751
+ if @api_client.config.debugging
1752
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1753
+ end
1754
+ return data, status_code, headers
1755
+ end
1756
+
1757
+ # Organization disclosures (climate and diversity)
1758
+ # @param id [String]
1759
+ # @param [Hash] opts the optional parameters
1760
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1761
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1762
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1763
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1764
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1765
+ # @return [OrgDisclosuresResponse]
1766
+ def legal_entities_org_disclosures(id, opts = {})
1767
+ data, _status_code, _headers = legal_entities_org_disclosures_with_http_info(id, opts)
1768
+ data
1769
+ end
1770
+
1771
+ # Organization disclosures (climate and diversity)
1772
+ # @param id [String]
1773
+ # @param [Hash] opts the optional parameters
1774
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1775
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1776
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1777
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1778
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1779
+ # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
1780
+ def legal_entities_org_disclosures_with_http_info(id, opts = {})
1781
+ if @api_client.config.debugging
1782
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
1783
+ end
1784
+ # verify the required parameter 'id' is set
1785
+ if @api_client.config.client_side_validation && id.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
1787
+ end
1788
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1789
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be smaller than or equal to 500.'
1790
+ end
1791
+
1792
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1793
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be greater than or equal to 1.'
1794
+ end
1795
+
1796
+ # resource path
1797
+ local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1798
+
1799
+ # query parameters
1800
+ query_params = opts[:query_params] || {}
1801
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1802
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1803
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1804
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1805
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1806
+
1807
+ # header parameters
1808
+ header_params = opts[:header_params] || {}
1809
+ # HTTP header 'Accept' (if needed)
1810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1811
+
1812
+ # form parameters
1813
+ form_params = opts[:form_params] || {}
1814
+
1815
+ # http body (model)
1816
+ post_body = opts[:debug_body]
1817
+
1818
+ # return_type
1819
+ return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
1820
+
1821
+ # auth_names
1822
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1823
+
1824
+ new_options = opts.merge(
1825
+ :operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
1826
+ :header_params => header_params,
1827
+ :query_params => query_params,
1828
+ :form_params => form_params,
1829
+ :body => post_body,
1830
+ :auth_names => auth_names,
1831
+ :return_type => return_type
1832
+ )
1833
+
1834
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1835
+ if @api_client.config.debugging
1836
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1837
+ end
1838
+ return data, status_code, headers
1839
+ end
1840
+
1841
+ # Organization relationships
1842
+ # @param id [String]
1843
+ # @param [Hash] opts the optional parameters
1844
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1845
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1846
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1847
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1848
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1849
+ # @return [OrgRelationshipsResponse]
1850
+ def legal_entities_org_relationships(id, opts = {})
1851
+ data, _status_code, _headers = legal_entities_org_relationships_with_http_info(id, opts)
1852
+ data
1853
+ end
1854
+
1855
+ # Organization relationships
1856
+ # @param id [String]
1857
+ # @param [Hash] opts the optional parameters
1858
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1859
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1860
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1861
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1862
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1863
+ # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
1864
+ def legal_entities_org_relationships_with_http_info(id, opts = {})
1865
+ if @api_client.config.debugging
1866
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
1867
+ end
1868
+ # verify the required parameter 'id' is set
1869
+ if @api_client.config.client_side_validation && id.nil?
1870
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
1871
+ end
1872
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1873
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be smaller than or equal to 500.'
1874
+ end
1875
+
1876
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1877
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be greater than or equal to 1.'
1878
+ end
1879
+
1880
+ # resource path
1881
+ local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1882
+
1883
+ # query parameters
1884
+ query_params = opts[:query_params] || {}
1885
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1886
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1887
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1888
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1889
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1890
+
1891
+ # header parameters
1892
+ header_params = opts[:header_params] || {}
1893
+ # HTTP header 'Accept' (if needed)
1894
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1895
+
1896
+ # form parameters
1897
+ form_params = opts[:form_params] || {}
1898
+
1899
+ # http body (model)
1900
+ post_body = opts[:debug_body]
1901
+
1902
+ # return_type
1903
+ return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
1904
+
1905
+ # auth_names
1906
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1907
+
1908
+ new_options = opts.merge(
1909
+ :operation => :"LegalEntitiesApi.legal_entities_org_relationships",
1910
+ :header_params => header_params,
1911
+ :query_params => query_params,
1912
+ :form_params => form_params,
1913
+ :body => post_body,
1914
+ :auth_names => auth_names,
1915
+ :return_type => return_type
1916
+ )
1917
+
1918
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1919
+ if @api_client.config.debugging
1920
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1921
+ end
1922
+ return data, status_code, headers
1923
+ end
1924
+
1925
+ # Ownership and control observations (history)
1926
+ # @param id [String]
1927
+ # @param [Hash] opts the optional parameters
1928
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1929
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1930
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1931
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1932
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1933
+ # @return [OwnershipObservationsResponse]
1934
+ def legal_entities_ownership_observations(id, opts = {})
1935
+ data, _status_code, _headers = legal_entities_ownership_observations_with_http_info(id, opts)
1936
+ data
1937
+ end
1938
+
1939
+ # Ownership and control observations (history)
1940
+ # @param id [String]
1941
+ # @param [Hash] opts the optional parameters
1942
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1943
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1944
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1945
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1946
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1947
+ # @return [Array<(OwnershipObservationsResponse, Integer, Hash)>] OwnershipObservationsResponse data, response status code and response headers
1948
+ def legal_entities_ownership_observations_with_http_info(id, opts = {})
1949
+ if @api_client.config.debugging
1950
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_observations ...'
1951
+ end
1952
+ # verify the required parameter 'id' is set
1953
+ if @api_client.config.client_side_validation && id.nil?
1954
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_observations"
1955
+ end
1956
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1957
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_observations, must be smaller than or equal to 500.'
1958
+ end
1959
+
1960
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1961
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_observations, must be greater than or equal to 1.'
1962
+ end
1963
+
1964
+ # resource path
1965
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_observations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1966
+
1967
+ # query parameters
1968
+ query_params = opts[:query_params] || {}
1969
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1970
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1971
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1972
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1973
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1974
+
1975
+ # header parameters
1976
+ header_params = opts[:header_params] || {}
1977
+ # HTTP header 'Accept' (if needed)
1978
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1979
+
1980
+ # form parameters
1981
+ form_params = opts[:form_params] || {}
1982
+
1983
+ # http body (model)
1984
+ post_body = opts[:debug_body]
1985
+
1986
+ # return_type
1987
+ return_type = opts[:debug_return_type] || 'OwnershipObservationsResponse'
1988
+
1989
+ # auth_names
1990
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1991
+
1992
+ new_options = opts.merge(
1993
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_observations",
1994
+ :header_params => header_params,
1995
+ :query_params => query_params,
1996
+ :form_params => form_params,
1997
+ :body => post_body,
1998
+ :auth_names => auth_names,
1999
+ :return_type => return_type
2000
+ )
2001
+
2002
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2003
+ if @api_client.config.debugging
2004
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_observations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2005
+ end
2006
+ return data, status_code, headers
2007
+ end
2008
+
2009
+ # Ownership percentages
2010
+ # @param id [String]
2011
+ # @param [Hash] opts the optional parameters
2012
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2013
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2014
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2015
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2016
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2017
+ # @return [OwnershipPercentagesResponse]
2018
+ def legal_entities_ownership_percentages(id, opts = {})
2019
+ data, _status_code, _headers = legal_entities_ownership_percentages_with_http_info(id, opts)
2020
+ data
2021
+ end
2022
+
2023
+ # Ownership percentages
2024
+ # @param id [String]
2025
+ # @param [Hash] opts the optional parameters
2026
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2027
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2028
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2029
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2030
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2031
+ # @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
2032
+ def legal_entities_ownership_percentages_with_http_info(id, opts = {})
2033
+ if @api_client.config.debugging
2034
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_percentages ...'
2035
+ end
2036
+ # verify the required parameter 'id' is set
2037
+ if @api_client.config.client_side_validation && id.nil?
2038
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_percentages"
2039
+ end
2040
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2041
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be smaller than or equal to 500.'
2042
+ end
2043
+
2044
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2045
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be greater than or equal to 1.'
2046
+ end
2047
+
2048
+ # resource path
2049
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2050
+
2051
+ # query parameters
2052
+ query_params = opts[:query_params] || {}
2053
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2054
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2055
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2056
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2057
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2058
+
2059
+ # header parameters
2060
+ header_params = opts[:header_params] || {}
2061
+ # HTTP header 'Accept' (if needed)
2062
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2063
+
2064
+ # form parameters
2065
+ form_params = opts[:form_params] || {}
2066
+
2067
+ # http body (model)
2068
+ post_body = opts[:debug_body]
2069
+
2070
+ # return_type
2071
+ return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
2072
+
2073
+ # auth_names
2074
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2075
+
2076
+ new_options = opts.merge(
2077
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_percentages",
2078
+ :header_params => header_params,
2079
+ :query_params => query_params,
2080
+ :form_params => form_params,
2081
+ :body => post_body,
2082
+ :auth_names => auth_names,
2083
+ :return_type => return_type
2084
+ )
2085
+
2086
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2087
+ if @api_client.config.debugging
2088
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2089
+ end
2090
+ return data, status_code, headers
2091
+ end
2092
+
2093
+ # Ownership and control positions
2094
+ # @param id [String]
2095
+ # @param [Hash] opts the optional parameters
2096
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2097
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2098
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2099
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2100
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2101
+ # @return [OwnershipPositionsResponse]
2102
+ def legal_entities_ownership_positions(id, opts = {})
2103
+ data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
2104
+ data
2105
+ end
2106
+
2107
+ # Ownership and control positions
2108
+ # @param id [String]
2109
+ # @param [Hash] opts the optional parameters
2110
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2111
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2112
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2113
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2114
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2115
+ # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
2116
+ def legal_entities_ownership_positions_with_http_info(id, opts = {})
2117
+ if @api_client.config.debugging
2118
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
2119
+ end
2120
+ # verify the required parameter 'id' is set
2121
+ if @api_client.config.client_side_validation && id.nil?
2122
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
2123
+ end
2124
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2125
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be smaller than or equal to 500.'
2126
+ end
2127
+
2128
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2129
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be greater than or equal to 1.'
2130
+ end
2131
+
2132
+ # resource path
2133
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2134
+
2135
+ # query parameters
2136
+ query_params = opts[:query_params] || {}
2137
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2138
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2139
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2140
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2141
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2142
+
2143
+ # header parameters
2144
+ header_params = opts[:header_params] || {}
2145
+ # HTTP header 'Accept' (if needed)
2146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2147
+
2148
+ # form parameters
2149
+ form_params = opts[:form_params] || {}
2150
+
2151
+ # http body (model)
2152
+ post_body = opts[:debug_body]
2153
+
2154
+ # return_type
2155
+ return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
2156
+
2157
+ # auth_names
2158
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2159
+
2160
+ new_options = opts.merge(
2161
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
2162
+ :header_params => header_params,
2163
+ :query_params => query_params,
2164
+ :form_params => form_params,
2165
+ :body => post_body,
2166
+ :auth_names => auth_names,
2167
+ :return_type => return_type
2168
+ )
2169
+
2170
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2171
+ if @api_client.config.debugging
2172
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2173
+ end
2174
+ return data, status_code, headers
2175
+ end
2176
+
2177
+ # Ownership source coverage
2178
+ # @param id [String]
2179
+ # @param [Hash] opts the optional parameters
2180
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2181
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2182
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2183
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2184
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2185
+ # @return [OwnershipSourceCoverageResponse]
2186
+ def legal_entities_ownership_source_coverage(id, opts = {})
2187
+ data, _status_code, _headers = legal_entities_ownership_source_coverage_with_http_info(id, opts)
2188
+ data
2189
+ end
2190
+
2191
+ # Ownership source coverage
1022
2192
  # @param id [String]
1023
2193
  # @param [Hash] opts the optional parameters
1024
2194
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1026,25 +2196,25 @@ module PharmaObservatory
1026
2196
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1027
2197
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1028
2198
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1029
- # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1030
- def legal_entities_institutional_holdings_with_http_info(id, opts = {})
2199
+ # @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
2200
+ def legal_entities_ownership_source_coverage_with_http_info(id, opts = {})
1031
2201
  if @api_client.config.debugging
1032
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
2202
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_source_coverage ...'
1033
2203
  end
1034
2204
  # verify the required parameter 'id' is set
1035
2205
  if @api_client.config.client_side_validation && id.nil?
1036
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_holdings"
2206
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_source_coverage"
1037
2207
  end
1038
2208
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1039
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be smaller than or equal to 500.'
2209
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be smaller than or equal to 500.'
1040
2210
  end
1041
2211
 
1042
2212
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1043
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be greater than or equal to 1.'
2213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be greater than or equal to 1.'
1044
2214
  end
1045
2215
 
1046
2216
  # resource path
1047
- local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2217
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1048
2218
 
1049
2219
  # query parameters
1050
2220
  query_params = opts[:query_params] || {}
@@ -1066,13 +2236,13 @@ module PharmaObservatory
1066
2236
  post_body = opts[:debug_body]
1067
2237
 
1068
2238
  # return_type
1069
- return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
2239
+ return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
1070
2240
 
1071
2241
  # auth_names
1072
2242
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1073
2243
 
1074
2244
  new_options = opts.merge(
1075
- :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
2245
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_source_coverage",
1076
2246
  :header_params => header_params,
1077
2247
  :query_params => query_params,
1078
2248
  :form_params => form_params,
@@ -1083,12 +2253,12 @@ module PharmaObservatory
1083
2253
 
1084
2254
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1085
2255
  if @api_client.config.debugging
1086
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
2257
  end
1088
2258
  return data, status_code, headers
1089
2259
  end
1090
2260
 
1091
- # Institutional quarter totals (SEC Form 13F)
2261
+ # FDA decision dates (PDUFA) and catalysts
1092
2262
  # @param id [String]
1093
2263
  # @param [Hash] opts the optional parameters
1094
2264
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1096,13 +2266,13 @@ module PharmaObservatory
1096
2266
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1097
2267
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1098
2268
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1099
- # @return [InstitutionalQuarterTotalsResponse]
1100
- def legal_entities_institutional_quarter_totals(id, opts = {})
1101
- data, _status_code, _headers = legal_entities_institutional_quarter_totals_with_http_info(id, opts)
2269
+ # @return [PdufaDatesResponse]
2270
+ def legal_entities_pdufa_dates(id, opts = {})
2271
+ data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
1102
2272
  data
1103
2273
  end
1104
2274
 
1105
- # Institutional quarter totals (SEC Form 13F)
2275
+ # FDA decision dates (PDUFA) and catalysts
1106
2276
  # @param id [String]
1107
2277
  # @param [Hash] opts the optional parameters
1108
2278
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1110,25 +2280,25 @@ module PharmaObservatory
1110
2280
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1111
2281
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1112
2282
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1113
- # @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
1114
- def legal_entities_institutional_quarter_totals_with_http_info(id, opts = {})
2283
+ # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
2284
+ def legal_entities_pdufa_dates_with_http_info(id, opts = {})
1115
2285
  if @api_client.config.debugging
1116
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_quarter_totals ...'
2286
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
1117
2287
  end
1118
2288
  # verify the required parameter 'id' is set
1119
2289
  if @api_client.config.client_side_validation && id.nil?
1120
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals"
2290
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
1121
2291
  end
1122
2292
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1123
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be smaller than or equal to 500.'
2293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
1124
2294
  end
1125
2295
 
1126
2296
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1127
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be greater than or equal to 1.'
2297
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
1128
2298
  end
1129
2299
 
1130
2300
  # resource path
1131
- local_var_path = '/api/v1/legal_entities/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2301
+ local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1132
2302
 
1133
2303
  # query parameters
1134
2304
  query_params = opts[:query_params] || {}
@@ -1150,13 +2320,13 @@ module PharmaObservatory
1150
2320
  post_body = opts[:debug_body]
1151
2321
 
1152
2322
  # return_type
1153
- return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
2323
+ return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
1154
2324
 
1155
2325
  # auth_names
1156
2326
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1157
2327
 
1158
2328
  new_options = opts.merge(
1159
- :operation => :"LegalEntitiesApi.legal_entities_institutional_quarter_totals",
2329
+ :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
1160
2330
  :header_params => header_params,
1161
2331
  :query_params => query_params,
1162
2332
  :form_params => form_params,
@@ -1167,46 +2337,52 @@ module PharmaObservatory
1167
2337
 
1168
2338
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1169
2339
  if @api_client.config.debugging
1170
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2340
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
2341
  end
1172
2342
  return data, status_code, headers
1173
2343
  end
1174
2344
 
1175
- # List legal entities
2345
+ # Program licensing candidates
2346
+ # @param id [String]
1176
2347
  # @param [Hash] opts the optional parameters
1177
2348
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1178
2349
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1179
2350
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1180
2351
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1181
2352
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1182
- # @return [LegalEntitiesResponse]
1183
- def legal_entities_list(opts = {})
1184
- data, _status_code, _headers = legal_entities_list_with_http_info(opts)
2353
+ # @return [ProgramLicensingCandidatesResponse]
2354
+ def legal_entities_program_licensing_candidates(id, opts = {})
2355
+ data, _status_code, _headers = legal_entities_program_licensing_candidates_with_http_info(id, opts)
1185
2356
  data
1186
2357
  end
1187
2358
 
1188
- # List legal entities
2359
+ # Program licensing candidates
2360
+ # @param id [String]
1189
2361
  # @param [Hash] opts the optional parameters
1190
2362
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1191
2363
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1192
2364
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1193
2365
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1194
2366
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1195
- # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
1196
- def legal_entities_list_with_http_info(opts = {})
2367
+ # @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
2368
+ def legal_entities_program_licensing_candidates_with_http_info(id, opts = {})
1197
2369
  if @api_client.config.debugging
1198
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
2370
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_program_licensing_candidates ...'
2371
+ end
2372
+ # verify the required parameter 'id' is set
2373
+ if @api_client.config.client_side_validation && id.nil?
2374
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_program_licensing_candidates"
1199
2375
  end
1200
2376
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1201
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be smaller than or equal to 500.'
2377
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be smaller than or equal to 500.'
1202
2378
  end
1203
2379
 
1204
2380
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1205
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be greater than or equal to 1.'
2381
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be greater than or equal to 1.'
1206
2382
  end
1207
2383
 
1208
2384
  # resource path
1209
- local_var_path = '/api/v1/legal_entities'
2385
+ local_var_path = '/api/v1/legal_entities/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1210
2386
 
1211
2387
  # query parameters
1212
2388
  query_params = opts[:query_params] || {}
@@ -1228,13 +2404,13 @@ module PharmaObservatory
1228
2404
  post_body = opts[:debug_body]
1229
2405
 
1230
2406
  # return_type
1231
- return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
2407
+ return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
1232
2408
 
1233
2409
  # auth_names
1234
2410
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1235
2411
 
1236
2412
  new_options = opts.merge(
1237
- :operation => :"LegalEntitiesApi.legal_entities_list",
2413
+ :operation => :"LegalEntitiesApi.legal_entities_program_licensing_candidates",
1238
2414
  :header_params => header_params,
1239
2415
  :query_params => query_params,
1240
2416
  :form_params => form_params,
@@ -1245,12 +2421,12 @@ module PharmaObservatory
1245
2421
 
1246
2422
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1247
2423
  if @api_client.config.debugging
1248
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2424
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1249
2425
  end
1250
2426
  return data, status_code, headers
1251
2427
  end
1252
2428
 
1253
- # Organization disclosures (climate and diversity)
2429
+ # FDA recalls
1254
2430
  # @param id [String]
1255
2431
  # @param [Hash] opts the optional parameters
1256
2432
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1258,13 +2434,13 @@ module PharmaObservatory
1258
2434
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1259
2435
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1260
2436
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1261
- # @return [OrgDisclosuresResponse]
1262
- def legal_entities_org_disclosures(id, opts = {})
1263
- data, _status_code, _headers = legal_entities_org_disclosures_with_http_info(id, opts)
2437
+ # @return [RecallsResponse]
2438
+ def legal_entities_recalls(id, opts = {})
2439
+ data, _status_code, _headers = legal_entities_recalls_with_http_info(id, opts)
1264
2440
  data
1265
2441
  end
1266
2442
 
1267
- # Organization disclosures (climate and diversity)
2443
+ # FDA recalls
1268
2444
  # @param id [String]
1269
2445
  # @param [Hash] opts the optional parameters
1270
2446
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1272,25 +2448,25 @@ module PharmaObservatory
1272
2448
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1273
2449
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1274
2450
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1275
- # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
1276
- def legal_entities_org_disclosures_with_http_info(id, opts = {})
2451
+ # @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
2452
+ def legal_entities_recalls_with_http_info(id, opts = {})
1277
2453
  if @api_client.config.debugging
1278
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
2454
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_recalls ...'
1279
2455
  end
1280
2456
  # verify the required parameter 'id' is set
1281
2457
  if @api_client.config.client_side_validation && id.nil?
1282
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
2458
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_recalls"
1283
2459
  end
1284
2460
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1285
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be smaller than or equal to 500.'
2461
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be smaller than or equal to 500.'
1286
2462
  end
1287
2463
 
1288
2464
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1289
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be greater than or equal to 1.'
2465
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be greater than or equal to 1.'
1290
2466
  end
1291
2467
 
1292
2468
  # resource path
1293
- local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2469
+ local_var_path = '/api/v1/legal_entities/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1294
2470
 
1295
2471
  # query parameters
1296
2472
  query_params = opts[:query_params] || {}
@@ -1312,13 +2488,13 @@ module PharmaObservatory
1312
2488
  post_body = opts[:debug_body]
1313
2489
 
1314
2490
  # return_type
1315
- return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
2491
+ return_type = opts[:debug_return_type] || 'RecallsResponse'
1316
2492
 
1317
2493
  # auth_names
1318
2494
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1319
2495
 
1320
2496
  new_options = opts.merge(
1321
- :operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
2497
+ :operation => :"LegalEntitiesApi.legal_entities_recalls",
1322
2498
  :header_params => header_params,
1323
2499
  :query_params => query_params,
1324
2500
  :form_params => form_params,
@@ -1329,12 +2505,12 @@ module PharmaObservatory
1329
2505
 
1330
2506
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1331
2507
  if @api_client.config.debugging
1332
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2508
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1333
2509
  end
1334
2510
  return data, status_code, headers
1335
2511
  end
1336
2512
 
1337
- # Organization relationships
2513
+ # SBTi cross-check
1338
2514
  # @param id [String]
1339
2515
  # @param [Hash] opts the optional parameters
1340
2516
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1342,13 +2518,13 @@ module PharmaObservatory
1342
2518
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1343
2519
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1344
2520
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1345
- # @return [OrgRelationshipsResponse]
1346
- def legal_entities_org_relationships(id, opts = {})
1347
- data, _status_code, _headers = legal_entities_org_relationships_with_http_info(id, opts)
2521
+ # @return [SbtiCrosscheckResponse]
2522
+ def legal_entities_sbti_crosscheck(id, opts = {})
2523
+ data, _status_code, _headers = legal_entities_sbti_crosscheck_with_http_info(id, opts)
1348
2524
  data
1349
2525
  end
1350
2526
 
1351
- # Organization relationships
2527
+ # SBTi cross-check
1352
2528
  # @param id [String]
1353
2529
  # @param [Hash] opts the optional parameters
1354
2530
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1356,25 +2532,25 @@ module PharmaObservatory
1356
2532
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1357
2533
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1358
2534
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1359
- # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
1360
- def legal_entities_org_relationships_with_http_info(id, opts = {})
2535
+ # @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
2536
+ def legal_entities_sbti_crosscheck_with_http_info(id, opts = {})
1361
2537
  if @api_client.config.debugging
1362
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
2538
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sbti_crosscheck ...'
1363
2539
  end
1364
2540
  # verify the required parameter 'id' is set
1365
2541
  if @api_client.config.client_side_validation && id.nil?
1366
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
2542
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sbti_crosscheck"
1367
2543
  end
1368
2544
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1369
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be smaller than or equal to 500.'
2545
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be smaller than or equal to 500.'
1370
2546
  end
1371
2547
 
1372
2548
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1373
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be greater than or equal to 1.'
2549
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be greater than or equal to 1.'
1374
2550
  end
1375
2551
 
1376
2552
  # resource path
1377
- local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2553
+ local_var_path = '/api/v1/legal_entities/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1378
2554
 
1379
2555
  # query parameters
1380
2556
  query_params = opts[:query_params] || {}
@@ -1396,13 +2572,13 @@ module PharmaObservatory
1396
2572
  post_body = opts[:debug_body]
1397
2573
 
1398
2574
  # return_type
1399
- return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
2575
+ return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
1400
2576
 
1401
2577
  # auth_names
1402
2578
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1403
2579
 
1404
2580
  new_options = opts.merge(
1405
- :operation => :"LegalEntitiesApi.legal_entities_org_relationships",
2581
+ :operation => :"LegalEntitiesApi.legal_entities_sbti_crosscheck",
1406
2582
  :header_params => header_params,
1407
2583
  :query_params => query_params,
1408
2584
  :form_params => form_params,
@@ -1413,12 +2589,12 @@ module PharmaObservatory
1413
2589
 
1414
2590
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1415
2591
  if @api_client.config.debugging
1416
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2592
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1417
2593
  end
1418
2594
  return data, status_code, headers
1419
2595
  end
1420
2596
 
1421
- # Ownership percentages
2597
+ # FDA dates disclosed in SEC filings
1422
2598
  # @param id [String]
1423
2599
  # @param [Hash] opts the optional parameters
1424
2600
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1426,13 +2602,13 @@ module PharmaObservatory
1426
2602
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1427
2603
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1428
2604
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1429
- # @return [OwnershipPercentagesResponse]
1430
- def legal_entities_ownership_percentages(id, opts = {})
1431
- data, _status_code, _headers = legal_entities_ownership_percentages_with_http_info(id, opts)
2605
+ # @return [SecPdufaDatesResponse]
2606
+ def legal_entities_sec_pdufa_dates(id, opts = {})
2607
+ data, _status_code, _headers = legal_entities_sec_pdufa_dates_with_http_info(id, opts)
1432
2608
  data
1433
2609
  end
1434
2610
 
1435
- # Ownership percentages
2611
+ # FDA dates disclosed in SEC filings
1436
2612
  # @param id [String]
1437
2613
  # @param [Hash] opts the optional parameters
1438
2614
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1440,25 +2616,25 @@ module PharmaObservatory
1440
2616
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1441
2617
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1442
2618
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1443
- # @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
1444
- def legal_entities_ownership_percentages_with_http_info(id, opts = {})
2619
+ # @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
2620
+ def legal_entities_sec_pdufa_dates_with_http_info(id, opts = {})
1445
2621
  if @api_client.config.debugging
1446
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_percentages ...'
2622
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sec_pdufa_dates ...'
1447
2623
  end
1448
2624
  # verify the required parameter 'id' is set
1449
2625
  if @api_client.config.client_side_validation && id.nil?
1450
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_percentages"
2626
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates"
1451
2627
  end
1452
2628
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1453
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be smaller than or equal to 500.'
2629
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be smaller than or equal to 500.'
1454
2630
  end
1455
2631
 
1456
2632
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1457
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be greater than or equal to 1.'
2633
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be greater than or equal to 1.'
1458
2634
  end
1459
2635
 
1460
2636
  # resource path
1461
- local_var_path = '/api/v1/legal_entities/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2637
+ local_var_path = '/api/v1/legal_entities/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1462
2638
 
1463
2639
  # query parameters
1464
2640
  query_params = opts[:query_params] || {}
@@ -1480,13 +2656,13 @@ module PharmaObservatory
1480
2656
  post_body = opts[:debug_body]
1481
2657
 
1482
2658
  # return_type
1483
- return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
2659
+ return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
1484
2660
 
1485
2661
  # auth_names
1486
2662
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1487
2663
 
1488
2664
  new_options = opts.merge(
1489
- :operation => :"LegalEntitiesApi.legal_entities_ownership_percentages",
2665
+ :operation => :"LegalEntitiesApi.legal_entities_sec_pdufa_dates",
1490
2666
  :header_params => header_params,
1491
2667
  :query_params => query_params,
1492
2668
  :form_params => form_params,
@@ -1497,12 +2673,12 @@ module PharmaObservatory
1497
2673
 
1498
2674
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1499
2675
  if @api_client.config.debugging
1500
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2676
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1501
2677
  end
1502
2678
  return data, status_code, headers
1503
2679
  end
1504
2680
 
1505
- # Ownership and control positions
2681
+ # Sponsor delivery reliability
1506
2682
  # @param id [String]
1507
2683
  # @param [Hash] opts the optional parameters
1508
2684
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1510,13 +2686,13 @@ module PharmaObservatory
1510
2686
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1511
2687
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1512
2688
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1513
- # @return [OwnershipPositionsResponse]
1514
- def legal_entities_ownership_positions(id, opts = {})
1515
- data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
2689
+ # @return [SponsorDeliveryResponse]
2690
+ def legal_entities_sponsor_delivery(id, opts = {})
2691
+ data, _status_code, _headers = legal_entities_sponsor_delivery_with_http_info(id, opts)
1516
2692
  data
1517
2693
  end
1518
2694
 
1519
- # Ownership and control positions
2695
+ # Sponsor delivery reliability
1520
2696
  # @param id [String]
1521
2697
  # @param [Hash] opts the optional parameters
1522
2698
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1524,25 +2700,25 @@ module PharmaObservatory
1524
2700
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1525
2701
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1526
2702
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1527
- # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
1528
- def legal_entities_ownership_positions_with_http_info(id, opts = {})
2703
+ # @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
2704
+ def legal_entities_sponsor_delivery_with_http_info(id, opts = {})
1529
2705
  if @api_client.config.debugging
1530
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
2706
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_delivery ...'
1531
2707
  end
1532
2708
  # verify the required parameter 'id' is set
1533
2709
  if @api_client.config.client_side_validation && id.nil?
1534
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
2710
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_delivery"
1535
2711
  end
1536
2712
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1537
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be smaller than or equal to 500.'
2713
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be smaller than or equal to 500.'
1538
2714
  end
1539
2715
 
1540
2716
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1541
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be greater than or equal to 1.'
2717
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be greater than or equal to 1.'
1542
2718
  end
1543
2719
 
1544
2720
  # resource path
1545
- local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2721
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1546
2722
 
1547
2723
  # query parameters
1548
2724
  query_params = opts[:query_params] || {}
@@ -1564,13 +2740,13 @@ module PharmaObservatory
1564
2740
  post_body = opts[:debug_body]
1565
2741
 
1566
2742
  # return_type
1567
- return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
2743
+ return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
1568
2744
 
1569
2745
  # auth_names
1570
2746
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1571
2747
 
1572
2748
  new_options = opts.merge(
1573
- :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
2749
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_delivery",
1574
2750
  :header_params => header_params,
1575
2751
  :query_params => query_params,
1576
2752
  :form_params => form_params,
@@ -1581,12 +2757,12 @@ module PharmaObservatory
1581
2757
 
1582
2758
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1583
2759
  if @api_client.config.debugging
1584
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2760
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1585
2761
  end
1586
2762
  return data, status_code, headers
1587
2763
  end
1588
2764
 
1589
- # FDA decision dates (PDUFA) and catalysts
2765
+ # Sponsor patent mentions
1590
2766
  # @param id [String]
1591
2767
  # @param [Hash] opts the optional parameters
1592
2768
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1594,13 +2770,13 @@ module PharmaObservatory
1594
2770
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1595
2771
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1596
2772
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1597
- # @return [PdufaDatesResponse]
1598
- def legal_entities_pdufa_dates(id, opts = {})
1599
- data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
2773
+ # @return [SponsorPatentMentionsResponse]
2774
+ def legal_entities_sponsor_patent_mentions(id, opts = {})
2775
+ data, _status_code, _headers = legal_entities_sponsor_patent_mentions_with_http_info(id, opts)
1600
2776
  data
1601
2777
  end
1602
2778
 
1603
- # FDA decision dates (PDUFA) and catalysts
2779
+ # Sponsor patent mentions
1604
2780
  # @param id [String]
1605
2781
  # @param [Hash] opts the optional parameters
1606
2782
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1608,25 +2784,25 @@ module PharmaObservatory
1608
2784
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1609
2785
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1610
2786
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1611
- # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
1612
- def legal_entities_pdufa_dates_with_http_info(id, opts = {})
2787
+ # @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
2788
+ def legal_entities_sponsor_patent_mentions_with_http_info(id, opts = {})
1613
2789
  if @api_client.config.debugging
1614
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
2790
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_patent_mentions ...'
1615
2791
  end
1616
2792
  # verify the required parameter 'id' is set
1617
2793
  if @api_client.config.client_side_validation && id.nil?
1618
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
2794
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions"
1619
2795
  end
1620
2796
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1621
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
2797
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be smaller than or equal to 500.'
1622
2798
  end
1623
2799
 
1624
2800
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1625
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
2801
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be greater than or equal to 1.'
1626
2802
  end
1627
2803
 
1628
2804
  # resource path
1629
- local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2805
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1630
2806
 
1631
2807
  # query parameters
1632
2808
  query_params = opts[:query_params] || {}
@@ -1648,13 +2824,13 @@ module PharmaObservatory
1648
2824
  post_body = opts[:debug_body]
1649
2825
 
1650
2826
  # return_type
1651
- return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
2827
+ return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
1652
2828
 
1653
2829
  # auth_names
1654
2830
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1655
2831
 
1656
2832
  new_options = opts.merge(
1657
- :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
2833
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_patent_mentions",
1658
2834
  :header_params => header_params,
1659
2835
  :query_params => query_params,
1660
2836
  :form_params => form_params,
@@ -1665,12 +2841,12 @@ module PharmaObservatory
1665
2841
 
1666
2842
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1667
2843
  if @api_client.config.debugging
1668
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2844
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1669
2845
  end
1670
2846
  return data, status_code, headers
1671
2847
  end
1672
2848
 
1673
- # Program licensing candidates
2849
+ # Trial recruitment duration by sponsor and phase
1674
2850
  # @param id [String]
1675
2851
  # @param [Hash] opts the optional parameters
1676
2852
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1678,13 +2854,13 @@ module PharmaObservatory
1678
2854
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1679
2855
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1680
2856
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1681
- # @return [ProgramLicensingCandidatesResponse]
1682
- def legal_entities_program_licensing_candidates(id, opts = {})
1683
- data, _status_code, _headers = legal_entities_program_licensing_candidates_with_http_info(id, opts)
2857
+ # @return [SponsorRecruitmentByPhaseResponse]
2858
+ def legal_entities_sponsor_recruitment_by_phase(id, opts = {})
2859
+ data, _status_code, _headers = legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts)
1684
2860
  data
1685
2861
  end
1686
2862
 
1687
- # Program licensing candidates
2863
+ # Trial recruitment duration by sponsor and phase
1688
2864
  # @param id [String]
1689
2865
  # @param [Hash] opts the optional parameters
1690
2866
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1692,25 +2868,25 @@ module PharmaObservatory
1692
2868
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1693
2869
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1694
2870
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1695
- # @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
1696
- def legal_entities_program_licensing_candidates_with_http_info(id, opts = {})
2871
+ # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
2872
+ def legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
1697
2873
  if @api_client.config.debugging
1698
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_program_licensing_candidates ...'
2874
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
1699
2875
  end
1700
2876
  # verify the required parameter 'id' is set
1701
2877
  if @api_client.config.client_side_validation && id.nil?
1702
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_program_licensing_candidates"
2878
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
1703
2879
  end
1704
2880
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1705
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be smaller than or equal to 500.'
2881
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
1706
2882
  end
1707
2883
 
1708
2884
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1709
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be greater than or equal to 1.'
2885
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
1710
2886
  end
1711
2887
 
1712
2888
  # resource path
1713
- local_var_path = '/api/v1/legal_entities/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2889
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1714
2890
 
1715
2891
  # query parameters
1716
2892
  query_params = opts[:query_params] || {}
@@ -1732,13 +2908,13 @@ module PharmaObservatory
1732
2908
  post_body = opts[:debug_body]
1733
2909
 
1734
2910
  # return_type
1735
- return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
2911
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
1736
2912
 
1737
2913
  # auth_names
1738
2914
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1739
2915
 
1740
2916
  new_options = opts.merge(
1741
- :operation => :"LegalEntitiesApi.legal_entities_program_licensing_candidates",
2917
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
1742
2918
  :header_params => header_params,
1743
2919
  :query_params => query_params,
1744
2920
  :form_params => form_params,
@@ -1749,12 +2925,12 @@ module PharmaObservatory
1749
2925
 
1750
2926
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1751
2927
  if @api_client.config.debugging
1752
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1753
2929
  end
1754
2930
  return data, status_code, headers
1755
2931
  end
1756
2932
 
1757
- # FDA recalls
2933
+ # Trial recruitment duration by sponsor
1758
2934
  # @param id [String]
1759
2935
  # @param [Hash] opts the optional parameters
1760
2936
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1762,13 +2938,13 @@ module PharmaObservatory
1762
2938
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1763
2939
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1764
2940
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1765
- # @return [RecallsResponse]
1766
- def legal_entities_recalls(id, opts = {})
1767
- data, _status_code, _headers = legal_entities_recalls_with_http_info(id, opts)
2941
+ # @return [SponsorRecruitmentDurationResponse]
2942
+ def legal_entities_sponsor_recruitment_duration(id, opts = {})
2943
+ data, _status_code, _headers = legal_entities_sponsor_recruitment_duration_with_http_info(id, opts)
1768
2944
  data
1769
2945
  end
1770
2946
 
1771
- # FDA recalls
2947
+ # Trial recruitment duration by sponsor
1772
2948
  # @param id [String]
1773
2949
  # @param [Hash] opts the optional parameters
1774
2950
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1776,25 +2952,25 @@ module PharmaObservatory
1776
2952
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1777
2953
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1778
2954
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1779
- # @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
1780
- def legal_entities_recalls_with_http_info(id, opts = {})
2955
+ # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
2956
+ def legal_entities_sponsor_recruitment_duration_with_http_info(id, opts = {})
1781
2957
  if @api_client.config.debugging
1782
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_recalls ...'
2958
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
1783
2959
  end
1784
2960
  # verify the required parameter 'id' is set
1785
2961
  if @api_client.config.client_side_validation && id.nil?
1786
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_recalls"
2962
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration"
1787
2963
  end
1788
2964
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1789
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be smaller than or equal to 500.'
2965
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be smaller than or equal to 500.'
1790
2966
  end
1791
2967
 
1792
2968
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1793
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be greater than or equal to 1.'
2969
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be greater than or equal to 1.'
1794
2970
  end
1795
2971
 
1796
2972
  # resource path
1797
- local_var_path = '/api/v1/legal_entities/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2973
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1798
2974
 
1799
2975
  # query parameters
1800
2976
  query_params = opts[:query_params] || {}
@@ -1816,13 +2992,13 @@ module PharmaObservatory
1816
2992
  post_body = opts[:debug_body]
1817
2993
 
1818
2994
  # return_type
1819
- return_type = opts[:debug_return_type] || 'RecallsResponse'
2995
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
1820
2996
 
1821
2997
  # auth_names
1822
2998
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1823
2999
 
1824
3000
  new_options = opts.merge(
1825
- :operation => :"LegalEntitiesApi.legal_entities_recalls",
3001
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
1826
3002
  :header_params => header_params,
1827
3003
  :query_params => query_params,
1828
3004
  :form_params => form_params,
@@ -1833,12 +3009,12 @@ module PharmaObservatory
1833
3009
 
1834
3010
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1835
3011
  if @api_client.config.debugging
1836
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3012
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1837
3013
  end
1838
3014
  return data, status_code, headers
1839
3015
  end
1840
3016
 
1841
- # Trial recruitment duration by sponsor and phase
3017
+ # Sponsor trial conditions
1842
3018
  # @param id [String]
1843
3019
  # @param [Hash] opts the optional parameters
1844
3020
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1846,13 +3022,13 @@ module PharmaObservatory
1846
3022
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1847
3023
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1848
3024
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1849
- # @return [SponsorRecruitmentByPhaseResponse]
1850
- def legal_entities_sponsor_recruitment_by_phase(id, opts = {})
1851
- data, _status_code, _headers = legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts)
3025
+ # @return [SponsorTrialConditionsResponse]
3026
+ def legal_entities_sponsor_trial_conditions(id, opts = {})
3027
+ data, _status_code, _headers = legal_entities_sponsor_trial_conditions_with_http_info(id, opts)
1852
3028
  data
1853
3029
  end
1854
3030
 
1855
- # Trial recruitment duration by sponsor and phase
3031
+ # Sponsor trial conditions
1856
3032
  # @param id [String]
1857
3033
  # @param [Hash] opts the optional parameters
1858
3034
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1860,25 +3036,25 @@ module PharmaObservatory
1860
3036
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1861
3037
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1862
3038
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1863
- # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
1864
- def legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
3039
+ # @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
3040
+ def legal_entities_sponsor_trial_conditions_with_http_info(id, opts = {})
1865
3041
  if @api_client.config.debugging
1866
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
3042
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_conditions ...'
1867
3043
  end
1868
3044
  # verify the required parameter 'id' is set
1869
3045
  if @api_client.config.client_side_validation && id.nil?
1870
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
3046
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions"
1871
3047
  end
1872
3048
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1873
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
3049
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be smaller than or equal to 500.'
1874
3050
  end
1875
3051
 
1876
3052
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1877
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
3053
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be greater than or equal to 1.'
1878
3054
  end
1879
3055
 
1880
3056
  # resource path
1881
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3057
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1882
3058
 
1883
3059
  # query parameters
1884
3060
  query_params = opts[:query_params] || {}
@@ -1900,13 +3076,13 @@ module PharmaObservatory
1900
3076
  post_body = opts[:debug_body]
1901
3077
 
1902
3078
  # return_type
1903
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
3079
+ return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
1904
3080
 
1905
3081
  # auth_names
1906
3082
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1907
3083
 
1908
3084
  new_options = opts.merge(
1909
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
3085
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_conditions",
1910
3086
  :header_params => header_params,
1911
3087
  :query_params => query_params,
1912
3088
  :form_params => form_params,
@@ -1917,12 +3093,12 @@ module PharmaObservatory
1917
3093
 
1918
3094
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1919
3095
  if @api_client.config.debugging
1920
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3096
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1921
3097
  end
1922
3098
  return data, status_code, headers
1923
3099
  end
1924
3100
 
1925
- # Trial recruitment duration by sponsor
3101
+ # Sponsor trial drugs
1926
3102
  # @param id [String]
1927
3103
  # @param [Hash] opts the optional parameters
1928
3104
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1930,13 +3106,13 @@ module PharmaObservatory
1930
3106
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1931
3107
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1932
3108
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1933
- # @return [SponsorRecruitmentDurationResponse]
1934
- def legal_entities_sponsor_recruitment_duration(id, opts = {})
1935
- data, _status_code, _headers = legal_entities_sponsor_recruitment_duration_with_http_info(id, opts)
3109
+ # @return [SponsorTrialDrugsResponse]
3110
+ def legal_entities_sponsor_trial_drugs(id, opts = {})
3111
+ data, _status_code, _headers = legal_entities_sponsor_trial_drugs_with_http_info(id, opts)
1936
3112
  data
1937
3113
  end
1938
3114
 
1939
- # Trial recruitment duration by sponsor
3115
+ # Sponsor trial drugs
1940
3116
  # @param id [String]
1941
3117
  # @param [Hash] opts the optional parameters
1942
3118
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1944,25 +3120,25 @@ module PharmaObservatory
1944
3120
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1945
3121
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1946
3122
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1947
- # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
1948
- def legal_entities_sponsor_recruitment_duration_with_http_info(id, opts = {})
3123
+ # @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
3124
+ def legal_entities_sponsor_trial_drugs_with_http_info(id, opts = {})
1949
3125
  if @api_client.config.debugging
1950
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
3126
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_drugs ...'
1951
3127
  end
1952
3128
  # verify the required parameter 'id' is set
1953
3129
  if @api_client.config.client_side_validation && id.nil?
1954
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration"
3130
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs"
1955
3131
  end
1956
3132
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1957
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be smaller than or equal to 500.'
3133
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be smaller than or equal to 500.'
1958
3134
  end
1959
3135
 
1960
3136
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1961
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be greater than or equal to 1.'
3137
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be greater than or equal to 1.'
1962
3138
  end
1963
3139
 
1964
3140
  # resource path
1965
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3141
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1966
3142
 
1967
3143
  # query parameters
1968
3144
  query_params = opts[:query_params] || {}
@@ -1984,13 +3160,13 @@ module PharmaObservatory
1984
3160
  post_body = opts[:debug_body]
1985
3161
 
1986
3162
  # return_type
1987
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
3163
+ return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
1988
3164
 
1989
3165
  # auth_names
1990
3166
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1991
3167
 
1992
3168
  new_options = opts.merge(
1993
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
3169
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_drugs",
1994
3170
  :header_params => header_params,
1995
3171
  :query_params => query_params,
1996
3172
  :form_params => form_params,
@@ -2001,7 +3177,7 @@ module PharmaObservatory
2001
3177
 
2002
3178
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2003
3179
  if @api_client.config.debugging
2004
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3180
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2005
3181
  end
2006
3182
  return data, status_code, headers
2007
3183
  end