pharmaobservatory 0.1.6 → 0.1.8

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 (455) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +348 -4
  3. data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
  4. data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
  5. data/docs/BiomarkerAssayProvidersResponse.md +58 -0
  6. data/docs/BiomarkerAssayProvidersRow.md +72 -0
  7. data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
  8. data/docs/BiomarkerEvidenceByYearRow.md +32 -0
  9. data/docs/BiomarkerTraversalStatusResponse.md +58 -0
  10. data/docs/BiomarkerTraversalStatusRow.md +36 -0
  11. data/docs/BiomarkersApi.md +320 -0
  12. data/docs/BrandCompaniesResponse.md +58 -0
  13. data/docs/BrandCompaniesRow.md +50 -0
  14. data/docs/BrandRevenueResponse.md +58 -0
  15. data/docs/BrandRevenueRow.md +60 -0
  16. data/docs/CatalystsResponse.md +58 -0
  17. data/docs/CatalystsRow.md +90 -0
  18. data/docs/CliaCertificatesResponse.md +58 -0
  19. data/docs/CliaCertificatesRow.md +80 -0
  20. data/docs/CompaniesApi.md +2656 -196
  21. data/docs/CompaniesRecordAttributes.md +3 -1
  22. data/docs/CompanyAssetsRow.md +5 -1
  23. data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
  24. data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
  25. data/docs/CompanyFundingEventsRow.md +2 -0
  26. data/docs/CompanyProgramsRow.md +5 -1
  27. data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
  28. data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
  29. data/docs/CompanyTrialGeographyResponse.md +58 -0
  30. data/docs/CompanyTrialGeographyRow.md +52 -0
  31. data/docs/CompanyTrialSitesResponse.md +58 -0
  32. data/docs/CompanyTrialSitesRow.md +52 -0
  33. data/docs/ConditionsApi.md +320 -0
  34. data/docs/CroFootprintResponse.md +58 -0
  35. data/docs/CroFootprintRow.md +34 -0
  36. data/docs/CroTrialsResponse.md +58 -0
  37. data/docs/CroTrialsRow.md +46 -0
  38. data/docs/DebarmentsResponse.md +58 -0
  39. data/docs/DebarmentsRow.md +44 -0
  40. data/docs/DrugApprovalsResponse.md +58 -0
  41. data/docs/DrugApprovalsRow.md +28 -0
  42. data/docs/DrugAspCodesResponse.md +58 -0
  43. data/docs/DrugAspCodesRow.md +28 -0
  44. data/docs/DrugBrandsResponse.md +58 -0
  45. data/docs/DrugBrandsRow.md +60 -0
  46. data/docs/DrugCombinationsResponse.md +58 -0
  47. data/docs/DrugCombinationsRow.md +32 -0
  48. data/docs/DrugDeclaredPatentsResponse.md +58 -0
  49. data/docs/DrugDeclaredPatentsRow.md +58 -0
  50. data/docs/DrugLabelSafetyResponse.md +58 -0
  51. data/docs/DrugLabelSafetyRow.md +32 -0
  52. data/docs/DrugMedicareSpendResponse.md +58 -0
  53. data/docs/DrugMedicareSpendRow.md +28 -0
  54. data/docs/DrugPatentCliffRow.md +3 -1
  55. data/docs/DrugPatentMentionsResponse.md +58 -0
  56. data/docs/DrugPatentMentionsRow.md +28 -0
  57. data/docs/DrugPatentOwnersResponse.md +58 -0
  58. data/docs/DrugPatentOwnersRow.md +42 -0
  59. data/docs/DrugPricingResponse.md +58 -0
  60. data/docs/DrugPricingRow.md +32 -0
  61. data/docs/DrugRecallsResponse.md +58 -0
  62. data/docs/DrugRecallsRow.md +34 -0
  63. data/docs/DrugRegulatoryResponse.md +58 -0
  64. data/docs/DrugRegulatoryRow.md +38 -0
  65. data/docs/DrugSitesResponse.md +58 -0
  66. data/docs/DrugSitesRow.md +28 -0
  67. data/docs/DrugTargetsResponse.md +58 -0
  68. data/docs/DrugTargetsRow.md +36 -0
  69. data/docs/DrugTrialConditionsResponse.md +58 -0
  70. data/docs/DrugTrialConditionsRow.md +30 -0
  71. data/docs/DrugTrialsResponse.md +58 -0
  72. data/docs/DrugTrialsRow.md +58 -0
  73. data/docs/DrugVariantsResponse.md +58 -0
  74. data/docs/DrugVariantsRow.md +38 -0
  75. data/docs/DrugsApi.md +2153 -0
  76. data/docs/DrugsRecord.md +38 -0
  77. data/docs/DrugsRecordAttributes.md +20 -0
  78. data/docs/DrugsResponse.md +58 -0
  79. data/docs/DrugsRow.md +82 -0
  80. data/docs/EnforcementEventsResponse.md +58 -0
  81. data/docs/EnforcementEventsRow.md +64 -0
  82. data/docs/GxpFacilitiesResponse.md +58 -0
  83. data/docs/GxpFacilitiesRow.md +174 -0
  84. data/docs/HospitalBedsYearlyResponse.md +58 -0
  85. data/docs/HospitalBedsYearlyRow.md +28 -0
  86. data/docs/HospitalFacilityChangesResponse.md +58 -0
  87. data/docs/HospitalFacilityChangesRow.md +30 -0
  88. data/docs/HospitalsApi.md +393 -0
  89. data/docs/HospitalsRecord.md +38 -0
  90. data/docs/HospitalsResponse.md +58 -0
  91. data/docs/HospitalsRow.md +40 -0
  92. data/docs/ImportRefusalsResponse.md +58 -0
  93. data/docs/ImportRefusalsRow.md +60 -0
  94. data/docs/InspectionFindingsResponse.md +58 -0
  95. data/docs/InspectionFindingsRow.md +48 -0
  96. data/docs/InspectionsResponse.md +58 -0
  97. data/docs/InspectionsRow.md +60 -0
  98. data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
  99. data/docs/InstitutionalQuarterTotalsRow.md +58 -0
  100. data/docs/LegalEntitiesApi.md +2257 -177
  101. data/docs/LegalEntitiesRecordAttributes.md +8 -0
  102. data/docs/LegalEntitySecFilingsResponse.md +58 -0
  103. data/docs/LegalEntitySecFilingsRow.md +44 -0
  104. data/docs/OrgDisclosureTrendResponse.md +58 -0
  105. data/docs/OrgDisclosureTrendRow.md +62 -0
  106. data/docs/OrgRelationshipsRow.md +1 -1
  107. data/docs/OwnershipPercentagesResponse.md +58 -0
  108. data/docs/OwnershipPercentagesRow.md +74 -0
  109. data/docs/OwnershipSourceCoverageResponse.md +58 -0
  110. data/docs/OwnershipSourceCoverageRow.md +62 -0
  111. data/docs/PdufaDatesRow.md +1 -1
  112. data/docs/ProgramLicensingCandidatesResponse.md +58 -0
  113. data/docs/ProgramLicensingCandidatesRow.md +62 -0
  114. data/docs/ProgramsResponse.md +58 -0
  115. data/docs/ProgramsRow.md +46 -0
  116. data/docs/RareDiseaseGenesResponse.md +58 -0
  117. data/docs/RareDiseaseGenesRow.md +50 -0
  118. data/docs/RareDiseaseHierarchyResponse.md +58 -0
  119. data/docs/RareDiseaseHierarchyRow.md +40 -0
  120. data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
  121. data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
  122. data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
  123. data/docs/RareDiseaseInvestigatorsRow.md +56 -0
  124. data/docs/RareDiseaseMappingsResponse.md +58 -0
  125. data/docs/RareDiseaseMappingsRow.md +44 -0
  126. data/docs/RareDiseaseOrganizationsResponse.md +58 -0
  127. data/docs/RareDiseaseOrganizationsRow.md +60 -0
  128. data/docs/RareDiseasePrevalenceResponse.md +58 -0
  129. data/docs/RareDiseasePrevalenceRow.md +62 -0
  130. data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
  131. data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
  132. data/docs/RareDiseaseRarityResponse.md +58 -0
  133. data/docs/RareDiseaseRarityRow.md +54 -0
  134. data/docs/RareDiseaseReplacementsResponse.md +58 -0
  135. data/docs/RareDiseaseReplacementsRow.md +40 -0
  136. data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
  137. data/docs/RareDiseaseSiteCoverageRow.md +54 -0
  138. data/docs/RareDiseaseSponsorsResponse.md +58 -0
  139. data/docs/RareDiseaseSponsorsRow.md +82 -0
  140. data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
  141. data/docs/RareDiseaseTrialCoverageRow.md +58 -0
  142. data/docs/RareDiseaseTrialSitesResponse.md +58 -0
  143. data/docs/RareDiseaseTrialSitesRow.md +52 -0
  144. data/docs/RareDiseaseTrialsResponse.md +58 -0
  145. data/docs/RareDiseaseTrialsRow.md +90 -0
  146. data/docs/RareDiseasesApi.md +1353 -0
  147. data/docs/RareDiseasesRecord.md +38 -0
  148. data/docs/RareDiseasesRecordAttributes.md +22 -0
  149. data/docs/RareDiseasesResponse.md +58 -0
  150. data/docs/RareDiseasesRow.md +68 -0
  151. data/docs/RecallsResponse.md +58 -0
  152. data/docs/RecallsRow.md +54 -0
  153. data/docs/RwdConductorDeliveryResponse.md +58 -0
  154. data/docs/RwdConductorDeliveryRow.md +74 -0
  155. data/docs/RwdConductorFootprintResponse.md +58 -0
  156. data/docs/RwdConductorFootprintRow.md +40 -0
  157. data/docs/RwdConductorStudiesResponse.md +58 -0
  158. data/docs/RwdConductorStudiesRow.md +42 -0
  159. data/docs/RwdConductorsApi.md +393 -0
  160. data/docs/RwdConductorsRecord.md +38 -0
  161. data/docs/RwdConductorsResponse.md +58 -0
  162. data/docs/RwdConductorsRow.md +72 -0
  163. data/docs/RwdCoverageResponse.md +58 -0
  164. data/docs/RwdCoverageRow.md +52 -0
  165. data/docs/RwdInstitutionsApi.md +153 -0
  166. data/docs/RwdInstitutionsRecord.md +38 -0
  167. data/docs/RwdInstitutionsResponse.md +58 -0
  168. data/docs/RwdInstitutionsRow.md +154 -0
  169. data/docs/RwdNetworksApi.md +153 -0
  170. data/docs/RwdNetworksRecord.md +38 -0
  171. data/docs/RwdNetworksResponse.md +58 -0
  172. data/docs/RwdNetworksRow.md +110 -0
  173. data/docs/RwdRegisterProvenanceResponse.md +58 -0
  174. data/docs/RwdRegisterProvenanceRow.md +74 -0
  175. data/docs/RwdRegistersApi.md +313 -0
  176. data/docs/RwdRegistersRecord.md +38 -0
  177. data/docs/RwdSourceAgeBandsResponse.md +58 -0
  178. data/docs/RwdSourceAgeBandsRow.md +40 -0
  179. data/docs/RwdSourceConditionsResponse.md +58 -0
  180. data/docs/RwdSourceConditionsRow.md +68 -0
  181. data/docs/RwdSourceEtlMappingsResponse.md +58 -0
  182. data/docs/RwdSourceEtlMappingsRow.md +44 -0
  183. data/docs/RwdSourceLinkagesResponse.md +58 -0
  184. data/docs/RwdSourceLinkagesRow.md +64 -0
  185. data/docs/RwdSourceTypesResponse.md +58 -0
  186. data/docs/RwdSourceTypesRow.md +34 -0
  187. data/docs/RwdSourceVocabulariesResponse.md +58 -0
  188. data/docs/RwdSourceVocabulariesRow.md +42 -0
  189. data/docs/RwdSourcesApi.md +713 -0
  190. data/docs/RwdSourcesRecord.md +38 -0
  191. data/docs/RwdSourcesResponse.md +58 -0
  192. data/docs/RwdSourcesRow.md +280 -0
  193. data/docs/RwdStudiesApi.md +553 -0
  194. data/docs/RwdStudiesRecord.md +38 -0
  195. data/docs/RwdStudiesResponse.md +58 -0
  196. data/docs/RwdStudiesRow.md +180 -0
  197. data/docs/RwdStudyConditionsResponse.md +58 -0
  198. data/docs/RwdStudyConditionsRow.md +54 -0
  199. data/docs/RwdStudyDataSourcesResponse.md +58 -0
  200. data/docs/RwdStudyDataSourcesRow.md +54 -0
  201. data/docs/RwdStudyDrugsResponse.md +58 -0
  202. data/docs/RwdStudyDrugsRow.md +50 -0
  203. data/docs/RwdStudyMilestonesResponse.md +58 -0
  204. data/docs/RwdStudyMilestonesRow.md +54 -0
  205. data/docs/RwdWithheldFieldsResponse.md +58 -0
  206. data/docs/RwdWithheldFieldsRow.md +36 -0
  207. data/docs/SbtiCrosscheckResponse.md +58 -0
  208. data/docs/SbtiCrosscheckRow.md +48 -0
  209. data/docs/SecPdufaDatesResponse.md +58 -0
  210. data/docs/SecPdufaDatesRow.md +64 -0
  211. data/docs/SponsorDeliveryResponse.md +58 -0
  212. data/docs/SponsorDeliveryRow.md +52 -0
  213. data/docs/SponsorPatentMentionsResponse.md +58 -0
  214. data/docs/SponsorPatentMentionsRow.md +42 -0
  215. data/docs/SponsorTrialConditionsResponse.md +58 -0
  216. data/docs/SponsorTrialConditionsRow.md +36 -0
  217. data/docs/SponsorTrialDrugsResponse.md +58 -0
  218. data/docs/SponsorTrialDrugsRow.md +34 -0
  219. data/docs/TrialChangesRow.md +5 -1
  220. data/docs/TrialsApi.md +80 -0
  221. data/docs/TrialsRow.md +9 -1
  222. data/docs/UnmatchedProductRevenueResponse.md +58 -0
  223. data/docs/UnmatchedProductRevenueRow.md +80 -0
  224. data/docs/UntitledLettersResponse.md +58 -0
  225. data/docs/UntitledLettersRow.md +44 -0
  226. data/docs/WarningLettersResponse.md +58 -0
  227. data/docs/WarningLettersRow.md +50 -0
  228. data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
  229. data/lib/pharmaobservatory/api/companies_api.rb +3026 -296
  230. data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
  231. data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
  232. data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
  233. data/lib/pharmaobservatory/api/legal_entities_api.rb +2376 -192
  234. data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
  235. data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
  236. data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
  237. data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
  238. data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
  239. data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
  240. data/lib/pharmaobservatory/api/rwd_studies_api.rb +581 -0
  241. data/lib/pharmaobservatory/api/trials_api.rb +84 -0
  242. data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
  243. data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
  244. data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
  245. data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
  246. data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
  247. data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
  248. data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
  249. data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
  250. data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
  251. data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
  252. data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
  253. data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
  254. data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
  255. data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
  256. data/lib/pharmaobservatory/models/clia_certificates_response.rb +478 -0
  257. data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
  258. data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
  259. data/lib/pharmaobservatory/models/company_assets_row.rb +24 -2
  260. data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
  261. data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
  262. data/lib/pharmaobservatory/models/company_funding_events_row.rb +12 -1
  263. data/lib/pharmaobservatory/models/company_programs_row.rb +24 -2
  264. data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
  265. data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
  266. data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
  267. data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
  268. data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
  269. data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -0
  270. data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
  271. data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
  272. data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
  273. data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
  274. data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
  275. data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
  276. data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
  277. data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
  278. data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
  279. data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
  280. data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
  281. data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
  282. data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
  283. data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
  284. data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
  285. data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
  286. data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
  287. data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
  288. data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
  289. data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
  290. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
  291. data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
  292. data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
  293. data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
  294. data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
  295. data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
  296. data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
  297. data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
  298. data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
  299. data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
  300. data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
  301. data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
  302. data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
  303. data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
  304. data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
  305. data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
  306. data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
  307. data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
  308. data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
  309. data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
  310. data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
  311. data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
  312. data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
  313. data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
  314. data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
  315. data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
  316. data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
  317. data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
  318. data/lib/pharmaobservatory/models/gxp_facilities_row.rb +1089 -0
  319. data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
  320. data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
  321. data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
  322. data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
  323. data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
  324. data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
  325. data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
  326. data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
  327. data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
  328. data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
  329. data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
  330. data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
  331. data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
  332. data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
  333. data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
  334. data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +37 -1
  335. data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
  336. data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
  337. data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
  338. data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
  339. data/lib/pharmaobservatory/models/org_relationships_row.rb +1 -1
  340. data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
  341. data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
  342. data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
  343. data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
  344. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
  345. data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
  346. data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +467 -0
  347. data/lib/pharmaobservatory/models/programs_response.rb +478 -0
  348. data/lib/pharmaobservatory/models/programs_row.rb +377 -0
  349. data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
  350. data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
  351. data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
  352. data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
  353. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
  354. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
  355. data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
  356. data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
  357. data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
  358. data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
  359. data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
  360. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
  361. data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
  362. data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
  363. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
  364. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
  365. data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
  366. data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
  367. data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
  368. data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
  369. data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
  370. data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
  371. data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
  372. data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
  373. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
  374. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
  375. data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
  376. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
  377. data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
  378. data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
  379. data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
  380. data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
  381. data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
  382. data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
  383. data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
  384. data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
  385. data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
  386. data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
  387. data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
  388. data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
  389. data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
  390. data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
  391. data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
  392. data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
  393. data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
  394. data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
  395. data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
  396. data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
  397. data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
  398. data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
  399. data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
  400. data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
  401. data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
  402. data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
  403. data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
  404. data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
  405. data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
  406. data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
  407. data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
  408. data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
  409. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
  410. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
  411. data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
  412. data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
  413. data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
  414. data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
  415. data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
  416. data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
  417. data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
  418. data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
  419. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
  420. data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
  421. data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
  422. data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
  423. data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
  424. data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
  425. data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
  426. data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
  427. data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
  428. data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
  429. data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
  430. data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
  431. data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
  432. data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
  433. data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
  434. data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
  435. data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
  436. data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
  437. data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
  438. data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
  439. data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
  440. data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
  441. data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
  442. data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
  443. data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
  444. data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
  445. data/lib/pharmaobservatory/models/trial_changes_row.rb +24 -2
  446. data/lib/pharmaobservatory/models/trials_row.rb +47 -3
  447. data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
  448. data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
  449. data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
  450. data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
  451. data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
  452. data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
  453. data/lib/pharmaobservatory/version.rb +1 -1
  454. data/lib/pharmaobservatory.rb +210 -0
  455. metadata +422 -2
