Skip to content

Commit fcf4a81

Browse files
authored
Merge pull request #625 from codatio/speakeasy-sdk-regen-1733826112
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 10.0.1
2 parents 3600a34 + 184b85e commit fcf4a81

File tree

70 files changed

+531
-473
lines changed

Some content is hidden

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

70 files changed

+531
-473
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ sources:
5252
- main
5353
lending-source:
5454
sourceNamespace: lending-source
55-
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
55+
sourceRevisionDigest: sha256:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
5656
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
5757
tags:
5858
- latest
59-
- speakeasy-sdk-regen-1732640659
59+
- speakeasy-sdk-regen-1733826112
6060
- 3.0.0
6161
platform-source:
6262
sourceNamespace: platform-source
@@ -138,10 +138,10 @@ targets:
138138
lending-library:
139139
source: lending-source
140140
sourceNamespace: lending-source
141-
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
141+
sourceRevisionDigest: sha256:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
142142
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
143-
codeSamplesNamespace: lending-source-code-samples
144-
codeSamplesRevisionDigest: sha256:b7511b3055b763213950c5ee099869857756beb6faec11baddc339e4682a9062
143+
codeSamplesNamespace: lending-source-python-code-samples
144+
codeSamplesRevisionDigest: sha256:d10023577a87c786508ad9634f78b1fd6e72689dc60fbe3caf6a62bc74e50528
145145
platform-library:
146146
source: platform-source
147147
sourceNamespace: platform-source

