Skip to content

Commit a1e75e6

Browse files
authored
Merge pull request #632 from codatio/speakeasy-sdk-regen-1736154644
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 10.1.0
2 parents 4b84005 + e1143a0 commit a1e75e6

File tree

158 files changed

+3405
-917
lines changed

Some content is hidden

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

158 files changed

+3405
-917
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.460.6
1+
speakeasyVersion: 1.462.2
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -52,11 +52,11 @@ sources:
5252
- main
5353
lending-source:
5454
sourceNamespace: lending-source
55-
sourceRevisionDigest: sha256:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
56-
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
55+
sourceRevisionDigest: sha256:fa937a375b6289e3d007c7c1ba3835cbcc300388cba7cc6a704d38950871d579
56+
sourceBlobDigest: sha256:c099262909612a8421934ac332897e738611c24f1d6f3878de41ec219fd78b48
5757
tags:
5858
- latest
59-
- speakeasy-sdk-regen-1733826112
59+
- speakeasy-sdk-regen-1736154644
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:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
142-
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
141+
sourceRevisionDigest: sha256:fa937a375b6289e3d007c7c1ba3835cbcc300388cba7cc6a704d38950871d579
142+
sourceBlobDigest: sha256:c099262909612a8421934ac332897e738611c24f1d6f3878de41ec219fd78b48
143143
codeSamplesNamespace: lending-source-python-code-samples
144-
codeSamplesRevisionDigest: sha256:d10023577a87c786508ad9634f78b1fd6e72689dc60fbe3caf6a62bc74e50528
144+
codeSamplesRevisionDigest: sha256:f5f1b3069f72f047356ceddbf281ed9e2234b2d20448e61f682c9bf8920af7b1
145145
platform-library:
146146
source: platform-source
147147
sourceNamespace: platform-source

lending/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.speakeasy/reports
12
.venv/
23
pyrightconfig.json
34
README-PYPI.md

lending/.speakeasy/gen.lock

Lines changed: 84 additions & 12 deletions
Large diffs are not rendered by default.

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.1
15+
version: 10.1.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

lending/README.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ poetry add codat-lending
9090
from codat_lending import CodatLending
9191

