pharmaobservatory 0.1.5 → 0.1.7

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 (647) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +379 -7
  3. data/docs/BiomarkerAssayEvidenceResponse.md +58 -0
  4. data/docs/{BiomarkerCdxAssertionsResponseBuild.md → BiomarkerAssayEvidenceResponseBuild.md} +2 -2
  5. data/docs/{BiomarkerCdxAssertionsResponseFreshness.md → BiomarkerAssayEvidenceResponseFreshness.md} +2 -2
  6. data/docs/{BiomarkerCdxAssertionsResponseScope.md → BiomarkerAssayEvidenceResponseScope.md} +2 -2
  7. data/docs/BiomarkerAssayEvidenceRow.md +68 -0
  8. data/docs/BiomarkerAssayWhitespaceResponse.md +58 -0
  9. data/docs/BiomarkerAssayWhitespaceRow.md +66 -0
  10. data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
  11. data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
  12. data/docs/BiomarkerEvidenceResponse.md +3 -3
  13. data/docs/BiomarkerLiteratureResponse.md +3 -3
  14. data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
  15. data/docs/BiomarkerPublishingCompaniesRow.md +9 -1
  16. data/docs/BiomarkerRelationsResponse.md +3 -3
  17. data/docs/BiomarkerSampleCoverageResponse.md +3 -3
  18. data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
  19. data/docs/BiomarkerValidationResponse.md +3 -3
  20. data/docs/BiomarkerVariantMentionsResponse.md +3 -3
  21. data/docs/BiomarkersApi.md +160 -0
  22. data/docs/BiomarkersRecord.md +2 -2
  23. data/docs/BiomarkersResponse.md +3 -3
  24. data/docs/BiomarkersRow.md +2 -0
  25. data/docs/BrandCompaniesResponse.md +58 -0
  26. data/docs/BrandCompaniesRow.md +50 -0
  27. data/docs/BrandRevenueResponse.md +58 -0
  28. data/docs/BrandRevenueRow.md +60 -0
  29. data/docs/CatalystsResponse.md +58 -0
  30. data/docs/CatalystsRow.md +90 -0
  31. data/docs/CellLinesRecord.md +2 -2
  32. data/docs/CellLinesResponse.md +3 -3
  33. data/docs/CliaCertificatesResponse.md +58 -0
  34. data/docs/CliaCertificatesRow.md +80 -0
  35. data/docs/CompaniesApi.md +1947 -143
  36. data/docs/CompaniesRecord.md +2 -2
  37. data/docs/CompaniesRecordAttributes.md +3 -1
  38. data/docs/CompaniesResponse.md +3 -3
  39. data/docs/CompaniesRow.md +1 -1
  40. data/docs/CompanyAssetsResponse.md +3 -3
  41. data/docs/CompanyFundingEventsResponse.md +3 -3
  42. data/docs/CompanyFundingEventsRow.md +3 -1
  43. data/docs/CompanyFundingSummaryResponse.md +3 -3
  44. data/docs/CompanyMembersResponse.md +3 -3
  45. data/docs/CompanyProgramsResponse.md +3 -3
  46. data/docs/CompanyTargetsResponse.md +3 -3
  47. data/docs/CompanyTargetsRow.md +5 -1
  48. data/docs/CompanyTrialGeographyResponse.md +58 -0
  49. data/docs/CompanyTrialGeographyRow.md +52 -0
  50. data/docs/CompanyTrialSitesResponse.md +58 -0
  51. data/docs/CompanyTrialSitesRow.md +52 -0
  52. data/docs/ConditionAdverseEventsResponse.md +3 -3
  53. data/docs/ConditionBurdenResponse.md +3 -3
  54. data/docs/ConditionDeliveryResponse.md +3 -3
  55. data/docs/ConditionDrugsResponse.md +3 -3
  56. data/docs/ConditionPrevalenceResponse.md +3 -3
  57. data/docs/ConditionPrevalenceRow.md +1 -1
  58. data/docs/ConditionPublicationsResponse.md +3 -3
  59. data/docs/ConditionRecruitmentByPhaseResponse.md +58 -0
  60. data/docs/ConditionRecruitmentByPhaseRow.md +50 -0
  61. data/docs/ConditionRecruitmentDurationResponse.md +58 -0
  62. data/docs/ConditionRecruitmentDurationRow.md +86 -0
  63. data/docs/ConditionSitesResponse.md +3 -3
  64. data/docs/ConditionTrialStartForecastResponse.md +58 -0
  65. data/docs/ConditionTrialStartForecastRow.md +70 -0
  66. data/docs/ConditionTrialsResponse.md +3 -3
  67. data/docs/ConditionTrialsRow.md +1 -1
  68. data/docs/ConditionsApi.md +560 -0
  69. data/docs/ConditionsRecord.md +2 -2
  70. data/docs/ConditionsRecordAttributes.md +3 -1
  71. data/docs/ConditionsResponse.md +3 -3
  72. data/docs/CroFootprintResponse.md +58 -0
  73. data/docs/CroFootprintRow.md +34 -0
  74. data/docs/CroTrialsResponse.md +58 -0
  75. data/docs/CroTrialsRow.md +46 -0
  76. data/docs/DebarmentsResponse.md +58 -0
  77. data/docs/DebarmentsRow.md +44 -0
  78. data/docs/DrugApprovalsResponse.md +58 -0
  79. data/docs/DrugApprovalsRow.md +28 -0
  80. data/docs/DrugAspCodesResponse.md +58 -0
  81. data/docs/DrugAspCodesRow.md +28 -0
  82. data/docs/DrugBrandsResponse.md +58 -0
  83. data/docs/DrugBrandsRow.md +60 -0
  84. data/docs/DrugCombinationsResponse.md +58 -0
  85. data/docs/DrugCombinationsRow.md +32 -0
  86. data/docs/DrugDeclaredPatentsResponse.md +58 -0
  87. data/docs/DrugDeclaredPatentsRow.md +58 -0
  88. data/docs/DrugLabelSafetyResponse.md +58 -0
  89. data/docs/DrugLabelSafetyRow.md +32 -0
  90. data/docs/DrugMedicareSpendResponse.md +58 -0
  91. data/docs/DrugMedicareSpendRow.md +28 -0
  92. data/docs/DrugPatentCliffResponse.md +3 -3
  93. data/docs/DrugPatentCliffRow.md +3 -1
  94. data/docs/DrugPatentMentionsResponse.md +58 -0
  95. data/docs/DrugPatentMentionsRow.md +28 -0
  96. data/docs/DrugPatentOwnersResponse.md +58 -0
  97. data/docs/DrugPatentOwnersRow.md +42 -0
  98. data/docs/DrugPricingResponse.md +58 -0
  99. data/docs/DrugPricingRow.md +32 -0
  100. data/docs/DrugRecallsResponse.md +58 -0
  101. data/docs/DrugRecallsRow.md +34 -0
  102. data/docs/DrugRegulatoryResponse.md +58 -0
  103. data/docs/DrugRegulatoryRow.md +38 -0
  104. data/docs/DrugSitesResponse.md +58 -0
  105. data/docs/DrugSitesRow.md +28 -0
  106. data/docs/DrugTargetsResponse.md +58 -0
  107. data/docs/DrugTargetsRow.md +36 -0
  108. data/docs/DrugTrialConditionsResponse.md +58 -0
  109. data/docs/DrugTrialConditionsRow.md +30 -0
  110. data/docs/DrugTrialsResponse.md +58 -0
  111. data/docs/DrugTrialsRow.md +58 -0
  112. data/docs/DrugVariantsResponse.md +58 -0
  113. data/docs/DrugVariantsRow.md +38 -0
  114. data/docs/DrugsApi.md +2153 -0
  115. data/docs/DrugsRecord.md +38 -0
  116. data/docs/DrugsRecordAttributes.md +20 -0
  117. data/docs/DrugsResponse.md +58 -0
  118. data/docs/DrugsRow.md +82 -0
  119. data/docs/EnforcementEventsResponse.md +58 -0
  120. data/docs/EnforcementEventsRow.md +64 -0
  121. data/docs/GxpFacilitiesResponse.md +58 -0
  122. data/docs/GxpFacilitiesRow.md +152 -0
  123. data/docs/HospitalBedsYearlyResponse.md +58 -0
  124. data/docs/HospitalBedsYearlyRow.md +28 -0
  125. data/docs/HospitalFacilityChangesResponse.md +58 -0
  126. data/docs/HospitalFacilityChangesRow.md +30 -0
  127. data/docs/HospitalsApi.md +393 -0
  128. data/docs/HospitalsRecord.md +38 -0
  129. data/docs/HospitalsResponse.md +58 -0
  130. data/docs/HospitalsRow.md +40 -0
  131. data/docs/ImportRefusalsResponse.md +58 -0
  132. data/docs/ImportRefusalsRow.md +60 -0
  133. data/docs/InspectionFindingsResponse.md +58 -0
  134. data/docs/InspectionFindingsRow.md +48 -0
  135. data/docs/InspectionsResponse.md +58 -0
  136. data/docs/InspectionsRow.md +60 -0
  137. data/docs/InstitutionalHoldingsResponse.md +3 -3
  138. data/docs/InstitutionalHoldingsRow.md +7 -1
  139. data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
  140. data/docs/InstitutionalQuarterTotalsRow.md +58 -0
  141. data/docs/InvestorFundsResponse.md +58 -0
  142. data/docs/InvestorFundsRow.md +24 -0
  143. data/docs/InvestorPortfolioResponse.md +58 -0
  144. data/docs/InvestorPortfolioRow.md +42 -0
  145. data/docs/InvestorPrivateFundsResponse.md +58 -0
  146. data/docs/InvestorPrivateFundsRow.md +44 -0
  147. data/docs/InvestorsApi.md +633 -0
  148. data/docs/InvestorsRecord.md +38 -0
  149. data/docs/InvestorsResponse.md +58 -0
  150. data/docs/InvestorsRow.md +54 -0
  151. data/docs/LegalEntitiesApi.md +1595 -155
  152. data/docs/LegalEntitiesRecord.md +2 -2
  153. data/docs/LegalEntitiesRecordAttributes.md +2 -0
  154. data/docs/LegalEntitiesResponse.md +3 -3
  155. data/docs/LegalEntitiesRow.md +1 -1
  156. data/docs/ManagersApi.md +233 -0
  157. data/docs/ManagersRecord.md +38 -0
  158. data/docs/ManagersResponse.md +58 -0
  159. data/docs/ManagersRow.md +46 -0
  160. data/docs/OrgDisclosuresResponse.md +58 -0
  161. data/docs/OrgDisclosuresRow.md +56 -0
  162. data/docs/OrgRelationshipsResponse.md +58 -0
  163. data/docs/OrgRelationshipsRow.md +68 -0
  164. data/docs/OwnershipPercentagesResponse.md +58 -0
  165. data/docs/OwnershipPercentagesRow.md +74 -0
  166. data/docs/OwnershipPositionsResponse.md +3 -3
  167. data/docs/OwnershipPositionsRow.md +16 -14
  168. data/docs/PdufaDatesResponse.md +3 -3
  169. data/docs/PdufaDatesRow.md +1 -1
  170. data/docs/ProgramLicensingCandidatesResponse.md +58 -0
  171. data/docs/ProgramLicensingCandidatesRow.md +58 -0
  172. data/docs/ProgramsResponse.md +58 -0
  173. data/docs/ProgramsRow.md +46 -0
  174. data/docs/RareDiseaseGenesResponse.md +58 -0
  175. data/docs/RareDiseaseGenesRow.md +50 -0
  176. data/docs/RareDiseaseHierarchyResponse.md +58 -0
  177. data/docs/RareDiseaseHierarchyRow.md +40 -0
  178. data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
  179. data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
  180. data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
  181. data/docs/RareDiseaseInvestigatorsRow.md +56 -0
  182. data/docs/RareDiseaseMappingsResponse.md +58 -0
  183. data/docs/RareDiseaseMappingsRow.md +44 -0
  184. data/docs/RareDiseaseOrganizationsResponse.md +58 -0
  185. data/docs/RareDiseaseOrganizationsRow.md +60 -0
  186. data/docs/RareDiseasePrevalenceResponse.md +58 -0
  187. data/docs/RareDiseasePrevalenceRow.md +62 -0
  188. data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
  189. data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
  190. data/docs/RareDiseaseRarityResponse.md +58 -0
  191. data/docs/RareDiseaseRarityRow.md +54 -0
  192. data/docs/RareDiseaseReplacementsResponse.md +58 -0
  193. data/docs/RareDiseaseReplacementsRow.md +40 -0
  194. data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
  195. data/docs/RareDiseaseSiteCoverageRow.md +54 -0
  196. data/docs/RareDiseaseSponsorsResponse.md +58 -0
  197. data/docs/RareDiseaseSponsorsRow.md +82 -0
  198. data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
  199. data/docs/RareDiseaseTrialCoverageRow.md +58 -0
  200. data/docs/RareDiseaseTrialSitesResponse.md +58 -0
  201. data/docs/RareDiseaseTrialSitesRow.md +52 -0
  202. data/docs/RareDiseaseTrialsResponse.md +58 -0
  203. data/docs/RareDiseaseTrialsRow.md +90 -0
  204. data/docs/RareDiseasesApi.md +1353 -0
  205. data/docs/RareDiseasesRecord.md +38 -0
  206. data/docs/RareDiseasesRecordAttributes.md +22 -0
  207. data/docs/RareDiseasesResponse.md +58 -0
  208. data/docs/RareDiseasesRow.md +68 -0
  209. data/docs/RecallsResponse.md +58 -0
  210. data/docs/RecallsRow.md +54 -0
  211. data/docs/RwdCoverageResponse.md +58 -0
  212. data/docs/RwdCoverageRow.md +52 -0
  213. data/docs/RwdRegisterProvenanceResponse.md +58 -0
  214. data/docs/RwdRegisterProvenanceRow.md +74 -0
  215. data/docs/RwdRegistersApi.md +313 -0
  216. data/docs/RwdRegistersRecord.md +38 -0
  217. data/docs/RwdSourceAgeBandsResponse.md +58 -0
  218. data/docs/RwdSourceAgeBandsRow.md +40 -0
  219. data/docs/RwdSourceConditionsResponse.md +58 -0
  220. data/docs/RwdSourceConditionsRow.md +68 -0
  221. data/docs/RwdSourceEtlMappingsResponse.md +58 -0
  222. data/docs/RwdSourceEtlMappingsRow.md +44 -0
  223. data/docs/RwdSourceLinkagesResponse.md +58 -0
  224. data/docs/RwdSourceLinkagesRow.md +64 -0
  225. data/docs/RwdSourceTypesResponse.md +58 -0
  226. data/docs/RwdSourceTypesRow.md +34 -0
  227. data/docs/RwdSourceVocabulariesResponse.md +58 -0
  228. data/docs/RwdSourceVocabulariesRow.md +42 -0
  229. data/docs/RwdSourcesApi.md +713 -0
  230. data/docs/RwdSourcesRecord.md +38 -0
  231. data/docs/RwdSourcesResponse.md +58 -0
  232. data/docs/RwdSourcesRow.md +280 -0
  233. data/docs/RwdStudiesApi.md +473 -0
  234. data/docs/RwdStudiesRecord.md +38 -0
  235. data/docs/RwdStudiesResponse.md +58 -0
  236. data/docs/RwdStudiesRow.md +180 -0
  237. data/docs/RwdStudyConditionsResponse.md +58 -0
  238. data/docs/RwdStudyConditionsRow.md +54 -0
  239. data/docs/RwdStudyDataSourcesResponse.md +58 -0
  240. data/docs/RwdStudyDataSourcesRow.md +54 -0
  241. data/docs/RwdStudyDrugsResponse.md +58 -0
  242. data/docs/RwdStudyDrugsRow.md +50 -0
  243. data/docs/RwdStudyMilestonesResponse.md +58 -0
  244. data/docs/RwdStudyMilestonesRow.md +54 -0
  245. data/docs/RwdWithheldFieldsResponse.md +58 -0
  246. data/docs/RwdWithheldFieldsRow.md +36 -0
  247. data/docs/SecPdufaDatesResponse.md +58 -0
  248. data/docs/SecPdufaDatesRow.md +64 -0
  249. data/docs/SiteBedsYearlyResponse.md +3 -3
  250. data/docs/SiteCroTrialsResponse.md +3 -3
  251. data/docs/SiteHospitalsResponse.md +3 -3
  252. data/docs/SiteInvestigatorsResponse.md +3 -3
  253. data/docs/SiteTrialConditionsResponse.md +3 -3
  254. data/docs/SiteTrialDrugsResponse.md +3 -3
  255. data/docs/SiteTrialsResponse.md +3 -3
  256. data/docs/SitesRecord.md +2 -2
  257. data/docs/SitesResponse.md +3 -3
  258. data/docs/SponsorRecruitmentByPhaseResponse.md +3 -3
  259. data/docs/SponsorRecruitmentDurationResponse.md +3 -3
  260. data/docs/SponsorTrialStartForecastResponse.md +3 -3
  261. data/docs/SponsorTrialsResponse.md +3 -3
  262. data/docs/SponsorTrialsRow.md +1 -1
  263. data/docs/SupplierCapabilityEsgResponse.md +58 -0
  264. data/docs/SupplierCapabilityEsgRow.md +64 -0
  265. data/docs/SupplierServicesResponse.md +58 -0
  266. data/docs/SupplierServicesRow.md +30 -0
  267. data/docs/SupplierSitesResponse.md +58 -0
  268. data/docs/SupplierSitesRow.md +42 -0
  269. data/docs/SuppliersApi.md +313 -0
  270. data/docs/SuppliersRecord.md +38 -0
  271. data/docs/SuppliersResponse.md +58 -0
  272. data/docs/SuppliersRow.md +76 -0
  273. data/docs/TargetAssociationsResponse.md +58 -0
  274. data/docs/TargetAssociationsRow.md +26 -0
  275. data/docs/TargetCrowdingResponse.md +58 -0
  276. data/docs/TargetCrowdingRow.md +30 -0
  277. data/docs/TargetDrugsResponse.md +58 -0
  278. data/docs/TargetDrugsRow.md +38 -0
  279. data/docs/TargetEvidenceResponse.md +58 -0
  280. data/docs/TargetEvidenceRow.md +52 -0
  281. data/docs/TargetPatentMentionsResponse.md +58 -0
  282. data/docs/TargetPatentMentionsRow.md +34 -0
  283. data/docs/TargetProgramsResponse.md +58 -0
  284. data/docs/TargetProgramsRow.md +58 -0
  285. data/docs/TargetPublicationsResponse.md +58 -0
  286. data/docs/TargetPublicationsRow.md +32 -0
  287. data/docs/TargetRegulatoryPrecedentResponse.md +58 -0
  288. data/docs/TargetRegulatoryPrecedentRow.md +38 -0
  289. data/docs/TargetTrialsResponse.md +58 -0
  290. data/docs/TargetTrialsRow.md +46 -0
  291. data/docs/TargetsApi.md +1033 -0
  292. data/docs/TargetsRecord.md +38 -0
  293. data/docs/TargetsResponse.md +58 -0
  294. data/docs/TargetsRow.md +68 -0
  295. data/docs/TrialAdverseEventsResponse.md +3 -3
  296. data/docs/TrialChangesResponse.md +3 -3
  297. data/docs/TrialChangesRow.md +5 -1
  298. data/docs/TrialDeliveryResponse.md +3 -3
  299. data/docs/TrialDemographicsResponse.md +3 -3
  300. data/docs/TrialDrugClassesResponse.md +58 -0
  301. data/docs/TrialDrugClassesRow.md +28 -0
  302. data/docs/TrialDrugsResponse.md +3 -3
  303. data/docs/TrialEnrollmentHistoryResponse.md +3 -3
  304. data/docs/TrialEnrollmentRateResponse.md +3 -3
  305. data/docs/TrialExtractedEndpointsResponse.md +3 -3
  306. data/docs/TrialKolsResponse.md +58 -0
  307. data/docs/TrialKolsRow.md +32 -0
  308. data/docs/TrialOutcomeMeasuresResponse.md +3 -3
  309. data/docs/TrialResearchPaymentsResponse.md +58 -0
  310. data/docs/TrialResearchPaymentsRow.md +44 -0
  311. data/docs/TrialSiteHistoryResponse.md +58 -0
  312. data/docs/TrialSiteHistoryRow.md +50 -0
  313. data/docs/TrialSitesResponse.md +3 -3
  314. data/docs/TrialsApi.md +400 -0
  315. data/docs/TrialsRecord.md +2 -2
  316. data/docs/TrialsResponse.md +3 -3
  317. data/docs/TrialsRow.md +9 -1
  318. data/docs/UnmatchedProductRevenueResponse.md +58 -0
  319. data/docs/UnmatchedProductRevenueRow.md +80 -0
  320. data/docs/UntitledLettersResponse.md +58 -0
  321. data/docs/UntitledLettersRow.md +44 -0
  322. data/docs/WarningLettersResponse.md +58 -0
  323. data/docs/WarningLettersRow.md +50 -0
  324. data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
  325. data/lib/pharmaobservatory/api/companies_api.rb +2164 -162
  326. data/lib/pharmaobservatory/api/conditions_api.rb +588 -0
  327. data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
  328. data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
  329. data/lib/pharmaobservatory/api/investors_api.rb +665 -0
  330. data/lib/pharmaobservatory/api/legal_entities_api.rb +1670 -158
  331. data/lib/pharmaobservatory/api/managers_api.rb +245 -0
  332. data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
  333. data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
  334. data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
  335. data/lib/pharmaobservatory/api/rwd_studies_api.rb +497 -0
  336. data/lib/pharmaobservatory/api/suppliers_api.rb +329 -0
  337. data/lib/pharmaobservatory/api/targets_api.rb +1085 -0
  338. data/lib/pharmaobservatory/api/trials_api.rb +420 -0
  339. data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +478 -0
  340. data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_build.rb → biomarker_assay_evidence_response_build.rb} +3 -3
  341. data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_freshness.rb → biomarker_assay_evidence_response_freshness.rb} +3 -3
  342. data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_scope.rb → biomarker_assay_evidence_response_scope.rb} +3 -3
  343. data/lib/pharmaobservatory/models/biomarker_assay_evidence_row.rb +506 -0
  344. data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +478 -0
  345. data/lib/pharmaobservatory/models/biomarker_assay_whitespace_row.rb +499 -0
  346. data/lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb +3 -3
  347. data/lib/pharmaobservatory/models/biomarker_cdx_assertions_response.rb +3 -3
  348. data/lib/pharmaobservatory/models/biomarker_evidence_response.rb +3 -3
  349. data/lib/pharmaobservatory/models/biomarker_literature_response.rb +3 -3
  350. data/lib/pharmaobservatory/models/biomarker_publishing_companies_response.rb +3 -3
  351. data/lib/pharmaobservatory/models/biomarker_publishing_companies_row.rb +49 -5
  352. data/lib/pharmaobservatory/models/biomarker_relations_response.rb +3 -3
  353. data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +3 -3
  354. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +3 -3
  355. data/lib/pharmaobservatory/models/biomarker_validation_response.rb +3 -3
  356. data/lib/pharmaobservatory/models/biomarker_variant_mentions_response.rb +3 -3
  357. data/lib/pharmaobservatory/models/biomarkers_record.rb +2 -2
  358. data/lib/pharmaobservatory/models/biomarkers_response.rb +3 -3
  359. data/lib/pharmaobservatory/models/biomarkers_row.rb +12 -1
  360. data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
  361. data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
  362. data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
  363. data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
  364. data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
  365. data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
  366. data/lib/pharmaobservatory/models/cell_lines_record.rb +2 -2
  367. data/lib/pharmaobservatory/models/cell_lines_response.rb +3 -3
  368. data/lib/pharmaobservatory/models/clia_certificates_response.rb +478 -0
  369. data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
  370. data/lib/pharmaobservatory/models/companies_record.rb +2 -2
  371. data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
  372. data/lib/pharmaobservatory/models/companies_response.rb +3 -3
  373. data/lib/pharmaobservatory/models/companies_row.rb +1 -1
  374. data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
  375. data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
  376. data/lib/pharmaobservatory/models/company_funding_events_row.rb +13 -2
  377. data/lib/pharmaobservatory/models/company_funding_summary_response.rb +3 -3
  378. data/lib/pharmaobservatory/models/company_members_response.rb +3 -3
  379. data/lib/pharmaobservatory/models/company_programs_response.rb +3 -3
  380. data/lib/pharmaobservatory/models/company_targets_response.rb +3 -3
  381. data/lib/pharmaobservatory/models/company_targets_row.rb +27 -5
  382. data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
  383. data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
  384. data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
  385. data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -0
  386. data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +3 -3
  387. data/lib/pharmaobservatory/models/condition_burden_response.rb +3 -3
  388. data/lib/pharmaobservatory/models/condition_delivery_response.rb +3 -3
  389. data/lib/pharmaobservatory/models/condition_drugs_response.rb +3 -3
  390. data/lib/pharmaobservatory/models/condition_prevalence_response.rb +3 -3
  391. data/lib/pharmaobservatory/models/condition_prevalence_row.rb +1 -1
  392. data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
  393. data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +478 -0
  394. data/lib/pharmaobservatory/models/condition_recruitment_by_phase_row.rb +399 -0
  395. data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +478 -0
  396. data/lib/pharmaobservatory/models/condition_recruitment_duration_row.rb +597 -0
  397. data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
  398. data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +478 -0
  399. data/lib/pharmaobservatory/models/condition_trial_start_forecast_row.rb +509 -0
  400. data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
  401. data/lib/pharmaobservatory/models/condition_trials_row.rb +1 -1
  402. data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
  403. data/lib/pharmaobservatory/models/conditions_record_attributes.rb +13 -4
  404. data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
  405. data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
  406. data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
  407. data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
  408. data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
  409. data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
  410. data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
  411. data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
  412. data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
  413. data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
  414. data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
  415. data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
  416. data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
  417. data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
  418. data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
  419. data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
  420. data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
  421. data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
  422. data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
  423. data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
  424. data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
  425. data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
  426. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
  427. data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
  428. data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
  429. data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
  430. data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
  431. data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
  432. data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
  433. data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
  434. data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
  435. data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
  436. data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
  437. data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
  438. data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
  439. data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
  440. data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
  441. data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
  442. data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
  443. data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
  444. data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
  445. data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
  446. data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
  447. data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
  448. data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
  449. data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
  450. data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
  451. data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
  452. data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
  453. data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
  454. data/lib/pharmaobservatory/models/gxp_facilities_row.rb +968 -0
  455. data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
  456. data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
  457. data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
  458. data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
  459. data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
  460. data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
  461. data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
  462. data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
  463. data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
  464. data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
  465. data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
  466. data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
  467. data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
  468. data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
  469. data/lib/pharmaobservatory/models/institutional_holdings_row.rb +35 -2
  470. data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
  471. data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
  472. data/lib/pharmaobservatory/models/investor_funds_response.rb +478 -0
  473. data/lib/pharmaobservatory/models/investor_funds_row.rb +256 -0
  474. data/lib/pharmaobservatory/models/investor_portfolio_response.rb +478 -0
  475. data/lib/pharmaobservatory/models/investor_portfolio_row.rb +357 -0
  476. data/lib/pharmaobservatory/models/investor_private_funds_response.rb +478 -0
  477. data/lib/pharmaobservatory/models/investor_private_funds_row.rb +366 -0
  478. data/lib/pharmaobservatory/models/investors_record.rb +385 -0
  479. data/lib/pharmaobservatory/models/investors_response.rb +478 -0
  480. data/lib/pharmaobservatory/models/investors_row.rb +421 -0
  481. data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
  482. data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +10 -1
  483. data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
  484. data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
  485. data/lib/pharmaobservatory/models/managers_record.rb +385 -0
  486. data/lib/pharmaobservatory/models/managers_response.rb +478 -0
  487. data/lib/pharmaobservatory/models/managers_row.rb +377 -0
  488. data/lib/pharmaobservatory/models/org_disclosures_response.rb +478 -0
  489. data/lib/pharmaobservatory/models/org_disclosures_row.rb +432 -0
  490. data/lib/pharmaobservatory/models/org_relationships_response.rb +478 -0
  491. data/lib/pharmaobservatory/models/org_relationships_row.rb +498 -0
  492. data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
  493. data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
  494. data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
  495. data/lib/pharmaobservatory/models/ownership_positions_row.rb +26 -15
  496. data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
  497. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
  498. data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
  499. data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +445 -0
  500. data/lib/pharmaobservatory/models/programs_response.rb +478 -0
  501. data/lib/pharmaobservatory/models/programs_row.rb +377 -0
  502. data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
  503. data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
  504. data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
  505. data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
  506. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
  507. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
  508. data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
  509. data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
  510. data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
  511. data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
  512. data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
  513. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
  514. data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
  515. data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
  516. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
  517. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
  518. data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
  519. data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
  520. data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
  521. data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
  522. data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
  523. data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
  524. data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
  525. data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
  526. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
  527. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
  528. data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
  529. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
  530. data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
  531. data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
  532. data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
  533. data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
  534. data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
  535. data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
  536. data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
  537. data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
  538. data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
  539. data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
  540. data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
  541. data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
  542. data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
  543. data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
  544. data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
  545. data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
  546. data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
  547. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
  548. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
  549. data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
  550. data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
  551. data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
  552. data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
  553. data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
  554. data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
  555. data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
  556. data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
  557. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
  558. data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
  559. data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
  560. data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
  561. data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
  562. data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
  563. data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
  564. data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
  565. data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
  566. data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
  567. data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
  568. data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
  569. data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
  570. data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
  571. data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
  572. data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
  573. data/lib/pharmaobservatory/models/site_beds_yearly_response.rb +3 -3
  574. data/lib/pharmaobservatory/models/site_cro_trials_response.rb +3 -3
  575. data/lib/pharmaobservatory/models/site_hospitals_response.rb +3 -3
  576. data/lib/pharmaobservatory/models/site_investigators_response.rb +3 -3
  577. data/lib/pharmaobservatory/models/site_trial_conditions_response.rb +3 -3
  578. data/lib/pharmaobservatory/models/site_trial_drugs_response.rb +3 -3
  579. data/lib/pharmaobservatory/models/site_trials_response.rb +3 -3
  580. data/lib/pharmaobservatory/models/sites_record.rb +2 -2
  581. data/lib/pharmaobservatory/models/sites_response.rb +3 -3
  582. data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_response.rb +3 -3
  583. data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
  584. data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
  585. data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
  586. data/lib/pharmaobservatory/models/sponsor_trials_row.rb +1 -1
  587. data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +478 -0
  588. data/lib/pharmaobservatory/models/supplier_capability_esg_row.rb +480 -0
  589. data/lib/pharmaobservatory/models/supplier_services_response.rb +478 -0
  590. data/lib/pharmaobservatory/models/supplier_services_row.rb +289 -0
  591. data/lib/pharmaobservatory/models/supplier_sites_response.rb +478 -0
  592. data/lib/pharmaobservatory/models/supplier_sites_row.rb +357 -0
  593. data/lib/pharmaobservatory/models/suppliers_record.rb +385 -0
  594. data/lib/pharmaobservatory/models/suppliers_response.rb +478 -0
  595. data/lib/pharmaobservatory/models/suppliers_row.rb +544 -0
  596. data/lib/pharmaobservatory/models/target_associations_response.rb +478 -0
  597. data/lib/pharmaobservatory/models/target_associations_row.rb +267 -0
  598. data/lib/pharmaobservatory/models/target_crowding_response.rb +478 -0
  599. data/lib/pharmaobservatory/models/target_crowding_row.rb +289 -0
  600. data/lib/pharmaobservatory/models/target_drugs_response.rb +478 -0
  601. data/lib/pharmaobservatory/models/target_drugs_row.rb +335 -0
  602. data/lib/pharmaobservatory/models/target_evidence_response.rb +478 -0
  603. data/lib/pharmaobservatory/models/target_evidence_row.rb +410 -0
  604. data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +478 -0
  605. data/lib/pharmaobservatory/models/target_patent_mentions_row.rb +311 -0
  606. data/lib/pharmaobservatory/models/target_programs_response.rb +478 -0
  607. data/lib/pharmaobservatory/models/target_programs_row.rb +447 -0
  608. data/lib/pharmaobservatory/models/target_publications_response.rb +478 -0
  609. data/lib/pharmaobservatory/models/target_publications_row.rb +300 -0
  610. data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +478 -0
  611. data/lib/pharmaobservatory/models/target_regulatory_precedent_row.rb +333 -0
  612. data/lib/pharmaobservatory/models/target_trials_response.rb +478 -0
  613. data/lib/pharmaobservatory/models/target_trials_row.rb +377 -0
  614. data/lib/pharmaobservatory/models/targets_record.rb +385 -0
  615. data/lib/pharmaobservatory/models/targets_response.rb +478 -0
  616. data/lib/pharmaobservatory/models/targets_row.rb +498 -0
  617. data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +3 -3
  618. data/lib/pharmaobservatory/models/trial_changes_response.rb +3 -3
  619. data/lib/pharmaobservatory/models/trial_changes_row.rb +24 -2
  620. data/lib/pharmaobservatory/models/trial_delivery_response.rb +3 -3
  621. data/lib/pharmaobservatory/models/trial_demographics_response.rb +3 -3
  622. data/lib/pharmaobservatory/models/trial_drug_classes_response.rb +478 -0
  623. data/lib/pharmaobservatory/models/trial_drug_classes_row.rb +278 -0
  624. data/lib/pharmaobservatory/models/trial_drugs_response.rb +3 -3
  625. data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +3 -3
  626. data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +3 -3
  627. data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +3 -3
  628. data/lib/pharmaobservatory/models/trial_kols_response.rb +478 -0
  629. data/lib/pharmaobservatory/models/trial_kols_row.rb +302 -0
  630. data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
  631. data/lib/pharmaobservatory/models/trial_research_payments_response.rb +478 -0
  632. data/lib/pharmaobservatory/models/trial_research_payments_row.rb +366 -0
  633. data/lib/pharmaobservatory/models/trial_site_history_response.rb +478 -0
  634. data/lib/pharmaobservatory/models/trial_site_history_row.rb +401 -0
  635. data/lib/pharmaobservatory/models/trial_sites_response.rb +3 -3
  636. data/lib/pharmaobservatory/models/trials_record.rb +2 -2
  637. data/lib/pharmaobservatory/models/trials_response.rb +3 -3
  638. data/lib/pharmaobservatory/models/trials_row.rb +47 -3
  639. data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
  640. data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
  641. data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
  642. data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
  643. data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
  644. data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
  645. data/lib/pharmaobservatory/version.rb +1 -1
  646. data/lib/pharmaobservatory.rb +235 -3
  647. metadata +472 -8