@@ -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
@@ -103,6 +271,90 @@ module PharmaObservatory
103
271
  return data, status_code, headers
104
272
  end
105
273
 
274
+ # Company biomarker capability
275
+ # @param id [String]
276
+ # @param [Hash] opts the optional parameters
277
+ # @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.
278
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
279
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
280
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
281
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
282
+ # @return [CompanyBiomarkerCapabilityResponse]
283
+ def legal_entities_company_biomarker_capability(id, opts = {})
284
+ data, _status_code, _headers = legal_entities_company_biomarker_capability_with_http_info(id, opts)
285
+ data
286
+ end
287
+
288
+ # Company biomarker capability
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<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
297
+ def legal_entities_company_biomarker_capability_with_http_info(id, opts = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_biomarker_capability ...'
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_biomarker_capability"
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_biomarker_capability, 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_biomarker_capability, must be greater than or equal to 1.'
311
+ end
312
+
313
+ # resource path
314
+ local_var_path = '/api/v1/legal_entities/{id}/company_biomarker_capability'.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] || 'CompanyBiomarkerCapabilityResponse'
337
+
338
+ # auth_names
339
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
340
+
341
+ new_options = opts.merge(
342
+ :operation => :"LegalEntitiesApi.legal_entities_company_biomarker_capability",
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_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+
106
358
  # Company programs
107
359
  # @param id [String]
108
360
  # @param [Hash] opts the optional parameters
@@ -187,7 +439,7 @@ module PharmaObservatory
187
439
  return data, status_code, headers
188
440
  end
189
441
 
190
- # Patent-cliff exposure
442
+ # Organization-wide rare disease declarations
191
443
  # @param id [String]
192
444
  # @param [Hash] opts the optional parameters
193
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.
@@ -195,13 +447,13 @@ module PharmaObservatory
195
447
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
196
448
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
197
449
  # @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)
450
+ # @return [CompanyRareDiseaseDeclarationsResponse]
451
+ def legal_entities_company_rare_disease_declarations(id, opts = {})
452
+ data, _status_code, _headers = legal_entities_company_rare_disease_declarations_with_http_info(id, opts)
201
453
  data
202
454
  end
203
455
 
204
- # Patent-cliff exposure
456
+ # Organization-wide rare disease declarations
205
457
  # @param id [String]
206
458
  # @param [Hash] opts the optional parameters
207
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.
@@ -209,25 +461,25 @@ module PharmaObservatory
209
461
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
210
462
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
211
463
  # @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 = {})
464
+ # @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
465
+ def legal_entities_company_rare_disease_declarations_with_http_info(id, opts = {})
214
466
  if @api_client.config.debugging
215
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
467
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_rare_disease_declarations ...'
216
468
  end
217
469
  # verify the required parameter 'id' is set
218
470
  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"
471
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations"
220
472
  end
221
473
  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.'
474
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be smaller than or equal to 500.'
223
475
  end
224
476
 
225
477
  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.'
478
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be greater than or equal to 1.'
227
479
  end
228
480
 
229
481
  # resource path
230
- local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
482
+ local_var_path = '/api/v1/legal_entities/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
231
483
 
232
484
  # query parameters
233
485
  query_params = opts[:query_params] || {}
@@ -249,13 +501,13 @@ module PharmaObservatory
249
501
  post_body = opts[:debug_body]
250
502
 
251
503
  # return_type
252
- return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
504
+ return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
253
505
 
254
506
  # auth_names
255
507
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
256
508
 
257
509
  new_options = opts.merge(
258
- :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
510
+ :operation => :"LegalEntitiesApi.legal_entities_company_rare_disease_declarations",
259
511
  :header_params => header_params,
260
512
  :query_params => query_params,
261
513
  :form_params => form_params,
@@ -266,37 +518,1963 @@ module PharmaObservatory
266
518
 
267
519
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
268
520
  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}"
521
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
522
  end
271
523
  return data, status_code, headers
272
524
  end
273
525
 
274
- # One legal entity
526
+ # FDA firm debarments
275
527
  # @param id [String]
276
528
  # @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)
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 [DebarmentsResponse]
535
+ def legal_entities_debarments(id, opts = {})
536
+ data, _status_code, _headers = legal_entities_debarments_with_http_info(id, opts)
280
537
  data
281
538
  end
282
539
 
283
- # One legal entity
540
+ # FDA firm debarments
284
541
  # @param id [String]
285
542
  # @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 = {})
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<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
549
+ def legal_entities_debarments_with_http_info(id, opts = {})
288
550
  if @api_client.config.debugging
289
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
551
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_debarments ...'
290
552
  end
291
553
  # verify the required parameter 'id' is set
292
554
  if @api_client.config.client_side_validation && id.nil?
293
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_debarments"
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_debarments, 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_debarments, must be greater than or equal to 1.'
563
+ end
564
+
565
+ # resource path
566
+ local_var_path = '/api/v1/legal_entities/{id}/debarments'.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] || 'DebarmentsResponse'
589
+
590
+ # auth_names
591
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
592
+
593
+ new_options = opts.merge(
594
+ :operation => :"LegalEntitiesApi.legal_entities_debarments",
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_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # Patent-cliff exposure
611
+ # @param id [String]
612
+ # @param [Hash] opts the optional parameters
613
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
614
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
615
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
616
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
617
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
618
+ # @return [DrugPatentCliffResponse]
619
+ def legal_entities_drug_patent_cliff(id, opts = {})
620
+ data, _status_code, _headers = legal_entities_drug_patent_cliff_with_http_info(id, opts)
621
+ data
622
+ end
623
+
624
+ # Patent-cliff exposure
625
+ # @param id [String]
626
+ # @param [Hash] opts the optional parameters
627
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
628
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
629
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
630
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
631
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
632
+ # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
633
+ def legal_entities_drug_patent_cliff_with_http_info(id, opts = {})
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_drug_patent_cliff ...'
636
+ end
637
+ # verify the required parameter 'id' is set
638
+ if @api_client.config.client_side_validation && id.nil?
639
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_drug_patent_cliff"
640
+ end
641
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
642
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be smaller than or equal to 500.'
643
+ end
644
+
645
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
646
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_drug_patent_cliff, must be greater than or equal to 1.'
647
+ end
648
+
649
+ # resource path
650
+ local_var_path = '/api/v1/legal_entities/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
651
+
652
+ # query parameters
653
+ query_params = opts[:query_params] || {}
654
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
655
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
656
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
657
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
658
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
659
+
660
+ # header parameters
661
+ header_params = opts[:header_params] || {}
662
+ # HTTP header 'Accept' (if needed)
663
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
664
+
665
+ # form parameters
666
+ form_params = opts[:form_params] || {}
667
+
668
+ # http body (model)
669
+ post_body = opts[:debug_body]
670
+
671
+ # return_type
672
+ return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
673
+
674
+ # auth_names
675
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
676
+
677
+ new_options = opts.merge(
678
+ :operation => :"LegalEntitiesApi.legal_entities_drug_patent_cliff",
679
+ :header_params => header_params,
680
+ :query_params => query_params,
681
+ :form_params => form_params,
682
+ :body => post_body,
683
+ :auth_names => auth_names,
684
+ :return_type => return_type
685
+ )
686
+
687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
688
+ if @api_client.config.debugging
689
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
+ end
691
+ return data, status_code, headers
692
+ end
693
+
694
+ # FDA enforcement events
695
+ # @param id [String]
696
+ # @param [Hash] opts the optional parameters
697
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
698
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
699
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
700
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
701
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
702
+ # @return [EnforcementEventsResponse]
703
+ def legal_entities_enforcement_events(id, opts = {})
704
+ data, _status_code, _headers = legal_entities_enforcement_events_with_http_info(id, opts)
705
+ data
706
+ end
707
+
708
+ # FDA enforcement events
709
+ # @param id [String]
710
+ # @param [Hash] opts the optional parameters
711
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
712
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
713
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
714
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
715
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
716
+ # @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
717
+ def legal_entities_enforcement_events_with_http_info(id, opts = {})
718
+ if @api_client.config.debugging
719
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_enforcement_events ...'
720
+ end
721
+ # verify the required parameter 'id' is set
722
+ if @api_client.config.client_side_validation && id.nil?
723
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_enforcement_events"
724
+ end
725
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
726
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be smaller than or equal to 500.'
727
+ end
728
+
729
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
730
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_enforcement_events, must be greater than or equal to 1.'
731
+ end
732
+
733
+ # resource path
734
+ local_var_path = '/api/v1/legal_entities/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
735
+
736
+ # query parameters
737
+ query_params = opts[:query_params] || {}
738
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
739
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
740
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
741
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
742
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
743
+
744
+ # header parameters
745
+ header_params = opts[:header_params] || {}
746
+ # HTTP header 'Accept' (if needed)
747
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
748
+
749
+ # form parameters
750
+ form_params = opts[:form_params] || {}
751
+
752
+ # http body (model)
753
+ post_body = opts[:debug_body]
754
+
755
+ # return_type
756
+ return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
757
+
758
+ # auth_names
759
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
760
+
761
+ new_options = opts.merge(
762
+ :operation => :"LegalEntitiesApi.legal_entities_enforcement_events",
763
+ :header_params => header_params,
764
+ :query_params => query_params,
765
+ :form_params => form_params,
766
+ :body => post_body,
767
+ :auth_names => auth_names,
768
+ :return_type => return_type
769
+ )
770
+
771
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
772
+ if @api_client.config.debugging
773
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
774
+ end
775
+ return data, status_code, headers
776
+ end
777
+
778
+ # One legal entity
779
+ # @param id [String]
780
+ # @param [Hash] opts the optional parameters
781
+ # @return [LegalEntitiesRecord]
782
+ def legal_entities_get(id, opts = {})
783
+ data, _status_code, _headers = legal_entities_get_with_http_info(id, opts)
784
+ data
785
+ end
786
+
787
+ # One legal entity
788
+ # @param id [String]
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [Array<(LegalEntitiesRecord, Integer, Hash)>] LegalEntitiesRecord data, response status code and response headers
791
+ def legal_entities_get_with_http_info(id, opts = {})
792
+ if @api_client.config.debugging
793
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_get ...'
794
+ end
795
+ # verify the required parameter 'id' is set
796
+ if @api_client.config.client_side_validation && id.nil?
797
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_get"
798
+ end
799
+ # resource path
800
+ local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
801
+
802
+ # query parameters
803
+ query_params = opts[:query_params] || {}
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] || 'LegalEntitiesRecord'
818
+
819
+ # auth_names
820
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
821
+
822
+ new_options = opts.merge(
823
+ :operation => :"LegalEntitiesApi.legal_entities_get",
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_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
835
+ end
836
+ return data, status_code, headers
837
+ end
838
+
839
+ # GxP facilities and quality signals
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 [GxpFacilitiesResponse]
848
+ def legal_entities_gxp_facilities(id, opts = {})
849
+ data, _status_code, _headers = legal_entities_gxp_facilities_with_http_info(id, opts)
850
+ data
851
+ end
852
+
853
+ # GxP facilities and quality signals
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<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
862
+ def legal_entities_gxp_facilities_with_http_info(id, opts = {})
863
+ if @api_client.config.debugging
864
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_gxp_facilities ...'
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_gxp_facilities"
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_gxp_facilities, 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_gxp_facilities, must be greater than or equal to 1.'
876
+ end
877
+
878
+ # resource path
879
+ local_var_path = '/api/v1/legal_entities/{id}/gxp_facilities'.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] || 'GxpFacilitiesResponse'
902
+
903
+ # auth_names
904
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
905
+
906
+ new_options = opts.merge(
907
+ :operation => :"LegalEntitiesApi.legal_entities_gxp_facilities",
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_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
919
+ end
920
+ return data, status_code, headers
921
+ end
922
+
923
+ # FDA import refusals
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 [ImportRefusalsResponse]
932
+ def legal_entities_import_refusals(id, opts = {})
933
+ data, _status_code, _headers = legal_entities_import_refusals_with_http_info(id, opts)
934
+ data
935
+ end
936
+
937
+ # FDA import refusals
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<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
946
+ def legal_entities_import_refusals_with_http_info(id, opts = {})
947
+ if @api_client.config.debugging
948
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_import_refusals ...'
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_import_refusals"
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_import_refusals, 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_import_refusals, must be greater than or equal to 1.'
960
+ end
961
+
962
+ # resource path
963
+ local_var_path = '/api/v1/legal_entities/{id}/import_refusals'.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] || 'ImportRefusalsResponse'
986
+
987
+ # auth_names
988
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
989
+
990
+ new_options = opts.merge(
991
+ :operation => :"LegalEntitiesApi.legal_entities_import_refusals",
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_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1003
+ end
1004
+ return data, status_code, headers
1005
+ end
1006
+
1007
+ # FDA inspection findings
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 [InspectionFindingsResponse]
1016
+ def legal_entities_inspection_findings(id, opts = {})
1017
+ data, _status_code, _headers = legal_entities_inspection_findings_with_http_info(id, opts)
1018
+ data
1019
+ end
1020
+
1021
+ # FDA inspection findings
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<(InspectionFindingsResponse, Integer, Hash)>] InspectionFindingsResponse data, response status code and response headers
1030
+ def legal_entities_inspection_findings_with_http_info(id, opts = {})
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_inspection_findings ...'
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_inspection_findings"
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_inspection_findings, 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_inspection_findings, must be greater than or equal to 1.'
1044
+ end
1045
+
1046
+ # resource path
1047
+ local_var_path = '/api/v1/legal_entities/{id}/inspection_findings'.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] || 'InspectionFindingsResponse'
1070
+
1071
+ # auth_names
1072
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1073
+
1074
+ new_options = opts.merge(
1075
+ :operation => :"LegalEntitiesApi.legal_entities_inspection_findings",
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_inspection_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ # FDA inspections
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 [InspectionsResponse]
1100
+ def legal_entities_inspections(id, opts = {})
1101
+ data, _status_code, _headers = legal_entities_inspections_with_http_info(id, opts)
1102
+ data
1103
+ end
1104
+
1105
+ # FDA inspections
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<(InspectionsResponse, Integer, Hash)>] InspectionsResponse data, response status code and response headers
1114
+ def legal_entities_inspections_with_http_info(id, opts = {})
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_inspections ...'
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_inspections"
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_inspections, 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_inspections, must be greater than or equal to 1.'
1128
+ end
1129
+
1130
+ # resource path
1131
+ local_var_path = '/api/v1/legal_entities/{id}/inspections'.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] || 'InspectionsResponse'
1154
+
1155
+ # auth_names
1156
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1157
+
1158
+ new_options = opts.merge(
1159
+ :operation => :"LegalEntitiesApi.legal_entities_inspections",
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_inspections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
+ end
1172
+ return data, status_code, headers
1173
+ end
1174
+
1175
+ # Institutional holdings (SEC Form 13F)
1176
+ # @param id [String]
1177
+ # @param [Hash] opts the optional parameters
1178
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1179
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1180
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1181
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1182
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1183
+ # @return [InstitutionalHoldingsResponse]
1184
+ def legal_entities_institutional_holdings(id, opts = {})
1185
+ data, _status_code, _headers = legal_entities_institutional_holdings_with_http_info(id, opts)
1186
+ data
1187
+ end
1188
+
1189
+ # Institutional holdings (SEC Form 13F)
1190
+ # @param id [String]
1191
+ # @param [Hash] opts the optional parameters
1192
+ # @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.
1193
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1194
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1195
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1196
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1197
+ # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1198
+ def legal_entities_institutional_holdings_with_http_info(id, opts = {})
1199
+ if @api_client.config.debugging
1200
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
1201
+ end
1202
+ # verify the required parameter 'id' is set
1203
+ if @api_client.config.client_side_validation && id.nil?
1204
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_holdings"
1205
+ end
1206
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1207
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be smaller than or equal to 500.'
1208
+ end
1209
+
1210
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1211
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_holdings, must be greater than or equal to 1.'
1212
+ end
1213
+
1214
+ # resource path
1215
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1216
+
1217
+ # query parameters
1218
+ query_params = opts[:query_params] || {}
1219
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1220
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1221
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1222
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1223
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1224
+
1225
+ # header parameters
1226
+ header_params = opts[:header_params] || {}
1227
+ # HTTP header 'Accept' (if needed)
1228
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1229
+
1230
+ # form parameters
1231
+ form_params = opts[:form_params] || {}
1232
+
1233
+ # http body (model)
1234
+ post_body = opts[:debug_body]
1235
+
1236
+ # return_type
1237
+ return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
1238
+
1239
+ # auth_names
1240
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1241
+
1242
+ new_options = opts.merge(
1243
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
1244
+ :header_params => header_params,
1245
+ :query_params => query_params,
1246
+ :form_params => form_params,
1247
+ :body => post_body,
1248
+ :auth_names => auth_names,
1249
+ :return_type => return_type
1250
+ )
1251
+
1252
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1253
+ if @api_client.config.debugging
1254
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1255
+ end
1256
+ return data, status_code, headers
1257
+ end
1258
+
1259
+ # Institutional quarter totals (SEC Form 13F)
1260
+ # @param id [String]
1261
+ # @param [Hash] opts the optional parameters
1262
+ # @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.
1263
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1264
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1265
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1266
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1267
+ # @return [InstitutionalQuarterTotalsResponse]
1268
+ def legal_entities_institutional_quarter_totals(id, opts = {})
1269
+ data, _status_code, _headers = legal_entities_institutional_quarter_totals_with_http_info(id, opts)
1270
+ data
1271
+ end
1272
+
1273
+ # Institutional quarter totals (SEC Form 13F)
1274
+ # @param id [String]
1275
+ # @param [Hash] opts the optional parameters
1276
+ # @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.
1277
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1278
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1279
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1280
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1281
+ # @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
1282
+ def legal_entities_institutional_quarter_totals_with_http_info(id, opts = {})
1283
+ if @api_client.config.debugging
1284
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_quarter_totals ...'
1285
+ end
1286
+ # verify the required parameter 'id' is set
1287
+ if @api_client.config.client_side_validation && id.nil?
1288
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals"
1289
+ end
1290
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1291
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be smaller than or equal to 500.'
1292
+ end
1293
+
1294
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1295
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_institutional_quarter_totals, must be greater than or equal to 1.'
1296
+ end
1297
+
1298
+ # resource path
1299
+ local_var_path = '/api/v1/legal_entities/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1300
+
1301
+ # query parameters
1302
+ query_params = opts[:query_params] || {}
1303
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1304
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1305
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1306
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1307
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1308
+
1309
+ # header parameters
1310
+ header_params = opts[:header_params] || {}
1311
+ # HTTP header 'Accept' (if needed)
1312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1313
+
1314
+ # form parameters
1315
+ form_params = opts[:form_params] || {}
1316
+
1317
+ # http body (model)
1318
+ post_body = opts[:debug_body]
1319
+
1320
+ # return_type
1321
+ return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
1322
+
1323
+ # auth_names
1324
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1325
+
1326
+ new_options = opts.merge(
1327
+ :operation => :"LegalEntitiesApi.legal_entities_institutional_quarter_totals",
1328
+ :header_params => header_params,
1329
+ :query_params => query_params,
1330
+ :form_params => form_params,
1331
+ :body => post_body,
1332
+ :auth_names => auth_names,
1333
+ :return_type => return_type
1334
+ )
1335
+
1336
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
+ end
1340
+ return data, status_code, headers
1341
+ end
1342
+
1343
+ # SEC filer records
1344
+ # @param id [String]
1345
+ # @param [Hash] opts the optional parameters
1346
+ # @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.
1347
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1348
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1349
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1350
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1351
+ # @return [LegalEntitySecFilingsResponse]
1352
+ def legal_entities_legal_entity_sec_filings(id, opts = {})
1353
+ data, _status_code, _headers = legal_entities_legal_entity_sec_filings_with_http_info(id, opts)
1354
+ data
1355
+ end
1356
+
1357
+ # SEC filer records
1358
+ # @param id [String]
1359
+ # @param [Hash] opts the optional parameters
1360
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1361
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1362
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1363
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1364
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1365
+ # @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
1366
+ def legal_entities_legal_entity_sec_filings_with_http_info(id, opts = {})
1367
+ if @api_client.config.debugging
1368
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_legal_entity_sec_filings ...'
1369
+ end
1370
+ # verify the required parameter 'id' is set
1371
+ if @api_client.config.client_side_validation && id.nil?
1372
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings"
1373
+ end
1374
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1375
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be smaller than or equal to 500.'
1376
+ end
1377
+
1378
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1379
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be greater than or equal to 1.'
1380
+ end
1381
+
1382
+ # resource path
1383
+ local_var_path = '/api/v1/legal_entities/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1384
+
1385
+ # query parameters
1386
+ query_params = opts[:query_params] || {}
1387
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1388
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1389
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1390
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1391
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1392
+
1393
+ # header parameters
1394
+ header_params = opts[:header_params] || {}
1395
+ # HTTP header 'Accept' (if needed)
1396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1397
+
1398
+ # form parameters
1399
+ form_params = opts[:form_params] || {}
1400
+
1401
+ # http body (model)
1402
+ post_body = opts[:debug_body]
1403
+
1404
+ # return_type
1405
+ return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
1406
+
1407
+ # auth_names
1408
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1409
+
1410
+ new_options = opts.merge(
1411
+ :operation => :"LegalEntitiesApi.legal_entities_legal_entity_sec_filings",
1412
+ :header_params => header_params,
1413
+ :query_params => query_params,
1414
+ :form_params => form_params,
1415
+ :body => post_body,
1416
+ :auth_names => auth_names,
1417
+ :return_type => return_type
1418
+ )
1419
+
1420
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1421
+ if @api_client.config.debugging
1422
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1423
+ end
1424
+ return data, status_code, headers
1425
+ end
1426
+
1427
+ # List legal entities
1428
+ # @param [Hash] opts the optional parameters
1429
+ # @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.
1430
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1431
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1432
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1433
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1434
+ # @return [LegalEntitiesResponse]
1435
+ def legal_entities_list(opts = {})
1436
+ data, _status_code, _headers = legal_entities_list_with_http_info(opts)
1437
+ data
1438
+ end
1439
+
1440
+ # List legal entities
1441
+ # @param [Hash] opts the optional parameters
1442
+ # @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.
1443
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1444
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1445
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1446
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1447
+ # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
1448
+ def legal_entities_list_with_http_info(opts = {})
1449
+ if @api_client.config.debugging
1450
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
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_list, 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_list, must be greater than or equal to 1.'
1458
+ end
1459
+
1460
+ # resource path
1461
+ local_var_path = '/api/v1/legal_entities'
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] || 'LegalEntitiesResponse'
1484
+
1485
+ # auth_names
1486
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1487
+
1488
+ new_options = opts.merge(
1489
+ :operation => :"LegalEntitiesApi.legal_entities_list",
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_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1501
+ end
1502
+ return data, status_code, headers
1503
+ end
1504
+
1505
+ # Organization disclosure trend
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 [OrgDisclosureTrendResponse]
1514
+ def legal_entities_org_disclosure_trend(id, opts = {})
1515
+ data, _status_code, _headers = legal_entities_org_disclosure_trend_with_http_info(id, opts)
1516
+ data
1517
+ end
1518
+
1519
+ # Organization disclosure trend
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<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
1528
+ def legal_entities_org_disclosure_trend_with_http_info(id, opts = {})
1529
+ if @api_client.config.debugging
1530
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosure_trend ...'
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_org_disclosure_trend"
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_org_disclosure_trend, 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_org_disclosure_trend, must be greater than or equal to 1.'
1542
+ end
1543
+
1544
+ # resource path
1545
+ local_var_path = '/api/v1/legal_entities/{id}/org_disclosure_trend'.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] || 'OrgDisclosureTrendResponse'
1568
+
1569
+ # auth_names
1570
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1571
+
1572
+ new_options = opts.merge(
1573
+ :operation => :"LegalEntitiesApi.legal_entities_org_disclosure_trend",
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_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1585
+ end
1586
+ return data, status_code, headers
1587
+ end
1588
+
1589
+ # Organization disclosures (climate and diversity)
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 [OrgDisclosuresResponse]
1598
+ def legal_entities_org_disclosures(id, opts = {})
1599
+ data, _status_code, _headers = legal_entities_org_disclosures_with_http_info(id, opts)
1600
+ data
1601
+ end
1602
+
1603
+ # Organization disclosures (climate and diversity)
1604
+ # @param id [String]
1605
+ # @param [Hash] opts the optional parameters
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.
1607
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1608
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1609
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1610
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1611
+ # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
1612
+ def legal_entities_org_disclosures_with_http_info(id, opts = {})
1613
+ if @api_client.config.debugging
1614
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
1615
+ end
1616
+ # verify the required parameter 'id' is set
1617
+ if @api_client.config.client_side_validation && id.nil?
1618
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
1619
+ end
1620
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1621
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be smaller than or equal to 500.'
1622
+ end
1623
+
1624
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1625
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be greater than or equal to 1.'
1626
+ end
1627
+
1628
+ # resource path
1629
+ local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1630
+
1631
+ # query parameters
1632
+ query_params = opts[:query_params] || {}
1633
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1634
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1635
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1636
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1637
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1638
+
1639
+ # header parameters
1640
+ header_params = opts[:header_params] || {}
1641
+ # HTTP header 'Accept' (if needed)
1642
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1643
+
1644
+ # form parameters
1645
+ form_params = opts[:form_params] || {}
1646
+
1647
+ # http body (model)
1648
+ post_body = opts[:debug_body]
1649
+
1650
+ # return_type
1651
+ return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
1652
+
1653
+ # auth_names
1654
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1655
+
1656
+ new_options = opts.merge(
1657
+ :operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
1658
+ :header_params => header_params,
1659
+ :query_params => query_params,
1660
+ :form_params => form_params,
1661
+ :body => post_body,
1662
+ :auth_names => auth_names,
1663
+ :return_type => return_type
1664
+ )
1665
+
1666
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1667
+ if @api_client.config.debugging
1668
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1669
+ end
1670
+ return data, status_code, headers
1671
+ end
1672
+
1673
+ # Organization relationships
1674
+ # @param id [String]
1675
+ # @param [Hash] opts the optional parameters
1676
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1677
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1678
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1679
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1680
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1681
+ # @return [OrgRelationshipsResponse]
1682
+ def legal_entities_org_relationships(id, opts = {})
1683
+ data, _status_code, _headers = legal_entities_org_relationships_with_http_info(id, opts)
1684
+ data
1685
+ end
1686
+
1687
+ # Organization relationships
1688
+ # @param id [String]
1689
+ # @param [Hash] opts the optional parameters
1690
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1691
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1692
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1693
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1694
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1695
+ # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
1696
+ def legal_entities_org_relationships_with_http_info(id, opts = {})
1697
+ if @api_client.config.debugging
1698
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
1699
+ end
1700
+ # verify the required parameter 'id' is set
1701
+ if @api_client.config.client_side_validation && id.nil?
1702
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
1703
+ end
1704
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1705
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be smaller than or equal to 500.'
1706
+ end
1707
+
1708
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1709
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be greater than or equal to 1.'
1710
+ end
1711
+
1712
+ # resource path
1713
+ local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1714
+
1715
+ # query parameters
1716
+ query_params = opts[:query_params] || {}
1717
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1718
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1719
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1720
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1721
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1722
+
1723
+ # header parameters
1724
+ header_params = opts[:header_params] || {}
1725
+ # HTTP header 'Accept' (if needed)
1726
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1727
+
1728
+ # form parameters
1729
+ form_params = opts[:form_params] || {}
1730
+
1731
+ # http body (model)
1732
+ post_body = opts[:debug_body]
1733
+
1734
+ # return_type
1735
+ return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
1736
+
1737
+ # auth_names
1738
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1739
+
1740
+ new_options = opts.merge(
1741
+ :operation => :"LegalEntitiesApi.legal_entities_org_relationships",
1742
+ :header_params => header_params,
1743
+ :query_params => query_params,
1744
+ :form_params => form_params,
1745
+ :body => post_body,
1746
+ :auth_names => auth_names,
1747
+ :return_type => return_type
1748
+ )
1749
+
1750
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1751
+ if @api_client.config.debugging
1752
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1753
+ end
1754
+ return data, status_code, headers
1755
+ end
1756
+
1757
+ # Ownership percentages
1758
+ # @param id [String]
1759
+ # @param [Hash] opts the optional parameters
1760
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1761
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1762
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1763
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1764
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1765
+ # @return [OwnershipPercentagesResponse]
1766
+ def legal_entities_ownership_percentages(id, opts = {})
1767
+ data, _status_code, _headers = legal_entities_ownership_percentages_with_http_info(id, opts)
1768
+ data
1769
+ end
1770
+
1771
+ # Ownership percentages
1772
+ # @param id [String]
1773
+ # @param [Hash] opts the optional parameters
1774
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1775
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1776
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1777
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1778
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1779
+ # @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
1780
+ def legal_entities_ownership_percentages_with_http_info(id, opts = {})
1781
+ if @api_client.config.debugging
1782
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_percentages ...'
1783
+ end
1784
+ # verify the required parameter 'id' is set
1785
+ if @api_client.config.client_side_validation && id.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_percentages"
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_ownership_percentages, 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_ownership_percentages, must be greater than or equal to 1.'
1794
+ end
1795
+
1796
+ # resource path
1797
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1798
+
1799
+ # query parameters
1800
+ query_params = opts[:query_params] || {}
1801
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1802
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1803
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1804
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1805
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1806
+
1807
+ # header parameters
1808
+ header_params = opts[:header_params] || {}
1809
+ # HTTP header 'Accept' (if needed)
1810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1811
+
1812
+ # form parameters
1813
+ form_params = opts[:form_params] || {}
1814
+
1815
+ # http body (model)
1816
+ post_body = opts[:debug_body]
1817
+
1818
+ # return_type
1819
+ return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
1820
+
1821
+ # auth_names
1822
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1823
+
1824
+ new_options = opts.merge(
1825
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_percentages",
1826
+ :header_params => header_params,
1827
+ :query_params => query_params,
1828
+ :form_params => form_params,
1829
+ :body => post_body,
1830
+ :auth_names => auth_names,
1831
+ :return_type => return_type
1832
+ )
1833
+
1834
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1835
+ if @api_client.config.debugging
1836
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1837
+ end
1838
+ return data, status_code, headers
1839
+ end
1840
+
1841
+ # Ownership and control positions
1842
+ # @param id [String]
1843
+ # @param [Hash] opts the optional parameters
1844
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1845
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1846
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1847
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1848
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1849
+ # @return [OwnershipPositionsResponse]
1850
+ def legal_entities_ownership_positions(id, opts = {})
1851
+ data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
1852
+ data
1853
+ end
1854
+
1855
+ # Ownership and control positions
1856
+ # @param id [String]
1857
+ # @param [Hash] opts the optional parameters
1858
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1859
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1860
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1861
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1862
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1863
+ # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
1864
+ def legal_entities_ownership_positions_with_http_info(id, opts = {})
1865
+ if @api_client.config.debugging
1866
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
1867
+ end
1868
+ # verify the required parameter 'id' is set
1869
+ if @api_client.config.client_side_validation && id.nil?
1870
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
1871
+ end
1872
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1873
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be smaller than or equal to 500.'
1874
+ end
1875
+
1876
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1877
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be greater than or equal to 1.'
1878
+ end
1879
+
1880
+ # resource path
1881
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1882
+
1883
+ # query parameters
1884
+ query_params = opts[:query_params] || {}
1885
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1886
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1887
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1888
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1889
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1890
+
1891
+ # header parameters
1892
+ header_params = opts[:header_params] || {}
1893
+ # HTTP header 'Accept' (if needed)
1894
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1895
+
1896
+ # form parameters
1897
+ form_params = opts[:form_params] || {}
1898
+
1899
+ # http body (model)
1900
+ post_body = opts[:debug_body]
1901
+
1902
+ # return_type
1903
+ return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
1904
+
1905
+ # auth_names
1906
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1907
+
1908
+ new_options = opts.merge(
1909
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
1910
+ :header_params => header_params,
1911
+ :query_params => query_params,
1912
+ :form_params => form_params,
1913
+ :body => post_body,
1914
+ :auth_names => auth_names,
1915
+ :return_type => return_type
1916
+ )
1917
+
1918
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1919
+ if @api_client.config.debugging
1920
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1921
+ end
1922
+ return data, status_code, headers
1923
+ end
1924
+
1925
+ # Ownership source coverage
1926
+ # @param id [String]
1927
+ # @param [Hash] opts the optional parameters
1928
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1929
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1930
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1931
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1932
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1933
+ # @return [OwnershipSourceCoverageResponse]
1934
+ def legal_entities_ownership_source_coverage(id, opts = {})
1935
+ data, _status_code, _headers = legal_entities_ownership_source_coverage_with_http_info(id, opts)
1936
+ data
1937
+ end
1938
+
1939
+ # Ownership source coverage
1940
+ # @param id [String]
1941
+ # @param [Hash] opts the optional parameters
1942
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1943
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1944
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1945
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1946
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1947
+ # @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
1948
+ def legal_entities_ownership_source_coverage_with_http_info(id, opts = {})
1949
+ if @api_client.config.debugging
1950
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_source_coverage ...'
1951
+ end
1952
+ # verify the required parameter 'id' is set
1953
+ if @api_client.config.client_side_validation && id.nil?
1954
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_source_coverage"
1955
+ end
1956
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1957
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be smaller than or equal to 500.'
1958
+ end
1959
+
1960
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1961
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be greater than or equal to 1.'
1962
+ end
1963
+
1964
+ # resource path
1965
+ local_var_path = '/api/v1/legal_entities/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1966
+
1967
+ # query parameters
1968
+ query_params = opts[:query_params] || {}
1969
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1970
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1971
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1972
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1973
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1974
+
1975
+ # header parameters
1976
+ header_params = opts[:header_params] || {}
1977
+ # HTTP header 'Accept' (if needed)
1978
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1979
+
1980
+ # form parameters
1981
+ form_params = opts[:form_params] || {}
1982
+
1983
+ # http body (model)
1984
+ post_body = opts[:debug_body]
1985
+
1986
+ # return_type
1987
+ return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
1988
+
1989
+ # auth_names
1990
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1991
+
1992
+ new_options = opts.merge(
1993
+ :operation => :"LegalEntitiesApi.legal_entities_ownership_source_coverage",
1994
+ :header_params => header_params,
1995
+ :query_params => query_params,
1996
+ :form_params => form_params,
1997
+ :body => post_body,
1998
+ :auth_names => auth_names,
1999
+ :return_type => return_type
2000
+ )
2001
+
2002
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2003
+ if @api_client.config.debugging
2004
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2005
+ end
2006
+ return data, status_code, headers
2007
+ end
2008
+
2009
+ # FDA decision dates (PDUFA) and catalysts
2010
+ # @param id [String]
2011
+ # @param [Hash] opts the optional parameters
2012
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2013
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2014
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2015
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2016
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2017
+ # @return [PdufaDatesResponse]
2018
+ def legal_entities_pdufa_dates(id, opts = {})
2019
+ data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
2020
+ data
2021
+ end
2022
+
2023
+ # FDA decision dates (PDUFA) and catalysts
2024
+ # @param id [String]
2025
+ # @param [Hash] opts the optional parameters
2026
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2027
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2028
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2029
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2030
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2031
+ # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
2032
+ def legal_entities_pdufa_dates_with_http_info(id, opts = {})
2033
+ if @api_client.config.debugging
2034
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
2035
+ end
2036
+ # verify the required parameter 'id' is set
2037
+ if @api_client.config.client_side_validation && id.nil?
2038
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
2039
+ end
2040
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2041
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
2042
+ end
2043
+
2044
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2045
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
2046
+ end
2047
+
2048
+ # resource path
2049
+ local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2050
+
2051
+ # query parameters
2052
+ query_params = opts[:query_params] || {}
2053
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2054
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2055
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2056
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2057
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2058
+
2059
+ # header parameters
2060
+ header_params = opts[:header_params] || {}
2061
+ # HTTP header 'Accept' (if needed)
2062
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2063
+
2064
+ # form parameters
2065
+ form_params = opts[:form_params] || {}
2066
+
2067
+ # http body (model)
2068
+ post_body = opts[:debug_body]
2069
+
2070
+ # return_type
2071
+ return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
2072
+
2073
+ # auth_names
2074
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2075
+
2076
+ new_options = opts.merge(
2077
+ :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
2078
+ :header_params => header_params,
2079
+ :query_params => query_params,
2080
+ :form_params => form_params,
2081
+ :body => post_body,
2082
+ :auth_names => auth_names,
2083
+ :return_type => return_type
2084
+ )
2085
+
2086
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2087
+ if @api_client.config.debugging
2088
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2089
+ end
2090
+ return data, status_code, headers
2091
+ end
2092
+
2093
+ # Program licensing candidates
2094
+ # @param id [String]
2095
+ # @param [Hash] opts the optional parameters
2096
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2097
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2098
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2099
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2100
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2101
+ # @return [ProgramLicensingCandidatesResponse]
2102
+ def legal_entities_program_licensing_candidates(id, opts = {})
2103
+ data, _status_code, _headers = legal_entities_program_licensing_candidates_with_http_info(id, opts)
2104
+ data
2105
+ end
2106
+
2107
+ # Program licensing candidates
2108
+ # @param id [String]
2109
+ # @param [Hash] opts the optional parameters
2110
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2111
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2112
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2113
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2114
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2115
+ # @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
2116
+ def legal_entities_program_licensing_candidates_with_http_info(id, opts = {})
2117
+ if @api_client.config.debugging
2118
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_program_licensing_candidates ...'
2119
+ end
2120
+ # verify the required parameter 'id' is set
2121
+ if @api_client.config.client_side_validation && id.nil?
2122
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_program_licensing_candidates"
2123
+ end
2124
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2125
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be smaller than or equal to 500.'
2126
+ end
2127
+
2128
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2129
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be greater than or equal to 1.'
2130
+ end
2131
+
2132
+ # resource path
2133
+ local_var_path = '/api/v1/legal_entities/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2134
+
2135
+ # query parameters
2136
+ query_params = opts[:query_params] || {}
2137
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2138
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2139
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2140
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2141
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2142
+
2143
+ # header parameters
2144
+ header_params = opts[:header_params] || {}
2145
+ # HTTP header 'Accept' (if needed)
2146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2147
+
2148
+ # form parameters
2149
+ form_params = opts[:form_params] || {}
2150
+
2151
+ # http body (model)
2152
+ post_body = opts[:debug_body]
2153
+
2154
+ # return_type
2155
+ return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
2156
+
2157
+ # auth_names
2158
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2159
+
2160
+ new_options = opts.merge(
2161
+ :operation => :"LegalEntitiesApi.legal_entities_program_licensing_candidates",
2162
+ :header_params => header_params,
2163
+ :query_params => query_params,
2164
+ :form_params => form_params,
2165
+ :body => post_body,
2166
+ :auth_names => auth_names,
2167
+ :return_type => return_type
2168
+ )
2169
+
2170
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2171
+ if @api_client.config.debugging
2172
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2173
+ end
2174
+ return data, status_code, headers
2175
+ end
2176
+
2177
+ # FDA recalls
2178
+ # @param id [String]
2179
+ # @param [Hash] opts the optional parameters
2180
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2181
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2182
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2183
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2184
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2185
+ # @return [RecallsResponse]
2186
+ def legal_entities_recalls(id, opts = {})
2187
+ data, _status_code, _headers = legal_entities_recalls_with_http_info(id, opts)
2188
+ data
2189
+ end
2190
+
2191
+ # FDA recalls
2192
+ # @param id [String]
2193
+ # @param [Hash] opts the optional parameters
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.
2195
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2196
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2197
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2198
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2199
+ # @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
2200
+ def legal_entities_recalls_with_http_info(id, opts = {})
2201
+ if @api_client.config.debugging
2202
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_recalls ...'
2203
+ end
2204
+ # verify the required parameter 'id' is set
2205
+ if @api_client.config.client_side_validation && id.nil?
2206
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_recalls"
2207
+ end
2208
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2209
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be smaller than or equal to 500.'
2210
+ end
2211
+
2212
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be greater than or equal to 1.'
2214
+ end
2215
+
2216
+ # resource path
2217
+ local_var_path = '/api/v1/legal_entities/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2218
+
2219
+ # query parameters
2220
+ query_params = opts[:query_params] || {}
2221
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2222
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2223
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2224
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2225
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2226
+
2227
+ # header parameters
2228
+ header_params = opts[:header_params] || {}
2229
+ # HTTP header 'Accept' (if needed)
2230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2231
+
2232
+ # form parameters
2233
+ form_params = opts[:form_params] || {}
2234
+
2235
+ # http body (model)
2236
+ post_body = opts[:debug_body]
2237
+
2238
+ # return_type
2239
+ return_type = opts[:debug_return_type] || 'RecallsResponse'
2240
+
2241
+ # auth_names
2242
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2243
+
2244
+ new_options = opts.merge(
2245
+ :operation => :"LegalEntitiesApi.legal_entities_recalls",
2246
+ :header_params => header_params,
2247
+ :query_params => query_params,
2248
+ :form_params => form_params,
2249
+ :body => post_body,
2250
+ :auth_names => auth_names,
2251
+ :return_type => return_type
2252
+ )
2253
+
2254
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2255
+ if @api_client.config.debugging
2256
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2257
+ end
2258
+ return data, status_code, headers
2259
+ end
2260
+
2261
+ # SBTi cross-check
2262
+ # @param id [String]
2263
+ # @param [Hash] opts the optional parameters
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.
2265
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2266
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2267
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2268
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2269
+ # @return [SbtiCrosscheckResponse]
2270
+ def legal_entities_sbti_crosscheck(id, opts = {})
2271
+ data, _status_code, _headers = legal_entities_sbti_crosscheck_with_http_info(id, opts)
2272
+ data
2273
+ end
2274
+
2275
+ # SBTi cross-check
2276
+ # @param id [String]
2277
+ # @param [Hash] opts the optional parameters
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.
2279
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2280
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2281
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2282
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2283
+ # @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
2284
+ def legal_entities_sbti_crosscheck_with_http_info(id, opts = {})
2285
+ if @api_client.config.debugging
2286
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sbti_crosscheck ...'
2287
+ end
2288
+ # verify the required parameter 'id' is set
2289
+ if @api_client.config.client_side_validation && id.nil?
2290
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sbti_crosscheck"
2291
+ end
2292
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be smaller than or equal to 500.'
2294
+ end
2295
+
2296
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2297
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be greater than or equal to 1.'
2298
+ end
2299
+
2300
+ # resource path
2301
+ local_var_path = '/api/v1/legal_entities/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2302
+
2303
+ # query parameters
2304
+ query_params = opts[:query_params] || {}
2305
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2306
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2307
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2308
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2309
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2310
+
2311
+ # header parameters
2312
+ header_params = opts[:header_params] || {}
2313
+ # HTTP header 'Accept' (if needed)
2314
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2315
+
2316
+ # form parameters
2317
+ form_params = opts[:form_params] || {}
2318
+
2319
+ # http body (model)
2320
+ post_body = opts[:debug_body]
2321
+
2322
+ # return_type
2323
+ return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
2324
+
2325
+ # auth_names
2326
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2327
+
2328
+ new_options = opts.merge(
2329
+ :operation => :"LegalEntitiesApi.legal_entities_sbti_crosscheck",
2330
+ :header_params => header_params,
2331
+ :query_params => query_params,
2332
+ :form_params => form_params,
2333
+ :body => post_body,
2334
+ :auth_names => auth_names,
2335
+ :return_type => return_type
2336
+ )
2337
+
2338
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2339
+ if @api_client.config.debugging
2340
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2341
+ end
2342
+ return data, status_code, headers
2343
+ end
2344
+
2345
+ # FDA dates disclosed in SEC filings
2346
+ # @param id [String]
2347
+ # @param [Hash] opts the optional parameters
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.
2349
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2350
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2351
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2352
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2353
+ # @return [SecPdufaDatesResponse]
2354
+ def legal_entities_sec_pdufa_dates(id, opts = {})
2355
+ data, _status_code, _headers = legal_entities_sec_pdufa_dates_with_http_info(id, opts)
2356
+ data
2357
+ end
2358
+
2359
+ # FDA dates disclosed in SEC filings
2360
+ # @param id [String]
2361
+ # @param [Hash] opts the optional parameters
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.
2363
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2364
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2365
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2366
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2367
+ # @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
2368
+ def legal_entities_sec_pdufa_dates_with_http_info(id, opts = {})
2369
+ if @api_client.config.debugging
2370
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sec_pdufa_dates ...'
2371
+ end
2372
+ # verify the required parameter 'id' is set
2373
+ if @api_client.config.client_side_validation && id.nil?
2374
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates"
2375
+ end
2376
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2377
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be smaller than or equal to 500.'
2378
+ end
2379
+
2380
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2381
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be greater than or equal to 1.'
2382
+ end
2383
+
2384
+ # resource path
2385
+ local_var_path = '/api/v1/legal_entities/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2386
+
2387
+ # query parameters
2388
+ query_params = opts[:query_params] || {}
2389
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2390
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2391
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2392
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2393
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2394
+
2395
+ # header parameters
2396
+ header_params = opts[:header_params] || {}
2397
+ # HTTP header 'Accept' (if needed)
2398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2399
+
2400
+ # form parameters
2401
+ form_params = opts[:form_params] || {}
2402
+
2403
+ # http body (model)
2404
+ post_body = opts[:debug_body]
2405
+
2406
+ # return_type
2407
+ return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
2408
+
2409
+ # auth_names
2410
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2411
+
2412
+ new_options = opts.merge(
2413
+ :operation => :"LegalEntitiesApi.legal_entities_sec_pdufa_dates",
2414
+ :header_params => header_params,
2415
+ :query_params => query_params,
2416
+ :form_params => form_params,
2417
+ :body => post_body,
2418
+ :auth_names => auth_names,
2419
+ :return_type => return_type
2420
+ )
2421
+
2422
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2423
+ if @api_client.config.debugging
2424
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2425
+ end
2426
+ return data, status_code, headers
2427
+ end
2428
+
2429
+ # Sponsor delivery reliability
2430
+ # @param id [String]
2431
+ # @param [Hash] opts the optional parameters
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.
2433
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2434
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2435
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2436
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2437
+ # @return [SponsorDeliveryResponse]
2438
+ def legal_entities_sponsor_delivery(id, opts = {})
2439
+ data, _status_code, _headers = legal_entities_sponsor_delivery_with_http_info(id, opts)
2440
+ data
2441
+ end
2442
+
2443
+ # Sponsor delivery reliability
2444
+ # @param id [String]
2445
+ # @param [Hash] opts the optional parameters
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.
2447
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2448
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2449
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2450
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2451
+ # @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
2452
+ def legal_entities_sponsor_delivery_with_http_info(id, opts = {})
2453
+ if @api_client.config.debugging
2454
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_delivery ...'
2455
+ end
2456
+ # verify the required parameter 'id' is set
2457
+ if @api_client.config.client_side_validation && id.nil?
2458
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_delivery"
2459
+ end
2460
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2461
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be smaller than or equal to 500.'
2462
+ end
2463
+
2464
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2465
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be greater than or equal to 1.'
294
2466
  end
2467
+
295
2468
  # resource path
296
- local_var_path = '/api/v1/legal_entities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2469
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
297
2470
 
298
2471
  # query parameters
299
2472
  query_params = opts[:query_params] || {}
2473
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2474
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2475
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2476
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2477
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
300
2478
 
301
2479
  # header parameters
302
2480
  header_params = opts[:header_params] || {}
@@ -310,13 +2488,13 @@ module PharmaObservatory
310
2488
  post_body = opts[:debug_body]
311
2489
 
312
2490
  # return_type
313
- return_type = opts[:debug_return_type] || 'LegalEntitiesRecord'
2491
+ return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
314
2492
 
315
2493
  # auth_names
316
2494
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
317
2495
 
318
2496
  new_options = opts.merge(
319
- :operation => :"LegalEntitiesApi.legal_entities_get",
2497
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_delivery",
320
2498
  :header_params => header_params,
321
2499
  :query_params => query_params,
322
2500
  :form_params => form_params,
@@ -327,12 +2505,12 @@ module PharmaObservatory
327
2505
 
328
2506
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
329
2507
  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}"
2508
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
2509
  end
332
2510
  return data, status_code, headers
333
2511
  end
334
2512
 
335
- # Institutional holdings (SEC Form 13F)
2513
+ # Sponsor patent mentions
336
2514
  # @param id [String]
337
2515
  # @param [Hash] opts the optional parameters
338
2516
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -340,13 +2518,13 @@ module PharmaObservatory
340
2518
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
341
2519
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
342
2520
  # @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)
2521
+ # @return [SponsorPatentMentionsResponse]
2522
+ def legal_entities_sponsor_patent_mentions(id, opts = {})
2523
+ data, _status_code, _headers = legal_entities_sponsor_patent_mentions_with_http_info(id, opts)
346
2524
  data
347
2525
  end
348
2526
 
349
- # Institutional holdings (SEC Form 13F)
2527
+ # Sponsor patent mentions
350
2528
  # @param id [String]
351
2529
  # @param [Hash] opts the optional parameters
352
2530
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -354,25 +2532,25 @@ module PharmaObservatory
354
2532
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
355
2533
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
356
2534
  # @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 = {})
2535
+ # @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
2536
+ def legal_entities_sponsor_patent_mentions_with_http_info(id, opts = {})
359
2537
  if @api_client.config.debugging
360
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_institutional_holdings ...'
2538
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_patent_mentions ...'
361
2539
  end
362
2540
  # verify the required parameter 'id' is set
363
2541
  if @api_client.config.client_side_validation && id.nil?
364
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_institutional_holdings"
2542
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions"
365
2543
  end
366
2544
  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.'
2545
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be smaller than or equal to 500.'
368
2546
  end
369
2547
 
370
2548
  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.'
2549
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be greater than or equal to 1.'
372
2550
  end
373
2551
 
374
2552
  # resource path
375
- local_var_path = '/api/v1/legal_entities/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2553
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
376
2554
 
377
2555
  # query parameters
378
2556
  query_params = opts[:query_params] || {}
@@ -394,13 +2572,13 @@ module PharmaObservatory
394
2572
  post_body = opts[:debug_body]
395
2573
 
396
2574
  # return_type
397
- return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
2575
+ return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
398
2576
 
399
2577
  # auth_names
400
2578
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
401
2579
 
402
2580
  new_options = opts.merge(
403
- :operation => :"LegalEntitiesApi.legal_entities_institutional_holdings",
2581
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_patent_mentions",
404
2582
  :header_params => header_params,
405
2583
  :query_params => query_params,
406
2584
  :form_params => form_params,
@@ -411,46 +2589,52 @@ module PharmaObservatory
411
2589
 
412
2590
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
413
2591
  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}"
2592
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
415
2593
  end
416
2594
  return data, status_code, headers
417
2595
  end
418
2596
 
419
- # List legal entities
2597
+ # Trial recruitment duration by sponsor and phase
2598
+ # @param id [String]
420
2599
  # @param [Hash] opts the optional parameters
421
2600
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
422
2601
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
423
2602
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
424
2603
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
425
2604
  # @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)
2605
+ # @return [SponsorRecruitmentByPhaseResponse]
2606
+ def legal_entities_sponsor_recruitment_by_phase(id, opts = {})
2607
+ data, _status_code, _headers = legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts)
429
2608
  data
