Skip to content

Commit f921580

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.50.1
1 parent 0404af8 commit f921580

14 files changed

Lines changed: 82 additions & 37 deletions

File tree

bankfeeds/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,4 +598,12 @@ Based on:
598598
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
599599
- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy
600600
### Releases
601-
- [PyPI v0.27.3] https://pypi.org/project/codat-bankfeeds/0.27.3 - bankfeeds
601+
- [PyPI v0.27.3] https://pypi.org/project/codat-bankfeeds/0.27.3 - bankfeeds
602+
603+
## 2023-06-23 00:21:45
604+
### Changes
605+
Based on:
606+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
607+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
608+
### Releases
609+
- [PyPI v0.28.0] https://pypi.org/project/codat-bankfeeds/0.28.0 - bankfeeds

bankfeeds/docs/models/operations/createcompanyresponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
| `content_type` | *str* | :heavy_check_mark: | N/A |
1010
| `status_code` | *int* | :heavy_check_mark: | N/A |
1111
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
12-
| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
12+
| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | The request made is not valid. |

bankfeeds/docs/models/shared/company.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Company
22

3-
A company in Codat represent a small or medium sized business, whose data you wish to share
3+
In Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/codat-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.
4+
5+
Typically each company is one of your customers.
6+
7+
When you create a company, you can specify a `name` and we will automatically generate a unique `id` for the company. You can also add a `description` to store any additional information about the company.
48

59

610
## Fields

bankfeeds/docs/models/shared/connection.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Connection
22