@@ -19,6 +19,174 @@ module PharmaObservatory
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
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 [CatalystsResponse]
31
+ def legal_entities_catalysts(id, opts = {})
32
+ data, _status_code, _headers = legal_entities_catalysts_with_http_info(id, opts)
33
+ data
34
+ end
35
+
36
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
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<(CatalystsResponse, Integer, Hash)>] CatalystsResponse data, response status code and response headers
45
+ def legal_entities_catalysts_with_http_info(id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_catalysts ...'
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_catalysts"
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_catalysts, 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_catalysts, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/api/v1/legal_entities/{id}/catalysts'.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] || 'CatalystsResponse'
85
+
86
+ # auth_names
87
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
88
+
89
+ new_options = opts.merge(
90
+ :operation => :"LegalEntitiesApi.legal_entities_catalysts",
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_catalysts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ end
103
+ return data, status_code, headers
104
+ end
105
+
106
+ # CLIA laboratory certificates
107
+ # @param id [String]
108
+ # @param [Hash] opts the optional parameters
109
+ # @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.
110
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
111
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
112
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
113
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
114
+ # @return [CliaCertificatesResponse]
115
+ def legal_entities_clia_certificates(id, opts = {})
116
+ data, _status_code, _headers = legal_entities_clia_certificates_with_http_info(id, opts)
117
+ data
118
+ end
119
+
120
+ # CLIA laboratory certificates
121
+ # @param id [String]
122
+ # @param [Hash] opts the optional parameters
123
+ # @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.
124
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
125
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
126
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
127
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
128
+ # @return [Array<(CliaCertificatesResponse, Integer, Hash)>] CliaCertificatesResponse data, response status code and response headers
129
+ def legal_entities_clia_certificates_with_http_info(id, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_clia_certificates ...'
132
+ end
133
+ # verify the required parameter 'id' is set
134
+ if @api_client.config.client_side_validation && id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_clia_certificates"
136
+ end
137
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
138
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_clia_certificates, must be smaller than or equal to 500.'
139
+ end
140
+
141
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
142
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_clia_certificates, must be greater than or equal to 1.'
143
+ end
144
+
145
+ # resource path
146
+ local_var_path = '/api/v1/legal_entities/{id}/clia_certificates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
147
+
148
+ # query parameters
149
+ query_params = opts[:query_params] || {}
150
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
151
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
152
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
153
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
154
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
155
+
156
+ # header parameters
157
+ header_params = opts[:header_params] || {}
158
+ # HTTP header 'Accept' (if needed)
159
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
160
+
161
+ # form parameters
162
+ form_params = opts[:form_params] || {}
163
+
164
+ # http body (model)
165
+ post_body = opts[:debug_body]
166
+
167
+ # return_type
168
+ return_type = opts[:debug_return_type] || 'CliaCertificatesResponse'
169
+
170
+ # auth_names
171
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
172
+
173
+ new_options = opts.merge(
174
+ :operation => :"LegalEntitiesApi.legal_entities_clia_certificates",
175
+ :header_params => header_params,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body,
179
+ :auth_names => auth_names,
180
+ :return_type => return_type
181
+ )
182
+
183
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_clia_certificates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+
22
190
  # Company assets (approved and marketed drugs)
23
191
  # @param id [String]
24
192
  # @param [Hash] opts the optional parameters
@@ -117,7 +285,1322 @@ module PharmaObservatory
117
285
  data
118
286
  end
119
287
 
120
- # Company programs
288
+ # Company programs
289
+ # @param id [String]
290
+ # @param [Hash] opts the optional parameters
291
+ # @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.
292
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
293
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
294
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
295
+ # @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 = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_programs ...'
300
+ end
301
+ # verify the required parameter 'id' is set
302
+ if @api_client.config.client_side_validation && id.nil?
303
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_programs"
304
+ end
305
+ 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.'
307
+ end
308
+
309
+ 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.'
311
+ end
312
+
313
+ # resource path
314
+ local_var_path = '/api/v1/legal_entities/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
315
+
316
+ # query parameters
317
+ query_params = opts[:query_params] || {}
318
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
319
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
320
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
321
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
322
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
323
+
324
+ # header parameters
325
+ header_params = opts[:header_params] || {}
326
+ # HTTP header 'Accept' (if needed)
327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
328
+
329
+ # form parameters
330
+ form_params = opts[:form_params] || {}
331
+
332
+ # http body (model)
333
+ post_body = opts[:debug_body]
334
+
335
+ # return_type
336
+ return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
337
+
338
+ # auth_names
339
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
340
+
341
+ new_options = opts.merge(
342
+ :operation => :"LegalEntitiesApi.legal_entities_company_programs",
343
+ :header_params => header_params,
344
+ :query_params => query_params,
345
+ :form_params => form_params,
346
+ :body => post_body,
347
+ :auth_names => auth_names,
348
+ :return_type => return_type
349
+ )
350
+
351
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
352
+ 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}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+
358
+ # FDA firm debarments
359
+ # @param id [String]
360
+ # @param [Hash] opts the optional parameters
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.
362
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
363
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
364
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
365
+ # @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)
369
+ data
370
+ end
371
+
372
+ # FDA firm debarments
373
+ # @param id [String]
374
+ # @param [Hash] opts the optional parameters
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.
376
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
377
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
378
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
379
+ # @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 = {})
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_debarments ...'
384
+ end
385
+ # verify the required parameter 'id' is set
386
+ if @api_client.config.client_side_validation && id.nil?
387
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_debarments"
388
+ end
389
+ 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.'
391
+ end
392
+
393
+ 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.'
395
+ end
396
+
397
+ # resource path
398
+ local_var_path = '/api/v1/legal_entities/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
399
+
400
+ # query parameters
401
+ query_params = opts[:query_params] || {}
402
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
403
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
404
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
405
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
406
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
407
+
408
+ # header parameters
409
+ header_params = opts[:header_params] || {}
410
+ # HTTP header 'Accept' (if needed)
411
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
412
+
413
+ # form parameters
414
+ form_params = opts[:form_params] || {}
415
+
416
+ # http body (model)
417
+ post_body = opts[:debug_body]
418
+
419
+ # return_type
420
+ return_type = opts[:debug_return_type] || 'DebarmentsResponse'
421
+
422
+ # auth_names
423
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
424
+
425
+ new_options = opts.merge(
426
+ :operation => :"LegalEntitiesApi.legal_entities_debarments",
427
+ :header_params => header_params,
428
+ :query_params => query_params,
429
+ :form_params => form_params,
430
+ :body => post_body,
431
+ :auth_names => auth_names,
432
+ :return_type => return_type
433
+ )
434
+
435
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
436
+ 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}"
438
+ end
439
+ return data, status_code, headers
440
+ end
441
+
442
+ # Patent-cliff exposure
443
+ # @param id [String]
444
+ # @param [Hash] opts the optional parameters
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.
446
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
447
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
448
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
449
+ # @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)
453
+ data
454
+ end
455
+
456
+ # Patent-cliff exposure
457
+ # @param id [String]
458
+ # @param [Hash] opts the optional parameters
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.
460
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
461
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
462
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
463
+ # @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 = {})
466
+ if @api_client.config.debugging
467
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
468
+ end
469
+ # verify the required parameter 'id' is set
470
+ 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"
472
+ end
473
+ 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.'
475
+ end
476
+
477
+ 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.'
479
+ end
480
+
481
+ # resource path
482
+ local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
483
+
484
+ # query parameters
485
+ query_params = opts[:query_params] || {}
486
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
487
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
488
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
489
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
490
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
491
+
492
+ # header parameters
493
+ header_params = opts[:header_params] || {}
494
+ # HTTP header 'Accept' (if needed)
495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
496
+
497
+ # form parameters
498
+ form_params = opts[:form_params] || {}
499
+
500
+ # http body (model)
501
+ post_body = opts[:debug_body]
502
+
503
+ # return_type
504
+ return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
505
+
506
+ # auth_names
507
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
508
+
509
+ new_options = opts.merge(
510
+ :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
511
+ :header_params => header_params,
512
+ :query_params => query_params,
513
+ :form_params => form_params,
514
+ :body => post_body,
515
+ :auth_names => auth_names,
516
+ :return_type => return_type
517
+ )
518
+
519
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
520
+ 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}"
522
+ end
523
+ return data, status_code, headers
524
+ end
525
+
526
+ # FDA enforcement events
527
+ # @param id [String]
528
+ # @param [Hash] opts the optional parameters
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.
530
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
531
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
532
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
533
+ # @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)
537
+ data
538
+ end
539
+
540
+ # FDA enforcement events
541
+ # @param id [String]
542
+ # @param [Hash] opts the optional parameters
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.
544
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
545
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
546
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
547
+ # @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 = {})
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_enforcement_events ...'
552
+ end
553
+ # verify the required parameter 'id' is set
554
+ if @api_client.config.client_side_validation && id.nil?
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_enforcement_events"
556
+ end
557
+ 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.'
559
+ end
560
+
561
+ 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.'
563
+ end
564
+
565
+ # resource path
566
+ local_var_path = '/api/v1/legal_entities/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
567
+
568
+ # query parameters
569
+ query_params = opts[:query_params] || {}
570
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
571
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
572
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
573
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
574
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
575
+
576
+ # header parameters
577
+ header_params = opts[:header_params] || {}
578
+ # HTTP header 'Accept' (if needed)
579
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
580
+
581
+ # form parameters
582
+ form_params = opts[:form_params] || {}
583
+
584
+ # http body (model)
585
+ post_body = opts[:debug_body]
586
+
587
+ # return_type
588
+ return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
589
+
590
+ # auth_names
591
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
592
+
593
+ new_options = opts.merge(
594
+ :operation => :"LegalEntitiesApi.legal_entities_enforcement_events",
595
+ :header_params => header_params,
596
+ :query_params => query_params,
597
+ :form_params => form_params,
598
+ :body => post_body,
599
+ :auth_names => auth_names,
600
+ :return_type => return_type
601
+ )
602
+
603
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
604
+ 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}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # One legal entity
611
+ # @param id [String]
612
+ # @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)
616
+ data
617
+ end
618
+
619
+ # One legal entity
620
+ # @param id [String]
621
+ # @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 = {})
624
+ if @api_client.config.debugging
625
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
626
+ end
627
+ # verify the required parameter 'id' is set
628
+ if @api_client.config.client_side_validation && id.nil?
629
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
630
+ end
631
+ # resource path
632
+ local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
633
+
634
+ # query parameters
635
+ query_params = opts[:query_params] || {}
636
+
637
+ # header parameters
638
+ header_params = opts[:header_params] || {}
639
+ # HTTP header 'Accept' (if needed)
640
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
641
+
642
+ # form parameters
643
+ form_params = opts[:form_params] || {}
644
+
645
+ # http body (model)
646
+ post_body = opts[:debug_body]
647
+
648
+ # return_type
649
+ return_type = opts[:debug_return_type] || 'LegalEntitiesRecord'
650
+
651
+ # auth_names
652
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
653
+
654
+ new_options = opts.merge(
655
+ :operation => :"LegalEntitiesApi.legal_entities_get",
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => return_type
662
+ )
663
+
664
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
665
+ 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}"
667
+ end
668
+ return data, status_code, headers
669
+ end
670
+
671
+ # GxP facilities and quality signals
672
+ # @param id [String]
673
+ # @param [Hash] opts the optional parameters
674
+ # @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.
675
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
676
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
677
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
678
+ # @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)
682
+ data
683
+ end
684
+
685
+ # GxP facilities and quality signals
686
+ # @param id [String]
687
+ # @param [Hash] opts the optional parameters
688
+ # @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.
689
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
690
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
691
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
692
+ # @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 = {})
695
+ if @api_client.config.debugging
696
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_gxp_facilities ...'
697
+ end
698
+ # verify the required parameter 'id' is set
699
+ if @api_client.config.client_side_validation && id.nil?
700
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_gxp_facilities"
701
+ end
702
+ 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.'
704
+ end
705
+
706
+ 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.'
708
+ end
709
+
710
+ # resource path
711
+ local_var_path = '/api/v1/legal_entities/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
712
+
713
+ # query parameters
714
+ query_params = opts[:query_params] || {}
715
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
716
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
717
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
718
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
719
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
720
+
721
+ # header parameters
722
+ header_params = opts[:header_params] || {}
723
+ # HTTP header 'Accept' (if needed)
724
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
725
+
726
+ # form parameters
727
+ form_params = opts[:form_params] || {}
728
+
729
+ # http body (model)
730
+ post_body = opts[:debug_body]
731
+
732
+ # return_type
733
+ return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
734
+
735
+ # auth_names
736
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
737
+
738
+ new_options = opts.merge(
739
+ :operation => :"LegalEntitiesApi.legal_entities_gxp_facilities",
740
+ :header_params => header_params,
741
+ :query_params => query_params,
742
+ :form_params => form_params,
743
+ :body => post_body,
744
+ :auth_names => auth_names,
745
+ :return_type => return_type
746
+ )
747
+
748
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
749
+ 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}"
751
+ end
752
+ return data, status_code, headers
753
+ end
754
+
755
+ # FDA import refusals
756
+ # @param id [String]
757
+ # @param [Hash] opts the optional parameters
758
+ # @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.
759
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
760
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
761
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
762
+ # @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)
766
+ data
767
+ end
768
+
769
+ # FDA import refusals
770
+ # @param id [String]
771
+ # @param [Hash] opts the optional parameters
772
+ # @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.
773
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
774
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
775
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
776
+ # @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 = {})
779
+ if @api_client.config.debugging
780
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_import_refusals ...'
781
+ end
782
+ # verify the required parameter 'id' is set
783
+ if @api_client.config.client_side_validation && id.nil?
784
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_import_refusals"
785
+ end
786
+ 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.'
788
+ end
789
+
790
+ 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.'
792
+ end
793
+
794
+ # resource path
795
+ local_var_path = '/api/v1/legal_entities/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
796
+
797
+ # query parameters
798
+ query_params = opts[:query_params] || {}
799
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
800
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
801
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
802
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
803
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
804
+
805
+ # header parameters
806
+ header_params = opts[:header_params] || {}
807
+ # HTTP header 'Accept' (if needed)
808
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
809
+
810
+ # form parameters
811
+ form_params = opts[:form_params] || {}
812
+
813
+ # http body (model)
814
+ post_body = opts[:debug_body]
815
+
816
+ # return_type
817
+ return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
818
+
819
+ # auth_names
820
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
821
+
822
+ new_options = opts.merge(
823
+ :operation => :"LegalEntitiesApi.legal_entities_import_refusals",
824
+ :header_params => header_params,
825
+ :query_params => query_params,
826
+ :form_params => form_params,
827
+ :body => post_body,
828
+ :auth_names => auth_names,
829
+ :return_type => return_type
830
+ )
831
+
832
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
833
+ 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}"
835
+ end
836
+ return data, status_code, headers
837
+ end
838
+
839
+ # FDA inspection findings
840
+ # @param id [String]
841
+ # @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).
847
+ # @return [InspectionFindingsResponse]
848
+ def legal_entities_inspection_findings(id, opts = {})
849
+ data, _status_code, _headers = legal_entities_inspection_findings_with_http_info(id, opts)
850
+ data
851
+ end
852
+
853
+ # FDA inspection findings
854
+ # @param id [String]
855
+ # @param [Hash] opts the optional parameters
856
+ # @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.
857
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
858
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
859
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
860
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
861
+ # @return [Array<(InspectionFindingsResponse, Integer, Hash)>] InspectionFindingsResponse data, response status code and response headers
862
+ def legal_entities_inspection_findings_with_http_info(id, opts = {})
863
+ if @api_client.config.debugging
864
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_inspection_findings ...'
865
+ end
866
+ # verify the required parameter 'id' is set
867
+ if @api_client.config.client_side_validation && id.nil?
868
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_inspection_findings"
869
+ end
870
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
871
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_inspection_findings, must be smaller than or equal to 500.'
872
+ end
873
+
874
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
875
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_inspection_findings, must be greater than or equal to 1.'
876
+ end
877
+
878
+ # resource path
879
+ local_var_path = '/api/v1/legal_entities/{id}/inspection_findings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
880
+
881
+ # query parameters
882
+ query_params = opts[:query_params] || {}
883
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
884
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
885
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
886
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
887
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
888
+
889
+ # header parameters
890
+ header_params = opts[:header_params] || {}
891
+ # HTTP header 'Accept' (if needed)
892
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
893
+
894
+ # form parameters
895
+ form_params = opts[:form_params] || {}
896
+
897
+ # http body (model)
898
+ post_body = opts[:debug_body]
899
+
900
+ # return_type
901
+ return_type = opts[:debug_return_type] || 'InspectionFindingsResponse'
902
+
903
+ # auth_names
904
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
905
+
906
+ new_options = opts.merge(
907
+ :operation => :"LegalEntitiesApi.legal_entities_inspection_findings",
908
+ :header_params => header_params,
909
+ :query_params => query_params,
910
+ :form_params => form_params,
911
+ :body => post_body,
912
+ :auth_names => auth_names,
913
+ :return_type => return_type
914
+ )
915
+
916
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
917
+ if @api_client.config.debugging
918
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_inspection_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
919
+ end
920
+ return data, status_code, headers
921
+ end
922
+
923
+ # FDA inspections
924
+ # @param id [String]
925
+ # @param [Hash] opts the optional parameters
926
+ # @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.
927
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
928
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
929
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
930
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
931
+ # @return [InspectionsResponse]
932
+ def legal_entities_inspections(id, opts = {})
933
+ data, _status_code, _headers = legal_entities_inspections_with_http_info(id, opts)
934
+ data
935
+ end
936
+
937
+ # FDA inspections
938
+ # @param id [String]
939
+ # @param [Hash] opts the optional parameters
940
+ # @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.
941
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
942
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
943
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
944
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
945
+ # @return [Array<(InspectionsResponse, Integer, Hash)>] InspectionsResponse data, response status code and response headers
946
+ def legal_entities_inspections_with_http_info(id, opts = {})
947
+ if @api_client.config.debugging
948
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_inspections ...'
949
+ end
950
+ # verify the required parameter 'id' is set
951
+ if @api_client.config.client_side_validation && id.nil?
952
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_inspections"
953
+ end
954
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
955
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_inspections, must be smaller than or equal to 500.'
956
+ end
957
+
958
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
959
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_inspections, must be greater than or equal to 1.'
960
+ end
961
+
962
+ # resource path
963
+ local_var_path = '/api/v1/legal_entities/{id}/inspections'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
964
+
965
+ # query parameters
966
+ query_params = opts[:query_params] || {}
967
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
968
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
969
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
970
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
971
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
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] || 'InspectionsResponse'
986
+
987
+ # auth_names
988
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
989
+
990
+ new_options = opts.merge(
991
+ :operation => :"LegalEntitiesApi.legal_entities_inspections",
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_inspections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1003
+ end
1004
+ return data, status_code, headers
1005
+ end
1006
+
1007
+ # Institutional holdings (SEC Form 13F)
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 [InstitutionalHoldingsResponse]
1016
+ def legal_entities_institutional_holdings(id, opts = {})
1017
+ data, _status_code, _headers = legal_entities_institutional_holdings_with_http_info(id, opts)
1018
+ data
1019
+ end
1020
+
1021
+ # Institutional holdings (SEC Form 13F)
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<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1030
+ def legal_entities_institutional_holdings_with_http_info(id, opts = {})
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
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_institutional_holdings"
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_institutional_holdings, 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_institutional_holdings, must be greater than or equal to 1.'
1044
+ end
1045
+
1046
+ # resource path
1047
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.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] || 'InstitutionalHoldingsResponse'
1070
+
1071
+ # auth_names
1072
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1073
+
1074
+ new_options = opts.merge(
1075
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
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_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ # Institutional quarter totals (SEC Form 13F)
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 [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)
1102
+ data
1103
+ end
1104
+
1105
+ # Institutional quarter totals (SEC Form 13F)
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<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
1114
+ def legal_entities_institutional_quarter_totals_with_http_info(id, opts = {})
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_quarter_totals ...'
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_institutional_quarter_totals"
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_institutional_quarter_totals, 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_institutional_quarter_totals, must be greater than or equal to 1.'
1128
+ end
1129
+
1130
+ # resource path
1131
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_quarter_totals'.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] || 'InstitutionalQuarterTotalsResponse'
1154
+
1155
+ # auth_names
1156
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1157
+
1158
+ new_options = opts.merge(
1159
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_quarter_totals",
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_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
+ end
1172
+ return data, status_code, headers
1173
+ end
1174
+
1175
+ # List legal entities
1176
+ # @param [Hash] opts the optional parameters
1177
+ # @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
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1179
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1180
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1181
+ # @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)
1185
+ data
1186
+ end
1187
+
1188
+ # List legal entities
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @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
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1192
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1193
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1194
+ # @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 = {})
1197
+ if @api_client.config.debugging
1198
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
1199
+ end
1200
+ 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.'
1202
+ end
1203
+
1204
+ 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.'
1206
+ end
1207
+
1208
+ # resource path
1209
+ local_var_path = '/api/v1/legal_entities'
1210
+
1211
+ # query parameters
1212
+ query_params = opts[:query_params] || {}
1213
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1214
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1215
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1216
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1217
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1218
+
1219
+ # header parameters
1220
+ header_params = opts[:header_params] || {}
1221
+ # HTTP header 'Accept' (if needed)
1222
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1223
+
1224
+ # form parameters
1225
+ form_params = opts[:form_params] || {}
1226
+
1227
+ # http body (model)
1228
+ post_body = opts[:debug_body]
1229
+
1230
+ # return_type
1231
+ return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
1232
+
1233
+ # auth_names
1234
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1235
+
1236
+ new_options = opts.merge(
1237
+ :operation => :"LegalEntitiesApi.legal_entities_list",
1238
+ :header_params => header_params,
1239
+ :query_params => query_params,
1240
+ :form_params => form_params,
1241
+ :body => post_body,
1242
+ :auth_names => auth_names,
1243
+ :return_type => return_type
1244
+ )
1245
+
1246
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1247
+ 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}"
1249
+ end
1250
+ return data, status_code, headers
1251
+ end
1252
+
1253
+ # Organization disclosures (climate and diversity)
1254
+ # @param id [String]
1255
+ # @param [Hash] opts the optional parameters
1256
+ # @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.
1257
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1258
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1259
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1260
+ # @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)
1264
+ data
1265
+ end
1266
+
1267
+ # Organization disclosures (climate and diversity)
1268
+ # @param id [String]
1269
+ # @param [Hash] opts the optional parameters
1270
+ # @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.
1271
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1272
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1273
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1274
+ # @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 = {})
1277
+ if @api_client.config.debugging
1278
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
1279
+ end
1280
+ # verify the required parameter 'id' is set
1281
+ if @api_client.config.client_side_validation && id.nil?
1282
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
1283
+ end
1284
+ 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.'
1286
+ end
1287
+
1288
+ 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.'
1290
+ end
1291
+
1292
+ # resource path
1293
+ local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1294
+
1295
+ # query parameters
1296
+ query_params = opts[:query_params] || {}
1297
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1298
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1299
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1300
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1301
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1302
+
1303
+ # header parameters
1304
+ header_params = opts[:header_params] || {}
1305
+ # HTTP header 'Accept' (if needed)
1306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1307
+
1308
+ # form parameters
1309
+ form_params = opts[:form_params] || {}
1310
+
1311
+ # http body (model)
1312
+ post_body = opts[:debug_body]
1313
+
1314
+ # return_type
1315
+ return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
1316
+
1317
+ # auth_names
1318
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1319
+
1320
+ new_options = opts.merge(
1321
+ :operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
1322
+ :header_params => header_params,
1323
+ :query_params => query_params,
1324
+ :form_params => form_params,
1325
+ :body => post_body,
1326
+ :auth_names => auth_names,
1327
+ :return_type => return_type
1328
+ )
1329
+
1330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1331
+ 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}"
1333
+ end
1334
+ return data, status_code, headers
1335
+ end
1336
+
1337
+ # Organization relationships
1338
+ # @param id [String]
1339
+ # @param [Hash] opts the optional parameters
1340
+ # @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.
1341
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1342
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1343
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1344
+ # @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)
1348
+ data
1349
+ end
1350
+
1351
+ # Organization relationships
1352
+ # @param id [String]
1353
+ # @param [Hash] opts the optional parameters
1354
+ # @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.
1355
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1356
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1357
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1358
+ # @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 = {})
1361
+ if @api_client.config.debugging
1362
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
1363
+ end
1364
+ # verify the required parameter 'id' is set
1365
+ if @api_client.config.client_side_validation && id.nil?
1366
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
1367
+ end
1368
+ 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.'
1370
+ end
1371
+
1372
+ 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.'
1374
+ end
1375
+
1376
+ # resource path
1377
+ local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1378
+
1379
+ # query parameters
1380
+ query_params = opts[:query_params] || {}
1381
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1382
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1383
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1384
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1385
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1386
+
1387
+ # header parameters
1388
+ header_params = opts[:header_params] || {}
1389
+ # HTTP header 'Accept' (if needed)
1390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1391
+
1392
+ # form parameters
1393
+ form_params = opts[:form_params] || {}
1394
+
1395
+ # http body (model)
1396
+ post_body = opts[:debug_body]
1397
+
1398
+ # return_type
1399
+ return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
1400
+
1401
+ # auth_names
1402
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1403
+
1404
+ new_options = opts.merge(
1405
+ :operation => :"LegalEntitiesApi.legal_entities_org_relationships",
1406
+ :header_params => header_params,
1407
+ :query_params => query_params,
1408
+ :form_params => form_params,
1409
+ :body => post_body,
1410
+ :auth_names => auth_names,
1411
+ :return_type => return_type
1412
+ )
1413
+
1414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1415
+ 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}"
1417
+ end
1418
+ return data, status_code, headers
1419
+ end
1420
+
1421
+ # Ownership percentages
1422
+ # @param id [String]
1423
+ # @param [Hash] opts the optional parameters
1424
+ # @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.
1425
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1426
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1427
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1428
+ # @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)
1432
+ data
1433
+ end
1434
+
1435
+ # Ownership percentages
1436
+ # @param id [String]
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @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.
1439
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1440
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1441
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1442
+ # @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 = {})
1445
+ if @api_client.config.debugging
1446
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_percentages ...'
1447
+ end
1448
+ # verify the required parameter 'id' is set
1449
+ if @api_client.config.client_side_validation && id.nil?
1450
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_percentages"
1451
+ end
1452
+ 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.'
1454
+ end
1455
+
1456
+ 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.'
1458
+ end
1459
+
1460
+ # resource path
1461
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1462
+
1463
+ # query parameters
1464
+ query_params = opts[:query_params] || {}
1465
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1466
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1467
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1468
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1469
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1470
+
1471
+ # header parameters
1472
+ header_params = opts[:header_params] || {}
1473
+ # HTTP header 'Accept' (if needed)
1474
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1475
+
1476
+ # form parameters
1477
+ form_params = opts[:form_params] || {}
1478
+
1479
+ # http body (model)
1480
+ post_body = opts[:debug_body]
1481
+
1482
+ # return_type
1483
+ return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
1484
+
1485
+ # auth_names
1486
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1487
+
1488
+ new_options = opts.merge(
1489
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_percentages",
1490
+ :header_params => header_params,
1491
+ :query_params => query_params,
1492
+ :form_params => form_params,
1493
+ :body => post_body,
1494
+ :auth_names => auth_names,
1495
+ :return_type => return_type
1496
+ )
1497
+
1498
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1499
+ 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}"
1501
+ end
1502
+ return data, status_code, headers
1503
+ end
1504
+
1505
+ # Ownership and control positions
1506
+ # @param id [String]
1507
+ # @param [Hash] opts the optional parameters
1508
+ # @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.
1509
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1510
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1511
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1512
+ # @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)
1516
+ data
1517
+ end
1518
+
1519
+ # Ownership and control positions
1520
+ # @param id [String]
1521
+ # @param [Hash] opts the optional parameters
1522
+ # @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.
1523
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1524
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1525
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1526
+ # @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 = {})
1529
+ if @api_client.config.debugging
1530
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
1531
+ end
1532
+ # verify the required parameter 'id' is set
1533
+ if @api_client.config.client_side_validation && id.nil?
1534
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
1535
+ end
1536
+ 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.'
1538
+ end
1539
+
1540
+ 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.'
1542
+ end
1543
+
1544
+ # resource path
1545
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1546
+
1547
+ # query parameters
1548
+ query_params = opts[:query_params] || {}
1549
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1550
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1551
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1552
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1553
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1554
+
1555
+ # header parameters
1556
+ header_params = opts[:header_params] || {}
1557
+ # HTTP header 'Accept' (if needed)
1558
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1559
+
1560
+ # form parameters
1561
+ form_params = opts[:form_params] || {}
1562
+
1563
+ # http body (model)
1564
+ post_body = opts[:debug_body]
1565
+
1566
+ # return_type
1567
+ return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
1568
+
1569
+ # auth_names
1570
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1571
+
1572
+ new_options = opts.merge(
1573
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
1574
+ :header_params => header_params,
1575
+ :query_params => query_params,
1576
+ :form_params => form_params,
1577
+ :body => post_body,
1578
+ :auth_names => auth_names,
1579
+ :return_type => return_type
1580
+ )
1581
+
1582
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1583
+ 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}"
1585
+ end
1586
+ return data, status_code, headers
1587
+ end
1588
+
1589
+ # FDA decision dates (PDUFA) and catalysts
1590
+ # @param id [String]
1591
+ # @param [Hash] opts the optional parameters
1592
+ # @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.
1593
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1594
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1595
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1596
+ # @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)
1600
+ data
1601
+ end
1602
+
1603
+ # FDA decision dates (PDUFA) and catalysts
121
1604
  # @param id [String]
