Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.465.1
speakeasyVersion: 1.469.10
sources:
accounting-source:
sourceNamespace: accounting-source
Expand All @@ -16,11 +16,11 @@ sources:
- main
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:9eca815edc06e448a2aa35c52eef65c564c4433edc25bb0e40c24c1ab73782af
sourceBlobDigest: sha256:17e9963cca0e2088a998951d41b1bf78ea9574aebe1c9896caf253d88fd13d13
sourceRevisionDigest: sha256:05a608be985dc9deb12eeb3a747ef0ae4cd1690b42852f97e61c7a43881748a7
sourceBlobDigest: sha256:cffec1fdf5b4aa33774403da44fc8cfb24f5f59d507b1e83d73b1b28f8efa50e
tags:
- latest
- speakeasy-sdk-regen-1736353877
- speakeasy-sdk-regen-1737391437
- 3.0.0
banking-source:
sourceNamespace: banking-source
Expand Down Expand Up @@ -111,10 +111,10 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:9eca815edc06e448a2aa35c52eef65c564c4433edc25bb0e40c24c1ab73782af
sourceBlobDigest: sha256:17e9963cca0e2088a998951d41b1bf78ea9574aebe1c9896caf253d88fd13d13
sourceRevisionDigest: sha256:05a608be985dc9deb12eeb3a747ef0ae4cd1690b42852f97e61c7a43881748a7
sourceBlobDigest: sha256:cffec1fdf5b4aa33774403da44fc8cfb24f5f59d507b1e83d73b1b28f8efa50e
codeSamplesNamespace: bank-feeds-source-python-code-samples
codeSamplesRevisionDigest: sha256:6636b9b97c29f9e69eb08701825b921d5aa86d7f1db1692dbe6b6ec443fe6e3f
codeSamplesRevisionDigest: sha256:769f019b1d6e0ca253780d1cec262d51ccd8297fa6a53d9bb1e28fd6b2ae11c1
banking-library:
source: banking-source
sourceNamespace: banking-source
Expand Down
409 changes: 241 additions & 168 deletions bank-feeds/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion bank-feeds/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 10.1.1
version: 10.2.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -22,6 +22,7 @@ python:
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
description: Set up bank feeds from accounts in your application to supported accounting software.
enableCustomCodeRegions: false
enumFormat: enum
fixFlags:
responseRequiredSep2024: false
Expand Down
17 changes: 8 additions & 9 deletions bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

Expand All @@ -323,7 +322,6 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert res is not None
Expand Down Expand Up @@ -352,10 +350,11 @@ By default, an API error will raise a errors.SDKError exception, which has the f

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

### Example

Expand All @@ -373,14 +372,16 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert res is not None

# Handle response
print(res)

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
raise(e)
except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
raise(e)
Expand Down Expand Up @@ -411,7 +412,6 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert res is not None
Expand Down Expand Up @@ -531,7 +531,6 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert 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 @@ -858,4 +858,14 @@ Based on:
### Generated
- [python v10.1.1] bank-feeds
### Releases
- [PyPI v10.1.1] https://pypi.org/project/codat-bankfeeds/10.1.1 - bank-feeds
- [PyPI v10.1.1] https://pypi.org/project/codat-bankfeeds/10.1.1 - bank-feeds

## 2025-01-20 16:43:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.10 (2.493.31) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v10.2.0] bank-feeds
### Releases
- [PyPI v10.2.0] https://pypi.org/project/codat-bankfeeds/10.2.0 - bank-feeds
2 changes: 0 additions & 2 deletions bank-feeds/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ with CodatBankFeeds(

res = codat_bank_feeds.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert res is not None
Expand All @@ -39,7 +38,6 @@ async def main():

res = await codat_bank_feeds.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

assert res is not None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SourceAccountBatchCreateResponse

The account ID and source account object of the successfully created source account.
Account ID and resulting object of the batch `Create source account` request.


## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result` | [Optional[shared.SourceAccount]](../../models/shared/sourceaccount.md) | :heavy_minus_sign: | The target bank account in a supported accounting software for ingestion into a bank feed. | {<br/>"id": "acc-002",<br/>"accountName": "account-081",<br/>"sortCode": "123456",<br/>"accountType": "Credit",<br/>"accountNumber": "12345670",<br/>"currency": "GBP",<br/>"balance": 99.99,<br/>"modifiedDate": "2023-01-09T14:14:14.1057478Z",<br/>"status": "pending"<br/>} |
| `source_account_id` | *Optional[str]* | :heavy_minus_sign: | Unique ID for the source account. | 12345 |
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `result` | [Optional[shared.SourceAccountBatchCreateResult]](../../models/shared/sourceaccountbatchcreateresult.md) | :heavy_minus_sign: | Status details and corresponding object of the `Create account` operation. | |
| `source_account_id` | *Optional[str]* | :heavy_minus_sign: | Unique ID for the source account. | 12345 |
12 changes: 12 additions & 0 deletions bank-feeds/docs/models/shared/sourceaccountbatchcreateresult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SourceAccountBatchCreateResult

Status details and corresponding object of the `Create account` operation.


## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account` | [Optional[shared.SourceAccount]](../../models/shared/sourceaccount.md) | :heavy_minus_sign: | The target bank account in a supported accounting software for ingestion into a bank feed. | {<br/>"id": "acc-002",<br/>"accountName": "account-081",<br/>"sortCode": "123456",<br/>"accountType": "Credit",<br/>"accountNumber": "12345670",<br/>"currency": "GBP",<br/>"balance": 99.99,<br/>"modifiedDate": "2023-01-09T14:14:14.1057478Z",<br/>"status": "pending"<br/>} |
| `error` | *OptionalNullable[str]* | :heavy_minus_sign: | A brief description of the error. | |
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code for the creation of the source account | |
Loading