9292
with CodatLending() as codat_lending:
93+
9394
codat_lending.account_categories_updated(request={
9495
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
9596
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
@@ -117,6 +118,7 @@ from codat_lending import CodatLending
117118

118119
async def main():
119120
async with CodatLending() as codat_lending:
121+
120122
await codat_lending.account_categories_updated_async(request={
121123
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
122124
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
@@ -367,6 +369,7 @@ asyncio.run(main())
367369

368370
* [create](docs/sdks/sourceaccounts/README.md#create) - Create source account
369371
* [create_mapping](docs/sdks/sourceaccounts/README.md#create_mapping) - Create bank feed account mapping
372+
* [list_mappings](docs/sdks/sourceaccounts/README.md#list_mappings) - List bank feed account mappings
370373

371374
#### [loan_writeback.suppliers](docs/sdks/codatlendingsuppliers/README.md)
372375

@@ -508,15 +511,17 @@ with CodatLending(
508511
auth_header="Basic BASE_64_ENCODED(API_KEY)",
509512
),
510513
) as codat_lending:
514+
511515
res = codat_lending.companies.create(request={
512516
"name": "Technicalium",
513517
"description": "Requested early access to the new financing scheme.",
514518
},
515519
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
516520

517-
if res is not None:
518-
# handle response
519-
pass
521+
assert res is not None
522+
523+
# Handle response
524+
print(res)
520525

521526
```
522527

@@ -532,14 +537,16 @@ with CodatLending(
532537
auth_header="Basic BASE_64_ENCODED(API_KEY)",
533538
),
534539
) as codat_lending:
540+
535541
res = codat_lending.companies.create(request={
536542
"name": "Technicalium",
537543
"description": "Requested early access to the new financing scheme.",
538544
})
539545

540-
if res is not None:
541-
# handle response
542-
pass
546+
assert res is not None
547+
548+
# Handle response
549+
print(res)
543550

544551
```
545552
<!-- End Retries [retries] -->
@@ -578,14 +585,16 @@ with CodatLending(
578585
) as codat_lending:
579586
res = None
580587
try:
588+
581589
res = codat_lending.companies.create(request={
582590
"name": "Technicalium",
583591
"description": "Requested early access to the new financing scheme.",
584592
})
585593

586-
if res is not None:
587-
# handle response
588-
pass
594+
assert res is not None
595+
596+
# Handle response
597+
print(res)
589598

590599
except errors.ErrorMessage as e:
591600
# handle e.data: errors.ErrorMessageData
@@ -612,14 +621,16 @@ with CodatLending(
612621
auth_header="Basic BASE_64_ENCODED(API_KEY)",
613622
),
614623
) as codat_lending:
624+
615625
res = codat_lending.companies.create(request={
616626
"name": "Technicalium",
617627
"description": "Requested early access to the new financing scheme.",
618628
})
619629

620-
if res is not None:
621-
# handle response
622-
pass
630+
assert res is not None
631+
632+
# Handle response
633+
print(res)
623634

624635
```
625636
<!-- End Server Selection [server] -->
@@ -726,14 +737,16 @@ with CodatLending(
726737
auth_header="Basic BASE_64_ENCODED(API_KEY)",
727738
),
728739
) as codat_lending:
740+
729741
res = codat_lending.companies.create(request={
730742
"name": "Technicalium",
731743
"description": "Requested early access to the new financing scheme.",
732744
})
733745

734-
if res is not None:
735-
# handle response
736-
pass
746+
assert res is not None
747+
748+
# Handle response
749+
print(res)
737750

738751
```
739752
<!-- End Authentication [security] -->
@@ -767,6 +780,7 @@ with CodatLending(
767780
auth_header="Basic BASE_64_ENCODED(API_KEY)",
768781
),
769782
) as codat_lending:
783+
770784
codat_lending.file_upload.upload(request={
771785
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
772786
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,14 @@ Based on:
168168
### Generated
169169
- [python v10.0.1] lending
170170
### Releases
171-
- [PyPI v10.0.1] https://pypi.org/project/codat-lending/10.0.1 - lending
171+
- [PyPI v10.0.1] https://pypi.org/project/codat-lending/10.0.1 - lending
172+
173+
## 2025-01-06 09:10:35
174+
### Changes
175+
Based on:
176+
- OpenAPI Doc
177+
- Speakeasy CLI 1.462.2 (2.486.1) https://github.com/speakeasy-api/speakeasy
178+
### Generated
179+
- [python v10.1.0] lending
180+
### Releases
181+
- [PyPI v10.1.0] https://pypi.org/project/codat-lending/10.1.0 - lending

lending/USAGE.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ with CodatLending(
99
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1010
),
1111
) as codat_lending:
12+
1213
res = codat_lending.companies.create(request={
1314
"name": "Technicalium",
1415
"description": "Requested early access to the new financing scheme.",
1516
})
1617

17-
if res is not None:
18-
# handle response
19-
pass
18+
assert res is not None
19+
20+
# Handle response
21+
print(res)
2022
```
2123

2224
</br>
@@ -34,14 +36,16 @@ async def main():
3436
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3537
),
3638
) as codat_lending:
39+
3740
res = await codat_lending.companies.create_async(request={
3841
"name": "Technicalium",
3942
"description": "Requested early access to the new financing scheme.",
4043
})
4144

42-
if res is not None:
43-
# handle response
44-
pass
45+
assert res is not None
46+
47+
# Handle response
48+
print(res)
4549

4650
asyncio.run(main())
4751
```

lending/docs/models/operations/createsourceaccountrequestbody.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
## Supported Types
55

6-
### `shared.SourceAccountV2`
6+
### `shared.SourceAccountV2Prototype`
77

88
```python
9-
value: shared.SourceAccountV2 = /* values here */
9+
value: shared.SourceAccountV2Prototype = /* values here */
1010
```
1111

12-
### `shared.SourceAccount`
12+
### `shared.SourceAccountPrototype`
1313

1414
```python
15-
value: shared.SourceAccount = /* values here */
15+
value: shared.SourceAccountPrototype = /* values here */
1616
```
1717

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# GetBankAccountMappingRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |

lending/docs/models/operations/listcompaniesrequest.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8-
| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate |
9-
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 |
10-
| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 |
11-
| `query` | *Optional[str]* | :heavy_minus_sign: | Codat query string. [Read more](https://docs.codat.io/using-the-api/querying). | id=e3334455-1aed-4e71-ab43-6bccf12092ee |
6+
| Field | Type | Required | Description | Example |
7+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate |
9+
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 |
10+
| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 |
11+
| `query` | *Optional[str]* | :heavy_minus_sign: | Codat query string. [Read more](https://docs.codat.io/using-the-api/querying). | id=e3334455-1aed-4e71-ab43-6bccf12092ee |
12+
| `tags` | *Optional[str]* | :heavy_minus_sign: | Filter companies by tags using the "equals" (=), "not equals" (!=), and "contains" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying). | region=uk && team=invoice-finance |

0 commit comments

Comments
 (0)