122
1605
  # @param [Hash] opts the optional parameters
123
1606
  # @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.
@@ -125,25 +1608,25 @@ module PharmaObservatory
125
1608
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
126
1609
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
127
1610
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
128
- # @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
129
- def legal_entities_company_programs_with_http_info(id, opts = {})
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 = {})
130
1613
  if @api_client.config.debugging
131
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_programs ...'
1614
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
132
1615
  end
133
1616
  # verify the required parameter 'id' is set
134
1617
  if @api_client.config.client_side_validation && id.nil?
135
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_programs"
1618
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
136
1619
  end
137
1620
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
138
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be smaller than or equal to 500.'
1621
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
139
1622
  end
140
1623
 
141
1624
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
142
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_programs, must be greater than or equal to 1.'
1625
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
143
1626
  end
144
1627
 
145
1628
  # resource path
146
- local_var_path = '/api/v1/legal_entities/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1629
+ local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
147
1630
 
148
1631
  # query parameters
149
1632
  query_params = opts[:query_params] || {}
@@ -165,13 +1648,13 @@ module PharmaObservatory
165
1648
  post_body = opts[:debug_body]
166
1649
 
167
1650
  # return_type
168
- return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
1651
+ return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
169
1652
 
170
1653
  # auth_names
171
1654
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
172
1655
 
