Skip to content

Commit 0aa533b

Browse files
authored
Merge pull request #622 from codatio/speakeasy-sdk-regen-1733825306
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 9.0.1
2 parents b183dc6 + 2e6e4ce commit 0aa533b

File tree

21 files changed

+326
-239
lines changed

21 files changed

+326
-239
lines changed

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.448.0
1+
speakeasyVersion: 1.453.8
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -16,11 +16,11 @@ sources:
1616
- main
1717
bank-feeds-source:
1818
sourceNamespace: bank-feeds-source
19-
sourceRevisionDigest: sha256:6ad044c90156a66bca28da8235c9ef07939d07cabbc86575e47259fec2af1409
19+
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
2020
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
2121
tags:
2222
- latest
23-
- speakeasy-sdk-regen-1732634399
23+
- speakeasy-sdk-regen-1733825306
2424
- 3.0.0
2525
banking-source:
2626
sourceNamespace: banking-source
@@ -111,10 +111,10 @@ targets:
111111
bank-feeds-library:
112112
source: bank-feeds-source
113113
sourceNamespace: bank-feeds-source
114-
sourceRevisionDigest: sha256:6ad044c90156a66bca28da8235c9ef07939d07cabbc86575e47259fec2af1409
114+
sourceRevisionDigest: sha256:9133167d1473dc045331f1cfa81fb00aa3234e2b2b438f6808f576b259a76be8
115115
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
116-
codeSamplesNamespace: bank-feeds-source-code-samples
117-
codeSamplesRevisionDigest: sha256:474e77328fc049baa81c1fba73c58e0160d01cb3594417261e980046e4f00dfa
116+
codeSamplesNamespace: bank-feeds-source-python-code-samples
117+
codeSamplesRevisionDigest: sha256:213db3e6e8d49d181aa23b48af0e4b8fc917552e39fb8ef2a69edab2eaa52e67
118118
banking-library:
119119
source: banking-source
120120
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 07093ad1-99d8-4bbd-a29c-a624e1b0e25a
33
management:
44
docChecksum: af010093774a298b2b6a17e641f9cd1b
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.446.1
7-
generationVersion: 2.462.1
8-
releaseVersion: 9.0.0
9-
configChecksum: a1263ee2debf9d8e8034a743cd18f050
6+
speakeasyVersion: 1.453.8
7+
generationVersion: 2.474.15
8+
releaseVersion: 9.0.1
9+
configChecksum: 8ec4388e5997c479ecac5ec505c82d48
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
@@ -15,7 +15,7 @@ features:
1515
python:
1616
additionalDependencies: 1.0.0
1717
constsAndDefaults: 1.0.5
18-
core: 5.6.8
18+
core: 5.6.11
1919
decimal: 1.0.0
2020
defaultEnabledRetries: 0.2.0
2121
deprecations: 3.0.0
@@ -1172,4 +1172,28 @@ examples:
11721172
responses:
11731173
"401":
11741174
application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401}
1175+
Client rate limit reached:
1176+
speakeasy-default-client-rate-limit-reached:
1177+
requestBody:
1178+
application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "Data": {"DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z"}, "Message": "The current daily rate limit quota of 1000 requests for bae71d36-ff47-420a-b4a6-f8c9ddf41140 has been reached.", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reached"}
1179+
Client rate limit reset:
1180+
speakeasy-default-client-rate-limit-reset:
1181+
requestBody:
1182+
application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "Data": {"DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z", "QuotaRemaining": 1000, "ResetReason": "The quota was reset because it is a new day."}, "Message": "The current daily rate limit quota for client 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e has been reset to 1000 requests.", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reset"}
1183+
bankFeeds.sourceAccount.connected:
1184+
Connected:
1185+
requestBody:
1186+
application/json: {"eventType": "bankFeeds.sourceAccount.connected", "generatedDate": "2022-10-23T00:00:00Z", "id": "ba29118f-5406-4e59-b05c-ba307ca38d01", "payload": {"connectionId": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "referenceCompany": {"description": "Requested early access to the new financing scheme.", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "links": {"portal": "https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary"}, "name": "Toft stores"}, "sourceAccount": {"accountName": "account-081", "accountNumber": "12345678", "balance": 99.99, "currency": "GBP", "id": "acc-002", "modifiedDate": "2023-01-09T14:14:14.105Z", "sortCode": "040004", "status": "pending"}}}
1187+
bankFeeds.sourceAccount.disconnected:
1188+
Disconnected:
1189+
requestBody:
1190+
application/json: {"eventType": "bankFeeds.sourceAccount.disconnected", "generatedDate": "2022-10-23T00:00:00Z", "id": "ba29118f-5406-4e59-b05c-ba307ca38d01", "payload": {"connectionId": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "referenceCompany": {"description": "Requested early access to the new financing scheme.", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "links": {"portal": "https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary"}, "name": "Toft stores"}, "sourceAccount": {"accountName": "account-081", "accountNumber": "12345678", "balance": 99.99, "currency": "GBP", "id": "acc-002", "modifiedDate": "2023-01-09T14:14:14.105Z", "sortCode": "040004", "status": "pending"}}}
1191+
client.rateLimit.reached:
1192+
Reached:
1193+
requestBody:
1194+
application/json: {"eventType": "client.rateLimit.reached", "generatedDate": "2024-09-01T00:00:00Z", "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "payload": {"dailyQuota": 12000, "expiryDate": "2024-09-01T12:14:14Z", "quotaRemaining": 0}}
1195+
client.rateLimit.reset:
1196+
Reset:
1197+
requestBody:
1198+
application/json: {"eventType": "client.rateLimit.reset", "generatedDate": "2024-09-01T00:00:00Z", "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "payload": {"dailyQuota": 12000, "expiryDate": "2024-09-01T23:59:99Z", "quotaRemaining": 11993}}
11751199
generatedTests: {}

bank-feeds/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
python:
15-
version: 9.0.0
15+
version: 9.0.1
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

bank-feeds/README.md

Lines changed: 87 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,23 @@ A bank feed is a connection between a source bank account in your application an
3030

3131
<!-- Start Table of Contents [toc] -->
3232
## Table of Contents
33+
<!-- $toc-max-depth=2 -->
34+
* [Bank Feeds](#bank-feeds)
35+
* [Endpoints](#endpoints)
36+
* [SDK Installation](#sdk-installation)
37+
* [Example Usage](#example-usage)
38+
* [IDE Support](#ide-support)
39+
* [SDK Example Usage](#sdk-example-usage)
40+
* [Available Resources and Operations](#available-resources-and-operations)
41+
* [File uploads](#file-uploads)
42+
* [Retries](#retries)
43+
* [Error Handling](#error-handling)
44+
* [Server Selection](#server-selection)
45+
* [Custom HTTP Client](#custom-http-client)
46+
* [Authentication](#authentication)
47+
* [Debugging](#debugging)
48+
* [Support](#support)
3349

34-
* [SDK Installation](#sdk-installation)
35-
* [IDE Support](#ide-support)
36-
* [SDK Example Usage](#sdk-example-usage)
37-
* [Available Resources and Operations](#available-resources-and-operations)
38-
* [File uploads](#file-uploads)
39-
* [Retries](#retries)
40-
* [Error Handling](#error-handling)
41-
* [Server Selection](#server-selection)
42-
* [Custom HTTP Client](#custom-http-client)
43-
* [Authentication](#authentication)
44-
* [Debugging](#debugging)
4550
<!-- End Table of Contents [toc] -->
4651

4752
<!-- Start SDK Installation [installation] -->
@@ -86,20 +91,37 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
8691
# Synchronous Example
8792
from codat_bankfeeds import CodatBankFeeds
8893
from codat_bankfeeds.models import shared
89-
90-
with CodatBankFeeds(
91-
security=shared.Security(
92-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
93-
),
94-
) as s:
95-
res = s.companies.create(request={
96-
"name": "Technicalium",
97-
"description": "Requested early access to the new financing scheme.",
94+
from decimal import Decimal
95+
96+
with CodatBankFeeds() as codat_bank_feeds:
97+
codat_bank_feeds.bank_feeds_source_account_connected(request={
98+
"event_type": "bankFeeds.sourceAccount.connected",
99+
"generated_date": "2022-10-23T00:00:00Z",
100+
"id": "ba29118f-5406-4e59-b05c-ba307ca38d01",
101+
"payload": {
102+
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
103+
"reference_company": {
104+
"description": "Requested early access to the new financing scheme.",
105+
"id": "0498e921-9b53-4396-a412-4f2f5983b0a2",
106+
"links": {
107+
"portal": "https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary",
108+
},
109+
"name": "Toft stores",
110+
},
111+
"source_account": {
112+
"id": "acc-002",
113+
"account_name": "account-081",
114+
"account_number": "12345678",
115+
"balance": Decimal("99.99"),
116+
"currency": "GBP",
117+
"modified_date": "2023-01-09T14:14:14.105Z",
118+
"sort_code": "040004",
119+
"status": shared.Status.PENDING,
120+
},
121+
},
98122
})
99123

100-
if res is not None:
101-
# handle response
102-
pass
124+
# Use the SDK ...
103125
```
104126

105127
</br>
@@ -110,21 +132,38 @@ The same SDK client can also be used to make asychronous requests by importing a
110132
import asyncio
111133
from codat_bankfeeds import CodatBankFeeds
112134
from codat_bankfeeds.models import shared
135+
from decimal import Decimal
113136

114137
async def main():
115-
async with CodatBankFeeds(
116-
security=shared.Security(
117-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
118-
),
119-
) as s:
120-
res = await s.companies.create_async(request={
121-
"name": "Technicalium",
122-
"description": "Requested early access to the new financing scheme.",
138+
async with CodatBankFeeds() as codat_bank_feeds:
139+
await codat_bank_feeds.bank_feeds_source_account_connected_async(request={
140+
"event_type": "bankFeeds.sourceAccount.connected",
141+
"generated_date": "2022-10-23T00:00:00Z",
142+
"id": "ba29118f-5406-4e59-b05c-ba307ca38d01",
143+
"payload": {
144+
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
145+
"reference_company": {
146+
"description": "Requested early access to the new financing scheme.",
147+
"id": "0498e921-9b53-4396-a412-4f2f5983b0a2",
148+
"links": {
149+
"portal": "https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary",
150+
},
151+
"name": "Toft stores",
152+
},
153+
"source_account": {
154+
"id": "acc-002",
155+
"account_name": "account-081",
156+
"account_number": "12345678",
157+
"balance": Decimal("99.99"),
158+
"currency": "GBP",
159+
"modified_date": "2023-01-09T14:14:14.105Z",
160+
"sort_code": "040004",
161+
"status": shared.Status.PENDING,
162+
},
163+
},
123164
})
124165

125-
if res is not None:
126-
# handle response
127-
pass
166+
# Use the SDK ...
128167

129168
asyncio.run(main())
130169
```
@@ -220,8 +259,8 @@ with CodatBankFeeds(
220259
security=shared.Security(
221260
auth_header="Basic BASE_64_ENCODED(API_KEY)",
222261
),
223-
) as s:
224-
res = s.source_accounts.generate_credentials(request={
262+
) as codat_bank_feeds:
263+
res = codat_bank_feeds.source_accounts.generate_credentials(request={
225264
"request_body": open("example.file", "rb"),
226265
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
227266
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -243,14 +282,14 @@ To change the default retry strategy for a single API call, simply provide a `Re
243282
```python
244283
from codat_bankfeeds import CodatBankFeeds
245284
from codat_bankfeeds.models import shared
246-
from codatbankfeeds.utils import BackoffStrategy, RetryConfig
285+
from codat_bankfeeds.utils import BackoffStrategy, RetryConfig
247286

248287
with CodatBankFeeds(
249288
security=shared.Security(
250289
auth_header="Basic BASE_64_ENCODED(API_KEY)",
251290
),
252-
) as s:
253-
res = s.companies.create(request={
291+
) as codat_bank_feeds:
292+
res = codat_bank_feeds.companies.create(request={
254293
"name": "Technicalium",
255294
"description": "Requested early access to the new financing scheme.",
256295
},
@@ -266,15 +305,15 @@ If you'd like to override the default retry strategy for all operations that sup
266305
```python
267306
from codat_bankfeeds import CodatBankFeeds
268307
from codat_bankfeeds.models import shared
269-
from codatbankfeeds.utils import BackoffStrategy, RetryConfig
308+
from codat_bankfeeds.utils import BackoffStrategy, RetryConfig
270309

271310
with CodatBankFeeds(
272311
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
273312
security=shared.Security(
274313
auth_header="Basic BASE_64_ENCODED(API_KEY)",
275314
),
276-
) as s:
277-
res = s.companies.create(request={
315+
) as codat_bank_feeds:
316+
res = codat_bank_feeds.companies.create(request={
278317
"name": "Technicalium",
279318
"description": "Requested early access to the new financing scheme.",
280319
})
@@ -319,10 +358,10 @@ with CodatBankFeeds(
319358
security=shared.Security(
320359
auth_header="Basic BASE_64_ENCODED(API_KEY)",
321360
),
322-
) as s:
361+
) as codat_bank_feeds:
323362
res = None
324363
try:
325-
res = s.companies.create(request={
364+
res = codat_bank_feeds.companies.create(request={
326365
"name": "Technicalium",
327366
"description": "Requested early access to the new financing scheme.",
328367
})
@@ -357,8 +396,8 @@ with CodatBankFeeds(
357396
security=shared.Security(
358397
auth_header="Basic BASE_64_ENCODED(API_KEY)",
359398
),
360-
) as s:
361-
res = s.companies.create(request={
399+
) as codat_bank_feeds:
400+
res = codat_bank_feeds.companies.create(request={
362401
"name": "Technicalium",
363402
"description": "Requested early access to the new financing scheme.",
364403
})
@@ -475,8 +514,8 @@ with CodatBankFeeds(
475514
security=shared.Security(
476515
auth_header="Basic BASE_64_ENCODED(API_KEY)",
477516
),
478-
) as s:
479-
res = s.companies.create(request={
517+
) as codat_bank_feeds:
518+
res = codat_bank_feeds.companies.create(request={
480519
"name": "Technicalium",
481520
"description": "Requested early access to the new financing scheme.",
482521
})

bank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,4 +818,14 @@ Based on:
818818
### Generated
819819
- [python v9.0.0] bank-feeds
820820
### Releases
821-
- [PyPI v9.0.0] https://pypi.org/project/codat-bankfeeds/9.0.0 - bank-feeds
821+
- [PyPI v9.0.0] https://pypi.org/project/codat-bankfeeds/9.0.0 - bank-feeds
822+
823+
## 2024-12-10 10:08:17
824+
### Changes
825+
Based on:
826+
- OpenAPI Doc
827+
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
828+
### Generated
829+
- [python v9.0.1] bank-feeds
830+
### Releases
831+
- [PyPI v9.0.1] https://pypi.org/project/codat-bankfeeds/9.0.1 - bank-feeds

bank-feeds/USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ with CodatBankFeeds(
88
security=shared.Security(
99
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1010
),
11-
) as s:
12-
res = s.companies.create(request={
11+
) as codat_bank_feeds:
12+
res = codat_bank_feeds.companies.create(request={
1313
"name": "Technicalium",
1414
"description": "Requested early access to the new financing scheme.",
1515
})
@@ -33,8 +33,8 @@ async def main():
3333
security=shared.Security(
3434
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3535
),
36-
) as s:
37-
res = await s.companies.create_async(request={
36+
) as codat_bank_feeds:
37+
res = await codat_bank_feeds.companies.create_async(request={
3838
"name": "Technicalium",
3939
"description": "Requested early access to the new financing scheme.",
4040
})

bank-feeds/docs/sdks/accountmapping/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ with CodatBankFeeds(
5353
security=shared.Security(
5454
auth_header="Basic BASE_64_ENCODED(API_KEY)",
5555
),
56-
) as s:
57-
res = s.account_mapping.create(request={
56+
) as codat_bank_feeds:
57+
res = codat_bank_feeds.account_mapping.create(request={
5858
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
5959
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
6060
"bank_feed_account_mapping": {
@@ -107,8 +107,8 @@ with CodatBankFeeds(
107107
security=shared.Security(
108108
auth_header="Basic BASE_64_ENCODED(API_KEY)",
109109
),
110-
) as s:
111-
res = s.account_mapping.get(request={
110+
) as codat_bank_feeds:
111+
res = codat_bank_feeds.account_mapping.get(request={
112112
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
113113
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
114114
})

0 commit comments

Comments
 (0)