Skip to content

Commit 7414a66

Browse files
authored
Merge pull request #609 from codatio/speakeasy-sdk-regen-1730904149
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 8.0.0
2 parents f4459f7 + f98ffa9 commit 7414a66

File tree

132 files changed

+1035
-891
lines changed

Some content is hidden

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

132 files changed

+1035
-891
lines changed

.speakeasy/workflow.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ sources:
1616
- main
1717
bank-feeds-source:
1818
sourceNamespace: bank-feeds-source
19-
sourceRevisionDigest: sha256:2bf52af4a0753c29a508bf534075c9fc6bbd4ba070605d3c7d4e092a9f3733cf
20-
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
19+
sourceRevisionDigest: sha256:61bdc8d4d47ab3a9f4e19f3426350875586b4f0faecd7d9f5e8bdac3d1f0eb02
20+
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
2121
tags:
2222
- latest
2323
- main
@@ -91,8 +91,8 @@ targets:
9191
bank-feeds-library:
9292
source: bank-feeds-source
9393
sourceNamespace: bank-feeds-source
94-
sourceRevisionDigest: sha256:2bf52af4a0753c29a508bf534075c9fc6bbd4ba070605d3c7d4e092a9f3733cf
95-
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
94+
sourceRevisionDigest: sha256:61bdc8d4d47ab3a9f4e19f3426350875586b4f0faecd7d9f5e8bdac3d1f0eb02
95+
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
9696
banking-library:
9797
source: banking-source
9898
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

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

bank-feeds/.speakeasy/gen.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ generation:
99
requestResponseComponentNamesFeb2024: false
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
12+
oAuth2PasswordEnabled: false
1213
telemetryEnabled: true
1314
python:
14-
version: 7.0.0
15+
version: 8.0.0
1516
additionalDependencies:
1617
dev: {}
1718
main: {}
1819
author: Codat
1920
authors:
20-
- Speakeasy
21+
- Speakeasy
2122
clientServerStatusCodesAsErrors: true
22-
description: Set up bank feeds from accounts in your application to supported accounting
23-
software.
23+
description: Set up bank feeds from accounts in your application to supported accounting software.
2424
enumFormat: enum
25+
fixFlags:
26+
responseRequiredSep2024: false
2527
flattenGlobalSecurity: false
2628
flattenRequests: false
29+
flatteningOrder: parameters-first
2730
imports:
2831
option: openapi
2932
paths:

bank-feeds/README.md

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ s = CodatBankFeeds(
9696
res = s.companies.create(request={
9797
"name": "Technicalium",
9898
"description": "Requested early access to the new financing scheme.",
99-
"groups": [
100-
{
101-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
102-
},
103-
],
10499
})
105100

106101
if res is not None:
@@ -126,11 +121,6 @@ async def main():
126121
res = await s.companies.create_async(request={
127122
"name": "Technicalium",
128123
"description": "Requested early access to the new financing scheme.",
129-
"groups": [
130-
{
131-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
132-
},
133-
],
134124
})
135125
if res is not None:
136126
# handle response
@@ -149,7 +139,7 @@ asyncio.run(main())
149139
### [account_mapping](docs/sdks/accountmapping/README.md)
150140

151141
* [create](docs/sdks/accountmapping/README.md#create) - Create bank feed account mapping
152-
* [get](docs/sdks/accountmapping/README.md#get) - List bank feed account mappings
142+
* [get](docs/sdks/accountmapping/README.md#get) - List bank feed accounts
153143

154144
### [bank_accounts](docs/sdks/bankaccounts/README.md)
155145

@@ -262,11 +252,6 @@ s = CodatBankFeeds(
262252
res = s.companies.create(request={
263253
"name": "Technicalium",
264254
"description": "Requested early access to the new financing scheme.",
265-
"groups": [
266-
{
267-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
268-
},
269-
],
270255
},
271256
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
272257

@@ -292,11 +277,6 @@ s = CodatBankFeeds(
292277
res = s.companies.create(request={
293278
"name": "Technicalium",
294279
"description": "Requested early access to the new financing scheme.",
295-
"groups": [
296-
{
297-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
298-
},
299-
],
300280
})
301281

302282
if res is not None:
@@ -311,12 +291,23 @@ if res is not None:
311291
<!-- Start Error Handling [errors] -->
312292
## Error Handling
313293

314-
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.
294+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
315295

316-
| Error Object | Status Code | Content Type |
317-
| --------------------------- | --------------------------- | --------------------------- |
318-
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
319-
| errors.SDKError | 4xx-5xx | */* |
296+
By default, an API error will raise a errors.SDKError exception, which has the following properties:
297+
298+
| Property | Type | Description |
299+
|-----------------|------------------|-----------------------|
300+
| `.status_code` | *int* | The HTTP status code |
301+
| `.message` | *str* | The error message |
302+
| `.raw_response` | *httpx.Response* | The raw HTTP response |
303+
| `.body` | *str* | The response content |
304+
305+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_async` method may raise the following exceptions:
306+
307+
| Error Type | Status Code | Content Type |
308+
| --------------------------------- | --------------------------------- | --------------------------------- |
309+
| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
310+
| errors.SDKError | 4XX, 5XX | \*/\* |
320311

321312
### Example
322313

@@ -335,11 +326,6 @@ try:
335326
res = s.companies.create(request={
336327
"name": "Technicalium",
337328
"description": "Requested early access to the new financing scheme.",
338-
"groups": [
339-
{
340-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
341-
},
342-
],
343329
})
344330

345331
if res is not None:
@@ -384,11 +370,6 @@ s = CodatBankFeeds(
384370
res = s.companies.create(request={
385371
"name": "Technicalium",
386372
"description": "Requested early access to the new financing scheme.",
387-
"groups": [
388-
{
389-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
390-
},
391-
],
392373
})
393374

394375
if res is not None:
@@ -415,11 +396,6 @@ s = CodatBankFeeds(
415396
res = s.companies.create(request={
416397
"name": "Technicalium",
417398
"description": "Requested early access to the new financing scheme.",
418-
"groups": [
419-
{
420-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
421-
},
422-
],
423399
})
424400

425401
if res is not None:
@@ -539,11 +515,6 @@ s = CodatBankFeeds(
539515
res = s.companies.create(request={
540516
"name": "Technicalium",
541517
"description": "Requested early access to the new financing scheme.",
542-
"groups": [
543-
{
544-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
545-
},
546-
],
547518
})
548519

549520
if res is not None:

bank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,4 +798,14 @@ Based on:
798798
### Generated
799799
- [python v7.0.0] bank-feeds
800800
### Releases
801-
- [PyPI v7.0.0] https://pypi.org/project/codat-bankfeeds/7.0.0 - bank-feeds
801+
- [PyPI v7.0.0] https://pypi.org/project/codat-bankfeeds/7.0.0 - bank-feeds
802+
803+
## 2024-11-06 14:42:21
804+
### Changes
805+
Based on:
806+
- OpenAPI Doc
807+
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
808+
### Generated
809+
- [python v8.0.0] bank-feeds
810+
### Releases
811+
- [PyPI v8.0.0] https://pypi.org/project/codat-bankfeeds/8.0.0 - bank-feeds

bank-feeds/USAGE.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ s = CodatBankFeeds(
1313
res = s.companies.create(request={
1414
"name": "Technicalium",
1515
"description": "Requested early access to the new financing scheme.",
16-
"groups": [
17-
{
18-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
19-
},
20-
],
2116
})
2217

2318
if res is not None:
@@ -43,11 +38,6 @@ async def main():
4338
res = await s.companies.create_async(request={
4439
"name": "Technicalium",
4540
"description": "Requested early access to the new financing scheme.",
46-
"groups": [
47-
{
48-
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
49-
},
50-
],
5141
})
5242
if res is not None:
5343
# handle response

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-
The request made is not valid.
3+
Your `query` parameter was not correctly formed
44

55

66
## Fields

bank-feeds/docs/models/shared/accountingbankaccount.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
>
55
> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
66
>
7-
> To view bank account data through the Banking API, please refer to the new datatype [here](https://docs.codat.io/bank-feeds-api#/schemas/Account)
8-
9-
> View the coverage for bank accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bankAccounts" target="_blank">Data coverage explorer</a>.
7+
> To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/bank-feeds-api#/schemas/Account) data type.
108
119
## Overview
1210

bank-feeds/docs/models/shared/bankaccountsaccountingbankaccount.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
>
55
> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
66
>
7-
> To view bank account data through the Banking API, please refer to the new datatype [here](https://docs.codat.io/bank-feeds-api#/schemas/Account)
8-
9-
> View the coverage for bank accounts in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bankAccounts" target="_blank">Data coverage explorer</a>.
7+
> To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/bank-feeds-api#/schemas/Account) data type.
108
119
## Overview
1210

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# BankFeedAccountMappingResponse
22

3-
The result from POSTing a Bank Account mapping.
4-
53

64
## Fields
75

86
| Field | Type | Required | Description |
97
| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
108
| `error` | *OptionalNullable[str]* | :heavy_minus_sign: | Error returned during the post request |
11-
| `status` | *OptionalNullable[str]* | :heavy_minus_sign: | Status of the POST request. |
129
| `source_account_id` | *Optional[str]* | :heavy_minus_sign: | Unique ID for the source account. |
10+
| `status` | *OptionalNullable[str]* | :heavy_minus_sign: | Status of the POST request. |
1311
| `target_account_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Unique ID for the target account. |

0 commit comments

Comments
 (0)