173
1656
  new_options = opts.merge(
174
- :operation => :"LegalEntitiesApi.legal_entities_company_programs",
1657
+ :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
175
1658
  :header_params => header_params,
176
1659
  :query_params => query_params,
177
1660
  :form_params => form_params,
@@ -182,12 +1665,12 @@ module PharmaObservatory
182
1665
 
183
1666
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
184
1667
  if @api_client.config.debugging
185
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1668
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
1669
  end
187
1670
  return data, status_code, headers
188
1671
  end
189
1672
 
190
- # Patent-cliff exposure
1673
+ # Program licensing candidates
191
1674
  # @param id [String]
192
1675
  # @param [Hash] opts the optional parameters
193
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.
@@ -195,13 +1678,13 @@ module PharmaObservatory
195
1678
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
196
1679
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
197
1680
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
198
- # @return [DrugPatentCliffResponse]
199
- def legal_entities_drug_patent_cliff(id, opts = {})
200
- data, _status_code, _headers = legal_entities_drug_patent_cliff_with_http_info(id, opts)
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)
201
1684
  data
202
1685
  end
203
1686
 
204
- # Patent-cliff exposure
1687
+ # Program licensing candidates
205
1688
  # @param id [String]
206
1689
  # @param [Hash] opts the optional parameters
