Skip to content

Commit 4226c4f

Browse files
authored
Merge pull request #543 from codatio/speakeasy-sdk-regen-1702562839
chore: 🐝 Update SDK - Generate Bank Feeds library
2 parents 39d818a + 0d5442b commit 4226c4f

29 files changed

+111
-105
lines changed

β€Žbank-feeds/README.md

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
ο»ΏBank Feeds API enables your SMB users to set up bank feeds from accounts in your application to supported accounting platforms.
55
<!-- End Codat Library Description -->
66

7-
<!-- Start SDK Installation -->
7+
<!-- Start SDK Installation [installation] -->
88
## SDK Installation
99

1010
```bash
1111
pip install codat-bankfeeds
1212
```
13-
<!-- End SDK Installation -->
13+
<!-- End SDK Installation [installation] -->
1414

1515
## Example Usage
16-
<!-- Start SDK Example Usage -->
16+
<!-- Start SDK Example Usage [usage] -->
17+
## SDK Example Usage
18+
1719
### Example
1820

1921
```python
@@ -37,12 +39,11 @@ if res.company is not None:
3739
# handle response
3840
pass
3941
```
40-
<!-- End SDK Example Usage -->
42+
<!-- End SDK Example Usage [usage] -->
4143

42-
<!-- Start SDK Available Operations -->
44+
<!-- Start Available Resources and Operations [operations] -->
4345
## Available Resources and Operations
4446

45-
4647
### [companies](docs/sdks/companies/README.md)
4748

4849
* [create](docs/sdks/companies/README.md#create) - Create company
@@ -78,19 +79,13 @@ if res.company is not None:
7879
* [create](docs/sdks/transactions/README.md#create) - Create bank transactions
7980
* [get_create_operation](docs/sdks/transactions/README.md#get_create_operation) - Get create operation
8081
* [list_create_operations](docs/sdks/transactions/README.md#list_create_operations) - List create operations
81-
<!-- End SDK Available Operations -->
82-
83-
84-
85-
<!-- Start Dev Containers -->
82+
<!-- End Available Resources and Operations [operations] -->
8683

8784

8885

89-
<!-- End Dev Containers -->
9086

9187

92-
93-
<!-- Start Retries -->
88+
<!-- Start Retries [retries] -->
9489
## Retries
9590

9691
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.
@@ -144,11 +139,11 @@ if res.company is not None:
144139
# handle response
145140
pass
146141
```
147-
<!-- End Retries -->
142+
<!-- End Retries [retries] -->
148143

149144

150145

151-
<!-- Start Error Handling -->
146+
<!-- Start Error Handling [errors] -->
152147
## Error Handling
153148

154149
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
@@ -178,23 +173,22 @@ req = shared.CompanyRequestBody(
178173
res = None
179174
try:
180175
res = s.companies.create(req)
181-
except (errors.ErrorMessage) as e:
182-
print(e) # handle exception
183-
184-
except (errors.SDKError) as e:
185-
print(e) # handle exception
186-
176+
except errors.ErrorMessage as e:
177+
print(e) # handle exception
178+
raise(e)
179+
except errors.SDKError as e:
180+
print(e) # handle exception
181+
raise(e)
187182

188183
if res.company is not None:
189184
# handle response
190185
pass
191186
```
187+
<!-- End Error Handling [errors] -->
192188

193-
<!-- End Error Handling -->
194189

195190

196-
197-
<!-- Start Server Selection -->
191+
<!-- Start Server Selection [server] -->
198192
## Server Selection
199193

200194
### Select Server by Index
@@ -256,11 +250,11 @@ if res.company is not None:
256250
# handle response
257251
pass
258252
```
259-
<!-- End Server Selection -->
253+
<!-- End Server Selection [server] -->
260254

261255

262256

263-
<!-- Start Custom HTTP Client -->
257+
<!-- Start Custom HTTP Client [http-client] -->
264258
## Custom HTTP Client
265259

266260
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
@@ -274,12 +268,11 @@ http_client = requests.Session()
274268
http_client.headers.update({'x-custom-header': 'someValue'})
275269
s = codatbankfeeds.CodatBankFeeds(client: http_client)
276270
```
277-
<!-- End Custom HTTP Client -->
278-
271+
<!-- End Custom HTTP Client [http-client] -->
279272

280273

281-
<!-- Start Authentication -->
282274

275+
<!-- Start Authentication [security] -->
283276
## Authentication
284277

285278
### Per-Client Security Schemes
@@ -312,7 +305,7 @@ if res.company is not None:
312305
# handle response
313306
pass
314307
```
315-
<!-- End Authentication -->
308+
<!-- End Authentication [security] -->
316309

317310
<!-- Placeholder for Future Speakeasy SDK Sections -->
318311

β€Žbank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,4 +738,14 @@ Based on:
738738
### Generated
739739
- [python v5.0.0] bank-feeds
740740
### Releases
741-
- [PyPI v5.0.0] https://pypi.org/project/codat-bankfeeds/5.0.0 - bank-feeds
741+
- [PyPI v5.0.0] https://pypi.org/project/codat-bankfeeds/5.0.0 - bank-feeds
742+
743+
## 2023-12-14 14:07:14
744+
### Changes
745+
Based on:
746+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml
747+
- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy
748+
### Generated
749+
- [python v5.1.0] bank-feeds
750+
### Releases
751+
- [PyPI v5.1.0] https://pypi.org/project/codat-bankfeeds/5.1.0 - bank-feeds

β€Žbank-feeds/USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Start SDK Example Usage -->
1+
<!-- Start SDK Example Usage [usage] -->
22
```python
33
import codatbankfeeds
44
from codatbankfeeds.models import shared
@@ -20,4 +20,4 @@ if res.company is not None:
2020
# handle response
2121
pass
2222
```
23-
<!-- End SDK Example Usage -->
23+
<!-- End SDK Example Usage [usage] -->

β€Žbank-feeds/docs/models/errors/errormessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ErrorMessage
22

3-
Your `query` parameter was not correctly formed
3+
The request made is not valid.
44

55

66
## Fields

β€Žbank-feeds/docs/models/shared/bankfeedmapping.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žbank-feeds/docs/models/shared/banktransactions.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žbank-feeds/docs/models/shared/clientratelimitreachedwebhookdata.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žbank-feeds/docs/models/shared/clientratelimitresetwebhookdata.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žbank-feeds/docs/models/shared/company.md

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

β€Žbank-feeds/docs/models/shared/connection.md

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)