Skip to content

Commit 6a8165a

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.179.0 (#573)
Co-authored-by: speakeasybot <[email protected]>
1 parent 055c4c9 commit 6a8165a

File tree

115 files changed

+519
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+519
-500
lines changed

bank-feeds/.speakeasy/gen.lock

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
lockVersion: 2.0.0
22
id: 07093ad1-99d8-4bbd-a29c-a624e1b0e25a
33
management:
4-
docChecksum: d8a3c846c6e6c943937af494c3623e4f
4+
docChecksum: 4dc8263ccdcfe623fbd51a2f54a06f5d
55
docVersion: 3.0.0
66
speakeasyVersion: internal
7-
generationVersion: 2.231.0
8-
releaseVersion: 6.1.0
9-
configChecksum: 708926194b40801b64a55104595fbdbc
7+
generationVersion: 2.257.2
8+
releaseVersion: 6.1.1
9+
configChecksum: e5708ca5e72122e988345930b5e76592
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: bank-feeds
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=bank-feeds
1313
published: true
1414
features:
1515
python:
1616
constsAndDefaults: 0.1.2
17-
core: 4.4.1
17+
core: 4.4.6
1818
deprecations: 2.81.1
1919
examples: 2.81.3
20-
globalSecurity: 2.83.1
20+
globalSecurity: 2.83.2
2121
globalServerURLs: 2.82.1
22-
inputOutputModels: 2.83.0
22+
inputOutputModels: 2.83.1
2323
nameOverrides: 2.81.1
24-
retries: 2.82.0
24+
retries: 2.82.1
2525
generatedFiles:
2626
- src/codatbankfeeds/sdkconfiguration.py
2727
- src/codatbankfeeds/companies.py
@@ -71,6 +71,8 @@ generatedFiles:
7171
- src/codatbankfeeds/models/shared/connection.py
7272
- src/codatbankfeeds/models/shared/dataconnectionstatus.py
7373
- src/codatbankfeeds/models/shared/dataconnectionerror.py
74+
- src/codatbankfeeds/models/shared/errorvalidation.py
75+
- src/codatbankfeeds/models/shared/errorvalidationitem.py
7476
- src/codatbankfeeds/models/shared/companyrequestbody.py
7577
- src/codatbankfeeds/models/shared/items.py
7678
- src/codatbankfeeds/models/shared/companies.py
@@ -185,6 +187,8 @@ generatedFiles:
185187
- docs/models/shared/connection.md
186188
- docs/models/shared/dataconnectionstatus.md
187189
- docs/models/shared/dataconnectionerror.md
190+
- docs/models/shared/errorvalidation.md
191+
- docs/models/shared/errorvalidationitem.md
188192
- docs/models/shared/companyrequestbody.md
189193
- docs/models/shared/items.md
190194
- docs/models/shared/companies.md

bank-feeds/README.md

Lines changed: 13 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ s = codatbankfeeds.CodatBankFeeds(
2929
)
3030

3131
req = shared.CompanyRequestBody(
32-
description='Requested early access to the new financing scheme.',
33-
groups=[
34-
shared.Items(
35-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
36-
),
37-
],
3832
name='Bank of Dave',
33+
description='Requested early access to the new financing scheme.',
3934
)
4035

4136
res = s.companies.create(req)
@@ -104,9 +99,9 @@ if res.company is not None:
10499
<!-- Start Retries [retries] -->
105100
## Retries
106101

107-
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
102+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
108103

109-
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
104+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
110105
```python
111106
import codatbankfeeds
112107
from codatbankfeeds.models import shared
@@ -119,13 +114,8 @@ s = codatbankfeeds.CodatBankFeeds(
119114
)
120115

121116
req = shared.CompanyRequestBody(
122-
description='Requested early access to the new financing scheme.',
123-
groups=[
124-
shared.Items(
125-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
126-
),
127-
],
128117
name='Bank of Dave',
118+
description='Requested early access to the new financing scheme.',
129119
)
130120

131121
res = s.companies.create(req,
@@ -136,7 +126,7 @@ if res.company is not None:
136126
pass
137127
```
138128

139-
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
129+
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
140130
```python
141131
import codatbankfeeds
142132
from codatbankfeeds.models import shared
@@ -150,13 +140,8 @@ s = codatbankfeeds.CodatBankFeeds(
150140
)
151141

152142
req = shared.CompanyRequestBody(
153-
description='Requested early access to the new financing scheme.',
154-
groups=[
155-
shared.Items(
156-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
157-
),
158-
],
159143
name='Bank of Dave',
144+
description='Requested early access to the new financing scheme.',
160145
)
161146

162147
res = s.companies.create(req)
@@ -183,7 +168,7 @@ Handling errors in this SDK should largely match your expectations. All operati
183168

184169
```python
185170
import codatbankfeeds
186-
from codatbankfeeds.models import shared
171+
from codatbankfeeds.models import errors, shared
187172

188173
s = codatbankfeeds.CodatBankFeeds(
189174
security=shared.Security(
@@ -192,23 +177,18 @@ s = codatbankfeeds.CodatBankFeeds(
192177
)
193178

194179
req = shared.CompanyRequestBody(
195-
description='Requested early access to the new financing scheme.',
196-
groups=[
197-
shared.Items(
198-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
199-
),
200-
],
201180
name='Bank of Dave',
181+
description='Requested early access to the new financing scheme.',
202182
)
203183

204184
res = None
205185
try:
206186
res = s.companies.create(req)
207187
except errors.ErrorMessage as e:
208-
print(e) # handle exception
188+
# handle exception
209189
raise(e)
210190
except errors.SDKError as e:
211-
print(e) # handle exception
191+
# handle exception
212192
raise(e)
213193

214194
if res.company is not None:
@@ -244,13 +224,8 @@ s = codatbankfeeds.CodatBankFeeds(
244224
)
245225

246226
req = shared.CompanyRequestBody(
247-
description='Requested early access to the new financing scheme.',
248-
groups=[
249-
shared.Items(
250-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
251-
),
252-
],
253227
name='Bank of Dave',
228+
description='Requested early access to the new financing scheme.',
254229
)
255230

256231
res = s.companies.create(req)
@@ -276,13 +251,8 @@ s = codatbankfeeds.CodatBankFeeds(
276251
)
277252

278253
req = shared.CompanyRequestBody(
279-
description='Requested early access to the new financing scheme.',
280-
groups=[
281-
shared.Items(
282-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
283-
),
284-
],
285254
name='Bank of Dave',
255+
description='Requested early access to the new financing scheme.',
286256
)
287257

288258
res = s.companies.create(req)
@@ -336,13 +306,8 @@ s = codatbankfeeds.CodatBankFeeds(
336306
)
337307

338308
req = shared.CompanyRequestBody(
339-
description='Requested early access to the new financing scheme.',
340-
groups=[
341-
shared.Items(
342-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
343-
),
344-
],
345309
name='Bank of Dave',
310+
description='Requested early access to the new financing scheme.',
346311
)
347312

348313
res = s.companies.create(req)

bank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,4 +778,14 @@ Based on:
778778
### Generated
779779
- [python v6.1.0] bank-feeds
780780
### Releases
781-
- [PyPI v6.1.0] https://pypi.org/project/codat-bankfeeds/6.1.0 - bank-feeds
781+
- [PyPI v6.1.0] https://pypi.org/project/codat-bankfeeds/6.1.0 - bank-feeds
782+
783+
## 2024-02-14 10:44:02
784+
### Changes
785+
Based on:
786+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
787+
- Speakeasy CLI 1.179.0 (2.257.2) https://github.com/speakeasy-api/speakeasy
788+
### Generated
789+
- [python v6.1.1] bank-feeds
790+
### Releases
791+
- [PyPI v6.1.1] https://pypi.org/project/codat-bankfeeds/6.1.1 - bank-feeds

bank-feeds/USAGE.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ s = codatbankfeeds.CodatBankFeeds(
1010
)
1111

1212
req = shared.CompanyRequestBody(
13-
description='Requested early access to the new financing scheme.',
14-
groups=[
15-
shared.Items(
16-
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
17-
),
18-
],
1913
name='Bank of Dave',
14+
description='Requested early access to the new financing scheme.',
2015
)
2116

2217
res = s.companies.create(req)

bank-feeds/docs/models/errors/errormessage.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ The request made is not valid.
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
10-
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
11-
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
12-
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
13-
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
14-
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
15-
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
10+
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
11+
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
12+
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
13+
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
14+
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
15+
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
16+
| `validation` | [Optional[shared.ErrorValidation]](../../models/shared/errorvalidation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. |

0 commit comments

Comments
 (0)