207
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.
@@ -209,25 +1692,25 @@ module PharmaObservatory
209
1692
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
210
1693
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
211
1694
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
212
- # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
213
- def legal_entities_drug_patent_cliff_with_http_info(id, opts = {})
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 = {})
214
1697
  if @api_client.config.debugging
215
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
1698
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_program_licensing_candidates ...'
216
1699
  end
217
1700
  # verify the required parameter 'id' is set
218
1701
  if @api_client.config.client_side_validation && id.nil?
219
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_drug_patent_cliff"
1702
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_program_licensing_candidates"
220
1703
  end
221
1704
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
222
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be smaller than or equal to 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.'
223
1706
  end
224
1707
 
225
1708
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
226
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be greater than or equal to 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.'
227
1710
  end
228
1711
 
229
1712
  # resource path
230
- local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1713
+ local_var_path = '/api/v1/legal_entities/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
231
1714
 
232
1715
  # query parameters
233
1716
  query_params = opts[:query_params] || {}
@@ -249,13 +1732,13 @@ module PharmaObservatory
249
1732
  post_body = opts[:debug_body]
250
1733
 
251
1734
  # return_type
252
- return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
1735
+ return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
253
1736
 
254
1737
  # auth_names
255
1738
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
256
1739
 
257
1740
  new_options = opts.merge(
258
- :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
1741
+ :operation => :"LegalEntitiesApi.legal_entities_program_licensing_candidates",
259
1742
  :header_params => header_params,
260
1743
  :query_params => query_params,
261
1744
  :form_params => form_params,
@@ -266,37 +1749,60 @@ module PharmaObservatory
266
1749
 
267
1750
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
268
1751
  if @api_client.config.debugging
269
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1752
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
1753
  end
271
1754
  return data, status_code, headers
272
1755
  end
273
1756
 
274
- # One legal entity
1757
+ # FDA recalls
275
1758
  # @param id [String]
276
1759
  # @param [Hash] opts the optional parameters
277
- # @return [LegalEntitiesRecord]
278
- def legal_entities_get(id, opts = {})
279
- data, _status_code, _headers = legal_entities_get_with_http_info(id, opts)
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 [RecallsResponse]
1766
+ def legal_entities_recalls(id, opts = {})
1767
+ data, _status_code, _headers = legal_entities_recalls_with_http_info(id, opts)
280
1768
  data
281
1769
  end
282
1770
 
283
- # One legal entity
1771
+ # FDA recalls
284
1772
  # @param id [String]
285
1773
  # @param [Hash] opts the optional parameters
286
- # @return [Array<(LegalEntitiesRecord, Integer, Hash)>] LegalEntitiesRecord data, response status code and response headers
287
- def legal_entities_get_with_http_info(id, opts = {})
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<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
1780
+ def legal_entities_recalls_with_http_info(id, opts = {})
288
1781
  if @api_client.config.debugging
289
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
1782
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_recalls ...'
290
1783
  end
291
1784
  # verify the required parameter 'id' is set
292
1785
  if @api_client.config.client_side_validation && id.nil?
293
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
1786
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_recalls"
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_recalls, 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_recalls, must be greater than or equal to 1.'
294
1794
  end
1795
+
295
1796
  # resource path
296
- local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1797
+ local_var_path = '/api/v1/legal_entities/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
297
1798
 
298
1799
  # query parameters
299
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?
300
1806
 
301
1807
  # header parameters
302
1808
  header_params = opts[:header_params] || {}
@@ -310,13 +1816,13 @@ module PharmaObservatory
310
1816
  post_body = opts[:debug_body]
311
1817
 
312
1818
  # return_type
313
- return_type = opts[:debug_return_type] || 'LegalEntitiesRecord'
1819
+ return_type = opts[:debug_return_type] || 'RecallsResponse'
314
1820
 
315
1821
  # auth_names
316
1822
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
317
1823
 
318
1824
  new_options = opts.merge(
319
- :operation => :"LegalEntitiesApi.legal_entities_get",
1825
+ :operation => :"LegalEntitiesApi.legal_entities_recalls",
320
1826
  :header_params => header_params,
321
1827
  :query_params => query_params,
322
1828
  :form_params => form_params,
@@ -327,12 +1833,12 @@ module PharmaObservatory
327
1833
 
328
1834
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
329
1835
  if @api_client.config.debugging
330
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1836
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
1837
  end
332
1838
  return data, status_code, headers
333
1839
  end
334
1840
 
335
- # Institutional holdings (SEC Form 13F)
1841
+ # Trial recruitment duration by sponsor and phase
336
1842
  # @param id [String]
337
1843
  # @param [Hash] opts the optional parameters
338
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.
@@ -340,13 +1846,13 @@ module PharmaObservatory
340
1846
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
341
1847
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
342
1848
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
343
- # @return [InstitutionalHoldingsResponse]
344
- def legal_entities_institutional_holdings(id, opts = {})
345
- data, _status_code, _headers = legal_entities_institutional_holdings_with_http_info(id, opts)
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)
346
1852
  data
347
1853
  end
348
1854
 
349
- # Institutional holdings (SEC Form 13F)
1855
+ # Trial recruitment duration by sponsor and phase
350
1856
  # @param id [String]
351
1857
  # @param [Hash] opts the optional parameters
352
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.
@@ -354,25 +1860,25 @@ module PharmaObservatory
354
1860
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
355
1861
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
356
1862
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
357
- # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
358
- def legal_entities_institutional_holdings_with_http_info(id, opts = {})
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 = {})
359
1865
  if @api_client.config.debugging
