Skip to content

Commit

Permalink
No release notes for this build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexread730 committed Jun 17, 2021
1 parent 10f65a3 commit 03ce4f4
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions docs/ApiResponseCompanyAnswers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ 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)


[//]: # (CONTAINED_CLASS:TheaEntityAnswer)


[//]: # (CONTAINED_CLASS:CompanySummary)



2 changes: 1 addition & 1 deletion docs/CompanyApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion intrinio_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion intrinio_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
65 changes: 62 additions & 3 deletions intrinio_sdk/models/api_response_company_answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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:
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03ce4f4

Please sign in to comment.