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
@@ -383,6 +383,203 @@ module PharmaObservatory
383
383
  return data, status_code, headers
384
384
  end
385
385
 
386
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
387
+ # @param id [String]
388
+ # @param [Hash] opts the optional parameters
389
+ # @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.
390
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
391
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
392
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
393
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
394
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
395
+ # @return [CatalystsResponse]
396
+ def companies_catalysts(id, opts = {})
397
+ data, _status_code, _headers = companies_catalysts_with_http_info(id, opts)
398
+ data
399
+ end
400
+
401
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
402
+ # @param id [String]
403
+ # @param [Hash] opts the optional parameters
404
+ # @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.
405
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
406
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
407
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
408
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
409
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
410
+ # @return [Array<(CatalystsResponse, Integer, Hash)>] CatalystsResponse data, response status code and response headers
411
+ def companies_catalysts_with_http_info(id, opts = {})
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_catalysts ...'
414
+ end
415
+ # verify the required parameter 'id' is set
416
+ if @api_client.config.client_side_validation && id.nil?
417
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_catalysts"
418
+ end
419
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
420
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_catalysts, must be smaller than or equal to 500.'
421
+ end
422
+
423
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
424
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_catalysts, must be greater than or equal to 1.'
425
+ end
426
+
427
+ allowable_values = ["company", "group"]
428
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
429
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
430
+ end
431
+ # resource path
432
+ local_var_path = '/api/v1/companies/{id}/catalysts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
433
+
434
+ # query parameters
435
+ query_params = opts[:query_params] || {}
436
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
437
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
438
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
439
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
440
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
441
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
442
+
443
+ # header parameters
444
+ header_params = opts[:header_params] || {}
445
+ # HTTP header 'Accept' (if needed)
446
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
447
+
448
+ # form parameters
449
+ form_params = opts[:form_params] || {}
450
+
451
+ # http body (model)
452
+ post_body = opts[:debug_body]
453
+
454
+ # return_type
455
+ return_type = opts[:debug_return_type] || 'CatalystsResponse'
456
+
457
+ # auth_names
458
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
459
+
460
+ new_options = opts.merge(
461
+ :operation => :"CompaniesApi.companies_catalysts",
462
+ :header_params => header_params,
463
+ :query_params => query_params,
464
+ :form_params => form_params,
465
+ :body => post_body,
466
+ :auth_names => auth_names,
467
+ :return_type => return_type
468
+ )
469
+
470
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
471
+ if @api_client.config.debugging
472
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_catalysts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
473
+ end
474
+ return data, status_code, headers
475
+ end
476
+
477
+ # CLIA laboratory certificates
478
+ # @param id [String]
479
+ # @param [Hash] opts the optional parameters
480
+ # @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.
481
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
482
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
483
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
484
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
485
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
486
+ # @return [CliaCertificatesResponse]
487
+ def companies_clia_certificates(id, opts = {})
488
+ data, _status_code, _headers = companies_clia_certificates_with_http_info(id, opts)
489
+ data
490
+ end
491
+
492
+ # CLIA laboratory certificates
493
+ # @param id [String]
494
+ # @param [Hash] opts the optional parameters
495
+ # @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.
496
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
497
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
498
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
499
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
500
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
501
+ # @return [Array<(CliaCertificatesResponse, Integer, Hash)>] CliaCertificatesResponse data, response status code and response headers
502
+ def companies_clia_certificates_with_http_info(id, opts = {})
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_clia_certificates ...'
505
+ end
506
+ # verify the required parameter 'id' is set
507
+ if @api_client.config.client_side_validation && id.nil?
508
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_clia_certificates"
509
+ end
510
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
511
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_clia_certificates, must be smaller than or equal to 500.'
512
+ end
513
+
514
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
515
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_clia_certificates, must be greater than or equal to 1.'
516
+ end
517
+
518
+ allowable_values = ["company", "group"]
519
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
520
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
521
+ end
522
+ # resource path
523
+ local_var_path = '/api/v1/companies/{id}/clia_certificates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
524
+
525
+ # query parameters
526
+ query_params = opts[:query_params] || {}
527
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
528
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
529
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
530
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
531
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
532
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
533
+
534
+ # header parameters
535
+ header_params = opts[:header_params] || {}
536
+ # HTTP header 'Accept' (if needed)
537
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
538
+
539
+ # form parameters
540
+ form_params = opts[:form_params] || {}
541
+
542
+ # http body (model)
543
+ post_body = opts[:debug_body]
544
+
545
+ # return_type
546
+ return_type = opts[:debug_return_type] || 'CliaCertificatesResponse'
547
+
548
+ # auth_names
549
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
550
+
551
+ new_options = opts.merge(
552
+ :operation => :"CompaniesApi.companies_clia_certificates",
553
+ :header_params => header_params,
554
+ :query_params => query_params,
555
+ :form_params => form_params,
556
+ :body => post_body,
557
+ :auth_names => auth_names,
558
+ :return_type => return_type
559
+ )
560
+
561
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_clia_certificates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
564
+ end
565
+ return data, status_code, headers
566
+ end
567
+
568
+ # Company assets (approved and marketed drugs)
569
+ # @param id [String]
570
+ # @param [Hash] opts the optional parameters
571
+ # @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.
572
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
573
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
574
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
575
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
576
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
577
+ # @return [CompanyAssetsResponse]
578
+ def companies_company_assets(id, opts = {})
579
+ data, _status_code, _headers = companies_company_assets_with_http_info(id, opts)
580
+ data
581
+ end
582
+
386
583
  # Company assets (approved and marketed drugs)
387
584
  # @param id [String]
388
585
  # @param [Hash] opts the optional parameters
@@ -392,13 +589,2503 @@ module PharmaObservatory
392
589
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
393
590
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
394
591
  # @option opts [String] :scope company (this company only) or group (its corporate group).