360
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
1866
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
361
1867
  end
362
1868
  # verify the required parameter 'id' is set
363
1869
  if @api_client.config.client_side_validation && id.nil?
364
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_holdings"
1870
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
365
1871
  end
366
1872
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
367
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be smaller than or equal to 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.'
368
1874
  end
369
1875
 
370
1876
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
371
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be greater than or equal to 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.'
372
1878
  end
373
1879
 
374
1880
  # resource path
375
- local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1881
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
376
1882
 
377
1883
  # query parameters
378
1884
  query_params = opts[:query_params] || {}
@@ -394,13 +1900,13 @@ module PharmaObservatory
394
1900
  post_body = opts[:debug_body]
395
1901
 
396
1902
  # return_type
397
- return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
1903
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
398
1904
 
399
1905
  # auth_names
400
1906
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
401
1907
 
402
1908
  new_options = opts.merge(
403
- :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
1909
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
404
1910
  :header_params => header_params,
405
1911
  :query_params => query_params,
406
1912
  :form_params => form_params,
@@ -411,46 +1917,52 @@ module PharmaObservatory
411
1917
 
412
1918
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
413
1919
  if @api_client.config.debugging
414
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1920
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
415
1921
  end
416
1922
  return data, status_code, headers
417
1923
  end
418
1924
 
419
- # List legal entities
1925
+ # Trial recruitment duration by sponsor
1926
+ # @param id [String]
420
1927
  # @param [Hash] opts the optional parameters
421
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.
422
1929
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
423
1930
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
424
1931
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
425
1932
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
426
- # @return [LegalEntitiesResponse]
427
- def legal_entities_list(opts = {})
428
- data, _status_code, _headers = legal_entities_list_with_http_info(opts)
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)
429
1936
  data