430
2609
  end
431
2610
 
432
- # List legal entities
2611
+ # Trial recruitment duration by sponsor and phase
2612
+ # @param id [String]
433
2613
  # @param [Hash] opts the optional parameters
434
2614
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
435
2615
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
436
2616
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
437
2617
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
438
2618
  # @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 = {})
2619
+ # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
2620
+ def legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
441
2621
  if @api_client.config.debugging
442
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
2622
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
2623
+ end
2624
+ # verify the required parameter 'id' is set
2625
+ if @api_client.config.client_side_validation && id.nil?
2626
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
443
2627
  end
444
2628
  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.'
2629
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
446
2630
  end
447
2631
 
448
2632
  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.'
2633
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
450
2634
  end
451
2635
 
452
2636
  # resource path
453
- local_var_path = '/api/v1/legal_entities'
2637
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
454
2638
 
455
2639
  # query parameters
456
2640
  query_params = opts[:query_params] || {}
@@ -472,13 +2656,13 @@ module PharmaObservatory
472
2656
  post_body = opts[:debug_body]
473
2657
 
474
2658
  # return_type
475
- return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
2659
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
476
2660
 
477
2661
  # auth_names
478
2662
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
479
2663
 
480
2664
  new_options = opts.merge(
481
- :operation => :"LegalEntitiesApi.legal_entities_list",
2665
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
482
2666
  :header_params => header_params,
483
2667
  :query_params => query_params,
484
2668
  :form_params => form_params,
@@ -489,12 +2673,12 @@ module PharmaObservatory
489
2673
 
490
2674
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
491
2675
  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}"