395
- # @return [CompanyAssetsResponse]
396
- def companies_company_assets(id, opts = {})
397
- data, _status_code, _headers = companies_company_assets_with_http_info(id, opts)
592
+ # @return [Array<(CompanyAssetsResponse, Integer, Hash)>] CompanyAssetsResponse data, response status code and response headers
593
+ def companies_company_assets_with_http_info(id, opts = {})
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_assets ...'
596
+ end
597
+ # verify the required parameter 'id' is set
598
+ if @api_client.config.client_side_validation && id.nil?
599
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_assets"
600
+ end
601
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
602
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be smaller than or equal to 500.'
603
+ end
604
+
605
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
606
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be greater than or equal to 1.'
607
+ end
608
+
609
+ allowable_values = ["company", "group"]
610
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
611
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
612
+ end
613
+ # resource path
614
+ local_var_path = '/api/v1/companies/{id}/company_assets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
615
+
616
+ # query parameters
617
+ query_params = opts[:query_params] || {}
618
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
619
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
620
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
621
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
622
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
623
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
624
+
625
+ # header parameters
626
+ header_params = opts[:header_params] || {}
627
+ # HTTP header 'Accept' (if needed)
628
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
629
+
630
+ # form parameters
631
+ form_params = opts[:form_params] || {}
632
+
633
+ # http body (model)
634
+ post_body = opts[:debug_body]
635
+
636
+ # return_type
637
+ return_type = opts[:debug_return_type] || 'CompanyAssetsResponse'
638
+
639
+ # auth_names
640
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
641
+
642
+ new_options = opts.merge(
643
+ :operation => :"CompaniesApi.companies_company_assets",
644
+ :header_params => header_params,
645
+ :query_params => query_params,
646
+ :form_params => form_params,
647
+ :body => post_body,
648
+ :auth_names => auth_names,
649
+ :return_type => return_type
650
+ )
651
+
652
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
+ end
656
+ return data, status_code, headers
657
+ end
658
+
659
+ # Company biomarker capability
660
+ # @param id [String]
661
+ # @param [Hash] opts the optional parameters
662
+ # @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.
663
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
664
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
665
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
666
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
667
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
668
+ # @return [CompanyBiomarkerCapabilityResponse]
669
+ def companies_company_biomarker_capability(id, opts = {})
670
+ data, _status_code, _headers = companies_company_biomarker_capability_with_http_info(id, opts)
671
+ data
672
+ end
673
+
674
+ # Company biomarker capability
675
+ # @param id [String]
676
+ # @param [Hash] opts the optional parameters
677
+ # @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.
678
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
679
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
680
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
681
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
682
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
683
+ # @return [Array<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
684
+ def companies_company_biomarker_capability_with_http_info(id, opts = {})
685
+ if @api_client.config.debugging
686
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_biomarker_capability ...'
687
+ end
688
+ # verify the required parameter 'id' is set
689
+ if @api_client.config.client_side_validation && id.nil?
690
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_biomarker_capability"
691
+ end
692
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
693
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be smaller than or equal to 500.'
694
+ end
695
+
696
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
697
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be greater than or equal to 1.'
698
+ end
699
+
700
+ allowable_values = ["company", "group"]
701
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
702
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
703
+ end
704
+ # resource path
705
+ local_var_path = '/api/v1/companies/{id}/company_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
706
+
707
+ # query parameters
708
+ query_params = opts[:query_params] || {}
709
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
710
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
711
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
712
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
713
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
714
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
715
+
716
+ # header parameters
717
+ header_params = opts[:header_params] || {}
718
+ # HTTP header 'Accept' (if needed)
719
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
720
+
721
+ # form parameters
722
+ form_params = opts[:form_params] || {}
723
+
724
+ # http body (model)
725
+ post_body = opts[:debug_body]
726
+
727
+ # return_type
728
+ return_type = opts[:debug_return_type] || 'CompanyBiomarkerCapabilityResponse'
729
+
730
+ # auth_names
731
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
732
+
733
+ new_options = opts.merge(
734
+ :operation => :"CompaniesApi.companies_company_biomarker_capability",
735
+ :header_params => header_params,
736
+ :query_params => query_params,
737
+ :form_params => form_params,
738
+ :body => post_body,
739
+ :auth_names => auth_names,
740
+ :return_type => return_type
741
+ )
742
+
743
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
744
+ if @api_client.config.debugging
745
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
746
+ end
747
+ return data, status_code, headers
748
+ end
749
+
750
+ # Company funding events
751
+ # @param id [String]
752
+ # @param [Hash] opts the optional parameters
753
+ # @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
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
755
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
756
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
757
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
758
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
759
+ # @return [CompanyFundingEventsResponse]
760
+ def companies_company_funding_events(id, opts = {})
761
+ data, _status_code, _headers = companies_company_funding_events_with_http_info(id, opts)
762
+ data
763
+ end
764
+
765
+ # Company funding events
766
+ # @param id [String]
767
+ # @param [Hash] opts the optional parameters
768
+ # @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.
769
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
770
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
771
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
772
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
773
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
774
+ # @return [Array<(CompanyFundingEventsResponse, Integer, Hash)>] CompanyFundingEventsResponse data, response status code and response headers
775
+ def companies_company_funding_events_with_http_info(id, opts = {})
776
+ if @api_client.config.debugging
777
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_events ...'
778
+ end
779
+ # verify the required parameter 'id' is set
780
+ if @api_client.config.client_side_validation && id.nil?
781
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_events"
782
+ end
783
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
784
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be smaller than or equal to 500.'
785
+ end
786
+
787
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
788
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be greater than or equal to 1.'
789
+ end
790
+
791
+ allowable_values = ["company", "group"]
792
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
793
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
794
+ end
795
+ # resource path
796
+ local_var_path = '/api/v1/companies/{id}/company_funding_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
797
+
798
+ # query parameters
799
+ query_params = opts[:query_params] || {}
800
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
801
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
802
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
803
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
804
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
805
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
806
+
807
+ # header parameters
808
+ header_params = opts[:header_params] || {}
809
+ # HTTP header 'Accept' (if needed)
810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
811
+
812
+ # form parameters
813
+ form_params = opts[:form_params] || {}
814
+
815
+ # http body (model)
816
+ post_body = opts[:debug_body]
817
+
818
+ # return_type
819
+ return_type = opts[:debug_return_type] || 'CompanyFundingEventsResponse'
820
+
821
+ # auth_names
822
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
823
+
824
+ new_options = opts.merge(
825
+ :operation => :"CompaniesApi.companies_company_funding_events",
826
+ :header_params => header_params,
827
+ :query_params => query_params,
828
+ :form_params => form_params,
829
+ :body => post_body,
830
+ :auth_names => auth_names,
831
+ :return_type => return_type
832
+ )
833
+
834
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
835
+ if @api_client.config.debugging
836
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
+ end
838
+ return data, status_code, headers
839
+ end
840
+
841
+ # Company funding summary
842
+ # @param id [String]
843
+ # @param [Hash] opts the optional parameters
844
+ # @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.
845
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
846
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
847
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
848
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
849
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
850
+ # @return [CompanyFundingSummaryResponse]
851
+ def companies_company_funding_summary(id, opts = {})
852
+ data, _status_code, _headers = companies_company_funding_summary_with_http_info(id, opts)
853
+ data
854
+ end
855
+
856
+ # Company funding summary
857
+ # @param id [String]
858
+ # @param [Hash] opts the optional parameters
859
+ # @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.
860
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
861
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
862
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
863
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
864
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
865
+ # @return [Array<(CompanyFundingSummaryResponse, Integer, Hash)>] CompanyFundingSummaryResponse data, response status code and response headers
866
+ def companies_company_funding_summary_with_http_info(id, opts = {})
867
+ if @api_client.config.debugging
868
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_summary ...'
869
+ end
870
+ # verify the required parameter 'id' is set
871
+ if @api_client.config.client_side_validation && id.nil?
872
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_summary"
873
+ end
874
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
875
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be smaller than or equal to 500.'
876
+ end
877
+
878
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
879
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be greater than or equal to 1.'
880
+ end
881
+
882
+ allowable_values = ["company", "group"]
883
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
884
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
885
+ end
886
+ # resource path
887
+ local_var_path = '/api/v1/companies/{id}/company_funding_summary'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
888
+
889
+ # query parameters
890
+ query_params = opts[:query_params] || {}
891
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
892
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
893
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
894
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
895
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
896
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
897
+
898
+ # header parameters
899
+ header_params = opts[:header_params] || {}
900
+ # HTTP header 'Accept' (if needed)
901
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
902
+
903
+ # form parameters
904
+ form_params = opts[:form_params] || {}
905
+
906
+ # http body (model)
907
+ post_body = opts[:debug_body]
908
+
909
+ # return_type
910
+ return_type = opts[:debug_return_type] || 'CompanyFundingSummaryResponse'
911
+
912
+ # auth_names
913
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
914
+
915
+ new_options = opts.merge(
916
+ :operation => :"CompaniesApi.companies_company_funding_summary",
917
+ :header_params => header_params,
918
+ :query_params => query_params,
919
+ :form_params => form_params,
920
+ :body => post_body,
921
+ :auth_names => auth_names,
922
+ :return_type => return_type
923
+ )
924
+
925
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
926
+ if @api_client.config.debugging
927
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
928
+ end
929
+ return data, status_code, headers
930
+ end
931
+
932
+ # Company members
933
+ # @param id [String]
934
+ # @param [Hash] opts the optional parameters
935
+ # @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
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
937
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
938
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
939
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
940
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
941
+ # @return [CompanyMembersResponse]
942
+ def companies_company_members(id, opts = {})
943
+ data, _status_code, _headers = companies_company_members_with_http_info(id, opts)
944
+ data
945
+ end
946
+
947
+ # Company members
948
+ # @param id [String]
949
+ # @param [Hash] opts the optional parameters
950
+ # @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.
951
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
952
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
953
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
954
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
955
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
956
+ # @return [Array<(CompanyMembersResponse, Integer, Hash)>] CompanyMembersResponse data, response status code and response headers
957
+ def companies_company_members_with_http_info(id, opts = {})
958
+ if @api_client.config.debugging
959
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_members ...'
960
+ end
961
+ # verify the required parameter 'id' is set
962
+ if @api_client.config.client_side_validation && id.nil?
963
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_members"
964
+ end
965
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
966
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be smaller than or equal to 500.'
967
+ end
968
+
969
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
970
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be greater than or equal to 1.'
971
+ end
972
+
973
+ allowable_values = ["company", "group"]
974
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
975
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
976
+ end
977
+ # resource path
978
+ local_var_path = '/api/v1/companies/{id}/company_members'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
979
+
980
+ # query parameters
981
+ query_params = opts[:query_params] || {}
982
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
983
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
984
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
985
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
986
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
987
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
988
+
989
+ # header parameters
990
+ header_params = opts[:header_params] || {}
991
+ # HTTP header 'Accept' (if needed)
992
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
993
+
994
+ # form parameters
995
+ form_params = opts[:form_params] || {}
996
+
997
+ # http body (model)
998
+ post_body = opts[:debug_body]
999
+
1000
+ # return_type
1001
+ return_type = opts[:debug_return_type] || 'CompanyMembersResponse'
1002
+
1003
+ # auth_names
1004
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1005
+
1006
+ new_options = opts.merge(
1007
+ :operation => :"CompaniesApi.companies_company_members",
1008
+ :header_params => header_params,
1009
+ :query_params => query_params,
1010
+ :form_params => form_params,
1011
+ :body => post_body,
1012
+ :auth_names => auth_names,
1013
+ :return_type => return_type
1014
+ )
1015
+
1016
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1017
+ if @api_client.config.debugging
1018
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1019
+ end
1020
+ return data, status_code, headers
1021
+ end
1022
+
1023
+ # Company programs
1024
+ # @param id [String]
1025
+ # @param [Hash] opts the optional parameters
1026
+ # @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.
1027
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1028
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1029
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1030
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1031
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1032
+ # @return [CompanyProgramsResponse]
1033
+ def companies_company_programs(id, opts = {})
1034
+ data, _status_code, _headers = companies_company_programs_with_http_info(id, opts)
1035
+ data
1036
+ end
1037
+
1038
+ # Company programs
1039
+ # @param id [String]
1040
+ # @param [Hash] opts the optional parameters
1041
+ # @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.
1042
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1043
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1044
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1045
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1046
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1047
+ # @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
1048
+ def companies_company_programs_with_http_info(id, opts = {})
1049
+ if @api_client.config.debugging
1050
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_programs ...'
1051
+ end
1052
+ # verify the required parameter 'id' is set
1053
+ if @api_client.config.client_side_validation && id.nil?
1054
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_programs"
1055
+ end
1056
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1057
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be smaller than or equal to 500.'
1058
+ end
1059
+
1060
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1061
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be greater than or equal to 1.'
1062
+ end
1063
+
1064
+ allowable_values = ["company", "group"]
1065
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1066
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1067
+ end
1068
+ # resource path
1069
+ local_var_path = '/api/v1/companies/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1070
+
1071
+ # query parameters
1072
+ query_params = opts[:query_params] || {}
1073
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1074
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1075
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1076
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1077
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1078
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1079
+
1080
+ # header parameters
1081
+ header_params = opts[:header_params] || {}
1082
+ # HTTP header 'Accept' (if needed)
1083
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1084
+
1085
+ # form parameters
1086
+ form_params = opts[:form_params] || {}
1087
+
1088
+ # http body (model)
1089
+ post_body = opts[:debug_body]
1090
+
1091
+ # return_type
1092
+ return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
1093
+
1094
+ # auth_names
1095
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1096
+
1097
+ new_options = opts.merge(
1098
+ :operation => :"CompaniesApi.companies_company_programs",
1099
+ :header_params => header_params,
1100
+ :query_params => query_params,
1101
+ :form_params => form_params,
1102
+ :body => post_body,
1103
+ :auth_names => auth_names,
1104
+ :return_type => return_type
1105
+ )
1106
+
1107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1108
+ if @api_client.config.debugging
1109
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1110
+ end
1111
+ return data, status_code, headers
1112
+ end
1113
+
1114
+ # Organization-wide rare disease declarations
1115
+ # @param id [String]
1116
+ # @param [Hash] opts the optional parameters
1117
+ # @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.
1118
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1119
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1120
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1121
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1122
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1123
+ # @return [CompanyRareDiseaseDeclarationsResponse]
1124
+ def companies_company_rare_disease_declarations(id, opts = {})
1125
+ data, _status_code, _headers = companies_company_rare_disease_declarations_with_http_info(id, opts)
1126
+ data
1127
+ end
1128
+
1129
+ # Organization-wide rare disease declarations
1130
+ # @param id [String]
1131
+ # @param [Hash] opts the optional parameters
1132
+ # @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.
1133
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1134
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1135
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1136
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1137
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1138
+ # @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
1139
+ def companies_company_rare_disease_declarations_with_http_info(id, opts = {})
1140
+ if @api_client.config.debugging
1141
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_rare_disease_declarations ...'
1142
+ end
1143
+ # verify the required parameter 'id' is set
1144
+ if @api_client.config.client_side_validation && id.nil?
1145
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_rare_disease_declarations"
1146
+ end
1147
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1148
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be smaller than or equal to 500.'
1149
+ end
1150
+
1151
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1152
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be greater than or equal to 1.'
1153
+ end
1154
+
1155
+ allowable_values = ["company", "group"]
1156
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1157
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1158
+ end
1159
+ # resource path
1160
+ local_var_path = '/api/v1/companies/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1161
+
1162
+ # query parameters
1163
+ query_params = opts[:query_params] || {}
1164
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1165
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1166
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1167
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1168
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1169
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1170
+
1171
+ # header parameters
1172
+ header_params = opts[:header_params] || {}
1173
+ # HTTP header 'Accept' (if needed)
1174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1175
+
1176
+ # form parameters
1177
+ form_params = opts[:form_params] || {}
1178
+
1179
+ # http body (model)
1180
+ post_body = opts[:debug_body]
1181
+
1182
+ # return_type
1183
+ return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
1184
+
1185
+ # auth_names
1186
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1187
+
1188
+ new_options = opts.merge(
1189
+ :operation => :"CompaniesApi.companies_company_rare_disease_declarations",
1190
+ :header_params => header_params,
1191
+ :query_params => query_params,
1192
+ :form_params => form_params,
1193
+ :body => post_body,
1194
+ :auth_names => auth_names,
1195
+ :return_type => return_type
1196
+ )
1197
+
1198
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1199
+ if @api_client.config.debugging
1200
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1201
+ end
1202
+ return data, status_code, headers
1203
+ end
1204
+
1205
+ # Targets a company pursues
1206
+ # @param id [String]
1207
+ # @param [Hash] opts the optional parameters
1208
+ # @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.
1209
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1210
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1211
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1212
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1213
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1214
+ # @return [CompanyTargetsResponse]
1215
+ def companies_company_targets(id, opts = {})
1216
+ data, _status_code, _headers = companies_company_targets_with_http_info(id, opts)
1217
+ data
1218
+ end
1219
+
1220
+ # Targets a company pursues
1221
+ # @param id [String]
1222
+ # @param [Hash] opts the optional parameters
1223
+ # @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.
1224
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1225
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1226
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1227
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1228
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1229
+ # @return [Array<(CompanyTargetsResponse, Integer, Hash)>] CompanyTargetsResponse data, response status code and response headers
1230
+ def companies_company_targets_with_http_info(id, opts = {})
1231
+ if @api_client.config.debugging
1232
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_targets ...'
1233
+ end
1234
+ # verify the required parameter 'id' is set
1235
+ if @api_client.config.client_side_validation && id.nil?
1236
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_targets"
1237
+ end
1238
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1239
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be smaller than or equal to 500.'
1240
+ end
1241
+
1242
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1243
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be greater than or equal to 1.'
1244
+ end
1245
+
1246
+ allowable_values = ["company", "group"]
1247
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1248
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1249
+ end
1250
+ # resource path
1251
+ local_var_path = '/api/v1/companies/{id}/company_targets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1252
+
1253
+ # query parameters
1254
+ query_params = opts[:query_params] || {}
1255
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1256
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1257
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1258
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1259
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1260
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1261
+
1262
+ # header parameters
1263
+ header_params = opts[:header_params] || {}
1264
+ # HTTP header 'Accept' (if needed)
1265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1266
+
1267
+ # form parameters
1268
+ form_params = opts[:form_params] || {}
1269
+
1270
+ # http body (model)
1271
+ post_body = opts[:debug_body]
1272
+
1273
+ # return_type
1274
+ return_type = opts[:debug_return_type] || 'CompanyTargetsResponse'
1275
+
1276
+ # auth_names
1277
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1278
+
1279
+ new_options = opts.merge(
1280
+ :operation => :"CompaniesApi.companies_company_targets",
1281
+ :header_params => header_params,
1282
+ :query_params => query_params,
1283
+ :form_params => form_params,
1284
+ :body => post_body,
1285
+ :auth_names => auth_names,
1286
+ :return_type => return_type
1287
+ )
1288
+
1289
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1290
+ if @api_client.config.debugging
1291
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1292
+ end
1293
+ return data, status_code, headers
1294
+ end
1295
+
1296
+ # Company trial geography
1297
+ # @param id [String]
1298
+ # @param [Hash] opts the optional parameters
1299
+ # @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.
1300
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1301
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1302
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1303
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1304
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1305
+ # @return [CompanyTrialGeographyResponse]
1306
+ def companies_company_trial_geography(id, opts = {})
1307
+ data, _status_code, _headers = companies_company_trial_geography_with_http_info(id, opts)
1308
+ data
1309
+ end
1310
+
1311
+ # Company trial geography
1312
+ # @param id [String]
1313
+ # @param [Hash] opts the optional parameters
1314
+ # @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.
1315
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1316
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1317
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1318
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1319
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1320
+ # @return [Array<(CompanyTrialGeographyResponse, Integer, Hash)>] CompanyTrialGeographyResponse data, response status code and response headers
1321
+ def companies_company_trial_geography_with_http_info(id, opts = {})
1322
+ if @api_client.config.debugging
1323
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_geography ...'
1324
+ end
1325
+ # verify the required parameter 'id' is set
1326
+ if @api_client.config.client_side_validation && id.nil?
1327
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_geography"
1328
+ end
1329
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1330
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be smaller than or equal to 500.'
1331
+ end
1332
+
1333
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1334
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be greater than or equal to 1.'
1335
+ end
1336
+
1337
+ allowable_values = ["company", "group"]
1338
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1339
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1340
+ end
1341
+ # resource path
1342
+ local_var_path = '/api/v1/companies/{id}/company_trial_geography'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1343
+
1344
+ # query parameters
1345
+ query_params = opts[:query_params] || {}
1346
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1347
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1348
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1349
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1350
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1351
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1352
+
1353
+ # header parameters
1354
+ header_params = opts[:header_params] || {}
1355
+ # HTTP header 'Accept' (if needed)
1356
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1357
+
1358
+ # form parameters
1359
+ form_params = opts[:form_params] || {}
1360
+
1361
+ # http body (model)
1362
+ post_body = opts[:debug_body]
1363
+
1364
+ # return_type
1365
+ return_type = opts[:debug_return_type] || 'CompanyTrialGeographyResponse'
1366
+
1367
+ # auth_names
1368
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1369
+
1370
+ new_options = opts.merge(
1371
+ :operation => :"CompaniesApi.companies_company_trial_geography",
1372
+ :header_params => header_params,
1373
+ :query_params => query_params,
1374
+ :form_params => form_params,
1375
+ :body => post_body,
1376
+ :auth_names => auth_names,
1377
+ :return_type => return_type
1378
+ )
1379
+
1380
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1381
+ if @api_client.config.debugging
1382
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_geography\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1383
+ end
1384
+ return data, status_code, headers
1385
+ end
1386
+
1387
+ # Company trial sites
1388
+ # @param id [String]
1389
+ # @param [Hash] opts the optional parameters
1390
+ # @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.
1391
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1392
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1393
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1394
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1395
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1396
+ # @return [CompanyTrialSitesResponse]
1397
+ def companies_company_trial_sites(id, opts = {})
1398
+ data, _status_code, _headers = companies_company_trial_sites_with_http_info(id, opts)
1399
+ data
1400
+ end
1401
+
1402
+ # Company trial sites
1403
+ # @param id [String]
1404
+ # @param [Hash] opts the optional parameters
1405
+ # @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.
1406
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1407
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1408
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1409
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1410
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1411
+ # @return [Array<(CompanyTrialSitesResponse, Integer, Hash)>] CompanyTrialSitesResponse data, response status code and response headers
1412
+ def companies_company_trial_sites_with_http_info(id, opts = {})
1413
+ if @api_client.config.debugging
1414
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_sites ...'
1415
+ end
1416
+ # verify the required parameter 'id' is set
1417
+ if @api_client.config.client_side_validation && id.nil?
1418
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_sites"
1419
+ end
1420
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1421
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be smaller than or equal to 500.'
1422
+ end
1423
+
1424
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1425
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be greater than or equal to 1.'
1426
+ end
1427
+
1428
+ allowable_values = ["company", "group"]
1429
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1430
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1431
+ end
1432
+ # resource path
1433
+ local_var_path = '/api/v1/companies/{id}/company_trial_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1434
+
1435
+ # query parameters
1436
+ query_params = opts[:query_params] || {}
1437
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1438
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1439
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1440
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1441
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1442
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1443
+
1444
+ # header parameters
1445
+ header_params = opts[:header_params] || {}
1446
+ # HTTP header 'Accept' (if needed)
1447
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1448
+
1449
+ # form parameters
1450
+ form_params = opts[:form_params] || {}
1451
+
1452
+ # http body (model)
1453
+ post_body = opts[:debug_body]
1454
+
1455
+ # return_type
1456
+ return_type = opts[:debug_return_type] || 'CompanyTrialSitesResponse'
1457
+
1458
+ # auth_names
1459
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1460
+
1461
+ new_options = opts.merge(
1462
+ :operation => :"CompaniesApi.companies_company_trial_sites",
1463
+ :header_params => header_params,
1464
+ :query_params => query_params,
1465
+ :form_params => form_params,
1466
+ :body => post_body,
1467
+ :auth_names => auth_names,
1468
+ :return_type => return_type
1469
+ )
1470
+
1471
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1472
+ if @api_client.config.debugging
1473
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
+ end
1475
+ return data, status_code, headers
1476
+ end
1477
+
1478
+ # CRO footprint
1479
+ # @param id [String]
1480
+ # @param [Hash] opts the optional parameters
1481
+ # @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.
1482
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1483
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1484
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1485
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1486
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1487
+ # @return [CroFootprintResponse]
1488
+ def companies_cro_footprint(id, opts = {})
1489
+ data, _status_code, _headers = companies_cro_footprint_with_http_info(id, opts)
1490
+ data
1491
+ end
1492
+
1493
+ # CRO footprint
1494
+ # @param id [String]
1495
+ # @param [Hash] opts the optional parameters
1496
+ # @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.
1497
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1498
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1499
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1500
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1501
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1502
+ # @return [Array<(CroFootprintResponse, Integer, Hash)>] CroFootprintResponse data, response status code and response headers
1503
+ def companies_cro_footprint_with_http_info(id, opts = {})
1504
+ if @api_client.config.debugging
1505
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_footprint ...'
1506
+ end
1507
+ # verify the required parameter 'id' is set
1508
+ if @api_client.config.client_side_validation && id.nil?
1509
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_footprint"
1510
+ end
1511
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1512
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be smaller than or equal to 500.'
1513
+ end
1514
+
1515
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1516
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be greater than or equal to 1.'
1517
+ end
1518
+
1519
+ allowable_values = ["company", "group"]
1520
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1521
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1522
+ end
1523
+ # resource path
1524
+ local_var_path = '/api/v1/companies/{id}/cro_footprint'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1525
+
1526
+ # query parameters
1527
+ query_params = opts[:query_params] || {}
1528
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1529
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1530
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1531
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1532
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1533
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1534
+
1535
+ # header parameters
1536
+ header_params = opts[:header_params] || {}
1537
+ # HTTP header 'Accept' (if needed)
1538
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1539
+
1540
+ # form parameters
1541
+ form_params = opts[:form_params] || {}
1542
+
1543
+ # http body (model)
1544
+ post_body = opts[:debug_body]
1545
+
1546
+ # return_type
1547
+ return_type = opts[:debug_return_type] || 'CroFootprintResponse'
1548
+
1549
+ # auth_names
1550
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1551
+
1552
+ new_options = opts.merge(
1553
+ :operation => :"CompaniesApi.companies_cro_footprint",
1554
+ :header_params => header_params,
1555
+ :query_params => query_params,
1556
+ :form_params => form_params,
1557
+ :body => post_body,
1558
+ :auth_names => auth_names,
1559
+ :return_type => return_type
1560
+ )
1561
+
1562
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1563
+ if @api_client.config.debugging
1564
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_cro_footprint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1565
+ end
1566
+ return data, status_code, headers
1567
+ end
1568
+
1569
+ # CRO trials
1570
+ # @param id [String]
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @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.
1573
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1574
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1575
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1576
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1577
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1578
+ # @return [CroTrialsResponse]
1579
+ def companies_cro_trials(id, opts = {})
1580
+ data, _status_code, _headers = companies_cro_trials_with_http_info(id, opts)
1581
+ data
1582
+ end
1583
+
1584
+ # CRO trials
1585
+ # @param id [String]
1586
+ # @param [Hash] opts the optional parameters
1587
+ # @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.
1588
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1589
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1590
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1591
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1592
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1593
+ # @return [Array<(CroTrialsResponse, Integer, Hash)>] CroTrialsResponse data, response status code and response headers
1594
+ def companies_cro_trials_with_http_info(id, opts = {})
1595
+ if @api_client.config.debugging
1596
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_trials ...'
1597
+ end
1598
+ # verify the required parameter 'id' is set
1599
+ if @api_client.config.client_side_validation && id.nil?
1600
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_trials"
1601
+ end
1602
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1603
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be smaller than or equal to 500.'
1604
+ end
1605
+
1606
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1607
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be greater than or equal to 1.'
1608
+ end
1609
+
1610
+ allowable_values = ["company", "group"]
1611
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1612
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1613
+ end
1614
+ # resource path
1615
+ local_var_path = '/api/v1/companies/{id}/cro_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1616
+
1617
+ # query parameters
1618
+ query_params = opts[:query_params] || {}
1619
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1620
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1621
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1622
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1623
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1624
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1625
+
1626
+ # header parameters
1627
+ header_params = opts[:header_params] || {}
1628
+ # HTTP header 'Accept' (if needed)
1629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1630
+
1631
+ # form parameters
1632
+ form_params = opts[:form_params] || {}
1633
+
1634
+ # http body (model)
1635
+ post_body = opts[:debug_body]
1636
+
1637
+ # return_type
1638
+ return_type = opts[:debug_return_type] || 'CroTrialsResponse'
1639
+
1640
+ # auth_names
1641
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1642
+
1643
+ new_options = opts.merge(
1644
+ :operation => :"CompaniesApi.companies_cro_trials",
1645
+ :header_params => header_params,
1646
+ :query_params => query_params,
1647
+ :form_params => form_params,
1648
+ :body => post_body,
1649
+ :auth_names => auth_names,
1650
+ :return_type => return_type
1651
+ )
1652
+
1653
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1654
+ if @api_client.config.debugging
1655
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_cro_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1656
+ end
1657
+ return data, status_code, headers
1658
+ end
1659
+
1660
+ # FDA firm debarments
1661
+ # @param id [String]
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @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.
1664
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1665
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1666
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1667
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1668
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1669
+ # @return [DebarmentsResponse]
1670
+ def companies_debarments(id, opts = {})
1671
+ data, _status_code, _headers = companies_debarments_with_http_info(id, opts)
1672
+ data
1673
+ end
1674
+
1675
+ # FDA firm debarments
1676
+ # @param id [String]
1677
+ # @param [Hash] opts the optional parameters
1678
+ # @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.
1679
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1680
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1681
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1682
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1683
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1684
+ # @return [Array<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
1685
+ def companies_debarments_with_http_info(id, opts = {})
1686
+ if @api_client.config.debugging
1687
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_debarments ...'
1688
+ end
1689
+ # verify the required parameter 'id' is set
1690
+ if @api_client.config.client_side_validation && id.nil?
1691
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_debarments"
1692
+ end
1693
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1694
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be smaller than or equal to 500.'
1695
+ end
1696
+
1697
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1698
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be greater than or equal to 1.'
1699
+ end
1700
+
1701
+ allowable_values = ["company", "group"]
1702
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1703
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1704
+ end
1705
+ # resource path
1706
+ local_var_path = '/api/v1/companies/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1707
+
1708
+ # query parameters
1709
+ query_params = opts[:query_params] || {}
1710
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1711
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1712
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1713
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1714
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1715
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1716
+
1717
+ # header parameters
1718
+ header_params = opts[:header_params] || {}
1719
+ # HTTP header 'Accept' (if needed)
1720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1721
+
1722
+ # form parameters
1723
+ form_params = opts[:form_params] || {}
1724
+
1725
+ # http body (model)
1726
+ post_body = opts[:debug_body]
1727
+
1728
+ # return_type
1729
+ return_type = opts[:debug_return_type] || 'DebarmentsResponse'
1730
+
1731
+ # auth_names
1732
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1733
+
1734
+ new_options = opts.merge(
1735
+ :operation => :"CompaniesApi.companies_debarments",
1736
+ :header_params => header_params,
1737
+ :query_params => query_params,
1738
+ :form_params => form_params,
1739
+ :body => post_body,
1740
+ :auth_names => auth_names,
1741
+ :return_type => return_type
1742
+ )
1743
+
1744
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1747
+ end
1748
+ return data, status_code, headers
1749
+ end
1750
+
1751
+ # Patent-cliff exposure
1752
+ # @param id [String]
1753
+ # @param [Hash] opts the optional parameters
1754
+ # @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.
1755
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1756
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1757
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1758
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1759
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1760
+ # @return [DrugPatentCliffResponse]
1761
+ def companies_drug_patent_cliff(id, opts = {})
1762
+ data, _status_code, _headers = companies_drug_patent_cliff_with_http_info(id, opts)
1763
+ data
1764
+ end
1765
+
1766
+ # Patent-cliff exposure
1767
+ # @param id [String]
1768
+ # @param [Hash] opts the optional parameters
1769
+ # @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.
1770
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1771
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1772
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1773
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1774
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1775
+ # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
1776
+ def companies_drug_patent_cliff_with_http_info(id, opts = {})
1777
+ if @api_client.config.debugging
1778
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_drug_patent_cliff ...'
1779
+ end
1780
+ # verify the required parameter 'id' is set
1781
+ if @api_client.config.client_side_validation && id.nil?
1782
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_drug_patent_cliff"
1783
+ end
1784
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1785
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be smaller than or equal to 500.'
1786
+ end
1787
+
1788
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1789
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be greater than or equal to 1.'
1790
+ end
1791
+
1792
+ allowable_values = ["company", "group"]
1793
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1794
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1795
+ end
1796
+ # resource path
1797
+ local_var_path = '/api/v1/companies/{id}/drug_patent_cliff'.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
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1807
+
1808
+ # header parameters
1809
+ header_params = opts[:header_params] || {}
1810
+ # HTTP header 'Accept' (if needed)
1811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1812
+
1813
+ # form parameters
1814
+ form_params = opts[:form_params] || {}
1815
+
1816
+ # http body (model)
1817
+ post_body = opts[:debug_body]
1818
+
1819
+ # return_type
1820
+ return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
1821
+
1822
+ # auth_names
1823
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1824
+
1825
+ new_options = opts.merge(
1826
+ :operation => :"CompaniesApi.companies_drug_patent_cliff",
1827
+ :header_params => header_params,
1828
+ :query_params => query_params,
1829
+ :form_params => form_params,
1830
+ :body => post_body,
1831
+ :auth_names => auth_names,
1832
+ :return_type => return_type
1833
+ )
1834
+
1835
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1836
+ if @api_client.config.debugging
1837
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1838
+ end
1839
+ return data, status_code, headers
1840
+ end
1841
+
1842
+ # FDA enforcement events
1843
+ # @param id [String]
1844
+ # @param [Hash] opts the optional parameters
1845
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1846
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1847
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1848
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1849
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1850
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1851
+ # @return [EnforcementEventsResponse]
1852
+ def companies_enforcement_events(id, opts = {})
1853
+ data, _status_code, _headers = companies_enforcement_events_with_http_info(id, opts)
1854
+ data
1855
+ end
1856
+
1857
+ # FDA enforcement events
1858
+ # @param id [String]
1859
+ # @param [Hash] opts the optional parameters
1860
+ # @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.
1861
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1862
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1863
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1864
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1865
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1866
+ # @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
1867
+ def companies_enforcement_events_with_http_info(id, opts = {})
1868
+ if @api_client.config.debugging
1869
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_enforcement_events ...'
1870
+ end
1871
+ # verify the required parameter 'id' is set
1872
+ if @api_client.config.client_side_validation && id.nil?
1873
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_enforcement_events"
1874
+ end
1875
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1876
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be smaller than or equal to 500.'
1877
+ end
1878
+
1879
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1880
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be greater than or equal to 1.'
1881
+ end
1882
+
1883
+ allowable_values = ["company", "group"]
1884
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1885
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1886
+ end
1887
+ # resource path
1888
+ local_var_path = '/api/v1/companies/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1889
+
1890
+ # query parameters
1891
+ query_params = opts[:query_params] || {}
1892
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1893
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1894
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1895
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1896
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1897
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1898
+
1899
+ # header parameters
1900
+ header_params = opts[:header_params] || {}
1901
+ # HTTP header 'Accept' (if needed)
1902
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1903
+
1904
+ # form parameters
1905
+ form_params = opts[:form_params] || {}
1906
+
1907
+ # http body (model)
1908
+ post_body = opts[:debug_body]
1909
+
1910
+ # return_type
1911
+ return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
1912
+
1913
+ # auth_names
1914
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1915
+
1916
+ new_options = opts.merge(
1917
+ :operation => :"CompaniesApi.companies_enforcement_events",
1918
+ :header_params => header_params,
1919
+ :query_params => query_params,
1920
+ :form_params => form_params,
1921
+ :body => post_body,
1922
+ :auth_names => auth_names,
1923
+ :return_type => return_type
1924
+ )
1925
+
1926
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1927
+ if @api_client.config.debugging
1928
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1929
+ end
1930
+ return data, status_code, headers
1931
+ end
1932
+
1933
+ # One company
1934
+ # @param id [String]
1935
+ # @param [Hash] opts the optional parameters
1936
+ # @return [CompaniesRecord]
1937
+ def companies_get(id, opts = {})
1938
+ data, _status_code, _headers = companies_get_with_http_info(id, opts)
1939
+ data
1940
+ end
1941
+
1942
+ # One company
1943
+ # @param id [String]
1944
+ # @param [Hash] opts the optional parameters
1945
+ # @return [Array<(CompaniesRecord, Integer, Hash)>] CompaniesRecord data, response status code and response headers
1946
+ def companies_get_with_http_info(id, opts = {})
1947
+ if @api_client.config.debugging
1948
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
1949
+ end
1950
+ # verify the required parameter 'id' is set
1951
+ if @api_client.config.client_side_validation && id.nil?
1952
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
1953
+ end
1954
+ # resource path
1955
+ local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1956
+
1957
+ # query parameters
1958
+ query_params = opts[:query_params] || {}
1959
+
1960
+ # header parameters
1961
+ header_params = opts[:header_params] || {}
1962
+ # HTTP header 'Accept' (if needed)
1963
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1964
+
1965
+ # form parameters
1966
+ form_params = opts[:form_params] || {}
1967
+
1968
+ # http body (model)
1969
+ post_body = opts[:debug_body]
1970
+
1971
+ # return_type
1972
+ return_type = opts[:debug_return_type] || 'CompaniesRecord'
1973
+
1974
+ # auth_names
1975
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1976
+
1977
+ new_options = opts.merge(
1978
+ :operation => :"CompaniesApi.companies_get",
1979
+ :header_params => header_params,
1980
+ :query_params => query_params,
1981
+ :form_params => form_params,
1982
+ :body => post_body,
1983
+ :auth_names => auth_names,
1984
+ :return_type => return_type
1985
+ )
1986
+
1987
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1988
+ if @api_client.config.debugging
1989
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1990
+ end
1991
+ return data, status_code, headers
1992
+ end
1993
+
1994
+ # GxP facilities and quality signals
1995
+ # @param id [String]
1996
+ # @param [Hash] opts the optional parameters
1997
+ # @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.
1998
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1999
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2000
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2001
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2002
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2003
+ # @return [GxpFacilitiesResponse]
2004
+ def companies_gxp_facilities(id, opts = {})
2005
+ data, _status_code, _headers = companies_gxp_facilities_with_http_info(id, opts)
2006
+ data
2007
+ end
2008
+
2009
+ # GxP facilities and quality signals
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
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2018
+ # @return [Array<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
2019
+ def companies_gxp_facilities_with_http_info(id, opts = {})
2020
+ if @api_client.config.debugging
2021
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_gxp_facilities ...'
2022
+ end
2023
+ # verify the required parameter 'id' is set
2024
+ if @api_client.config.client_side_validation && id.nil?
2025
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_gxp_facilities"
2026
+ end
2027
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2028
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be smaller than or equal to 500.'
2029
+ end
2030
+
2031
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2032
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be greater than or equal to 1.'
2033
+ end
2034
+
2035
+ allowable_values = ["company", "group"]
2036
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2037
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2038
+ end
2039
+ # resource path
2040
+ local_var_path = '/api/v1/companies/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2041
+
2042
+ # query parameters
2043
+ query_params = opts[:query_params] || {}
2044
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2045
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2046
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2047
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2048
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2049
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2050
+
2051
+ # header parameters
2052
+ header_params = opts[:header_params] || {}
2053
+ # HTTP header 'Accept' (if needed)
2054
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2055
+
2056
+ # form parameters
2057
+ form_params = opts[:form_params] || {}
2058
+
2059
+ # http body (model)
2060
+ post_body = opts[:debug_body]
2061
+
2062
+ # return_type
2063
+ return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
2064
+
2065
+ # auth_names
2066
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2067
+
2068
+ new_options = opts.merge(
2069
+ :operation => :"CompaniesApi.companies_gxp_facilities",
2070
+ :header_params => header_params,
2071
+ :query_params => query_params,
2072
+ :form_params => form_params,
2073
+ :body => post_body,
2074
+ :auth_names => auth_names,
2075
+ :return_type => return_type
2076
+ )
2077
+
2078
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2079
+ if @api_client.config.debugging
2080
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2081
+ end
2082
+ return data, status_code, headers
2083
+ end
2084
+
2085
+ # FDA import refusals
2086
+ # @param id [String]
2087
+ # @param [Hash] opts the optional parameters
2088
+ # @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.
2089
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2090
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2091
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2092
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2093
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2094
+ # @return [ImportRefusalsResponse]
2095
+ def companies_import_refusals(id, opts = {})
2096
+ data, _status_code, _headers = companies_import_refusals_with_http_info(id, opts)
2097
+ data
2098
+ end
2099
+
2100
+ # FDA import refusals
2101
+ # @param id [String]
2102
+ # @param [Hash] opts the optional parameters
2103
+ # @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.
2104
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2105
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2106
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2107
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2108
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2109
+ # @return [Array<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
2110
+ def companies_import_refusals_with_http_info(id, opts = {})
2111
+ if @api_client.config.debugging
2112
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_import_refusals ...'
2113
+ end
2114
+ # verify the required parameter 'id' is set
2115
+ if @api_client.config.client_side_validation && id.nil?
2116
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_import_refusals"
2117
+ end
2118
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2119
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be smaller than or equal to 500.'
2120
+ end
2121
+
2122
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2123
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be greater than or equal to 1.'
2124
+ end
2125
+
2126
+ allowable_values = ["company", "group"]
2127
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2128
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2129
+ end
2130
+ # resource path
2131
+ local_var_path = '/api/v1/companies/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2132
+
2133
+ # query parameters
2134
+ query_params = opts[:query_params] || {}
2135
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2136
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2137
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2138
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2139
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2140
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2141
+
2142
+ # header parameters
2143
+ header_params = opts[:header_params] || {}
2144
+ # HTTP header 'Accept' (if needed)
2145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2146
+
2147
+ # form parameters
2148
+ form_params = opts[:form_params] || {}
2149
+
2150
+ # http body (model)
2151
+ post_body = opts[:debug_body]
2152
+
2153
+ # return_type
2154
+ return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
2155
+
2156
+ # auth_names
2157
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2158
+
2159
+ new_options = opts.merge(
2160
+ :operation => :"CompaniesApi.companies_import_refusals",
2161
+ :header_params => header_params,
2162
+ :query_params => query_params,
2163
+ :form_params => form_params,
2164
+ :body => post_body,
2165
+ :auth_names => auth_names,
2166
+ :return_type => return_type
2167
+ )
2168
+
2169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2170
+ if @api_client.config.debugging
2171
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2172
+ end
2173
+ return data, status_code, headers
2174
+ end
2175
+
2176
+ # FDA inspection findings
2177
+ # @param id [String]
2178
+ # @param [Hash] opts the optional parameters
2179
+ # @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.
2180
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2181
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2182
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2183
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2184
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2185
+ # @return [InspectionFindingsResponse]
2186
+ def companies_inspection_findings(id, opts = {})
2187
+ data, _status_code, _headers = companies_inspection_findings_with_http_info(id, opts)
2188
+ data
2189
+ end
2190
+
2191
+ # FDA inspection findings
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
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2200
+ # @return [Array<(InspectionFindingsResponse, Integer, Hash)>] InspectionFindingsResponse data, response status code and response headers
2201
+ def companies_inspection_findings_with_http_info(id, opts = {})
2202
+ if @api_client.config.debugging
2203
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspection_findings ...'
2204
+ end
2205
+ # verify the required parameter 'id' is set
2206
+ if @api_client.config.client_side_validation && id.nil?
2207
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspection_findings"
2208
+ end
2209
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2210
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be smaller than or equal to 500.'
2211
+ end
2212
+
2213
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2214
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be greater than or equal to 1.'
2215
+ end
2216
+
2217
+ allowable_values = ["company", "group"]
2218
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2219
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2220
+ end
2221
+ # resource path
2222
+ local_var_path = '/api/v1/companies/{id}/inspection_findings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2223
+
2224
+ # query parameters
2225
+ query_params = opts[:query_params] || {}
2226
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2227
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2228
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2229
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2230
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2231
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2232
+
2233
+ # header parameters
2234
+ header_params = opts[:header_params] || {}
2235
+ # HTTP header 'Accept' (if needed)
2236
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2237
+
2238
+ # form parameters
2239
+ form_params = opts[:form_params] || {}
2240
+
2241
+ # http body (model)
2242
+ post_body = opts[:debug_body]
2243
+
2244
+ # return_type
2245
+ return_type = opts[:debug_return_type] || 'InspectionFindingsResponse'
2246
+
2247
+ # auth_names
2248
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2249
+
2250
+ new_options = opts.merge(
2251
+ :operation => :"CompaniesApi.companies_inspection_findings",
2252
+ :header_params => header_params,
2253
+ :query_params => query_params,
2254
+ :form_params => form_params,
2255
+ :body => post_body,
2256
+ :auth_names => auth_names,
2257
+ :return_type => return_type
2258
+ )
2259
+
2260
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2261
+ if @api_client.config.debugging
2262
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_inspection_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2263
+ end
2264
+ return data, status_code, headers
2265
+ end
2266
+
2267
+ # FDA inspections
2268
+ # @param id [String]
2269
+ # @param [Hash] opts the optional parameters
2270
+ # @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.
2271
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2272
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2273
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2274
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2275
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2276
+ # @return [InspectionsResponse]
2277
+ def companies_inspections(id, opts = {})
2278
+ data, _status_code, _headers = companies_inspections_with_http_info(id, opts)
2279
+ data
2280
+ end
2281
+
2282
+ # FDA inspections
2283
+ # @param id [String]
2284
+ # @param [Hash] opts the optional parameters
2285
+ # @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.
2286
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2287
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2288
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2289
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2290
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2291
+ # @return [Array<(InspectionsResponse, Integer, Hash)>] InspectionsResponse data, response status code and response headers
2292
+ def companies_inspections_with_http_info(id, opts = {})
2293
+ if @api_client.config.debugging
2294
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspections ...'
2295
+ end
2296
+ # verify the required parameter 'id' is set
2297
+ if @api_client.config.client_side_validation && id.nil?
2298
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspections"
2299
+ end
2300
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2301
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be smaller than or equal to 500.'
2302
+ end
2303
+
2304
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2305
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be greater than or equal to 1.'
2306
+ end
2307
+
2308
+ allowable_values = ["company", "group"]
2309
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2310
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2311
+ end
2312
+ # resource path
2313
+ local_var_path = '/api/v1/companies/{id}/inspections'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2314
+
2315
+ # query parameters
2316
+ query_params = opts[:query_params] || {}
2317
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2318
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2319
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2320
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2321
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2322
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2323
+
2324
+ # header parameters
2325
+ header_params = opts[:header_params] || {}
2326
+ # HTTP header 'Accept' (if needed)
2327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2328
+
2329
+ # form parameters
2330
+ form_params = opts[:form_params] || {}
2331
+
2332
+ # http body (model)
2333
+ post_body = opts[:debug_body]
2334
+
2335
+ # return_type
2336
+ return_type = opts[:debug_return_type] || 'InspectionsResponse'
2337
+
2338
+ # auth_names
2339
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2340
+
2341
+ new_options = opts.merge(
2342
+ :operation => :"CompaniesApi.companies_inspections",
2343
+ :header_params => header_params,
2344
+ :query_params => query_params,
2345
+ :form_params => form_params,
2346
+ :body => post_body,
2347
+ :auth_names => auth_names,
2348
+ :return_type => return_type
2349
+ )
2350
+
2351
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2352
+ if @api_client.config.debugging
2353
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_inspections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2354
+ end
2355
+ return data, status_code, headers
2356
+ end
2357
+
2358
+ # Institutional holdings (SEC Form 13F)
2359
+ # @param id [String]
2360
+ # @param [Hash] opts the optional parameters
2361
+ # @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.
2362
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2363
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2364
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2365
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2366
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2367
+ # @return [InstitutionalHoldingsResponse]
2368
+ def companies_institutional_holdings(id, opts = {})
2369
+ data, _status_code, _headers = companies_institutional_holdings_with_http_info(id, opts)
2370
+ data
2371
+ end
2372
+
2373
+ # Institutional holdings (SEC Form 13F)
2374
+ # @param id [String]
2375
+ # @param [Hash] opts the optional parameters
2376
+ # @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.
2377
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2378
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2379
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2380
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2381
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2382
+ # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
2383
+ def companies_institutional_holdings_with_http_info(id, opts = {})
2384
+ if @api_client.config.debugging
2385
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_holdings ...'
2386
+ end
2387
+ # verify the required parameter 'id' is set
2388
+ if @api_client.config.client_side_validation && id.nil?
2389
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_holdings"
2390
+ end
2391
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2392
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be smaller than or equal to 500.'
2393
+ end
2394
+
2395
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2396
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be greater than or equal to 1.'
2397
+ end
2398
+
2399
+ allowable_values = ["company", "group"]
2400
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2401
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2402
+ end
2403
+ # resource path
2404
+ local_var_path = '/api/v1/companies/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2405
+
2406
+ # query parameters
2407
+ query_params = opts[:query_params] || {}
2408
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2409
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2410
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2411
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2412
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2413
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2414
+
2415
+ # header parameters
2416
+ header_params = opts[:header_params] || {}
2417
+ # HTTP header 'Accept' (if needed)
2418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2419
+
2420
+ # form parameters
2421
+ form_params = opts[:form_params] || {}
2422
+
2423
+ # http body (model)
2424
+ post_body = opts[:debug_body]
2425
+
2426
+ # return_type
2427
+ return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
2428
+
2429
+ # auth_names
2430
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2431
+
2432
+ new_options = opts.merge(
2433
+ :operation => :"CompaniesApi.companies_institutional_holdings",
2434
+ :header_params => header_params,
2435
+ :query_params => query_params,
2436
+ :form_params => form_params,
2437
+ :body => post_body,
2438
+ :auth_names => auth_names,
2439
+ :return_type => return_type
2440
+ )
2441
+
2442
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2443
+ if @api_client.config.debugging
2444
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2445
+ end
2446
+ return data, status_code, headers
2447
+ end
2448
+
2449
+ # Institutional quarter totals (SEC Form 13F)
2450
+ # @param id [String]
2451
+ # @param [Hash] opts the optional parameters
2452
+ # @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.
2453
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2454
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2455
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2456
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2457
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2458
+ # @return [InstitutionalQuarterTotalsResponse]
2459
+ def companies_institutional_quarter_totals(id, opts = {})
2460
+ data, _status_code, _headers = companies_institutional_quarter_totals_with_http_info(id, opts)
2461
+ data
2462
+ end
2463
+
2464
+ # Institutional quarter totals (SEC Form 13F)
2465
+ # @param id [String]
2466
+ # @param [Hash] opts the optional parameters
2467
+ # @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.
2468
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2469
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2470
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2471
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2472
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2473
+ # @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
2474
+ def companies_institutional_quarter_totals_with_http_info(id, opts = {})
2475
+ if @api_client.config.debugging
2476
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_quarter_totals ...'
2477
+ end
2478
+ # verify the required parameter 'id' is set
2479
+ if @api_client.config.client_side_validation && id.nil?
2480
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_quarter_totals"
2481
+ end
2482
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2483
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be smaller than or equal to 500.'
2484
+ end
2485
+
2486
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2487
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be greater than or equal to 1.'
2488
+ end
2489
+
2490
+ allowable_values = ["company", "group"]
2491
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2492
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2493
+ end
2494
+ # resource path
2495
+ local_var_path = '/api/v1/companies/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2496
+
2497
+ # query parameters
2498
+ query_params = opts[:query_params] || {}
2499
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2500
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2501
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2502
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2503
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2504
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2505
+
2506
+ # header parameters
2507
+ header_params = opts[:header_params] || {}
2508
+ # HTTP header 'Accept' (if needed)
2509
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2510
+
2511
+ # form parameters
2512
+ form_params = opts[:form_params] || {}
2513
+
2514
+ # http body (model)
2515
+ post_body = opts[:debug_body]
2516
+
2517
+ # return_type
2518
+ return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
2519
+
2520
+ # auth_names
2521
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2522
+
2523
+ new_options = opts.merge(
2524
+ :operation => :"CompaniesApi.companies_institutional_quarter_totals",
2525
+ :header_params => header_params,
2526
+ :query_params => query_params,
2527
+ :form_params => form_params,
2528
+ :body => post_body,
2529
+ :auth_names => auth_names,
2530
+ :return_type => return_type
2531
+ )
2532
+
2533
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2534
+ if @api_client.config.debugging
2535
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2536
+ end
2537
+ return data, status_code, headers
2538
+ end
2539
+
2540
+ # Legal entities
2541
+ # @param id [String]
2542
+ # @param [Hash] opts the optional parameters
2543
+ # @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.
2544
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2545
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2546
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2547
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2548
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2549
+ # @return [LegalEntitiesResponse]
2550
+ def companies_legal_entities(id, opts = {})
2551
+ data, _status_code, _headers = companies_legal_entities_with_http_info(id, opts)
2552
+ data
2553
+ end
2554
+
2555
+ # Legal entities
2556
+ # @param id [String]
2557
+ # @param [Hash] opts the optional parameters
2558
+ # @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.
2559
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2560
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2561
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2562
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2563
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2564
+ # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
2565
+ def companies_legal_entities_with_http_info(id, opts = {})
2566
+ if @api_client.config.debugging
2567
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entities ...'
2568
+ end
2569
+ # verify the required parameter 'id' is set
2570
+ if @api_client.config.client_side_validation && id.nil?
2571
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entities"
2572
+ end
2573
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2574
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be smaller than or equal to 500.'
2575
+ end
2576
+
2577
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2578
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be greater than or equal to 1.'
2579
+ end
2580
+
2581
+ allowable_values = ["company", "group"]
2582
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2583
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2584
+ end
2585
+ # resource path
2586
+ local_var_path = '/api/v1/companies/{id}/legal_entities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2587
+
2588
+ # query parameters
2589
+ query_params = opts[:query_params] || {}
2590
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2591
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2592
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2593
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2594
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2595
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2596
+
2597
+ # header parameters
2598
+ header_params = opts[:header_params] || {}
2599
+ # HTTP header 'Accept' (if needed)
2600
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2601
+
2602
+ # form parameters
2603
+ form_params = opts[:form_params] || {}
2604
+
2605
+ # http body (model)
2606
+ post_body = opts[:debug_body]
2607
+
2608
+ # return_type
2609
+ return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
2610
+
2611
+ # auth_names
2612
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2613
+
2614
+ new_options = opts.merge(
2615
+ :operation => :"CompaniesApi.companies_legal_entities",
2616
+ :header_params => header_params,
2617
+ :query_params => query_params,
2618
+ :form_params => form_params,
2619
+ :body => post_body,
2620
+ :auth_names => auth_names,
2621
+ :return_type => return_type
2622
+ )
2623
+
2624
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2625
+ if @api_client.config.debugging
2626
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2627
+ end
2628
+ return data, status_code, headers
2629
+ end
2630
+
2631
+ # SEC filer records
2632
+ # @param id [String]
2633
+ # @param [Hash] opts the optional parameters
2634
+ # @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.
2635
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2636
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2637
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2638
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2639
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2640
+ # @return [LegalEntitySecFilingsResponse]
2641
+ def companies_legal_entity_sec_filings(id, opts = {})
2642
+ data, _status_code, _headers = companies_legal_entity_sec_filings_with_http_info(id, opts)
2643
+ data
2644
+ end
2645
+
2646
+ # SEC filer records
2647
+ # @param id [String]
2648
+ # @param [Hash] opts the optional parameters
2649
+ # @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.
2650
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2651
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2652
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2653
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2654
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2655
+ # @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
2656
+ def companies_legal_entity_sec_filings_with_http_info(id, opts = {})
2657
+ if @api_client.config.debugging
2658
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entity_sec_filings ...'
2659
+ end
2660
+ # verify the required parameter 'id' is set
2661
+ if @api_client.config.client_side_validation && id.nil?
2662
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entity_sec_filings"
2663
+ end
2664
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2665
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be smaller than or equal to 500.'
2666
+ end
2667
+
2668
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2669
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be greater than or equal to 1.'
2670
+ end
2671
+
2672
+ allowable_values = ["company", "group"]
2673
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2674
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2675
+ end
2676
+ # resource path
2677
+ local_var_path = '/api/v1/companies/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2678
+
2679
+ # query parameters
2680
+ query_params = opts[:query_params] || {}
2681
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2682
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2683
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2684
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2685
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2686
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2687
+
2688
+ # header parameters
2689
+ header_params = opts[:header_params] || {}
2690
+ # HTTP header 'Accept' (if needed)
2691
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2692
+
2693
+ # form parameters
2694
+ form_params = opts[:form_params] || {}
2695
+
2696
+ # http body (model)
2697
+ post_body = opts[:debug_body]
2698
+
2699
+ # return_type
2700
+ return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
2701
+
2702
+ # auth_names
2703
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2704
+
2705
+ new_options = opts.merge(
2706
+ :operation => :"CompaniesApi.companies_legal_entity_sec_filings",
2707
+ :header_params => header_params,
2708
+ :query_params => query_params,
2709
+ :form_params => form_params,
2710
+ :body => post_body,
2711
+ :auth_names => auth_names,
2712
+ :return_type => return_type
2713
+ )
2714
+
2715
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2716
+ if @api_client.config.debugging
2717
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2718
+ end
2719
+ return data, status_code, headers
2720
+ end
2721
+
2722
+ # List companies
2723
+ # @param [Hash] opts the optional parameters
2724
+ # @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.
2725
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2726
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2727
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2728
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2729
+ # @return [CompaniesResponse]
2730
+ def companies_list(opts = {})
2731
+ data, _status_code, _headers = companies_list_with_http_info(opts)
2732
+ data
2733
+ end
2734
+
2735
+ # List companies
2736
+ # @param [Hash] opts the optional parameters
2737
+ # @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.
2738
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2739
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2740
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2741
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2742
+ # @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
2743
+ def companies_list_with_http_info(opts = {})
2744
+ if @api_client.config.debugging
2745
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
2746
+ end
2747
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2748
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be smaller than or equal to 500.'
2749
+ end
2750
+
2751
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2752
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be greater than or equal to 1.'
2753
+ end
2754
+
2755
+ # resource path
2756
+ local_var_path = '/api/v1/companies'
2757
+
2758
+ # query parameters
2759
+ query_params = opts[:query_params] || {}
2760
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2761
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2762
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2763
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2764
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2765
+
2766
+ # header parameters
2767
+ header_params = opts[:header_params] || {}
2768
+ # HTTP header 'Accept' (if needed)
2769
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2770
+
2771
+ # form parameters
2772
+ form_params = opts[:form_params] || {}
2773
+
2774
+ # http body (model)
2775
+ post_body = opts[:debug_body]
2776
+
2777
+ # return_type
2778
+ return_type = opts[:debug_return_type] || 'CompaniesResponse'
2779
+
2780
+ # auth_names
2781
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2782
+
2783
+ new_options = opts.merge(
2784
+ :operation => :"CompaniesApi.companies_list",
2785
+ :header_params => header_params,
2786
+ :query_params => query_params,
2787
+ :form_params => form_params,
2788
+ :body => post_body,
2789
+ :auth_names => auth_names,
2790
+ :return_type => return_type
2791
+ )
2792
+
2793
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2794
+ if @api_client.config.debugging
2795
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2796
+ end
2797
+ return data, status_code, headers
2798
+ end
2799
+
2800
+ # Organization disclosure trend
2801
+ # @param id [String]
2802
+ # @param [Hash] opts the optional parameters
2803
+ # @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.
2804
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2805
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2806
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2807
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2808
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2809
+ # @return [OrgDisclosureTrendResponse]
2810
+ def companies_org_disclosure_trend(id, opts = {})
2811
+ data, _status_code, _headers = companies_org_disclosure_trend_with_http_info(id, opts)
2812
+ data
2813
+ end
2814
+
2815
+ # Organization disclosure trend
2816
+ # @param id [String]
2817
+ # @param [Hash] opts the optional parameters
2818
+ # @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.
2819
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2820
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2821
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2822
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2823
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2824
+ # @return [Array<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
2825
+ def companies_org_disclosure_trend_with_http_info(id, opts = {})
2826
+ if @api_client.config.debugging
2827
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosure_trend ...'
2828
+ end
2829
+ # verify the required parameter 'id' is set
2830
+ if @api_client.config.client_side_validation && id.nil?
2831
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosure_trend"
2832
+ end
2833
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2834
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be smaller than or equal to 500.'
2835
+ end
2836
+
2837
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2838
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be greater than or equal to 1.'
2839
+ end
2840
+
2841
+ allowable_values = ["company", "group"]
2842
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2843
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2844
+ end
2845
+ # resource path
2846
+ local_var_path = '/api/v1/companies/{id}/org_disclosure_trend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2847
+
2848
+ # query parameters
2849
+ query_params = opts[:query_params] || {}
2850
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2851
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2852
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2853
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2854
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2855
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2856
+
2857
+ # header parameters
2858
+ header_params = opts[:header_params] || {}
2859
+ # HTTP header 'Accept' (if needed)
2860
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2861
+
2862
+ # form parameters
2863
+ form_params = opts[:form_params] || {}
2864
+
2865
+ # http body (model)
2866
+ post_body = opts[:debug_body]
2867
+
2868
+ # return_type
2869
+ return_type = opts[:debug_return_type] || 'OrgDisclosureTrendResponse'
2870
+
2871
+ # auth_names
2872
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2873
+
2874
+ new_options = opts.merge(
2875
+ :operation => :"CompaniesApi.companies_org_disclosure_trend",
2876
+ :header_params => header_params,
2877
+ :query_params => query_params,
2878
+ :form_params => form_params,
2879
+ :body => post_body,
2880
+ :auth_names => auth_names,
2881
+ :return_type => return_type
2882
+ )
2883
+
2884
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2885
+ if @api_client.config.debugging
2886
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2887
+ end
2888
+ return data, status_code, headers
2889
+ end
2890
+
2891
+ # Organization disclosures (climate and diversity)
2892
+ # @param id [String]
2893
+ # @param [Hash] opts the optional parameters
2894
+ # @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.
2895
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2896
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2897
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2898
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2899
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2900
+ # @return [OrgDisclosuresResponse]
2901
+ def companies_org_disclosures(id, opts = {})
2902
+ data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
2903
+ data
2904
+ end
2905
+
2906
+ # Organization disclosures (climate and diversity)
2907
+ # @param id [String]
2908
+ # @param [Hash] opts the optional parameters
2909
+ # @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.
2910
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2911
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2912
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2913
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2914
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2915
+ # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
2916
+ def companies_org_disclosures_with_http_info(id, opts = {})
2917
+ if @api_client.config.debugging
2918
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
2919
+ end
2920
+ # verify the required parameter 'id' is set
2921
+ if @api_client.config.client_side_validation && id.nil?
2922
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
2923
+ end
2924
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2925
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
2926
+ end
2927
+
2928
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2929
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be greater than or equal to 1.'
2930
+ end
2931
+
2932
+ allowable_values = ["company", "group"]
2933
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
2934
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2935
+ end
2936
+ # resource path
2937
+ local_var_path = '/api/v1/companies/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2938
+
2939
+ # query parameters
2940
+ query_params = opts[:query_params] || {}
2941
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2942
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2943
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2944
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2945
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2946
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
2947
+
2948
+ # header parameters
2949
+ header_params = opts[:header_params] || {}
2950
+ # HTTP header 'Accept' (if needed)
2951
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2952
+
2953
+ # form parameters
2954
+ form_params = opts[:form_params] || {}
2955
+
2956
+ # http body (model)
2957
+ post_body = opts[:debug_body]
2958
+
2959
+ # return_type
2960
+ return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
2961
+
2962
+ # auth_names
2963
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2964
+
2965
+ new_options = opts.merge(
2966
+ :operation => :"CompaniesApi.companies_org_disclosures",
2967
+ :header_params => header_params,
2968
+ :query_params => query_params,
2969
+ :form_params => form_params,
2970
+ :body => post_body,
2971
+ :auth_names => auth_names,
2972
+ :return_type => return_type
2973
+ )
2974
+
2975
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2976
+ if @api_client.config.debugging
2977
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2978
+ end
2979
+ return data, status_code, headers
2980
+ end
2981
+
2982
+ # Organization relationships
2983
+ # @param id [String]
2984
+ # @param [Hash] opts the optional parameters
2985
+ # @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.
2986
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2987
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2988
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2989
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2990
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
2991
+ # @return [OrgRelationshipsResponse]
2992
+ def companies_org_relationships(id, opts = {})
2993
+ data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
2994
+ data
2995
+ end
2996
+
2997
+ # Organization relationships
2998
+ # @param id [String]
2999
+ # @param [Hash] opts the optional parameters
3000
+ # @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.
3001
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3002
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3003
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3004
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3005
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3006
+ # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
3007
+ def companies_org_relationships_with_http_info(id, opts = {})
3008
+ if @api_client.config.debugging
3009
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
3010
+ end
3011
+ # verify the required parameter 'id' is set
3012
+ if @api_client.config.client_side_validation && id.nil?
3013
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_relationships"
3014
+ end
3015
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
3016
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be smaller than or equal to 500.'
3017
+ end
3018
+
3019
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
3020
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be greater than or equal to 1.'
3021
+ end
3022
+
3023
+ allowable_values = ["company", "group"]
3024
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
3025
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
3026
+ end
3027
+ # resource path
3028
+ local_var_path = '/api/v1/companies/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3029
+
3030
+ # query parameters
3031
+ query_params = opts[:query_params] || {}
3032
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
3033
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
3034
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
3035
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
3036
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
3037
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
3038
+
3039
+ # header parameters
3040
+ header_params = opts[:header_params] || {}
3041
+ # HTTP header 'Accept' (if needed)
3042
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3043
+
3044
+ # form parameters
3045
+ form_params = opts[:form_params] || {}
3046
+
3047
+ # http body (model)
3048
+ post_body = opts[:debug_body]
3049
+
3050
+ # return_type
3051
+ return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
3052
+
3053
+ # auth_names
3054
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
3055
+
3056
+ new_options = opts.merge(
3057
+ :operation => :"CompaniesApi.companies_org_relationships",
3058
+ :header_params => header_params,
3059
+ :query_params => query_params,
3060
+ :form_params => form_params,
3061
+ :body => post_body,
3062
+ :auth_names => auth_names,
3063
+ :return_type => return_type
3064
+ )
3065
+
3066
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3067
+ if @api_client.config.debugging
3068
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3069
+ end
3070
+ return data, status_code, headers
3071
+ end
3072
+
3073
+ # Ownership percentages
3074
+ # @param id [String]
3075
+ # @param [Hash] opts the optional parameters
3076
+ # @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.
3077
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3078
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3079
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3080
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3081
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3082
+ # @return [OwnershipPercentagesResponse]
3083
+ def companies_ownership_percentages(id, opts = {})
3084
+ data, _status_code, _headers = companies_ownership_percentages_with_http_info(id, opts)
398
3085
  data