430
1937
  end
431
1938
 
432
- # List legal entities
1939
+ # Trial recruitment duration by sponsor
1940
+ # @param id [String]
433
1941
  # @param [Hash] opts the optional parameters
434
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.
435
1943
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
436
1944
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
437
1945
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
438
1946
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
439
- # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
440
- def legal_entities_list_with_http_info(opts = {})
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 = {})
441
1949
  if @api_client.config.debugging
442
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
1950
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
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_sponsor_recruitment_duration"
443
1955
  end
444
1956
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
445
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be smaller than or equal to 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.'
446
1958
  end
447
1959
 
448
1960
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
449
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be greater than or equal to 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.'
450
1962
  end
451
1963
 
452
1964
  # resource path
453
- local_var_path = '/api/v1/legal_entities'
1965
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
454
1966
 
455
1967
  # query parameters
456
1968
  query_params = opts[:query_params] || {}
@@ -472,13 +1984,13 @@ module PharmaObservatory
472
1984
  post_body = opts[:debug_body]
473
1985
 
474
1986
  # return_type
475
- return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
1987
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
476
1988
 
477
1989
  # auth_names
478
1990
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
479
1991
 
480
1992
  new_options = opts.merge(
481
- :operation => :"LegalEntitiesApi.legal_entities_list",
1993
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
482
1994
  :header_params => header_params,
483
1995
  :query_params => query_params,
484
1996
  :form_params => form_params,
@@ -489,12 +2001,12 @@ module PharmaObservatory
489
2001
 
490
2002
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
491
2003
  if @api_client.config.debugging
492
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2004
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
2005
  end
494
2006
  return data, status_code, headers
495
2007
  end
496
2008
 
497
- # Ownership and control positions
2009
+ # Trial-start forecast by sponsor
498
2010
  # @param id [String]
499
2011
  # @param [Hash] opts the optional parameters
500
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.
@@ -502,13 +2014,13 @@ module PharmaObservatory
502
2014
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
503
2015
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
504
2016
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
505
- # @return [OwnershipPositionsResponse]
506
- def legal_entities_ownership_positions(id, opts = {})
507
- data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
2017
+ # @return [SponsorTrialStartForecastResponse]
2018
+ def legal_entities_sponsor_trial_start_forecast(id, opts = {})
2019
+ data, _status_code, _headers = legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts)
508
2020
  data
509
2021
  end
510
2022
 
511
- # Ownership and control positions
2023
+ # Trial-start forecast by sponsor
512
2024
  # @param id [String]
513
2025
  # @param [Hash] opts the optional parameters
514
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.
@@ -516,25 +2028,25 @@ module PharmaObservatory
516
2028
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
517
2029
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
518
2030
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
519
- # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
520
- def legal_entities_ownership_positions_with_http_info(id, opts = {})
2031
+ # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
2032
+ def legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts = {})
521
2033
  if @api_client.config.debugging
522
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
2034
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast ...'
523
2035
  end
524
2036
  # verify the required parameter 'id' is set
525
2037
  if @api_client.config.client_side_validation && id.nil?
526
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
2038
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast"
527
2039
  end
528
2040
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
529
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be smaller than or equal to 500.'
2041
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
530
2042
  end
531
2043
 
532
2044
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
533
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be greater than or equal to 1.'
2045
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be greater than or equal to 1.'
534
2046
  end
535
2047
 
536
2048
  # resource path
537
- local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2049
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
538
2050
 
539
2051
  # query parameters
540
2052
  query_params = opts[:query_params] || {}
@@ -556,13 +2068,13 @@ module PharmaObservatory
556
2068
  post_body = opts[:debug_body]
557
2069
 
558
2070
  # return_type
559
- return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
2071
+ return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
560
2072
 
561
2073
  # auth_names
562
2074
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
563
2075
 