2676
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
2677
  end
494
2678
  return data, status_code, headers
495
2679
  end
496
2680
 
497
- # Organization disclosures (climate and diversity)
2681
+ # Trial recruitment duration by sponsor
498
2682
  # @param id [String]
499
2683
  # @param [Hash] opts the optional parameters
500
2684
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -502,13 +2686,13 @@ module PharmaObservatory
502
2686
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
503
2687
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
504
2688
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
505
- # @return [OrgDisclosuresResponse]
506
- def legal_entities_org_disclosures(id, opts = {})
507
- data, _status_code, _headers = legal_entities_org_disclosures_with_http_info(id, opts)
2689
+ # @return [SponsorRecruitmentDurationResponse]
2690
+ def legal_entities_sponsor_recruitment_duration(id, opts = {})
2691
+ data, _status_code, _headers = legal_entities_sponsor_recruitment_duration_with_http_info(id, opts)
508
2692
  data
509
2693
  end
510
2694
 
511
- # Organization disclosures (climate and diversity)
2695
+ # Trial recruitment duration by sponsor
512
2696
  # @param id [String]
513
2697
  # @param [Hash] opts the optional parameters
514
2698
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -516,25 +2700,25 @@ module PharmaObservatory
516
2700
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
517
2701
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
518
2702
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
519
- # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
520
- def legal_entities_org_disclosures_with_http_info(id, opts = {})
2703
+ # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
2704
+ def legal_entities_sponsor_recruitment_duration_with_http_info(id, opts = {})
521
2705
  if @api_client.config.debugging