399
3086
  end
400
3087
 
401
- # Company assets (approved and marketed drugs)
3088
+ # Ownership percentages
402
3089
  # @param id [String]
403
3090
  # @param [Hash] opts the optional parameters
404
3091
  # @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.
@@ -407,21 +3094,21 @@ module PharmaObservatory
407
3094
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
408
3095
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
409
3096
  # @option opts [String] :scope company (this company only) or group (its corporate group).
410
- # @return [Array<(CompanyAssetsResponse, Integer, Hash)>] CompanyAssetsResponse data, response status code and response headers
411
- def companies_company_assets_with_http_info(id, opts = {})
3097
+ # @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
3098
+ def companies_ownership_percentages_with_http_info(id, opts = {})
412
3099
  if @api_client.config.debugging
413
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_assets ...'
3100
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_percentages ...'
414
3101
  end
415
3102
  # verify the required parameter 'id' is set
416
3103
  if @api_client.config.client_side_validation && id.nil?
417
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_assets"
3104
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_percentages"
418
3105
  end
419
3106
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
420
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be smaller than or equal to 500.'
3107
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be smaller than or equal to 500.'
421
3108
  end
422
3109
 
423
3110
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
424
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be greater than or equal to 1.'
3111
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be greater than or equal to 1.'
425
3112
  end