lending/.speakeasy/gen.lock

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: c22ee3eb-abe5-40e9-bcf6-8be944e72a7b
33
management:
44
docChecksum: 9d2203249a565b88959fb122711a1f33
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.447.0
7-
generationVersion: 2.463.0
8-
releaseVersion: 10.0.0
9-
configChecksum: 86504764483be53c74a1b92dec0be5a9
6+
speakeasyVersion: 1.453.8
7+
generationVersion: 2.474.15
8+
releaseVersion: 10.0.1
9+
configChecksum: 0c3003cb61623fa1f82cc340f29da6b8
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: lending
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=lending
@@ -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
@@ -11348,4 +11348,28 @@ examples:
1134811348
responses:
1134911349
"400":
1135011350
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400}
11351+
Account categories updated:
11352+
speakeasy-default-account-categories-updated:
11353+
requestBody:
11354+
application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "CompanyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "Data": {"modifiedDate": "2022-10-23"}, "DataConnectionId": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "Message": "Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968.", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Account Categories Updated"}
11355+
Client rate limit reached:
11356+
speakeasy-default-client-rate-limit-reached:
11357+
requestBody:
11358+
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"}
11359+
Client rate limit reset:
11360+
speakeasy-default-client-rate-limit-reset:
11361+
requestBody:
11362+
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"}
11363+
client.rateLimit.reached:
11364+
Reached:
11365+
requestBody:
11366+
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}}
11367+
client.rateLimit.reset:
11368+
Reset:
11369+
requestBody:
11370+
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}}
11371+
report.categorizedBankStatement.generate.successful:
11372+
Successful:
11373+
requestBody:
11374+
application/json: {"eventType": "reports.categorizedBankStatement.generate.successful", "generatedDate": "2023-05-03T10:00:23Z", "id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "payload": {"id": "bb42ce7e-720a-4ac5-b640-f24f53ff47c8", "referenceCompany": {"description": "internal_id_mxO7rLfo", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "links": {"portal": "https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary"}, "name": "Bank of Dave", "tags": {"customerRegion": "us", "uid": "335a086e-8563-4b03-94e3-39544225ecb6"}}}}
1135111375
generatedTests: {}

lending/.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: 10.0.0
15+
version: 10.0.1
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

lending/README.md

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,23 @@ The Lending API is built on top of the latest accounting, commerce, and banking
3838

3939
<!-- Start Table of Contents [toc] -->
4040
## Table of Contents
41+
<!-- $toc-max-depth=2 -->
42+
* [Lending](#lending)
43+
* [Endpoints](#endpoints)
44+
* [SDK Installation](#sdk-installation)
45+
* [Example Usage](#example-usage)
46+
* [SDK Example Usage](#sdk-example-usage)
47+
* [Available Resources and Operations](#available-resources-and-operations)
48+
* [Retries](#retries)
49+
* [Error Handling](#error-handling)
50+
* [Server Selection](#server-selection)
51+
* [Custom HTTP Client](#custom-http-client)
52+
* [Authentication](#authentication)
53+
* [IDE Support](#ide-support)
54+
* [File uploads](#file-uploads)
55+
* [Debugging](#debugging)
56+
* [Support](#support)
4157

42-
* [SDK Installation](#sdk-installation)
43-
* [IDE Support](#ide-support)
44-
* [SDK Example Usage](#sdk-example-usage)
45-
* [Available Resources and Operations](#available-resources-and-operations)
46-
* [File uploads](#file-uploads)
47-
* [Retries](#retries)
48-
* [Error Handling](#error-handling)
49-
* [Server Selection](#server-selection)
50-
* [Custom HTTP Client](#custom-http-client)
51-
* [Authentication](#authentication)
52-
* [Debugging](#debugging)
5358
<!-- End Table of Contents [toc] -->
5459

5560
<!-- Start SDK Installation [installation] -->
@@ -83,21 +88,23 @@ poetry add codat-lending
8388
```python
8489
# Synchronous Example
8590
from codat_lending import CodatLending
86-
from codat_lending.models import shared
8791

88-
with CodatLending(
89-
security=shared.Security(
90-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
91-
),
92-
) as s:
93-
res = s.companies.create(request={
94-
"name": "Technicalium",
95-
"description": "Requested early access to the new financing scheme.",
92+
with CodatLending() as codat_lending:
93+
codat_lending.account_categories_updated(request={
94+
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
95+
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
96+
"client_name": "Bank of Dave",
97+
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
98+
"data": {
99+
"modified_date": "2022-10-23",
100+
},
101+
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
102+
"message": "Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968.",
103+
"rule_id": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
104+
"rule_type": "Account Categories Updated",
96105
})
97106

98-
if res is not None:
99-
# handle response
100-
pass
107+
# Use the SDK ...
101108
```
102109

103110
</br>
@@ -107,22 +114,24 @@ The same SDK client can also be used to make asychronous requests by importing a
107114
# Asynchronous Example
108115
import asyncio
109116
from codat_lending import CodatLending
110-
from codat_lending.models import shared
111117

112118
async def main():
113-
async with CodatLending(
114-
security=shared.Security(
115-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
116-
),
117-
) as s:
118-
res = await s.companies.create_async(request={
119-
"name": "Technicalium",
120-
"description": "Requested early access to the new financing scheme.",
119+
async with CodatLending() as codat_lending:
120+
await codat_lending.account_categories_updated_async(request={
121+
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
122+
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
123+
"client_name": "Bank of Dave",
124+
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
125+
"data": {
126+
"modified_date": "2022-10-23",
127+
},
128+
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
129+
"message": "Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968.",
130+
"rule_id": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
131+
"rule_type": "Account Categories Updated",
121132
})
122133

123-
if res is not None:
124-
# handle response
125-
pass
134+
# Use the SDK ...
126135

127136
asyncio.run(main())
128137
```
@@ -492,14 +501,14 @@ To change the default retry strategy for a single API call, simply provide a `Re
492501
```python
493502
from codat_lending import CodatLending
494503
from codat_lending.models import shared
495-
from codatlending.utils import BackoffStrategy, RetryConfig
504+
from codat_lending.utils import BackoffStrategy, RetryConfig
496505

497506
with CodatLending(
498507
security=shared.Security(
499508
auth_header="Basic BASE_64_ENCODED(API_KEY)",
500509
),
501-
) as s:
502-
res = s.companies.create(request={
510+
) as codat_lending:
511+
res = codat_lending.companies.create(request={
503512
"name": "Technicalium",
504513
"description": "Requested early access to the new financing scheme.",
505514
},
@@ -515,15 +524,15 @@ If you'd like to override the default retry strategy for all operations that sup
515524
```python
516525
from codat_lending import CodatLending
517526
from codat_lending.models import shared
518-
from codatlending.utils import BackoffStrategy, RetryConfig
527+
from codat_lending.utils import BackoffStrategy, RetryConfig
519528

520529
with CodatLending(
521530
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
522531
security=shared.Security(
523532
auth_header="Basic BASE_64_ENCODED(API_KEY)",
524533
),
525-
) as s:
526-
res = s.companies.create(request={
534+
) as codat_lending:
535+
res = codat_lending.companies.create(request={
527536
"name": "Technicalium",
528537
"description": "Requested early access to the new financing scheme.",
529538
})
@@ -566,10 +575,10 @@ with CodatLending(
566575
security=shared.Security(
567576
auth_header="Basic BASE_64_ENCODED(API_KEY)",
568577
),
569-
) as s:
578+
) as codat_lending:
570579
res = None
571580
try:
572-
res = s.companies.create(request={
581+
res = codat_lending.companies.create(request={
573582
"name": "Technicalium",
574583
"description": "Requested early access to the new financing scheme.",
575584
})
@@ -602,8 +611,8 @@ with CodatLending(
602611
security=shared.Security(
603612
auth_header="Basic BASE_64_ENCODED(API_KEY)",
604613
),
605-
) as s:
606-
res = s.companies.create(request={
614+
) as codat_lending:
615+
res = codat_lending.companies.create(request={
607616
"name": "Technicalium",
608617
"description": "Requested early access to the new financing scheme.",
609618
})
@@ -716,8 +725,8 @@ with CodatLending(
716725
security=shared.Security(
717726
auth_header="Basic BASE_64_ENCODED(API_KEY)",
718727
),
719-
) as s:
720-
res = s.companies.create(request={
728+
) as codat_lending:
729+
res = codat_lending.companies.create(request={
721730
"name": "Technicalium",
722731
"description": "Requested early access to the new financing scheme.",
723732
})
@@ -757,8 +766,8 @@ with CodatLending(
757766
security=shared.Security(
758767
auth_header="Basic BASE_64_ENCODED(API_KEY)",
759768
),
760-
) as s:
761-
s.file_upload.upload(request={
769+
) as codat_lending:
770+
codat_lending.file_upload.upload(request={
762771
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
763772
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
764773
})

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [python v10.0.0] lending
160160
### Releases
161-
- [PyPI v10.0.0] https://pypi.org/project/codat-lending/10.0.0 - lending
161+
- [PyPI v10.0.0] https://pypi.org/project/codat-lending/10.0.0 - lending
162+
163+
## 2024-12-10 10:21:43
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [python v10.0.1] lending
170+
### Releases
171+
- [PyPI v10.0.1] https://pypi.org/project/codat-lending/10.0.1 - lending

lending/USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ with CodatLending(
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_lending:
12+
res = codat_lending.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_lending:
37+
res = await codat_lending.companies.create_async(request={
3838
"name": "Technicalium",
3939
"description": "Requested early access to the new financing scheme.",
4040
})

lending/docs/sdks/accountbalances/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ with CodatLending(
2626
security=shared.Security(
2727
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2828
),
29-
) as s:
30-
res = s.banking.account_balances.list(request={
29+
) as codat_lending:
30+
res = codat_lending.banking.account_balances.list(request={
3131
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
3232
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
3333
"order_by": "-modifiedDate",

lending/docs/sdks/accounts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ with CodatLending(
2727
security=shared.Security(
2828
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2929
),
30-
) as s:
31-
res = s.accounting_bank_data.accounts.get(request={
30+
) as codat_lending:
31+
res = codat_lending.accounting_bank_data.accounts.get(request={
3232
"account_id": "7110701885",
3333
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
3434
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -77,8 +77,8 @@ with CodatLending(
7777
security=shared.Security(
7878
auth_header="Basic BASE_64_ENCODED(API_KEY)",
7979
),
80-
) as s:
81-
res = s.accounting_bank_data.accounts.list(request={
80+
) as codat_lending:
81+
res = codat_lending.accounting_bank_data.accounts.list(request={
8282
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
8383
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
8484
"order_by": "-modifiedDate",

lending/docs/sdks/accounttransactions/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ with CodatLending(
2727
security=shared.Security(
2828
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2929
),
30-
) as s:
31-
res = s.transactions.account_transactions.get(request={
30+
) as codat_lending:
31+
res = codat_lending.transactions.account_transactions.get(request={
3232
"account_transaction_id": "<id>",
3333
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
3434
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
@@ -77,8 +77,8 @@ with CodatLending(
7777
security=shared.Security(
7878
auth_header="Basic BASE_64_ENCODED(API_KEY)",
7979
),
80-
) as s:
81-
res = s.transactions.account_transactions.list(request={
80+
) as codat_lending:
81+
res = codat_lending.transactions.account_transactions.list(request={
8282
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
8383
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
8484
"order_by": "-modifiedDate",

lending/docs/sdks/balancesheet/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ with CodatLending(
2222
security=shared.Security(
2323
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2424
),
25-
) as s:
26-
res = s.financial_statements.balance_sheet.get(request={
25+
) as codat_lending:
26+
res = codat_lending.financial_statements.balance_sheet.get(request={
2727
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
2828
"period_length": 4,
2929
"periods_to_compare": 20,
@@ -70,8 +70,8 @@ with CodatLending(
7070
security=shared.Security(
7171
auth_header="Basic BASE_64_ENCODED(API_KEY)",
7272
),
73-
) as s:
74-
res = s.financial_statements.balance_sheet.get_categorized_accounts(request={
73+
) as codat_lending:
74+
res = codat_lending.financial_statements.balance_sheet.get_categorized_accounts(request={
7575
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
7676
"report_date": "29-09-2020",
7777
})

0 commit comments

Comments
 (0)