Skip to content

Commit

Permalink
Merge pull request #609 from codatio/speakeasy-sdk-regen-1730904149
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 8.0.0
  • Loading branch information
dcoplowe authored Nov 6, 2024
2 parents f4459f7 + f98ffa9 commit 7414a66
Show file tree
Hide file tree
Showing 132 changed files with 1,035 additions and 891 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ sources:
- main
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:2bf52af4a0753c29a508bf534075c9fc6bbd4ba070605d3c7d4e092a9f3733cf
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
sourceRevisionDigest: sha256:61bdc8d4d47ab3a9f4e19f3426350875586b4f0faecd7d9f5e8bdac3d1f0eb02
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
tags:
- latest
- main
Expand Down Expand Up @@ -91,8 +91,8 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:2bf52af4a0753c29a508bf534075c9fc6bbd4ba070605d3c7d4e092a9f3733cf
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
sourceRevisionDigest: sha256:61bdc8d4d47ab3a9f4e19f3426350875586b4f0faecd7d9f5e8bdac3d1f0eb02
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
banking-library:
source: banking-source
sourceNamespace: banking-source
Expand Down
84 changes: 57 additions & 27 deletions bank-feeds/.speakeasy/gen.lock

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions bank-feeds/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ generation:
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 7.0.0
version: 8.0.0
additionalDependencies:
dev: {}
main: {}
author: Codat
authors:
- Speakeasy
- Speakeasy
clientServerStatusCodesAsErrors: true
description: Set up bank feeds from accounts in your application to supported accounting
software.
description: Set up bank feeds from accounts in your application to supported accounting software.
enumFormat: enum
fixFlags:
responseRequiredSep2024: false
flattenGlobalSecurity: false
flattenRequests: false
flatteningOrder: parameters-first
imports:
option: openapi
paths:
Expand Down
63 changes: 17 additions & 46 deletions bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

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

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

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

Expand Down Expand Up @@ -262,11 +252,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

Expand All @@ -292,11 +277,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

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

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

| Error Object | Status Code | Content Type |
| --------------------------- | --------------------------- | --------------------------- |
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
| errors.SDKError | 4xx-5xx | */* |
By default, an API error will raise a errors.SDKError exception, which has the following properties:

| Property | Type | Description |
|-----------------|------------------|-----------------------|
| `.status_code` | *int* | The HTTP status code |
| `.message` | *str* | The error message |
| `.raw_response` | *httpx.Response* | The raw HTTP response |
| `.body` | *str* | The response content |

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:

| Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- |
| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand All @@ -335,11 +326,6 @@ try:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

if res is not None:
Expand Down Expand Up @@ -384,11 +370,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

if res is not None:
Expand All @@ -415,11 +396,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

if res is not None:
Expand Down Expand Up @@ -539,11 +515,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

if res is not None:
Expand Down
12 changes: 11 additions & 1 deletion bank-feeds/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,14 @@ Based on:
### Generated
- [python v7.0.0] bank-feeds
### Releases
- [PyPI v7.0.0] https://pypi.org/project/codat-bankfeeds/7.0.0 - bank-feeds
- [PyPI v7.0.0] https://pypi.org/project/codat-bankfeeds/7.0.0 - bank-feeds

## 2024-11-06 14:42:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v8.0.0] bank-feeds
### Releases
- [PyPI v8.0.0] https://pypi.org/project/codat-bankfeeds/8.0.0 - bank-feeds
10 changes: 0 additions & 10 deletions bank-feeds/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ s = CodatBankFeeds(
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})

if res is not None:
Expand All @@ -43,11 +38,6 @@ async def main():
res = await s.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
"groups": [
{
"id": "60d2fa12-8a04-11ee-b9d1-0242ac120002",
},
],
})
if res is not None:
# handle response
Expand Down
2 changes: 1 addition & 1 deletion bank-feeds/docs/models/errors/errormessage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ErrorMessage

The request made is not valid.
Your `query` parameter was not correctly formed


## Fields
Expand Down
4 changes: 1 addition & 3 deletions bank-feeds/docs/models/shared/accountingbankaccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
>
> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
>
> 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)
> 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>.
> 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.
## Overview

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
>
> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators.
>
> 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)
> 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>.
> 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.
## Overview

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# BankFeedAccountMappingResponse

The result from POSTing a Bank Account mapping.


## Fields

| Field | Type | Required | Description |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| `error` | *OptionalNullable[str]* | :heavy_minus_sign: | Error returned during the post request |
| `status` | *OptionalNullable[str]* | :heavy_minus_sign: | Status of the POST request. |
| `source_account_id` | *Optional[str]* | :heavy_minus_sign: | Unique ID for the source account. |
| `status` | *OptionalNullable[str]* | :heavy_minus_sign: | Status of the POST request. |
| `target_account_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Unique ID for the target account. |
Loading

0 comments on commit 7414a66

Please sign in to comment.