426
3113
 
427
3114
  allowable_values = ["company", "group"]
@@ -429,7 +3116,7 @@ module PharmaObservatory
429
3116
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
430
3117
  end
431
3118
  # resource path
432
- local_var_path = '/api/v1/companies/{id}/company_assets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3119
+ local_var_path = '/api/v1/companies/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
433
3120
 
434
3121
  # query parameters
435
3122
  query_params = opts[:query_params] || {}
@@ -452,13 +3139,13 @@ module PharmaObservatory
452
3139
  post_body = opts[:debug_body]
453
3140
 
454
3141
  # return_type
455
- return_type = opts[:debug_return_type] || 'CompanyAssetsResponse'
3142
+ return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
456
3143
 
457
3144
  # auth_names
458
3145
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
459
3146
 
460
3147
  new_options = opts.merge(
461
- :operation => :"CompaniesApi.companies_company_assets",
3148
+ :operation => :"CompaniesApi.companies_ownership_percentages",
462
3149
  :header_params => header_params,
463
3150
  :query_params => query_params,
464
3151
  :form_params => form_params,
@@ -469,12 +3156,12 @@ module PharmaObservatory
469
3156
 
470
3157
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
471
3158
  if @api_client.config.debugging
472
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3159
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
473
3160
  end
474
3161
  return data, status_code, headers
475
3162
  end
476
3163
 
477
- # Company funding events
3164
+ # Ownership and control positions
478
3165
  # @param id [String]
479
3166
  # @param [Hash] opts the optional parameters
480
3167
  # @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.
@@ -483,13 +3170,13 @@ module PharmaObservatory
483
3170
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
484
3171
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
485
3172
  # @option opts [String] :scope company (this company only) or group (its corporate group).
486
- # @return [CompanyFundingEventsResponse]
487
- def companies_company_funding_events(id, opts = {})
488
- data, _status_code, _headers = companies_company_funding_events_with_http_info(id, opts)
3173
+ # @return [OwnershipPositionsResponse]
3174
+ def companies_ownership_positions(id, opts = {})
3175
+ data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
489
3176
  data
490
3177
  end
491
3178
 
492
- # Company funding events
3179
+ # Ownership and control positions
493
3180
  # @param id [String]
494
3181
  # @param [Hash] opts the optional parameters
495
3182
  # @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.
@@ -498,21 +3185,21 @@ module PharmaObservatory
498
3185
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
499
3186
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
500
3187
  # @option opts [String] :scope company (this company only) or group (its corporate group).
501
- # @return [Array<(CompanyFundingEventsResponse, Integer, Hash)>] CompanyFundingEventsResponse data, response status code and response headers
502
- def companies_company_funding_events_with_http_info(id, opts = {})
3188
+ # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
3189
+ def companies_ownership_positions_with_http_info(id, opts = {})
503
3190
  if @api_client.config.debugging
504
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_events ...'
3191
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
505
3192
  end
506
3193
  # verify the required parameter 'id' is set
507
3194
  if @api_client.config.client_side_validation && id.nil?
508
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_events"
3195
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
509
3196
  end
510
3197
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
511
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be smaller than or equal to 500.'
3198
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
512
3199
  end
513
3200
 
514
3201
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
515
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be greater than or equal to 1.'
3202
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
516
3203
  end
517
3204
 
518
3205
  allowable_values = ["company", "group"]
@@ -520,7 +3207,7 @@ module PharmaObservatory
520
3207
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
521
3208
  end
522
3209
  # resource path
523
- local_var_path = '/api/v1/companies/{id}/company_funding_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3210
+ local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
524
3211
 
525
3212
  # query parameters
526
3213
  query_params = opts[:query_params] || {}
@@ -543,13 +3230,13 @@ module PharmaObservatory
543
3230
  post_body = opts[:debug_body]
544
3231
 
545
3232
  # return_type
546
- return_type = opts[:debug_return_type] || 'CompanyFundingEventsResponse'
3233
+ return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
547
3234
 
548
3235
  # auth_names
549
3236
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
550
3237
 
551
3238
  new_options = opts.merge(
552
- :operation => :"CompaniesApi.companies_company_funding_events",
3239
+ :operation => :"CompaniesApi.companies_ownership_positions",
553
3240
  :header_params => header_params,
554
3241
  :query_params => query_params,
555
3242
  :form_params => form_params,
@@ -560,12 +3247,12 @@ module PharmaObservatory
560
3247
 
561
3248
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
562
3249
  if @api_client.config.debugging
563
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3250
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
564
3251
  end
565
3252
  return data, status_code, headers
566
3253
  end
567
3254
 
568
- # Company funding summary
3255
+ # Ownership source coverage
569
3256
  # @param id [String]
570
3257
  # @param [Hash] opts the optional parameters
571
3258
  # @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.
@@ -574,13 +3261,13 @@ module PharmaObservatory
574
3261
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
575
3262
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
576
3263
  # @option opts [String] :scope company (this company only) or group (its corporate group).
577
- # @return [CompanyFundingSummaryResponse]
578
- def companies_company_funding_summary(id, opts = {})
579
- data, _status_code, _headers = companies_company_funding_summary_with_http_info(id, opts)
3264
+ # @return [OwnershipSourceCoverageResponse]
3265
+ def companies_ownership_source_coverage(id, opts = {})
3266
+ data, _status_code, _headers = companies_ownership_source_coverage_with_http_info(id, opts)
580
3267
  data
581
3268
  end
582
3269
 
583
- # Company funding summary
3270
+ # Ownership source coverage
584
3271
  # @param id [String]
585
3272
  # @param [Hash] opts the optional parameters
586
3273
  # @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.
@@ -589,21 +3276,21 @@ module PharmaObservatory
589
3276
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
590
3277
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
591
3278
  # @option opts [String] :scope company (this company only) or group (its corporate group).
592
- # @return [Array<(CompanyFundingSummaryResponse, Integer, Hash)>] CompanyFundingSummaryResponse data, response status code and response headers
593
- def companies_company_funding_summary_with_http_info(id, opts = {})
3279
+ # @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
3280
+ def companies_ownership_source_coverage_with_http_info(id, opts = {})
594
3281
  if @api_client.config.debugging
595
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_summary ...'
3282
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_source_coverage ...'
596
3283
  end
597
3284
  # verify the required parameter 'id' is set
598
3285
  if @api_client.config.client_side_validation && id.nil?
599
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_summary"
3286
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_source_coverage"
600
3287
  end
601
3288
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
602
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be smaller than or equal to 500.'
3289
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be smaller than or equal to 500.'
603
3290
  end
604
3291
 
605
3292
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
606
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be greater than or equal to 1.'
3293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be greater than or equal to 1.'
607
3294
  end
608
3295
 
609
3296
  allowable_values = ["company", "group"]
@@ -611,7 +3298,7 @@ module PharmaObservatory
611
3298
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
612
3299
  end
613
3300
  # resource path
614
- local_var_path = '/api/v1/companies/{id}/company_funding_summary'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3301
+ local_var_path = '/api/v1/companies/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
615
3302
 
616
3303
  # query parameters
617
3304
  query_params = opts[:query_params] || {}
@@ -634,13 +3321,13 @@ module PharmaObservatory
634
3321
  post_body = opts[:debug_body]
635
3322
 
636
3323
  # return_type
637
- return_type = opts[:debug_return_type] || 'CompanyFundingSummaryResponse'
3324
+ return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
638
3325
 
639
3326
  # auth_names
640
3327
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
641
3328
 
642
3329
  new_options = opts.merge(
643
- :operation => :"CompaniesApi.companies_company_funding_summary",
3330
+ :operation => :"CompaniesApi.companies_ownership_source_coverage",
644
3331
  :header_params => header_params,
645
3332
  :query_params => query_params,
646
3333
  :form_params => form_params,
@@ -651,12 +3338,12 @@ module PharmaObservatory
651
3338
 
652
3339
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
653
3340
  if @api_client.config.debugging
654
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3341
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
3342
  end
656
3343
  return data, status_code, headers
657
3344
  end
658
3345
 
659
- # Company members
3346
+ # FDA decision dates (PDUFA) and catalysts
660
3347
  # @param id [String]
661
3348
  # @param [Hash] opts the optional parameters
662
3349
  # @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.
@@ -665,13 +3352,13 @@ module PharmaObservatory
665
3352
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
666
3353
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
667
3354
  # @option opts [String] :scope company (this company only) or group (its corporate group).
668
- # @return [CompanyMembersResponse]
669
- def companies_company_members(id, opts = {})
670
- data, _status_code, _headers = companies_company_members_with_http_info(id, opts)
3355
+ # @return [PdufaDatesResponse]
3356
+ def companies_pdufa_dates(id, opts = {})
3357
+ data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
671
3358
  data
672
3359
  end
673
3360
 
674
- # Company members
3361
+ # FDA decision dates (PDUFA) and catalysts
675
3362
  # @param id [String]
676
3363
  # @param [Hash] opts the optional parameters
677
3364
  # @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.
@@ -680,21 +3367,21 @@ module PharmaObservatory
680
3367
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
681
3368
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
682
3369
  # @option opts [String] :scope company (this company only) or group (its corporate group).
683
- # @return [Array<(CompanyMembersResponse, Integer, Hash)>] CompanyMembersResponse data, response status code and response headers
684
- def companies_company_members_with_http_info(id, opts = {})
3370
+ # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
3371
+ def companies_pdufa_dates_with_http_info(id, opts = {})
685
3372
  if @api_client.config.debugging
686
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_members ...'
3373
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
687
3374
  end
688
3375
  # verify the required parameter 'id' is set
689
3376
  if @api_client.config.client_side_validation && id.nil?
690
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_members"
3377
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
691
3378
  end
692
3379
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
693
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be smaller than or equal to 500.'
3380
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
694
3381
  end
695
3382
 
696
3383
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
697
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be greater than or equal to 1.'
3384
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
698
3385
  end
699
3386
 
700
3387
  allowable_values = ["company", "group"]
@@ -702,7 +3389,7 @@ module PharmaObservatory
702
3389
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
703
3390
  end
704
3391
  # resource path
705
- local_var_path = '/api/v1/companies/{id}/company_members'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3392
+ local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
706
3393
 
707
3394
  # query parameters
708
3395
  query_params = opts[:query_params] || {}
@@ -725,13 +3412,13 @@ module PharmaObservatory
725
3412
  post_body = opts[:debug_body]
726
3413
 
727
3414
  # return_type
728
- return_type = opts[:debug_return_type] || 'CompanyMembersResponse'
3415
+ return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
729
3416
 
730
3417
  # auth_names
731
3418
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
732
3419
 
733
3420
  new_options = opts.merge(
734
- :operation => :"CompaniesApi.companies_company_members",
3421
+ :operation => :"CompaniesApi.companies_pdufa_dates",
735
3422
  :header_params => header_params,
736
3423
  :query_params => query_params,
737
3424
  :form_params => form_params,
@@ -742,12 +3429,12 @@ module PharmaObservatory
742
3429
 
743
3430
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
744
3431
  if @api_client.config.debugging
745
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3432
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
746
3433
  end
747
3434
  return data, status_code, headers
748
3435
  end
749
3436
 
750
- # Company programs
3437
+ # Program licensing candidates
751
3438
  # @param id [String]
752
3439
  # @param [Hash] opts the optional parameters
753
3440
  # @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.
@@ -756,13 +3443,13 @@ module PharmaObservatory
756
3443
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
757
3444
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
758
3445
  # @option opts [String] :scope company (this company only) or group (its corporate group).
759
- # @return [CompanyProgramsResponse]
760
- def companies_company_programs(id, opts = {})
761
- data, _status_code, _headers = companies_company_programs_with_http_info(id, opts)
3446
+ # @return [ProgramLicensingCandidatesResponse]
3447
+ def companies_program_licensing_candidates(id, opts = {})
3448
+ data, _status_code, _headers = companies_program_licensing_candidates_with_http_info(id, opts)
762
3449
  data
763
3450
  end
764
3451
 
765
- # Company programs
3452
+ # Program licensing candidates
766
3453
  # @param id [String]
767
3454
  # @param [Hash] opts the optional parameters
768
3455
  # @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.
@@ -771,21 +3458,21 @@ module PharmaObservatory
771
3458
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
772
3459
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
773
3460
  # @option opts [String] :scope company (this company only) or group (its corporate group).
774
- # @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
775
- def companies_company_programs_with_http_info(id, opts = {})
3461
+ # @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
3462
+ def companies_program_licensing_candidates_with_http_info(id, opts = {})
776
3463
  if @api_client.config.debugging
777
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_programs ...'
3464
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_program_licensing_candidates ...'
778
3465
  end
779
3466
  # verify the required parameter 'id' is set
780
3467
  if @api_client.config.client_side_validation && id.nil?
781
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_programs"
3468
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_program_licensing_candidates"
782
3469
  end
783
3470
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
784
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be smaller than or equal to 500.'
3471
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be smaller than or equal to 500.'
785
3472
  end
786
3473
 
787
3474
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
788
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be greater than or equal to 1.'
3475
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be greater than or equal to 1.'
789
3476
  end
790
3477
 
791
3478
  allowable_values = ["company", "group"]
@@ -793,7 +3480,7 @@ module PharmaObservatory
793
3480
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
794
3481
  end
795
3482
  # resource path
796
- local_var_path = '/api/v1/companies/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3483
+ local_var_path = '/api/v1/companies/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
797
3484
 
798
3485
  # query parameters
799
3486
  query_params = opts[:query_params] || {}
@@ -816,13 +3503,13 @@ module PharmaObservatory
816
3503
  post_body = opts[:debug_body]
817
3504
 
818
3505
  # return_type
819
- return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
3506
+ return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
820
3507
 
821
3508
  # auth_names
822
3509
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
823
3510
 
824
3511
  new_options = opts.merge(
825
- :operation => :"CompaniesApi.companies_company_programs",
3512
+ :operation => :"CompaniesApi.companies_program_licensing_candidates",
826
3513
  :header_params => header_params,
827
3514
  :query_params => query_params,
828
3515
  :form_params => form_params,
@@ -833,12 +3520,12 @@ module PharmaObservatory
833
3520
 
834
3521
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
835
3522
  if @api_client.config.debugging
836
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3523
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
3524
  end
838
3525
  return data, status_code, headers
839
3526
  end
840
3527
 
841
- # Targets a company pursues
3528
+ # FDA recalls
842
3529
  # @param id [String]
843
3530
  # @param [Hash] opts the optional parameters
844
3531
  # @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.
@@ -847,13 +3534,13 @@ module PharmaObservatory
847
3534
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
848
3535
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
849
3536
  # @option opts [String] :scope company (this company only) or group (its corporate group).
850
- # @return [CompanyTargetsResponse]
851
- def companies_company_targets(id, opts = {})
852
- data, _status_code, _headers = companies_company_targets_with_http_info(id, opts)
3537
+ # @return [RecallsResponse]
3538
+ def companies_recalls(id, opts = {})
3539
+ data, _status_code, _headers = companies_recalls_with_http_info(id, opts)
853
3540
  data
854
3541
  end
855
3542
 
856
- # Targets a company pursues
3543
+ # FDA recalls
857
3544
  # @param id [String]
858
3545
  # @param [Hash] opts the optional parameters
859
3546
  # @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.
@@ -862,21 +3549,21 @@ module PharmaObservatory
862
3549
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
863
3550
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
864
3551
  # @option opts [String] :scope company (this company only) or group (its corporate group).
865
- # @return [Array<(CompanyTargetsResponse, Integer, Hash)>] CompanyTargetsResponse data, response status code and response headers
866
- def companies_company_targets_with_http_info(id, opts = {})
3552
+ # @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
3553
+ def companies_recalls_with_http_info(id, opts = {})
867
3554
  if @api_client.config.debugging
868
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_targets ...'
3555
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_recalls ...'
869
3556
  end
870
3557
  # verify the required parameter 'id' is set
871
3558
  if @api_client.config.client_side_validation && id.nil?
872
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_targets"
3559
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_recalls"
873
3560
  end
874
3561
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
875
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be smaller than or equal to 500.'
3562
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be smaller than or equal to 500.'
876
3563
  end
877
3564
 
878
3565
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
879
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be greater than or equal to 1.'
3566
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be greater than or equal to 1.'
880
3567
  end
881
3568
 
882
3569
  allowable_values = ["company", "group"]
@@ -884,7 +3571,7 @@ module PharmaObservatory
884
3571
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
885
3572
  end
886
3573
  # resource path
887
- local_var_path = '/api/v1/companies/{id}/company_targets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3574
+ local_var_path = '/api/v1/companies/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
888
3575
 
889
3576
  # query parameters
890
3577
  query_params = opts[:query_params] || {}
@@ -907,13 +3594,13 @@ module PharmaObservatory
907
3594
  post_body = opts[:debug_body]
908
3595
 
909
3596
  # return_type
910
- return_type = opts[:debug_return_type] || 'CompanyTargetsResponse'
3597
+ return_type = opts[:debug_return_type] || 'RecallsResponse'
911
3598
 
912
3599
  # auth_names
913
3600
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
914
3601
 
915
3602
  new_options = opts.merge(
916
- :operation => :"CompaniesApi.companies_company_targets",
3603
+ :operation => :"CompaniesApi.companies_recalls",
917
3604
  :header_params => header_params,
918
3605
  :query_params => query_params,
919
3606
  :form_params => form_params,
@@ -924,12 +3611,12 @@ module PharmaObservatory
924
3611
 
925
3612
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
926
3613
  if @api_client.config.debugging
927
- @api_client.config.logger.debug "API called: CompaniesApi#companies_company_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3614
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
928
3615
  end
929
3616
  return data, status_code, headers
930
3617
  end
931
3618
 
932
- # Patent-cliff exposure
3619
+ # SBTi cross-check
933
3620
  # @param id [String]
934
3621
  # @param [Hash] opts the optional parameters
935
3622
  # @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.
@@ -938,13 +3625,13 @@ module PharmaObservatory
938
3625
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
939
3626
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
940
3627
  # @option opts [String] :scope company (this company only) or group (its corporate group).
941
- # @return [DrugPatentCliffResponse]
942
- def companies_drug_patent_cliff(id, opts = {})
943
- data, _status_code, _headers = companies_drug_patent_cliff_with_http_info(id, opts)
3628
+ # @return [SbtiCrosscheckResponse]
3629
+ def companies_sbti_crosscheck(id, opts = {})
3630
+ data, _status_code, _headers = companies_sbti_crosscheck_with_http_info(id, opts)
944
3631
  data
945
3632
  end
946
3633
 
947
- # Patent-cliff exposure
3634
+ # SBTi cross-check
948
3635
  # @param id [String]
949
3636
  # @param [Hash] opts the optional parameters
950
3637
  # @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.
@@ -953,21 +3640,21 @@ module PharmaObservatory
953
3640
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
954
3641
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
955
3642
  # @option opts [String] :scope company (this company only) or group (its corporate group).
956
- # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
957
- def companies_drug_patent_cliff_with_http_info(id, opts = {})
3643
+ # @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
3644
+ def companies_sbti_crosscheck_with_http_info(id, opts = {})
958
3645
  if @api_client.config.debugging
959
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_drug_patent_cliff ...'
3646
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sbti_crosscheck ...'
960
3647
  end
961
3648
  # verify the required parameter 'id' is set
962
3649
  if @api_client.config.client_side_validation && id.nil?
963
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_drug_patent_cliff"
3650
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sbti_crosscheck"
964
3651
  end
965
3652
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
966
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be smaller than or equal to 500.'
3653
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be smaller than or equal to 500.'
967
3654
  end
968
3655
 
969
3656
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
970
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be greater than or equal to 1.'
3657
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be greater than or equal to 1.'
971
3658
  end
972
3659
 
973
3660
  allowable_values = ["company", "group"]
@@ -975,7 +3662,7 @@ module PharmaObservatory
975
3662
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
976
3663
  end
977
3664
  # resource path
978
- local_var_path = '/api/v1/companies/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3665
+ local_var_path = '/api/v1/companies/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
979
3666
 
980
3667
  # query parameters
981
3668
  query_params = opts[:query_params] || {}
@@ -998,13 +3685,13 @@ module PharmaObservatory
998
3685
  post_body = opts[:debug_body]
999
3686
 
1000
3687
  # return_type
1001
- return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
3688
+ return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
1002
3689
 
1003
3690
  # auth_names
1004
3691
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1005
3692
 
1006
3693
  new_options = opts.merge(
1007
- :operation => :"CompaniesApi.companies_drug_patent_cliff",
3694
+ :operation => :"CompaniesApi.companies_sbti_crosscheck",
1008
3695
  :header_params => header_params,
1009
3696
  :query_params => query_params,
1010
3697
  :form_params => form_params,
@@ -1015,37 +3702,67 @@ module PharmaObservatory
1015
3702
 
1016
3703
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1017
3704
  if @api_client.config.debugging
1018
- @api_client.config.logger.debug "API called: CompaniesApi#companies_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3705
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1019
3706
  end
1020
3707
  return data, status_code, headers
1021
3708
  end
1022
3709
 
1023
- # One company
3710
+ # FDA dates disclosed in SEC filings
1024
3711
  # @param id [String]
1025
3712
  # @param [Hash] opts the optional parameters
1026
- # @return [CompaniesRecord]
1027
- def companies_get(id, opts = {})
1028
- data, _status_code, _headers = companies_get_with_http_info(id, opts)
3713
+ # @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.
3714
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3715
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3716
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3717
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3718
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3719
+ # @return [SecPdufaDatesResponse]
3720
+ def companies_sec_pdufa_dates(id, opts = {})
3721
+ data, _status_code, _headers = companies_sec_pdufa_dates_with_http_info(id, opts)
1029
3722
  data
1030
3723
  end
1031
3724
 
1032
- # One company
3725
+ # FDA dates disclosed in SEC filings
1033
3726
  # @param id [String]
1034
3727
  # @param [Hash] opts the optional parameters
1035
- # @return [Array<(CompaniesRecord, Integer, Hash)>] CompaniesRecord data, response status code and response headers
1036
- def companies_get_with_http_info(id, opts = {})
3728
+ # @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.
3729
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3730
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3731
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3732
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3733
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3734
+ # @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
3735
+ def companies_sec_pdufa_dates_with_http_info(id, opts = {})
1037
3736
  if @api_client.config.debugging
1038
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
3737
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sec_pdufa_dates ...'
1039
3738
  end
1040
3739
  # verify the required parameter 'id' is set
1041
3740
  if @api_client.config.client_side_validation && id.nil?
1042
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
3741
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sec_pdufa_dates"
3742
+ end
3743
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
3744
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be smaller than or equal to 500.'
3745
+ end
3746
+
3747
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
3748
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be greater than or equal to 1.'
3749
+ end
3750
+
3751
+ allowable_values = ["company", "group"]
3752
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
3753
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1043
3754
  end
1044
3755
  # resource path
1045
- local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3756
+ local_var_path = '/api/v1/companies/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1046
3757
 
1047
3758
  # query parameters
1048
3759
  query_params = opts[:query_params] || {}
3760
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
3761
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
3762
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
3763
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
3764
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
3765
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1049
3766
 
1050
3767
  # header parameters
1051
3768
  header_params = opts[:header_params] || {}
@@ -1059,13 +3776,13 @@ module PharmaObservatory
1059
3776
  post_body = opts[:debug_body]
1060
3777
 
1061
3778
  # return_type
1062
- return_type = opts[:debug_return_type] || 'CompaniesRecord'
3779
+ return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
1063
3780
 
1064
3781
  # auth_names
1065
3782
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1066
3783
 
1067
3784
  new_options = opts.merge(
1068
- :operation => :"CompaniesApi.companies_get",
3785
+ :operation => :"CompaniesApi.companies_sec_pdufa_dates",
1069
3786
  :header_params => header_params,
1070
3787
  :query_params => query_params,
1071
3788
  :form_params => form_params,
@@ -1076,12 +3793,12 @@ module PharmaObservatory
1076
3793
 
1077
3794
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1078
3795
  if @api_client.config.debugging
1079
- @api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3796
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1080
3797
  end
1081
3798
  return data, status_code, headers
1082
3799
  end
1083
3800
 
1084
- # Institutional holdings (SEC Form 13F)
3801
+ # Sponsor delivery reliability
1085
3802
  # @param id [String]
1086
3803
  # @param [Hash] opts the optional parameters
1087
3804
  # @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 +3807,13 @@ module PharmaObservatory
1090
3807
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1091
3808
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1092
3809
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1093
- # @return [InstitutionalHoldingsResponse]
1094
- def companies_institutional_holdings(id, opts = {})
1095
- data, _status_code, _headers = companies_institutional_holdings_with_http_info(id, opts)
3810
+ # @return [SponsorDeliveryResponse]
3811
+ def companies_sponsor_delivery(id, opts = {})
3812
+ data, _status_code, _headers = companies_sponsor_delivery_with_http_info(id, opts)
1096
3813
  data
1097
3814
  end
1098
3815
 
1099
- # Institutional holdings (SEC Form 13F)
3816
+ # Sponsor delivery reliability
1100
3817
  # @param id [String]
1101
3818
  # @param [Hash] opts the optional parameters
1102
3819
  # @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.
@@ -1105,21 +3822,21 @@ module PharmaObservatory
1105
3822
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1106
3823
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1107
3824
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1108
- # @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1109
- def companies_institutional_holdings_with_http_info(id, opts = {})
3825
+ # @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
3826
+ def companies_sponsor_delivery_with_http_info(id, opts = {})
1110
3827
  if @api_client.config.debugging
1111
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_holdings ...'
3828
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_delivery ...'
1112
3829
  end
1113
3830
  # verify the required parameter 'id' is set
1114
3831
  if @api_client.config.client_side_validation && id.nil?
1115
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_holdings"
3832
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_delivery"
1116
3833
  end
1117
3834
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1118
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be smaller than or equal to 500.'
3835
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be smaller than or equal to 500.'
1119
3836
  end
1120
3837
 
1121
3838
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1122
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be greater than or equal to 1.'
3839
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be greater than or equal to 1.'
1123
3840
  end
1124
3841
 
1125
3842
  allowable_values = ["company", "group"]
@@ -1127,7 +3844,7 @@ module PharmaObservatory
1127
3844
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1128
3845
  end
1129
3846
  # resource path
1130
- local_var_path = '/api/v1/companies/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3847
+ local_var_path = '/api/v1/companies/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1131
3848
 
1132
3849
  # query parameters
1133
3850
  query_params = opts[:query_params] || {}
@@ -1150,13 +3867,13 @@ module PharmaObservatory
1150
3867
  post_body = opts[:debug_body]
1151
3868
 
1152
3869
  # return_type
1153
- return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
3870
+ return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
1154
3871
 
1155
3872
  # auth_names
1156
3873
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1157
3874
 
1158
3875
  new_options = opts.merge(
1159
- :operation => :"CompaniesApi.companies_institutional_holdings",
3876
+ :operation => :"CompaniesApi.companies_sponsor_delivery",
1160
3877
  :header_params => header_params,
1161
3878
  :query_params => query_params,
1162
3879
  :form_params => form_params,
@@ -1167,12 +3884,12 @@ module PharmaObservatory
1167
3884
 
1168
3885
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1169
3886
  if @api_client.config.debugging
1170
- @api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3887
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
3888
  end
1172
3889
  return data, status_code, headers
1173
3890
  end
1174
3891
 
1175
- # Legal entities
3892
+ # Sponsor patent mentions
1176
3893
  # @param id [String]
1177
3894
  # @param [Hash] opts the optional parameters
1178
3895
  # @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.
@@ -1181,13 +3898,13 @@ module PharmaObservatory
1181
3898
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1182
3899
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1183
3900
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1184
- # @return [LegalEntitiesResponse]
1185
- def companies_legal_entities(id, opts = {})
1186
- data, _status_code, _headers = companies_legal_entities_with_http_info(id, opts)
3901
+ # @return [SponsorPatentMentionsResponse]
3902
+ def companies_sponsor_patent_mentions(id, opts = {})
3903
+ data, _status_code, _headers = companies_sponsor_patent_mentions_with_http_info(id, opts)
1187
3904
  data
1188
3905
  end
1189
3906
 
1190
- # Legal entities
3907
+ # Sponsor patent mentions
1191
3908
  # @param id [String]
1192
3909
  # @param [Hash] opts the optional parameters
1193
3910
  # @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.
@@ -1196,21 +3913,21 @@ module PharmaObservatory
1196
3913
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1197
3914
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1198
3915
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1199
- # @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
1200
- def companies_legal_entities_with_http_info(id, opts = {})
3916
+ # @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
3917
+ def companies_sponsor_patent_mentions_with_http_info(id, opts = {})
1201
3918
  if @api_client.config.debugging
1202
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entities ...'
3919
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_patent_mentions ...'
1203
3920
  end
1204
3921
  # verify the required parameter 'id' is set
1205
3922
  if @api_client.config.client_side_validation && id.nil?
1206
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entities"
3923
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_patent_mentions"
1207
3924
  end
1208
3925
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1209
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be smaller than or equal to 500.'
3926
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be smaller than or equal to 500.'
1210
3927
  end
1211
3928
 
1212
3929
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1213
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be greater than or equal to 1.'
3930
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be greater than or equal to 1.'
1214
3931
  end
1215
3932
 
1216
3933
  allowable_values = ["company", "group"]
@@ -1218,7 +3935,7 @@ module PharmaObservatory
1218
3935
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1219
3936
  end
1220
3937
  # resource path
1221
- local_var_path = '/api/v1/companies/{id}/legal_entities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3938
+ local_var_path = '/api/v1/companies/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1222
3939
 
1223
3940
  # query parameters
1224
3941
  query_params = opts[:query_params] || {}
@@ -1241,13 +3958,13 @@ module PharmaObservatory
1241
3958
  post_body = opts[:debug_body]
1242
3959
 
1243
3960
  # return_type
1244
- return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
3961
+ return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
1245
3962
 
1246
3963
  # auth_names
1247
3964
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1248
3965
 
1249
3966
  new_options = opts.merge(
1250
- :operation => :"CompaniesApi.companies_legal_entities",
3967
+ :operation => :"CompaniesApi.companies_sponsor_patent_mentions",
1251
3968
  :header_params => header_params,
1252
3969
  :query_params => query_params,
1253
3970
  :form_params => form_params,
@@ -1258,46 +3975,58 @@ module PharmaObservatory
1258
3975
 
1259
3976
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1260
3977
  if @api_client.config.debugging
1261
- @api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3978
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1262
3979
  end
1263
3980
  return data, status_code, headers
1264
3981
  end
1265
3982
 
1266
- # List companies
3983
+ # Trial recruitment duration by sponsor and phase
3984
+ # @param id [String]
1267
3985
  # @param [Hash] opts the optional parameters
1268
3986
  # @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.
1269
3987
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1270
3988
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1271
3989
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1272
3990
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1273
- # @return [CompaniesResponse]
1274
- def companies_list(opts = {})
1275
- data, _status_code, _headers = companies_list_with_http_info(opts)
3991
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3992
+ # @return [SponsorRecruitmentByPhaseResponse]
3993
+ def companies_sponsor_recruitment_by_phase(id, opts = {})
3994
+ data, _status_code, _headers = companies_sponsor_recruitment_by_phase_with_http_info(id, opts)
1276
3995
  data
1277
3996
  end
1278
3997
 
1279
- # List companies
3998
+ # Trial recruitment duration by sponsor and phase
3999
+ # @param id [String]
1280
4000
  # @param [Hash] opts the optional parameters
1281
4001
  # @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.
1282
4002
  # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1283
4003
  # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1284
4004
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1285
4005
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1286
- # @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
1287
- def companies_list_with_http_info(opts = {})
4006
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
4007
+ # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
4008
+ def companies_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
1288
4009
  if @api_client.config.debugging
1289
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
4010
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
4011
+ end
4012
+ # verify the required parameter 'id' is set
4013
+ if @api_client.config.client_side_validation && id.nil?
4014
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
1290
4015
  end
1291
4016
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1292
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be smaller than or equal to 500.'
4017
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
1293
4018
  end
1294
4019
 
1295
4020
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1296
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be greater than or equal to 1.'
4021
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
1297
4022
  end
1298
4023
 
4024
+ allowable_values = ["company", "group"]
4025
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
4026
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
4027
+ end
1299
4028
  # resource path
1300
- local_var_path = '/api/v1/companies'
4029
+ local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1301
4030
 
1302
4031
  # query parameters
1303
4032
  query_params = opts[:query_params] || {}
@@ -1306,6 +4035,7 @@ module PharmaObservatory
1306
4035
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1307
4036
  query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1308
4037
  query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
4038
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1309
4039
 
1310
4040
  # header parameters
1311
4041
  header_params = opts[:header_params] || {}
@@ -1319,13 +4049,13 @@ module PharmaObservatory
1319
4049
  post_body = opts[:debug_body]
1320
4050
 
1321
4051
  # return_type
1322
- return_type = opts[:debug_return_type] || 'CompaniesResponse'
4052
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
1323
4053
 
1324
4054
  # auth_names
1325
4055
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1326
4056
 
1327
4057
  new_options = opts.merge(
1328
- :operation => :"CompaniesApi.companies_list",
4058
+ :operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
1329
4059
  :header_params => header_params,
1330
4060
  :query_params => query_params,
1331
4061
  :form_params => form_params,
@@ -1336,12 +4066,12 @@ module PharmaObservatory
1336
4066
 
1337
4067
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1338
4068
  if @api_client.config.debugging
1339
- @api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4069
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1340
4070
  end
1341
4071
  return data, status_code, headers
1342
4072
  end
1343
4073
 
1344
- # Organization disclosures (climate and diversity)
4074
+ # Trial recruitment duration by sponsor
1345
4075
  # @param id [String]
1346
4076
  # @param [Hash] opts the optional parameters
1347
4077
  # @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.
@@ -1350,13 +4080,13 @@ module PharmaObservatory
1350
4080
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1351
4081
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1352
4082
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1353
- # @return [OrgDisclosuresResponse]
1354
- def companies_org_disclosures(id, opts = {})
1355
- data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
4083
+ # @return [SponsorRecruitmentDurationResponse]
4084
+ def companies_sponsor_recruitment_duration(id, opts = {})
4085
+ data, _status_code, _headers = companies_sponsor_recruitment_duration_with_http_info(id, opts)
1356
4086
  data
1357
4087
  end
1358
4088
 
1359
- # Organization disclosures (climate and diversity)
4089
+ # Trial recruitment duration by sponsor
1360
4090
  # @param id [String]
1361
4091
  # @param [Hash] opts the optional parameters
1362
4092
  # @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.
@@ -1365,21 +4095,21 @@ module PharmaObservatory
1365
4095
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1366
4096
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1367
4097
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1368
- # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
1369
- def companies_org_disclosures_with_http_info(id, opts = {})
4098
+ # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
4099
+ def companies_sponsor_recruitment_duration_with_http_info(id, opts = {})
1370
4100
  if @api_client.config.debugging
1371
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
4101
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
1372
4102
  end
1373
4103
  # verify the required parameter 'id' is set
1374
4104
  if @api_client.config.client_side_validation && id.nil?
1375
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
4105
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
1376
4106
  end
1377
4107
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1378
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
4108
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
1379
4109
  end
1380
4110
 
1381
4111
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1382
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be greater than or equal to 1.'
4112
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
1383
4113
  end
1384
4114
 
1385
4115
  allowable_values = ["company", "group"]
@@ -1387,7 +4117,7 @@ module PharmaObservatory
1387
4117
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1388
4118
  end
1389
4119
  # resource path
1390
- local_var_path = '/api/v1/companies/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4120
+ local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1391
4121
 
1392
4122
  # query parameters
1393
4123
  query_params = opts[:query_params] || {}
@@ -1410,13 +4140,13 @@ module PharmaObservatory
1410
4140
  post_body = opts[:debug_body]
1411
4141
 
1412
4142
  # return_type
1413
- return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
4143
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
1414
4144
 
1415
4145
  # auth_names
1416
4146
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1417
4147
 
1418
4148
  new_options = opts.merge(
1419
- :operation => :"CompaniesApi.companies_org_disclosures",
4149
+ :operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
1420
4150
  :header_params => header_params,
1421
4151
  :query_params => query_params,
1422
4152
  :form_params => form_params,
@@ -1427,12 +4157,12 @@ module PharmaObservatory
1427
4157
 
1428
4158
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1429
4159
  if @api_client.config.debugging
1430
- @api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4160
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1431
4161
  end
1432
4162
  return data, status_code, headers
1433
4163
  end
1434
4164
 
1435
- # Organization relationships
4165
+ # Sponsor trial conditions
1436
4166
  # @param id [String]
1437
4167
  # @param [Hash] opts the optional parameters
1438
4168
  # @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.
@@ -1441,13 +4171,13 @@ module PharmaObservatory
1441
4171
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1442
4172
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1443
4173
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1444
- # @return [OrgRelationshipsResponse]
1445
- def companies_org_relationships(id, opts = {})
1446
- data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
4174
+ # @return [SponsorTrialConditionsResponse]
4175
+ def companies_sponsor_trial_conditions(id, opts = {})
4176
+ data, _status_code, _headers = companies_sponsor_trial_conditions_with_http_info(id, opts)
1447
4177
  data
1448
4178
  end
1449
4179
 
1450
- # Organization relationships
4180
+ # Sponsor trial conditions
1451
4181
  # @param id [String]
1452
4182
  # @param [Hash] opts the optional parameters
1453
4183
  # @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.
@@ -1456,21 +4186,21 @@ module PharmaObservatory
1456
4186
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1457
4187
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1458
4188
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1459
- # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
1460
- def companies_org_relationships_with_http_info(id, opts = {})
4189
+ # @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
4190
+ def companies_sponsor_trial_conditions_with_http_info(id, opts = {})
1461
4191
  if @api_client.config.debugging
1462
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
4192
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_conditions ...'
1463
4193
  end
1464
4194
  # verify the required parameter 'id' is set
1465
4195
  if @api_client.config.client_side_validation && id.nil?
1466
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_relationships"
4196
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_conditions"
1467
4197
  end
1468
4198
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1469
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be smaller than or equal to 500.'
4199
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be smaller than or equal to 500.'
1470
4200
  end
1471
4201
 
1472
4202
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1473
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be greater than or equal to 1.'
4203
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be greater than or equal to 1.'
1474
4204
  end
1475
4205
 
1476
4206
  allowable_values = ["company", "group"]
@@ -1478,7 +4208,7 @@ module PharmaObservatory
1478
4208
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1479
4209
  end
1480
4210
  # resource path
1481
- local_var_path = '/api/v1/companies/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4211
+ local_var_path = '/api/v1/companies/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1482
4212
 
1483
4213
  # query parameters
1484
4214
  query_params = opts[:query_params] || {}
@@ -1501,13 +4231,13 @@ module PharmaObservatory
1501
4231
  post_body = opts[:debug_body]
1502
4232
 
1503
4233
  # return_type
1504
- return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
4234
+ return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
1505
4235
 
1506
4236
  # auth_names
1507
4237
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1508
4238
 
1509
4239
  new_options = opts.merge(
1510
- :operation => :"CompaniesApi.companies_org_relationships",
4240
+ :operation => :"CompaniesApi.companies_sponsor_trial_conditions",
1511
4241
  :header_params => header_params,
1512
4242
  :query_params => query_params,
1513
4243
  :form_params => form_params,
@@ -1518,12 +4248,12 @@ module PharmaObservatory
1518
4248
 
1519
4249
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1520
4250
  if @api_client.config.debugging
1521
- @api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4251
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1522
4252
  end
1523
4253
  return data, status_code, headers
1524
4254
  end
1525
4255
 
1526
- # Ownership and control positions
4256
+ # Sponsor trial drugs
1527
4257
  # @param id [String]
1528
4258
  # @param [Hash] opts the optional parameters
1529
4259
  # @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.
@@ -1532,13 +4262,13 @@ module PharmaObservatory
1532
4262
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1533
4263
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1534
4264
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1535
- # @return [OwnershipPositionsResponse]
1536
- def companies_ownership_positions(id, opts = {})
1537
- data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
4265
+ # @return [SponsorTrialDrugsResponse]
4266
+ def companies_sponsor_trial_drugs(id, opts = {})
4267
+ data, _status_code, _headers = companies_sponsor_trial_drugs_with_http_info(id, opts)
1538
4268
  data
1539
4269
  end
1540
4270
 
1541
- # Ownership and control positions
4271
+ # Sponsor trial drugs
1542
4272
  # @param id [String]
1543
4273
  # @param [Hash] opts the optional parameters
1544
4274
  # @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.
@@ -1547,21 +4277,21 @@ module PharmaObservatory
1547
4277
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1548
4278
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1549
4279
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1550
- # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
1551
- def companies_ownership_positions_with_http_info(id, opts = {})
4280
+ # @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
4281
+ def companies_sponsor_trial_drugs_with_http_info(id, opts = {})
1552
4282
  if @api_client.config.debugging
1553
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
4283
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_drugs ...'
1554
4284
  end
1555
4285
  # verify the required parameter 'id' is set
1556
4286
  if @api_client.config.client_side_validation && id.nil?
1557
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
4287
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_drugs"
1558
4288
  end
1559
4289
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1560
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
4290
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be smaller than or equal to 500.'
1561
4291
  end
1562
4292
 
1563
4293
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1564
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
4294
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be greater than or equal to 1.'
1565
4295
  end
1566
4296
 
1567
4297
  allowable_values = ["company", "group"]
@@ -1569,7 +4299,7 @@ module PharmaObservatory
1569
4299
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1570
4300
  end
1571
4301
  # resource path
1572
- local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4302
+ local_var_path = '/api/v1/companies/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1573
4303
 
1574
4304
  # query parameters
1575
4305
  query_params = opts[:query_params] || {}
@@ -1592,13 +4322,13 @@ module PharmaObservatory
1592
4322
  post_body = opts[:debug_body]
1593
4323
 
1594
4324
  # return_type
1595
- return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
4325
+ return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
1596
4326
 
1597
4327
  # auth_names
1598
4328
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1599
4329
 
1600
4330
  new_options = opts.merge(
1601
- :operation => :"CompaniesApi.companies_ownership_positions",
4331
+ :operation => :"CompaniesApi.companies_sponsor_trial_drugs",
1602
4332
  :header_params => header_params,
1603
4333
  :query_params => query_params,
1604
4334
  :form_params => form_params,
@@ -1609,12 +4339,12 @@ module PharmaObservatory
1609
4339
 
1610
4340
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1611
4341
  if @api_client.config.debugging
1612
- @api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4342
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1613
4343
  end
1614
4344
  return data, status_code, headers
1615
4345
  end
1616
4346
 
1617
- # FDA decision dates (PDUFA) and catalysts
4347
+ # Trial-start forecast by sponsor
1618
4348
  # @param id [String]
1619
4349
  # @param [Hash] opts the optional parameters
1620
4350
  # @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.
@@ -1623,13 +4353,13 @@ module PharmaObservatory
1623
4353
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1624
4354
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1625
4355
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1626
- # @return [PdufaDatesResponse]
1627
- def companies_pdufa_dates(id, opts = {})
1628
- data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
4356
+ # @return [SponsorTrialStartForecastResponse]
4357
+ def companies_sponsor_trial_start_forecast(id, opts = {})
4358
+ data, _status_code, _headers = companies_sponsor_trial_start_forecast_with_http_info(id, opts)
1629
4359
  data
1630
4360
  end
1631
4361
 
1632
- # FDA decision dates (PDUFA) and catalysts
4362
+ # Trial-start forecast by sponsor
1633
4363
  # @param id [String]
1634
4364
  # @param [Hash] opts the optional parameters
1635
4365
  # @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.
@@ -1638,21 +4368,21 @@ module PharmaObservatory
1638
4368
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1639
4369
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1640
4370
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1641
- # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
1642
- def companies_pdufa_dates_with_http_info(id, opts = {})
4371
+ # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
4372
+ def companies_sponsor_trial_start_forecast_with_http_info(id, opts = {})
1643
4373
  if @api_client.config.debugging
1644
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
4374
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_start_forecast ...'
1645
4375
  end
1646
4376
  # verify the required parameter 'id' is set
1647
4377
  if @api_client.config.client_side_validation && id.nil?
1648
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
4378
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_start_forecast"
1649
4379
  end
1650
4380
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1651
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
4381
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
1652
4382
  end
1653
4383
 
1654
4384
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1655
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
4385
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be greater than or equal to 1.'
1656
4386
  end
1657
4387
 
1658
4388
  allowable_values = ["company", "group"]
@@ -1660,7 +4390,7 @@ module PharmaObservatory
1660
4390
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1661
4391
  end
1662
4392
  # resource path
1663
- local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4393
+ local_var_path = '/api/v1/companies/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1664
4394
 
1665
4395
  # query parameters
1666
4396
  query_params = opts[:query_params] || {}
@@ -1683,13 +4413,13 @@ module PharmaObservatory
1683
4413
  post_body = opts[:debug_body]
1684
4414
 
1685
4415
  # return_type
1686
- return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
4416
+ return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
1687
4417
 
1688
4418
  # auth_names
1689
4419
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1690
4420
 
1691
4421
  new_options = opts.merge(
1692
- :operation => :"CompaniesApi.companies_pdufa_dates",
4422
+ :operation => :"CompaniesApi.companies_sponsor_trial_start_forecast",
1693
4423
  :header_params => header_params,
1694
4424
  :query_params => query_params,
1695
4425
  :form_params => form_params,
@@ -1700,12 +4430,12 @@ module PharmaObservatory
1700
4430
 
1701
4431
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1702
4432
  if @api_client.config.debugging
1703
- @api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4433
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1704
4434
  end
1705
4435
  return data, status_code, headers
1706
4436
  end
1707
4437
 
1708
- # Trial recruitment duration by sponsor and phase
4438
+ # Sponsor trials
1709
4439
  # @param id [String]
1710
4440
  # @param [Hash] opts the optional parameters
1711
4441
  # @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.
@@ -1714,13 +4444,13 @@ module PharmaObservatory
1714
4444
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1715
4445
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1716
4446
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1717
- # @return [SponsorRecruitmentByPhaseResponse]
1718
- def companies_sponsor_recruitment_by_phase(id, opts = {})
1719
- data, _status_code, _headers = companies_sponsor_recruitment_by_phase_with_http_info(id, opts)
4447
+ # @return [SponsorTrialsResponse]
4448
+ def companies_sponsor_trials(id, opts = {})
4449
+ data, _status_code, _headers = companies_sponsor_trials_with_http_info(id, opts)
1720
4450
  data
1721
4451
  end
1722
4452
 
1723
- # Trial recruitment duration by sponsor and phase
4453
+ # Sponsor trials
1724
4454
  # @param id [String]
1725
4455
  # @param [Hash] opts the optional parameters
1726
4456
  # @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.
@@ -1729,21 +4459,21 @@ module PharmaObservatory
1729
4459
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1730
4460
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1731
4461
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1732
- # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
1733
- def companies_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
4462
+ # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
4463
+ def companies_sponsor_trials_with_http_info(id, opts = {})
1734
4464
  if @api_client.config.debugging
1735
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
4465
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trials ...'
1736
4466
  end
1737
4467
  # verify the required parameter 'id' is set
1738
4468
  if @api_client.config.client_side_validation && id.nil?
1739
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
4469
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trials"
1740
4470
  end
1741
4471
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1742
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
4472
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be smaller than or equal to 500.'
1743
4473
  end
1744
4474
 
1745
4475
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1746
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
4476
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be greater than or equal to 1.'
1747
4477
  end
1748
4478
 
1749
4479
  allowable_values = ["company", "group"]
@@ -1751,7 +4481,7 @@ module PharmaObservatory
1751
4481
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1752
4482
  end
1753
4483
  # resource path
1754
- local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4484
+ local_var_path = '/api/v1/companies/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1755
4485
 
1756
4486
  # query parameters
1757
4487
  query_params = opts[:query_params] || {}
@@ -1774,13 +4504,13 @@ module PharmaObservatory
1774
4504
  post_body = opts[:debug_body]
1775
4505
 
1776
4506
  # return_type
1777
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
4507
+ return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
1778
4508
 
1779
4509
  # auth_names
1780
4510
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1781
4511
 
1782
4512
  new_options = opts.merge(
1783
- :operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
4513
+ :operation => :"CompaniesApi.companies_sponsor_trials",
1784
4514
  :header_params => header_params,
1785
4515
  :query_params => query_params,
1786
4516
  :form_params => form_params,
@@ -1791,12 +4521,12 @@ module PharmaObservatory
1791
4521
 
1792
4522
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1793
4523
  if @api_client.config.debugging
1794
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4524
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1795
4525
  end
1796
4526
  return data, status_code, headers
1797
4527
  end
1798
4528
 
1799
- # Trial recruitment duration by sponsor
4529
+ # Supplier capability and ESG disclosure
1800
4530
  # @param id [String]
1801
4531
  # @param [Hash] opts the optional parameters
1802
4532
  # @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.
@@ -1805,13 +4535,13 @@ module PharmaObservatory
1805
4535
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1806
4536
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1807
4537
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1808
- # @return [SponsorRecruitmentDurationResponse]
1809
- def companies_sponsor_recruitment_duration(id, opts = {})
1810
- data, _status_code, _headers = companies_sponsor_recruitment_duration_with_http_info(id, opts)
4538
+ # @return [SupplierCapabilityEsgResponse]
4539
+ def companies_supplier_capability_esg(id, opts = {})
4540
+ data, _status_code, _headers = companies_supplier_capability_esg_with_http_info(id, opts)
1811
4541
  data
1812
4542
  end
1813
4543
 
1814
- # Trial recruitment duration by sponsor
4544
+ # Supplier capability and ESG disclosure
1815
4545
  # @param id [String]
1816
4546
  # @param [Hash] opts the optional parameters
1817
4547
  # @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.
@@ -1820,21 +4550,21 @@ module PharmaObservatory
1820
4550
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1821
4551
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1822
4552
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1823
- # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
1824
- def companies_sponsor_recruitment_duration_with_http_info(id, opts = {})
4553
+ # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
4554
+ def companies_supplier_capability_esg_with_http_info(id, opts = {})
1825
4555
  if @api_client.config.debugging
1826
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
4556
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_supplier_capability_esg ...'
1827
4557
  end
1828
4558
  # verify the required parameter 'id' is set
1829
4559
  if @api_client.config.client_side_validation && id.nil?
1830
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
4560
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_supplier_capability_esg"
1831
4561
  end
1832
4562
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1833
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
4563
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be smaller than or equal to 500.'
1834
4564
  end
1835
4565
 
1836
4566
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1837
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
4567
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be greater than or equal to 1.'
1838
4568
  end
1839
4569
 
1840
4570
  allowable_values = ["company", "group"]
@@ -1842,7 +4572,7 @@ module PharmaObservatory
1842
4572
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1843
4573
  end
1844
4574
  # resource path
1845
- local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4575
+ local_var_path = '/api/v1/companies/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1846
4576
 
1847
4577
  # query parameters
1848
4578
  query_params = opts[:query_params] || {}
@@ -1865,13 +4595,13 @@ module PharmaObservatory
1865
4595
  post_body = opts[:debug_body]
1866
4596
 
1867
4597
  # return_type
1868
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
4598
+ return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
1869
4599
 
1870
4600
  # auth_names
1871
4601
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1872
4602
 
1873
4603
  new_options = opts.merge(
1874
- :operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
4604
+ :operation => :"CompaniesApi.companies_supplier_capability_esg",
1875
4605
  :header_params => header_params,
1876
4606
  :query_params => query_params,
1877
4607
  :form_params => form_params,
@@ -1882,12 +4612,12 @@ module PharmaObservatory
1882
4612
 
1883
4613
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1884
4614
  if @api_client.config.debugging
1885
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4615
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1886
4616
  end
1887
4617
  return data, status_code, headers
1888
4618
  end
1889
4619
 
1890
- # Trial-start forecast by sponsor
4620
+ # Unmatched product revenue
1891
4621
  # @param id [String]
1892
4622
  # @param [Hash] opts the optional parameters
1893
4623
  # @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.
@@ -1896,13 +4626,13 @@ module PharmaObservatory
1896
4626
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1897
4627
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1898
4628
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1899
- # @return [SponsorTrialStartForecastResponse]
1900
- def companies_sponsor_trial_start_forecast(id, opts = {})
1901
- data, _status_code, _headers = companies_sponsor_trial_start_forecast_with_http_info(id, opts)
4629
+ # @return [UnmatchedProductRevenueResponse]
4630
+ def companies_unmatched_product_revenue(id, opts = {})
4631
+ data, _status_code, _headers = companies_unmatched_product_revenue_with_http_info(id, opts)
1902
4632
  data
1903
4633
  end
1904
4634
 
1905
- # Trial-start forecast by sponsor
4635
+ # Unmatched product revenue
1906
4636
  # @param id [String]
1907
4637
  # @param [Hash] opts the optional parameters
1908
4638
  # @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.
@@ -1911,21 +4641,21 @@ module PharmaObservatory
1911
4641
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1912
4642
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1913
4643
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1914
- # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
1915
- def companies_sponsor_trial_start_forecast_with_http_info(id, opts = {})
4644
+ # @return [Array<(UnmatchedProductRevenueResponse, Integer, Hash)>] UnmatchedProductRevenueResponse data, response status code and response headers
4645
+ def companies_unmatched_product_revenue_with_http_info(id, opts = {})
1916
4646
  if @api_client.config.debugging
1917
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_start_forecast ...'
4647
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_unmatched_product_revenue ...'
1918
4648
  end
1919
4649
  # verify the required parameter 'id' is set
1920
4650
  if @api_client.config.client_side_validation && id.nil?
1921
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_start_forecast"
4651
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_unmatched_product_revenue"
1922
4652
  end
1923
4653
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1924
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
4654
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be smaller than or equal to 500.'
1925
4655
  end
1926
4656
 
1927
4657
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1928
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be greater than or equal to 1.'
4658
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be greater than or equal to 1.'
1929
4659
  end
1930
4660
 
1931
4661
  allowable_values = ["company", "group"]
@@ -1933,7 +4663,7 @@ module PharmaObservatory
1933
4663
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1934
4664
  end
1935
4665
  # resource path
1936
- local_var_path = '/api/v1/companies/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4666
+ local_var_path = '/api/v1/companies/{id}/unmatched_product_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1937
4667
 
1938
4668
  # query parameters
1939
4669
  query_params = opts[:query_params] || {}
@@ -1956,13 +4686,13 @@ module PharmaObservatory
1956
4686
  post_body = opts[:debug_body]
1957
4687
 
1958
4688
  # return_type
1959
- return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
4689
+ return_type = opts[:debug_return_type] || 'UnmatchedProductRevenueResponse'
1960
4690
 
1961
4691
  # auth_names
1962
4692
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1963
4693
 
1964
4694
  new_options = opts.merge(
1965
- :operation => :"CompaniesApi.companies_sponsor_trial_start_forecast",
4695
+ :operation => :"CompaniesApi.companies_unmatched_product_revenue",
1966
4696
  :header_params => header_params,
1967
4697
  :query_params => query_params,
1968
4698
  :form_params => form_params,
@@ -1973,12 +4703,12 @@ module PharmaObservatory
1973
4703
 
1974
4704
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1975
4705
  if @api_client.config.debugging
1976
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4706
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_unmatched_product_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1977
4707
  end
1978
4708
  return data, status_code, headers
1979
4709
  end
1980
4710
 
1981
- # Sponsor trials
4711
+ # FDA untitled letters
1982
4712
  # @param id [String]
1983
4713
  # @param [Hash] opts the optional parameters
1984
4714
  # @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.
@@ -1987,13 +4717,13 @@ module PharmaObservatory
1987
4717
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1988
4718
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1989
4719
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1990
- # @return [SponsorTrialsResponse]
1991
- def companies_sponsor_trials(id, opts = {})
1992
- data, _status_code, _headers = companies_sponsor_trials_with_http_info(id, opts)
4720
+ # @return [UntitledLettersResponse]
4721
+ def companies_untitled_letters(id, opts = {})
4722
+ data, _status_code, _headers = companies_untitled_letters_with_http_info(id, opts)
1993
4723
  data
1994
4724
  end
1995
4725
 
1996
- # Sponsor trials
4726
+ # FDA untitled letters
1997
4727
  # @param id [String]
1998
4728
  # @param [Hash] opts the optional parameters
1999
4729
  # @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.
@@ -2002,21 +4732,21 @@ module PharmaObservatory
2002
4732
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2003
4733
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2004
4734
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2005
- # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
2006
- def companies_sponsor_trials_with_http_info(id, opts = {})
4735
+ # @return [Array<(UntitledLettersResponse, Integer, Hash)>] UntitledLettersResponse data, response status code and response headers
4736
+ def companies_untitled_letters_with_http_info(id, opts = {})
2007
4737
  if @api_client.config.debugging
2008
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trials ...'
4738
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_untitled_letters ...'
2009
4739
  end
2010
4740
  # verify the required parameter 'id' is set
2011
4741
  if @api_client.config.client_side_validation && id.nil?
2012
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trials"
4742
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_untitled_letters"
2013
4743
  end
2014
4744
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2015
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be smaller than or equal to 500.'
4745
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be smaller than or equal to 500.'
2016
4746
  end
2017
4747
 
2018
4748
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2019
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be greater than or equal to 1.'
4749
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be greater than or equal to 1.'
2020
4750
  end
2021
4751
 
2022
4752
  allowable_values = ["company", "group"]
@@ -2024,7 +4754,7 @@ module PharmaObservatory
2024
4754
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2025
4755
  end
2026
4756
  # resource path
2027
- local_var_path = '/api/v1/companies/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4757
+ local_var_path = '/api/v1/companies/{id}/untitled_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2028
4758
 
2029
4759
  # query parameters
2030
4760
  query_params = opts[:query_params] || {}
@@ -2047,13 +4777,13 @@ module PharmaObservatory
2047
4777
  post_body = opts[:debug_body]
2048
4778
 
2049
4779
  # return_type
2050
- return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
4780
+ return_type = opts[:debug_return_type] || 'UntitledLettersResponse'
2051
4781
 
2052
4782
  # auth_names
2053
4783
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2054
4784
 
2055
4785
  new_options = opts.merge(
2056
- :operation => :"CompaniesApi.companies_sponsor_trials",
4786
+ :operation => :"CompaniesApi.companies_untitled_letters",
2057
4787
  :header_params => header_params,
2058
4788
  :query_params => query_params,
2059
4789
  :form_params => form_params,
@@ -2064,12 +4794,12 @@ module PharmaObservatory
2064
4794
 
2065
4795
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2066
4796
  if @api_client.config.debugging
2067
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4797
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_untitled_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2068
4798
  end
2069
4799
  return data, status_code, headers
2070
4800
  end
2071
4801
 
2072
- # Supplier capability and ESG disclosure
4802
+ # FDA warning letters
2073
4803
  # @param id [String]
2074
4804
  # @param [Hash] opts the optional parameters
2075
4805
  # @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.
@@ -2078,13 +4808,13 @@ module PharmaObservatory
2078
4808
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2079
4809
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2080
4810
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2081
- # @return [SupplierCapabilityEsgResponse]
2082
- def companies_supplier_capability_esg(id, opts = {})
2083
- data, _status_code, _headers = companies_supplier_capability_esg_with_http_info(id, opts)
4811
+ # @return [WarningLettersResponse]
4812
+ def companies_warning_letters(id, opts = {})
4813
+ data, _status_code, _headers = companies_warning_letters_with_http_info(id, opts)
2084
4814
  data
2085
4815
  end
2086
4816
 
2087
- # Supplier capability and ESG disclosure
4817
+ # FDA warning letters
2088
4818
  # @param id [String]
2089
4819
  # @param [Hash] opts the optional parameters
2090
4820
  # @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.
@@ -2093,21 +4823,21 @@ module PharmaObservatory
2093
4823
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2094
4824
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2095
4825
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2096
- # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
2097
- def companies_supplier_capability_esg_with_http_info(id, opts = {})
4826
+ # @return [Array<(WarningLettersResponse, Integer, Hash)>] WarningLettersResponse data, response status code and response headers
4827
+ def companies_warning_letters_with_http_info(id, opts = {})
2098
4828
  if @api_client.config.debugging
2099
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_supplier_capability_esg ...'
4829
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_warning_letters ...'
2100
4830
  end
2101
4831
  # verify the required parameter 'id' is set
2102
4832
  if @api_client.config.client_side_validation && id.nil?
2103
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_supplier_capability_esg"
4833
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_warning_letters"
2104
4834
  end
2105
4835
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2106
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be smaller than or equal to 500.'
4836
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_warning_letters, must be smaller than or equal to 500.'
2107
4837
  end
2108
4838
 
2109
4839
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2110
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be greater than or equal to 1.'
4840
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_warning_letters, must be greater than or equal to 1.'
2111
4841
  end
2112
4842
 
2113
4843
  allowable_values = ["company", "group"]
@@ -2115,7 +4845,7 @@ module PharmaObservatory
2115
4845
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2116
4846
  end
2117
4847
  # resource path
2118
- local_var_path = '/api/v1/companies/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4848
+ local_var_path = '/api/v1/companies/{id}/warning_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2119
4849
 
2120
4850
  # query parameters
2121
4851
  query_params = opts[:query_params] || {}
@@ -2138,13 +4868,13 @@ module PharmaObservatory
2138
4868
  post_body = opts[:debug_body]
2139
4869
 
2140
4870
  # return_type
2141
- return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
4871
+ return_type = opts[:debug_return_type] || 'WarningLettersResponse'
2142
4872
 
2143
4873
  # auth_names
2144
4874
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2145
4875
 
2146
4876
  new_options = opts.merge(
2147
- :operation => :"CompaniesApi.companies_supplier_capability_esg",
4877
+ :operation => :"CompaniesApi.companies_warning_letters",
2148
4878
  :header_params => header_params,
2149
4879
  :query_params => query_params,
2150
4880
  :form_params => form_params,
@@ -2155,7 +4885,7 @@ module PharmaObservatory
2155
4885
 
2156
4886
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2157
4887
  if @api_client.config.debugging
2158
- @api_client.config.logger.debug "API called: CompaniesApi#companies_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4888
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_warning_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2159
4889
  end
2160
4890
  return data, status_code, headers
2161
4891
  end