564
2076
  new_options = opts.merge(
565
- :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
2077
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast",
566
2078
  :header_params => header_params,
567
2079
  :query_params => query_params,
568
2080
  :form_params => form_params,
@@ -573,12 +2085,12 @@ module PharmaObservatory
573
2085
 
574
2086
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
575
2087
  if @api_client.config.debugging
576
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2088
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
2089
  end
578
2090
  return data, status_code, headers
579
2091
  end
580
2092
 
581
- # FDA decision dates (PDUFA) and catalysts
2093
+ # Sponsor trials
582
2094
  # @param id [String]
583
2095
  # @param [Hash] opts the optional parameters
584
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.
@@ -586,13 +2098,13 @@ module PharmaObservatory
586
2098
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
587
2099
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
588
2100
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
589
- # @return [PdufaDatesResponse]
590
- def legal_entities_pdufa_dates(id, opts = {})
591
- data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
2101
+ # @return [SponsorTrialsResponse]
2102
+ def legal_entities_sponsor_trials(id, opts = {})
2103
+ data, _status_code, _headers = legal_entities_sponsor_trials_with_http_info(id, opts)
592
2104
  data
593
2105
  end
594
2106
 
595
- # FDA decision dates (PDUFA) and catalysts
2107
+ # Sponsor trials
596
2108
  # @param id [String]
597
2109
  # @param [Hash] opts the optional parameters
598
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.
@@ -600,25 +2112,25 @@ module PharmaObservatory
600
2112
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
601
2113
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
602
2114
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
603
- # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
604
- def legal_entities_pdufa_dates_with_http_info(id, opts = {})
2115
+ # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
2116
+ def legal_entities_sponsor_trials_with_http_info(id, opts = {})
605
2117
  if @api_client.config.debugging
606
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
2118
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trials ...'
607
2119
  end
608
2120
  # verify the required parameter 'id' is set
609
2121
  if @api_client.config.client_side_validation && id.nil?
610
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
2122
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trials"
611
2123
  end
612
2124
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
613
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
2125
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be smaller than or equal to 500.'
614
2126
  end
615
2127
 
616
2128
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
617
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
2129
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be greater than or equal to 1.'
618
2130
  end
619
2131
 
620
2132
  # resource path
621
- local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2133
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
622
2134
 
623
2135
  # query parameters
624
2136
  query_params = opts[:query_params] || {}
@@ -640,13 +2152,13 @@ module PharmaObservatory
640
2152
  post_body = opts[:debug_body]
641
2153
 
642
2154
  # return_type
643
- return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
2155
+ return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
644
2156
 
645
2157
  # auth_names
646
2158
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
647
2159
 
648
2160
  new_options = opts.merge(
649
- :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
2161
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trials",
650
2162
  :header_params => header_params,
651
2163
  :query_params => query_params,
652
2164
  :form_params => form_params,
@@ -657,12 +2169,12 @@ module PharmaObservatory
657
2169
 
658
2170
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
659
2171
  if @api_client.config.debugging
660
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2172
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
2173
  end
662
2174
  return data, status_code, headers
663
2175
  end
664
2176
 
665
- # Trial recruitment duration by sponsor and phase
2177
+ # Supplier capability and ESG disclosure
666
2178
  # @param id [String]
667
2179
  # @param [Hash] opts the optional parameters
668
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.
@@ -670,13 +2182,13 @@ module PharmaObservatory
670
2182
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
671
2183
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
672
2184
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
673
- # @return [SponsorRecruitmentByPhaseResponse]
674
- def legal_entities_sponsor_recruitment_by_phase(id, opts = {})
675
- data, _status_code, _headers = legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts)
2185
+ # @return [SupplierCapabilityEsgResponse]
2186
+ def legal_entities_supplier_capability_esg(id, opts = {})
2187
+ data, _status_code, _headers = legal_entities_supplier_capability_esg_with_http_info(id, opts)
676
2188
  data
677
2189
  end
678
2190
 
679
- # Trial recruitment duration by sponsor and phase
2191
+ # Supplier capability and ESG disclosure
680
2192
  # @param id [String]
681
2193
  # @param [Hash] opts the optional parameters
682
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.
@@ -684,25 +2196,25 @@ module PharmaObservatory
684
2196
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
685
2197
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
686
2198
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
687
- # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
688
- def legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
2199
+ # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
2200
+ def legal_entities_supplier_capability_esg_with_http_info(id, opts = {})
689
2201
  if @api_client.config.debugging
690
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
2202
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_supplier_capability_esg ...'
691
2203
  end
692
2204
  # verify the required parameter 'id' is set
693
2205
  if @api_client.config.client_side_validation && id.nil?
694
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
2206
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_supplier_capability_esg"
695
2207
  end
696
2208
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
697
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
2209
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_supplier_capability_esg, must be smaller than or equal to 500.'
698
2210
  end
699
2211
 
700
2212
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
701
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
2213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_supplier_capability_esg, must be greater than or equal to 1.'
702
2214
  end
703
2215
 
704
2216
  # resource path
705
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2217
+ local_var_path = '/api/v1/legal_entities/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
706
2218
 
707
2219
  # query parameters
708
2220
  query_params = opts[:query_params] || {}
@@ -724,13 +2236,13 @@ module PharmaObservatory
724
2236
  post_body = opts[:debug_body]
725
2237
 
726
2238
  # return_type
727
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
2239
+ return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
728
2240
 
729
2241
  # auth_names
730
2242
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
731
2243
 
732
2244
  new_options = opts.merge(
733
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
2245
+ :operation => :"LegalEntitiesApi.legal_entities_supplier_capability_esg",
734
2246
  :header_params => header_params,
735
2247
  :query_params => query_params,
736
2248
  :form_params => form_params,
@@ -741,12 +2253,12 @@ module PharmaObservatory
741
2253
 
742
2254
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
743
2255
  if @api_client.config.debugging
744
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
745
2257
  end
746
2258
  return data, status_code, headers
747
2259
  end
748
2260
 
749
- # Trial recruitment duration by sponsor
2261
+ # Unmatched product revenue
750
2262
  # @param id [String]
751
2263
  # @param [Hash] opts the optional parameters
752
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.
@@ -754,13 +2266,13 @@ module PharmaObservatory
754
2266
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
755
2267
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
756
2268
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
757
- # @return [SponsorRecruitmentDurationResponse]
758
- def legal_entities_sponsor_recruitment_duration(id, opts = {})
759
- data, _status_code, _headers = legal_entities_sponsor_recruitment_duration_with_http_info(id, opts)
2269
+ # @return [UnmatchedProductRevenueResponse]
2270
+ def legal_entities_unmatched_product_revenue(id, opts = {})
2271
+ data, _status_code, _headers = legal_entities_unmatched_product_revenue_with_http_info(id, opts)
760
2272
  data
761
2273
  end
762
2274
 
763
- # Trial recruitment duration by sponsor
2275
+ # Unmatched product revenue
764
2276
  # @param id [String]
765
2277
  # @param [Hash] opts the optional parameters
766
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.
@@ -768,25 +2280,25 @@ module PharmaObservatory
768
2280
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
769
2281
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
770
2282
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
771
- # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
772
- def legal_entities_sponsor_recruitment_duration_with_http_info(id, opts = {})
2283
+ # @return [Array<(UnmatchedProductRevenueResponse, Integer, Hash)>] UnmatchedProductRevenueResponse data, response status code and response headers
2284
+ def legal_entities_unmatched_product_revenue_with_http_info(id, opts = {})
773
2285
  if @api_client.config.debugging
774
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
2286
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_unmatched_product_revenue ...'
775
2287
  end
776
2288
  # verify the required parameter 'id' is set
777
2289
  if @api_client.config.client_side_validation && id.nil?
778
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration"
2290
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue"
779
2291
  end
780
2292
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
781
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be smaller than or equal to 500.'
2293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue, must be smaller than or equal to 500.'
782
2294
  end
783
2295
 
784
2296
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
785
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be greater than or equal to 1.'
2297
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue, must be greater than or equal to 1.'
786
2298
  end
787
2299
 
788
2300
  # resource path
789
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2301
+ local_var_path = '/api/v1/legal_entities/{id}/unmatched_product_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
790
2302
 
791
2303
  # query parameters
792
2304
  query_params = opts[:query_params] || {}
@@ -808,13 +2320,13 @@ module PharmaObservatory
808
2320
  post_body = opts[:debug_body]
809
2321
 
810
2322
  # return_type
811
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
2323
+ return_type = opts[:debug_return_type] || 'UnmatchedProductRevenueResponse'
812
2324
 
813
2325
  # auth_names
814
2326
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
815
2327
 
816
2328
  new_options = opts.merge(
817
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
2329
+ :operation => :"LegalEntitiesApi.legal_entities_unmatched_product_revenue",
818
2330
  :header_params => header_params,
819
2331
  :query_params => query_params,
820
2332
  :form_params => form_params,
@@ -825,12 +2337,12 @@ module PharmaObservatory
825
2337
 
826
2338
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
827
2339
  if @api_client.config.debugging
828
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2340
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_unmatched_product_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
829
2341
  end
830
2342
  return data, status_code, headers
831
2343
  end
832
2344
 
833
- # Trial-start forecast by sponsor
2345
+ # FDA untitled letters
834
2346
  # @param id [String]
835
2347
  # @param [Hash] opts the optional parameters
836
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.
@@ -838,13 +2350,13 @@ module PharmaObservatory
838
2350
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
839
2351
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
840
2352
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
841
- # @return [SponsorTrialStartForecastResponse]
842
- def legal_entities_sponsor_trial_start_forecast(id, opts = {})
843
- data, _status_code, _headers = legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts)
2353
+ # @return [UntitledLettersResponse]
2354
+ def legal_entities_untitled_letters(id, opts = {})
2355
+ data, _status_code, _headers = legal_entities_untitled_letters_with_http_info(id, opts)
844
2356
  data
845
2357
  end
846
2358
 
847
- # Trial-start forecast by sponsor
2359
+ # FDA untitled letters
848
2360
  # @param id [String]
849
2361
  # @param [Hash] opts the optional parameters
850
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.
@@ -852,25 +2364,25 @@ module PharmaObservatory
852
2364
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
853
2365
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
854
2366
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
855
- # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
856
- def legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts = {})
2367
+ # @return [Array<(UntitledLettersResponse, Integer, Hash)>] UntitledLettersResponse data, response status code and response headers
2368
+ def legal_entities_untitled_letters_with_http_info(id, opts = {})
857
2369
  if @api_client.config.debugging
858
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast ...'
2370
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_untitled_letters ...'
859
2371
  end
860
2372
  # verify the required parameter 'id' is set
861
2373
  if @api_client.config.client_side_validation && id.nil?
862
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast"
2374
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_untitled_letters"
863
2375
  end
864
2376
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
865
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
2377
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_untitled_letters, must be smaller than or equal to 500.'
866
2378
  end
867
2379
 
868
2380
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
869
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be greater than or equal to 1.'
2381
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_untitled_letters, must be greater than or equal to 1.'
870
2382
  end
871
2383
 
872
2384
  # resource path
873
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2385
+ local_var_path = '/api/v1/legal_entities/{id}/untitled_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
874
2386
 
875
2387
  # query parameters
876
2388
  query_params = opts[:query_params] || {}
@@ -892,13 +2404,13 @@ module PharmaObservatory
892
2404
  post_body = opts[:debug_body]
893
2405
 
894
2406
  # return_type
895
- return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
2407
+ return_type = opts[:debug_return_type] || 'UntitledLettersResponse'
896
2408
 
897
2409
  # auth_names
898
2410
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
899
2411
 
900
2412
  new_options = opts.merge(
901
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast",
2413
+ :operation => :"LegalEntitiesApi.legal_entities_untitled_letters",
902
2414
  :header_params => header_params,
903
2415
  :query_params => query_params,
904
2416
  :form_params => form_params,
@@ -909,12 +2421,12 @@ module PharmaObservatory
909
2421
 
910
2422
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
911
2423
  if @api_client.config.debugging
912
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2424
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_untitled_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
913
2425
  end
914
2426
  return data, status_code, headers
915
2427
  end
916
2428
 
917
- # Sponsor trials
2429
+ # FDA warning letters
918
2430
  # @param id [String]
919
2431
  # @param [Hash] opts the optional parameters
920
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.
@@ -922,13 +2434,13 @@ module PharmaObservatory
922
2434
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
923
2435
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
924
2436
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
925
- # @return [SponsorTrialsResponse]
926
- def legal_entities_sponsor_trials(id, opts = {})
927
- data, _status_code, _headers = legal_entities_sponsor_trials_with_http_info(id, opts)
2437
+ # @return [WarningLettersResponse]
2438
+ def legal_entities_warning_letters(id, opts = {})
2439
+ data, _status_code, _headers = legal_entities_warning_letters_with_http_info(id, opts)
928
2440
  data
929
2441
  end
930
2442
 
931
- # Sponsor trials
2443
+ # FDA warning letters
932
2444
  # @param id [String]
933
2445
  # @param [Hash] opts the optional parameters
934
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.
@@ -936,25 +2448,25 @@ module PharmaObservatory
936
2448
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
937
2449
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
938
2450
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
939
- # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
940
- def legal_entities_sponsor_trials_with_http_info(id, opts = {})
2451
+ # @return [Array<(WarningLettersResponse, Integer, Hash)>] WarningLettersResponse data, response status code and response headers
2452
+ def legal_entities_warning_letters_with_http_info(id, opts = {})
941
2453
  if @api_client.config.debugging
942
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trials ...'
2454
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_warning_letters ...'
943
2455
  end
944
2456
  # verify the required parameter 'id' is set
945
2457
  if @api_client.config.client_side_validation && id.nil?
946
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trials"
2458
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_warning_letters"
947
2459
  end
948
2460
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
949
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be smaller than or equal to 500.'
2461
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_warning_letters, must be smaller than or equal to 500.'
950
2462
  end
951
2463
 
952
2464
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
953
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be greater than or equal to 1.'
2465
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_warning_letters, must be greater than or equal to 1.'
954
2466
  end
955
2467
 
956
2468
  # resource path
957
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2469
+ local_var_path = '/api/v1/legal_entities/{id}/warning_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
958
2470
 
959
2471
  # query parameters
960
2472
  query_params = opts[:query_params] || {}
@@ -976,13 +2488,13 @@ module PharmaObservatory
976
2488
  post_body = opts[:debug_body]
977
2489
 
978
2490
  # return_type
979
- return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
2491
+ return_type = opts[:debug_return_type] || 'WarningLettersResponse'
980
2492
 
981
2493
  # auth_names
982
2494
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
983
2495
 
984
2496
  new_options = opts.merge(
985
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_trials",
2497
+ :operation => :"LegalEntitiesApi.legal_entities_warning_letters",
986
2498
  :header_params => header_params,
987
2499
  :query_params => query_params,
988
2500
  :form_params => form_params,
@@ -993,7 +2505,7 @@ module PharmaObservatory
993
2505
 
994
2506
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
995
2507
  if @api_client.config.debugging
996
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2508
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_warning_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
2509
  end
998
2510
  return data, status_code, headers
999
2511
  end