3-
A connection represents the link between a `company` and a source of data.
3+
A connection represents a [company's](https://docs.codat.io/codat-api#/schemas/Company) connection to a data source and allows you to synchronize data (pull and/or push) with that source.
4+
5+
A company can have multiple data connections depending on the type of data source it is connecting to. For example, a single company can link to:
6+
7+
- [Accounting data](https://docs.codat.io/accounting-api/overview) - 1 active connection.
8+
- [Banking data](https://docs.codat.io/banking-api/overview) - Multiple active connections.
9+
- [Commerce data](https://docs.codat.io/commerce-api/overview) - Multiple active connections.
10+
Any combination of accounting, banking, and commerce data connections is allowed.
11+
12+
Before you can use a data connection to pull or push data, the company must grant you access to their business data by [linking the connection](https://docs.codat.io/auth-flow/overview).
413

514

615
## Fields

bankfeeds/docs/sdks/companies/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ Create and manage your Codat companies.
1414

1515
## create
1616

17-
Create a new company
17+
Creates a new company that can be used to assign connections to.
18+
19+
If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.
20+
21+
1822

1923
### Example Usage
2024

@@ -54,8 +58,8 @@ if res.company is not None:
5458

5559
## delete
5660

57-
Delete the given company from Codat.
58-
This operation is not reversible.
61+

62+
Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned.
5963

6064
### Example Usage
6165

@@ -94,7 +98,7 @@ if res.status_code == 200:
9498

9599
## get
96100

97-
Get metadata for a single company
101+
Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
98102

99103
### Example Usage
100104

@@ -133,7 +137,7 @@ if res.company is not None:
133137

134138
## list
135139

136-
List all companies that you have created in Codat.
140+
Returns a list of your companies. The company schema contains a list of [connections](https://docs.codat.io/codat-api#/schemas/Connection) related to the company.
137141

138142
### Example Usage
139143

@@ -175,7 +179,7 @@ if res.companies is not None:
175179

176180
## update
177181

178-
Updates the given company with a new name and description
182+
Updates both the name and description of the company.
179183

180184
### Example Usage
181185

bankfeeds/docs/sdks/connections/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Manage your companies' data connections.
1515

1616
## create
1717

18-
Create a data connection for a company
18+
Creates a connection for the company by providing a valid `platformKey`.
19+
20+
Use the [List Integrations](https://docs.codat.io/codat-api#/operations/list-integrations) endpoint to access valid platform keys.
1921

2022
### Example Usage
2123

@@ -57,8 +59,8 @@ if res.connection is not None:
5759

5860
## delete
5961

60-
Revoke and remove a connection from a company.
61-
This operation is not reversible - the end user would need to reauthorize a new data connection if you wish to view new data for this company.
62+
Revoke and remove a connection from a company.
63+
This operation is not reversible. The end user would need to reauthorize a new data connection if you wish to view new data for this company.
6264

6365
### Example Usage
6466

@@ -98,7 +100,7 @@ if res.status_code == 200:
98100

99101
## get
100102

101-
Get a single connection for a company
103+
Returns a specific connection for a company when valid identifiers are provided. If the identifiers are for a deleted company and/or connection, a not found response is returned.
102104

103105
### Example Usage
104106

@@ -138,7 +140,7 @@ if res.connection is not None:
138140

139141
## list
140142

141-
List the connections for a company
143+
List the connections for a company.
142144

143145
### Example Usage
144146

@@ -222,7 +224,7 @@ if res.proxy_response is not None:
222224

223225
## unlink_connection
224226

225-
This allows you to deauthorize a connection, without deleting it from Codat. This means you can still view any data that has previously been pulled into Codat, and also lets you re-authorize in future if your customer wishes to resume sharing their data.
227+
This allows you to deauthorize a connection, without deleting it from Codat. This means you can still view any data that has previously been pulled into Codat, and also lets you re-authorize in future if your customer wishes to resume sharing their data.
226228

227229
### Example Usage
228230

bankfeeds/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 006fdd2b69e599057f4e304137075ad4
3+
docChecksum: daaa4dd4717ccf14983502e1c8ed5ab6
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.49.1
6-
generationVersion: 2.41.5
5+
speakeasyVersion: 1.50.1
6+
generationVersion: 2.43.2
77
generation:
88
sdkClassName: CodatBankFeeds
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.27.3
12+
version: 0.28.0
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

bankfeeds/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-bankfeeds",
13-
version="0.27.3",
13+
version="0.28.0",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

bankfeeds/src/codatbankfeeds/companies.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
1515

1616
def create(self, request: shared.CompanyRequestBody, retries: Optional[utils.RetryConfig] = None) -> operations.CreateCompanyResponse:
1717
r"""Create company
18-
Create a new company
18+
Creates a new company that can be used to assign connections to.
19+
20+
If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.
1921
"""
2022
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
2123

@@ -49,7 +51,7 @@ def do_request():
4951
if utils.match_content_type(content_type, 'application/json'):
5052
out = utils.unmarshal_json(http_res.text, Optional[shared.Company])
5153
res.company = out
52-
elif http_res.status_code in [401, 429]:
54+
elif http_res.status_code in [400, 401, 429]:
5355
if utils.match_content_type(content_type, 'application/json'):
5456
out = utils.unmarshal_json(http_res.text, Optional[shared.Schema])
5557
res.schema = out
@@ -59,8 +61,7 @@ def do_request():
5961

6062
def delete(self, request: operations.DeleteCompanyRequest, retries: Optional[utils.RetryConfig] = None) -> operations.DeleteCompanyResponse:
6163
r"""Delete a company
62-
Delete the given company from Codat.
63-
This operation is not reversible.
64+
Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned.
6465
"""
6566
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
6667

@@ -99,7 +100,7 @@ def do_request():
99100

100101
def get(self, request: operations.GetCompanyRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCompanyResponse:
101102
r"""Get company
102-
Get metadata for a single company
103+
Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
103104
"""
104105
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
105106

@@ -140,7 +141,7 @@ def do_request():
140141

141142
def list(self, request: operations.ListCompaniesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListCompaniesResponse:
142143
r"""List companies
143-
List all companies that you have created in Codat.
144+
Returns a list of your companies. The company schema contains a list of [connections](https://docs.codat.io/codat-api#/schemas/Connection) related to the company.
144145
"""
145146
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
146147

@@ -182,7 +183,7 @@ def do_request():
182183

183184
def update(self, request: operations.UpdateCompanyRequest, retries: Optional[utils.RetryConfig] = None) -> operations.UpdateCompanyResponse:
184185
r"""Update company
185-
Updates the given company with a new name and description
186+
Updates both the name and description of the company.
186187
"""
187188
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
188189

bankfeeds/src/codatbankfeeds/connections.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
1515

1616
def create(self, request: operations.CreateDataConnectionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.CreateDataConnectionResponse:
1717
r"""Create connection
18-
Create a data connection for a company
18+
Creates a connection for the company by providing a valid `platformKey`.
19+
20+
Use the [List Integrations](https://docs.codat.io/codat-api#/operations/list-integrations) endpoint to access valid platform keys.
1921
"""
2022
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
2123

@@ -60,7 +62,7 @@ def do_request():
6062
def delete(self, request: operations.DeleteCompanyConnectionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.DeleteCompanyConnectionResponse:
6163
r"""Delete connection
6264
Revoke and remove a connection from a company.
63-
This operation is not reversible - the end user would need to reauthorize a new data connection if you wish to view new data for this company.
65+
This operation is not reversible. The end user would need to reauthorize a new data connection if you wish to view new data for this company.
6466
"""
6567
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
6668

@@ -99,7 +101,7 @@ def do_request():
99101

100102
def get(self, request: operations.GetCompanyConnectionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCompanyConnectionResponse:
101103
r"""Get connection
102-
Get a single connection for a company
104+
Returns a specific connection for a company when valid identifiers are provided. If the identifiers are for a deleted company and/or connection, a not found response is returned.
103105
"""
104106
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
105107

@@ -140,7 +142,7 @@ def do_request():
140142

141143
def list(self, request: operations.ListCompanyConnectionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListCompanyConnectionsResponse:
142144
r"""List connections
143-
List the connections for a company
145+
List the connections for a company.
144146
"""
145147
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
146148

0 commit comments

Comments
 (0)