From 03ce4f479b9c3d330fd478d61c00c10a9b29cd84 Mon Sep 17 00:00:00 2001 From: Alex Read Date: Thu, 17 Jun 2021 12:34:55 -0500 Subject: [PATCH] No release notes for this build --- README.md | 2 +- docs/ApiResponseCompanyAnswers.md | 4 ++ docs/CompanyApi.md | 2 +- intrinio_sdk/api_client.py | 2 +- intrinio_sdk/configuration.py | 2 +- .../models/api_response_company_answers.py | 65 ++++++++++++++++++- setup.py | 2 +- 7 files changed, 71 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8998b4fb4..9efa370dd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ To get an API key, [sign up here](https://intrinio.com/). Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. - API version: 2.23.0 -- Package version: 5.13.1 +- Package version: 5.13.2 ## Requirements. diff --git a/docs/ApiResponseCompanyAnswers.md b/docs/ApiResponseCompanyAnswers.md index b82fdb876..89d6ee736 100644 --- a/docs/ApiResponseCompanyAnswers.md +++ b/docs/ApiResponseCompanyAnswers.md @@ -15,6 +15,7 @@ Name | Type | Description **source** | str | The organziation the answer data was sourced from   **query** | str | The query posed to the Thea API   **answers** | [**list[TheaEntityAnswer]**](TheaEntityAnswer.md) |   +**companies** | [**list[CompanySummary]**](CompanySummary.md) |   [//]: # (END_DEFINITION) @@ -22,4 +23,7 @@ Name | Type | Description [//]: # (CONTAINED_CLASS:TheaEntityAnswer) +[//]: # (CONTAINED_CLASS:CompanySummary) + + diff --git a/docs/CompanyApi.md b/docs/CompanyApi.md index 77cb41331..63687826c 100644 --- a/docs/CompanyApi.md +++ b/docs/CompanyApi.md @@ -316,7 +316,7 @@ intrinio.ApiClient().set_api_key('YOUR_API_KEY') intrinio.ApiClient().allow_retries(True) identifier = 'AAPL' -query = 'Where is the company headquartered?' +query = 'What do they believe in?' response = intrinio.CompanyApi().get_company_answers(identifier, query) print(response) diff --git a/intrinio_sdk/api_client.py b/intrinio_sdk/api_client.py index 93e86a198..229f28c1d 100644 --- a/intrinio_sdk/api_client.py +++ b/intrinio_sdk/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/5.13.1/python' + self.user_agent = 'Swagger-Codegen/5.13.2/python' def __del__(self): self.pool.close() diff --git a/intrinio_sdk/configuration.py b/intrinio_sdk/configuration.py index 7e4066c95..8ecdb34dc 100644 --- a/intrinio_sdk/configuration.py +++ b/intrinio_sdk/configuration.py @@ -246,5 +246,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.23.0\n"\ - "SDK Package Version: 5.13.1".\ + "SDK Package Version: 5.13.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/intrinio_sdk/models/api_response_company_answers.py b/intrinio_sdk/models/api_response_company_answers.py index 8409b8974..4f45a6e3f 100644 --- a/intrinio_sdk/models/api_response_company_answers.py +++ b/intrinio_sdk/models/api_response_company_answers.py @@ -16,6 +16,7 @@ import six +from intrinio_sdk.models.company_summary import CompanySummary # noqa: F401,E501 from intrinio_sdk.models.thea_entity_answer import TheaEntityAnswer # noqa: F401,E501 @@ -35,21 +36,24 @@ class ApiResponseCompanyAnswers(object): swagger_types = { 'source': 'str', 'query': 'str', - 'answers': 'list[TheaEntityAnswer]' + 'answers': 'list[TheaEntityAnswer]', + 'companies': 'list[CompanySummary]' } attribute_map = { 'source': 'source', 'query': 'query', - 'answers': 'answers' + 'answers': 'answers', + 'companies': 'companies' } - def __init__(self, source=None, query=None, answers=None): # noqa: E501 + def __init__(self, source=None, query=None, answers=None, companies=None): # noqa: E501 """ApiResponseCompanyAnswers - a model defined in Swagger""" # noqa: E501 self._source = None self._query = None self._answers = None + self._companies = None self.discriminator = None if source is not None: @@ -58,6 +62,8 @@ def __init__(self, source=None, query=None, answers=None): # noqa: E501 self.query = query if answers is not None: self.answers = answers + if companies is not None: + self.companies = companies @property def source(self): @@ -224,6 +230,59 @@ def answers(self, answers): self._answers = answers + @property + def companies(self): + """Gets the companies of this ApiResponseCompanyAnswers. # noqa: E501 + + + :return: The companies of this ApiResponseCompanyAnswers. # noqa: E501 + :rtype: list[CompanySummary] + """ + return self._companies + + @property + def companies_dict(self): + """Gets the companies of this ApiResponseCompanyAnswers. # noqa: E501 + + + :return: The companies of this ApiResponseCompanyAnswers. # noqa: E501 + :rtype: list[CompanySummary] + """ + + result = None + + value = self.companies + if isinstance(value, list): + result = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result = value.to_dict() + elif isinstance(value, dict): + result = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result = { 'companies': value } + + + return result + + + @companies.setter + def companies(self, companies): + """Sets the companies of this ApiResponseCompanyAnswers. + + + :param companies: The companies of this ApiResponseCompanyAnswers. # noqa: E501 + :type: list[CompanySummary] + """ + + self._companies = companies + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/setup.py b/setup.py index 8bcf6b5ab..fd9161db4 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "intrinio-sdk" -VERSION = "5.13.1" +VERSION = "5.13.2" # To install the library, run the following # # python setup.py install