522
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
2706
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
523
2707
  end
524
2708
  # verify the required parameter 'id' is set
525
2709
  if @api_client.config.client_side_validation && id.nil?
526
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
2710
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration"
527
2711
  end
528
2712
  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_org_disclosures, must be smaller than or equal to 500.'
2713
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be smaller than or equal to 500.'
530
2714
  end
531
2715
 
532
2716
  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_org_disclosures, must be greater than or equal to 1.'
2717
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration, must be greater than or equal to 1.'
534
2718
  end
535
2719
 
536
2720
  # resource path
537
- local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2721
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
538
2722
 
539
2723
  # query parameters
540
2724
  query_params = opts[:query_params] || {}
@@ -556,13 +2740,13 @@ module PharmaObservatory
556
2740
  post_body = opts[:debug_body]
557
2741
 
558
2742
  # return_type
559
- return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
2743
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
560
2744
 
561
2745
  # auth_names
562
2746
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
563
2747
 
564
2748
  new_options = opts.merge(
565
- :operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
2749
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
566
2750
  :header_params => header_params,
567
2751
  :query_params => query_params,
568
2752
  :form_params => form_params,
@@ -573,12 +2757,12 @@ module PharmaObservatory
573
2757
 
574
2758
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
575
2759
  if @api_client.config.debugging
576
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2760
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
2761
  end
578
2762
  return data, status_code, headers
579
2763
  end
580
2764
 
581
- # Organization relationships
2765
+ # Sponsor trial conditions
582
2766
  # @param id [String]
583
2767
  # @param [Hash] opts the optional parameters
584
2768
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -586,13 +2770,13 @@ module PharmaObservatory
586
2770
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
587
2771
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
588
2772
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
589
- # @return [OrgRelationshipsResponse]
590
- def legal_entities_org_relationships(id, opts = {})
591
- data, _status_code, _headers = legal_entities_org_relationships_with_http_info(id, opts)
2773
+ # @return [SponsorTrialConditionsResponse]
2774
+ def legal_entities_sponsor_trial_conditions(id, opts = {})
2775
+ data, _status_code, _headers = legal_entities_sponsor_trial_conditions_with_http_info(id, opts)
592
2776
  data
593
2777
  end
594
2778
 
595
- # Organization relationships
2779
+ # Sponsor trial conditions
596
2780
  # @param id [String]
597
2781
  # @param [Hash] opts the optional parameters
598
2782
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -600,25 +2784,25 @@ module PharmaObservatory
600
2784
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
601
2785
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
602
2786
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
603
- # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
604
- def legal_entities_org_relationships_with_http_info(id, opts = {})
2787
+ # @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
2788
+ def legal_entities_sponsor_trial_conditions_with_http_info(id, opts = {})
605
2789
  if @api_client.config.debugging
606
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
2790
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_conditions ...'
607
2791
  end
608
2792
  # verify the required parameter 'id' is set
609
2793
  if @api_client.config.client_side_validation && id.nil?
610
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
2794
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions"
611
2795
  end
612
2796
  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_org_relationships, must be smaller than or equal to 500.'
2797
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be smaller than or equal to 500.'
614
2798
  end
615
2799
 
616
2800
  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_org_relationships, must be greater than or equal to 1.'
2801
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be greater than or equal to 1.'
618
2802
  end
619
2803
 
620
2804
  # resource path
621
- local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2805
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
622
2806
 
623
2807
  # query parameters
624
2808
  query_params = opts[:query_params] || {}
@@ -640,13 +2824,13 @@ module PharmaObservatory
640
2824
  post_body = opts[:debug_body]
641
2825
 
642
2826
  # return_type
643
- return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
2827
+ return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
644
2828
 
645
2829
  # auth_names
646
2830
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
647
2831
 
648
2832
  new_options = opts.merge(
649
- :operation => :"LegalEntitiesApi.legal_entities_org_relationships",
2833
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_conditions",
650
2834
  :header_params => header_params,
651
2835
  :query_params => query_params,
652
2836
  :form_params => form_params,
@@ -657,12 +2841,12 @@ module PharmaObservatory
657
2841
 
658
2842
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
659
2843
  if @api_client.config.debugging
660
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2844
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
2845
  end
662
2846
  return data, status_code, headers
663
2847
  end
664
2848
 
665
- # Ownership and control positions
2849
+ # Sponsor trial drugs
666
2850
  # @param id [String]
667
2851
  # @param [Hash] opts the optional parameters
668
2852
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -670,13 +2854,13 @@ module PharmaObservatory
670
2854
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
671
2855
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
672
2856
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
673
- # @return [OwnershipPositionsResponse]
674
- def legal_entities_ownership_positions(id, opts = {})
675
- data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
2857
+ # @return [SponsorTrialDrugsResponse]
2858
+ def legal_entities_sponsor_trial_drugs(id, opts = {})
2859
+ data, _status_code, _headers = legal_entities_sponsor_trial_drugs_with_http_info(id, opts)
676
2860
  data
677
2861
  end
678
2862
 
679
- # Ownership and control positions
2863
+ # Sponsor trial drugs
680
2864
  # @param id [String]
681
2865
  # @param [Hash] opts the optional parameters
682
2866
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -684,25 +2868,25 @@ module PharmaObservatory
684
2868
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
685
2869
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
686
2870
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
687
- # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
688
- def legal_entities_ownership_positions_with_http_info(id, opts = {})
2871
+ # @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
2872
+ def legal_entities_sponsor_trial_drugs_with_http_info(id, opts = {})
689
2873
  if @api_client.config.debugging
690
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
2874
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_drugs ...'
691
2875
  end
692
2876
  # verify the required parameter 'id' is set
693
2877
  if @api_client.config.client_side_validation && id.nil?
694
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
2878
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs"
695
2879
  end
696
2880
  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_ownership_positions, must be smaller than or equal to 500.'
2881
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be smaller than or equal to 500.'
698
2882
  end
699
2883
 
700
2884
  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_ownership_positions, must be greater than or equal to 1.'
2885
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be greater than or equal to 1.'
702
2886
  end
703
2887
 
704
2888
  # resource path
705
- local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2889
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
706
2890
 
707
2891
  # query parameters
708
2892
  query_params = opts[:query_params] || {}
@@ -724,13 +2908,13 @@ module PharmaObservatory
724
2908
  post_body = opts[:debug_body]
725
2909
 
726
2910
  # return_type
727
- return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
2911
+ return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
728
2912
 
729
2913
  # auth_names
730
2914
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
731
2915
 
732
2916
  new_options = opts.merge(
733
- :operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
2917
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_drugs",
734
2918
  :header_params => header_params,
735
2919
  :query_params => query_params,
736
2920
  :form_params => form_params,
@@ -741,12 +2925,12 @@ module PharmaObservatory
741
2925
 
742
2926
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
743
2927
  if @api_client.config.debugging
744
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
745
2929
  end
746
2930
  return data, status_code, headers
747
2931
  end
748
2932
 
749
- # FDA decision dates (PDUFA) and catalysts
2933
+ # Trial-start forecast by sponsor
750
2934
  # @param id [String]
751
2935
  # @param [Hash] opts the optional parameters
752
2936
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -754,13 +2938,13 @@ module PharmaObservatory
754
2938
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
755
2939
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
756
2940
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
757
- # @return [PdufaDatesResponse]
758
- def legal_entities_pdufa_dates(id, opts = {})
759
- data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
2941
+ # @return [SponsorTrialStartForecastResponse]
2942
+ def legal_entities_sponsor_trial_start_forecast(id, opts = {})
2943
+ data, _status_code, _headers = legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts)
760
2944
  data
761
2945
  end
762
2946
 
763
- # FDA decision dates (PDUFA) and catalysts
2947
+ # Trial-start forecast by sponsor
764
2948
  # @param id [String]
765
2949
  # @param [Hash] opts the optional parameters
766
2950
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -768,25 +2952,25 @@ module PharmaObservatory
768
2952
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
769
2953
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
770
2954
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
771
- # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
772
- def legal_entities_pdufa_dates_with_http_info(id, opts = {})
2955
+ # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
2956
+ def legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts = {})
773
2957
  if @api_client.config.debugging
774
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
2958
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast ...'
775
2959
  end
776
2960
  # verify the required parameter 'id' is set
777
2961
  if @api_client.config.client_side_validation && id.nil?
778
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
2962
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast"
779
2963
  end
780
2964
  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_pdufa_dates, must be smaller than or equal to 500.'
2965
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
782
2966
  end
783
2967
 
784
2968
  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_pdufa_dates, must be greater than or equal to 1.'
2969
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be greater than or equal to 1.'
786
2970
  end
787
2971
 
788
2972
  # resource path
789
- local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2973
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
790
2974
 
791
2975
  # query parameters
792
2976
  query_params = opts[:query_params] || {}
@@ -808,13 +2992,13 @@ module PharmaObservatory
808
2992
  post_body = opts[:debug_body]
809
2993
 
810
2994
  # return_type
811
- return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
2995
+ return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
812
2996
 
813
2997
  # auth_names
814
2998
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
815
2999
 
816
3000
  new_options = opts.merge(
817
- :operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
3001
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast",
818
3002
  :header_params => header_params,
819
3003
  :query_params => query_params,
820
3004
  :form_params => form_params,
@@ -825,12 +3009,12 @@ module PharmaObservatory
825
3009
 
826
3010
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
827
3011
  if @api_client.config.debugging
828
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3012
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
829
3013
  end
830
3014
  return data, status_code, headers
831
3015
  end
832
3016
 
833
- # Trial recruitment duration by sponsor and phase
3017
+ # Sponsor trials
834
3018
  # @param id [String]
835
3019
  # @param [Hash] opts the optional parameters
836
3020
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -838,13 +3022,13 @@ module PharmaObservatory
838
3022
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
839
3023
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
840
3024
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
841
- # @return [SponsorRecruitmentByPhaseResponse]
842
- def legal_entities_sponsor_recruitment_by_phase(id, opts = {})
843
- data, _status_code, _headers = legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts)
3025
+ # @return [SponsorTrialsResponse]
3026
+ def legal_entities_sponsor_trials(id, opts = {})
3027
+ data, _status_code, _headers = legal_entities_sponsor_trials_with_http_info(id, opts)
844
3028
  data
845
3029
  end
846
3030
 
847
- # Trial recruitment duration by sponsor and phase
3031
+ # Sponsor trials
848
3032
  # @param id [String]
849
3033
  # @param [Hash] opts the optional parameters
850
3034
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -852,25 +3036,25 @@ module PharmaObservatory
852
3036
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
853
3037
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
854
3038
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
855
- # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
856
- def legal_entities_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
3039
+ # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
3040
+ def legal_entities_sponsor_trials_with_http_info(id, opts = {})
857
3041
  if @api_client.config.debugging
858
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase ...'
3042
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trials ...'
859
3043
  end
860
3044
  # verify the required parameter 'id' is set
861
3045
  if @api_client.config.client_side_validation && id.nil?
862
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase"
3046
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trials"
863
3047
  end
864
3048
  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_recruitment_by_phase, must be smaller than or equal to 500.'
3049
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be smaller than or equal to 500.'
866
3050
  end
867
3051
 
868
3052
  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_recruitment_by_phase, must be greater than or equal to 1.'
3053
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be greater than or equal to 1.'
870
3054
  end
871
3055
 
872
3056
  # resource path
873
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3057
+ local_var_path = '/api/v1/legal_entities/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
874
3058
 
875
3059
  # query parameters
876
3060
  query_params = opts[:query_params] || {}
@@ -892,13 +3076,13 @@ module PharmaObservatory
892
3076
  post_body = opts[:debug_body]
893
3077
 
894
3078
  # return_type
895
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
3079
+ return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
896
3080
 
897
3081
  # auth_names
898
3082
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
899
3083
 
900
3084
  new_options = opts.merge(
901
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_by_phase",
3085
+ :operation => :"LegalEntitiesApi.legal_entities_sponsor_trials",
902
3086
  :header_params => header_params,
903
3087
  :query_params => query_params,
904
3088
  :form_params => form_params,
@@ -909,12 +3093,12 @@ module PharmaObservatory
909
3093
 
910
3094
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
911
3095
  if @api_client.config.debugging
912
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3096
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
913
3097
  end
914
3098
  return data, status_code, headers
915
3099
  end
916
3100
 
917
- # Trial recruitment duration by sponsor
3101
+ # Supplier capability and ESG disclosure
918
3102
  # @param id [String]
919
3103
  # @param [Hash] opts the optional parameters
920
3104
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -922,13 +3106,13 @@ module PharmaObservatory
922
3106
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
923
3107
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
924
3108
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
925
- # @return [SponsorRecruitmentDurationResponse]
926
- def legal_entities_sponsor_recruitment_duration(id, opts = {})
927
- data, _status_code, _headers = legal_entities_sponsor_recruitment_duration_with_http_info(id, opts)
3109
+ # @return [SupplierCapabilityEsgResponse]
3110
+ def legal_entities_supplier_capability_esg(id, opts = {})
3111
+ data, _status_code, _headers = legal_entities_supplier_capability_esg_with_http_info(id, opts)
928
3112
  data
929
3113
  end
930
3114
 
931
- # Trial recruitment duration by sponsor
3115
+ # Supplier capability and ESG disclosure
932
3116
  # @param id [String]
933
3117
  # @param [Hash] opts the optional parameters
934
3118
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -936,25 +3120,25 @@ module PharmaObservatory
936
3120
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
937
3121
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
938
3122
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
939
- # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
940
- def legal_entities_sponsor_recruitment_duration_with_http_info(id, opts = {})
3123
+ # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
3124
+ def legal_entities_supplier_capability_esg_with_http_info(id, opts = {})
941
3125
  if @api_client.config.debugging
942
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_recruitment_duration ...'
3126
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_supplier_capability_esg ...'
943
3127
  end
944
3128
  # verify the required parameter 'id' is set
945
3129
  if @api_client.config.client_side_validation && id.nil?
946
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_recruitment_duration"
3130
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_supplier_capability_esg"
947
3131
  end
948
3132
  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_recruitment_duration, must be smaller than or equal to 500.'
3133
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_supplier_capability_esg, must be smaller than or equal to 500.'
950
3134
  end
951
3135
 
952
3136
  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_recruitment_duration, must be greater than or equal to 1.'
3137
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_supplier_capability_esg, must be greater than or equal to 1.'
954
3138
  end
955
3139
 
956
3140
  # resource path
957
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3141
+ local_var_path = '/api/v1/legal_entities/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
958
3142
 
959
3143
  # query parameters
960
3144
  query_params = opts[:query_params] || {}
@@ -976,13 +3160,13 @@ module PharmaObservatory
976
3160
  post_body = opts[:debug_body]
977
3161
 
978
3162
  # return_type
979
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
3163
+ return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
980
3164
 
981
3165
  # auth_names
982
3166
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
983
3167
 
984
3168
  new_options = opts.merge(
985
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_recruitment_duration",
3169
+ :operation => :"LegalEntitiesApi.legal_entities_supplier_capability_esg",
986
3170
  :header_params => header_params,
987
3171
  :query_params => query_params,
988
3172
  :form_params => form_params,
@@ -993,12 +3177,12 @@ module PharmaObservatory
993
3177
 
994
3178
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
995
3179
  if @api_client.config.debugging
996
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3180
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
3181
  end
998
3182
  return data, status_code, headers
999
3183
  end
1000
3184
 
1001
- # Trial-start forecast by sponsor
3185
+ # Unmatched product revenue
1002
3186
  # @param id [String]
1003
3187
  # @param [Hash] opts the optional parameters
1004
3188
  # @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.
@@ -1006,13 +3190,13 @@ module PharmaObservatory
1006
3190
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1007
3191
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1008
3192
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1009
- # @return [SponsorTrialStartForecastResponse]
1010
- def legal_entities_sponsor_trial_start_forecast(id, opts = {})
1011
- data, _status_code, _headers = legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts)
3193
+ # @return [UnmatchedProductRevenueResponse]
3194
+ def legal_entities_unmatched_product_revenue(id, opts = {})
3195
+ data, _status_code, _headers = legal_entities_unmatched_product_revenue_with_http_info(id, opts)
1012
3196
  data
1013
3197
  end
1014
3198
 
1015
- # Trial-start forecast by sponsor
3199
+ # Unmatched product revenue
1016
3200
  # @param id [String]
1017
3201
  # @param [Hash] opts the optional parameters
1018
3202
  # @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.
@@ -1020,25 +3204,25 @@ module PharmaObservatory
1020
3204
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1021
3205
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1022
3206
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1023
- # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
1024
- def legal_entities_sponsor_trial_start_forecast_with_http_info(id, opts = {})
3207
+ # @return [Array<(UnmatchedProductRevenueResponse, Integer, Hash)>] UnmatchedProductRevenueResponse data, response status code and response headers
3208
+ def legal_entities_unmatched_product_revenue_with_http_info(id, opts = {})
1025
3209
  if @api_client.config.debugging
1026
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast ...'
3210
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_unmatched_product_revenue ...'
1027
3211
  end
1028
3212
  # verify the required parameter 'id' is set
1029
3213
  if @api_client.config.client_side_validation && id.nil?
1030
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast"
3214
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue"
1031
3215
  end
1032
3216
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1033
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
3217
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue, must be smaller than or equal to 500.'
1034
3218
  end
1035
3219
 
1036
3220
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1037
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast, must be greater than or equal to 1.'
3221
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_unmatched_product_revenue, must be greater than or equal to 1.'
1038
3222
  end
1039
3223
 
1040
3224
  # resource path
1041
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3225
+ local_var_path = '/api/v1/legal_entities/{id}/unmatched_product_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1042
3226
 
1043
3227
  # query parameters
1044
3228
  query_params = opts[:query_params] || {}
@@ -1060,13 +3244,13 @@ module PharmaObservatory
1060
3244
  post_body = opts[:debug_body]
1061
3245
 
1062
3246
  # return_type
1063
- return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
3247
+ return_type = opts[:debug_return_type] || 'UnmatchedProductRevenueResponse'
1064
3248
 
1065
3249
  # auth_names
1066
3250
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1067
3251
 
1068
3252
  new_options = opts.merge(
1069
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_start_forecast",
3253
+ :operation => :"LegalEntitiesApi.legal_entities_unmatched_product_revenue",
1070
3254
  :header_params => header_params,
1071
3255
  :query_params => query_params,
1072
3256
  :form_params => form_params,
@@ -1077,12 +3261,12 @@ module PharmaObservatory
1077
3261
 
1078
3262
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1079
3263
  if @api_client.config.debugging
1080
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3264
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_unmatched_product_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1081
3265
  end
1082
3266
  return data, status_code, headers
1083
3267
  end
1084
3268
 
1085
- # Sponsor trials
3269
+ # FDA untitled letters
1086
3270
  # @param id [String]
1087
3271
  # @param [Hash] opts the optional parameters
1088
3272
  # @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.
@@ -1090,13 +3274,13 @@ module PharmaObservatory
1090
3274
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1091
3275
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1092
3276
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1093
- # @return [SponsorTrialsResponse]
1094
- def legal_entities_sponsor_trials(id, opts = {})
1095
- data, _status_code, _headers = legal_entities_sponsor_trials_with_http_info(id, opts)
3277
+ # @return [UntitledLettersResponse]
3278
+ def legal_entities_untitled_letters(id, opts = {})
3279
+ data, _status_code, _headers = legal_entities_untitled_letters_with_http_info(id, opts)
1096
3280
  data
1097
3281
  end
1098
3282
 
1099
- # Sponsor trials
3283
+ # FDA untitled letters
1100
3284
  # @param id [String]
1101
3285
  # @param [Hash] opts the optional parameters
1102
3286
  # @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.
@@ -1104,25 +3288,25 @@ module PharmaObservatory
1104
3288
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1105
3289
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1106
3290
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1107
- # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
1108
- def legal_entities_sponsor_trials_with_http_info(id, opts = {})
3291
+ # @return [Array<(UntitledLettersResponse, Integer, Hash)>] UntitledLettersResponse data, response status code and response headers
3292
+ def legal_entities_untitled_letters_with_http_info(id, opts = {})
1109
3293
  if @api_client.config.debugging
1110
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trials ...'
3294
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_untitled_letters ...'
1111
3295
  end
1112
3296
  # verify the required parameter 'id' is set
1113
3297
  if @api_client.config.client_side_validation && id.nil?
1114
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trials"
3298
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_untitled_letters"
1115
3299
  end
1116
3300
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1117
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be smaller than or equal to 500.'
3301
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_untitled_letters, must be smaller than or equal to 500.'
1118
3302
  end
1119
3303
 
1120
3304
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1121
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trials, must be greater than or equal to 1.'
3305
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_untitled_letters, must be greater than or equal to 1.'
1122
3306
  end
1123
3307
 
1124
3308
  # resource path
1125
- local_var_path = '/api/v1/legal_entities/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3309
+ local_var_path = '/api/v1/legal_entities/{id}/untitled_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1126
3310
 
1127
3311
  # query parameters
1128
3312
  query_params = opts[:query_params] || {}
@@ -1144,13 +3328,13 @@ module PharmaObservatory
1144
3328
  post_body = opts[:debug_body]
1145
3329
 
1146
3330
  # return_type
1147
- return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
3331
+ return_type = opts[:debug_return_type] || 'UntitledLettersResponse'
1148
3332
 
1149
3333
  # auth_names
1150
3334
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1151
3335
 
1152
3336
  new_options = opts.merge(
1153
- :operation => :"LegalEntitiesApi.legal_entities_sponsor_trials",
3337
+ :operation => :"LegalEntitiesApi.legal_entities_untitled_letters",
1154
3338
  :header_params => header_params,
1155
3339
  :query_params => query_params,
1156
3340
  :form_params => form_params,
@@ -1161,12 +3345,12 @@ module PharmaObservatory
1161
3345
 
1162
3346
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1163
3347
  if @api_client.config.debugging
1164
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3348
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_untitled_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1165
3349
  end
1166
3350
  return data, status_code, headers
1167
3351
  end
1168
3352
 
1169
- # Supplier capability and ESG disclosure
3353
+ # FDA warning letters
1170
3354
  # @param id [String]
1171
3355
  # @param [Hash] opts the optional parameters
1172
3356
  # @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.
@@ -1174,13 +3358,13 @@ module PharmaObservatory
1174
3358
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1175
3359
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1176
3360
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1177
- # @return [SupplierCapabilityEsgResponse]
1178
- def legal_entities_supplier_capability_esg(id, opts = {})
1179
- data, _status_code, _headers = legal_entities_supplier_capability_esg_with_http_info(id, opts)
3361
+ # @return [WarningLettersResponse]
3362
+ def legal_entities_warning_letters(id, opts = {})
3363
+ data, _status_code, _headers = legal_entities_warning_letters_with_http_info(id, opts)
1180
3364
  data
1181
3365
  end
1182
3366
 
1183
- # Supplier capability and ESG disclosure
3367
+ # FDA warning letters
1184
3368
  # @param id [String]
1185
3369
  # @param [Hash] opts the optional parameters
1186
3370
  # @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.
@@ -1188,25 +3372,25 @@ module PharmaObservatory
1188
3372
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1189
3373
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1190
3374
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1191
- # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
1192
- def legal_entities_supplier_capability_esg_with_http_info(id, opts = {})
3375
+ # @return [Array<(WarningLettersResponse, Integer, Hash)>] WarningLettersResponse data, response status code and response headers
3376
+ def legal_entities_warning_letters_with_http_info(id, opts = {})
1193
3377
  if @api_client.config.debugging
1194
- @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_supplier_capability_esg ...'
3378
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_warning_letters ...'
1195
3379
  end
1196
3380
  # verify the required parameter 'id' is set
1197
3381
  if @api_client.config.client_side_validation && id.nil?
1198
- fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_supplier_capability_esg"
3382
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_warning_letters"
1199
3383
  end
1200
3384
  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_supplier_capability_esg, must be smaller than or equal to 500.'
3385
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_warning_letters, must be smaller than or equal to 500.'
1202
3386
  end
1203
3387
 
1204
3388
  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_supplier_capability_esg, must be greater than or equal to 1.'
3389
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_warning_letters, must be greater than or equal to 1.'
1206
3390
  end
1207
3391
 
1208
3392
  # resource path
1209
- local_var_path = '/api/v1/legal_entities/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3393
+ local_var_path = '/api/v1/legal_entities/{id}/warning_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1210
3394
 
1211
3395
  # query parameters
1212
3396
  query_params = opts[:query_params] || {}
@@ -1228,13 +3412,13 @@ module PharmaObservatory
1228
3412
  post_body = opts[:debug_body]
1229
3413
 
1230
3414
  # return_type
1231
- return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
3415
+ return_type = opts[:debug_return_type] || 'WarningLettersResponse'
1232
3416
 
1233
3417
  # auth_names
1234
3418
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1235
3419
 
1236
3420
  new_options = opts.merge(
1237
- :operation => :"LegalEntitiesApi.legal_entities_supplier_capability_esg",
3421
+ :operation => :"LegalEntitiesApi.legal_entities_warning_letters",
1238
3422
  :header_params => header_params,
1239
3423
  :query_params => query_params,
1240
3424
  :form_params => form_params,
@@ -1245,7 +3429,7 @@ module PharmaObservatory
1245
3429
 
1246
3430
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1247
3431
  if @api_client.config.debugging
1248
- @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3432
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_warning_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1249
3433
  end
1250
3434
  return data, status_code, headers
1251
3435
  end