Skip to content

Commit f4459f7

Browse files
authored
Merge pull request #611 from codatio/speakeasy-sdk-regen-1730905474
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 8.0.0
2 parents 8758d68 + 5f71b0c commit f4459f7

File tree

656 files changed

+6559
-3686
lines changed

Some content is hidden

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

656 files changed

+6559
-3686
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.423.5
1+
speakeasyVersion: 1.431.0
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -51,8 +51,8 @@ sources:
5151
- main
5252
lending-source:
5353
sourceNamespace: lending-source
54-
sourceRevisionDigest: sha256:76acbb855a27cb6351b46d0a7cad80aad2ab990d5c3d7d9ce6b384f7e0f28a45
55-
sourceBlobDigest: sha256:25ea8d26ce94e44b7731aa9355290766d9d5cfa14d1ebcfcb2e3f3e6ba2a155f
54+
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
55+
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
5656
tags:
5757
- latest
5858
- main
@@ -116,8 +116,8 @@ targets:
116116
lending-library:
117117
source: lending-source
118118
sourceNamespace: lending-source
119-
sourceRevisionDigest: sha256:76acbb855a27cb6351b46d0a7cad80aad2ab990d5c3d7d9ce6b384f7e0f28a45
120-
sourceBlobDigest: sha256:25ea8d26ce94e44b7731aa9355290766d9d5cfa14d1ebcfcb2e3f3e6ba2a155f
119+
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
120+
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
121121
sync-for-commerce-library:
122122
source: sync-for-commerce-source
123123
sourceNamespace: sync-for-commerce-source

lending/.speakeasy/gen.lock

Lines changed: 627 additions & 497 deletions
Large diffs are not rendered by default.

lending/.speakeasy/gen.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ generation:
99
requestResponseComponentNamesFeb2024: false
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
12+
oAuth2PasswordEnabled: false
1213
telemetryEnabled: true
1314
python:
14-
version: 7.1.0
15+
version: 8.0.0
1516
additionalDependencies:
1617
dev: {}
1718
main: {}
1819
author: Codat
1920
authors:
20-
- Speakeasy
21+
- Speakeasy
2122
clientServerStatusCodesAsErrors: true
22-
description: Make credit decisions backed by enhanced financials, metrics, reports,
23-
and data integrity features.
23+
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
2424
enumFormat: enum
25+
fixFlags:
26+
responseRequiredSep2024: false
2527
flattenGlobalSecurity: false
2628
flattenRequests: false
29+
flatteningOrder: parameters-first
2730
imports:
2831
option: openapi
2932
paths:

lending/README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@ asyncio.run(main())
354354
* [create](docs/sdks/codatlendingpayments/README.md#create) - Create payment
355355
* [get_create_model](docs/sdks/codatlendingpayments/README.md#get_create_model) - Get create payment model
356356

357+
#### [loan_writeback.source_accounts](docs/sdks/sourceaccounts/README.md)
358+
359+
* [create](docs/sdks/sourceaccounts/README.md#create) - Create source account
360+
* [create_mapping](docs/sdks/sourceaccounts/README.md#create_mapping) - Create bank feed account mapping
361+
357362
#### [loan_writeback.suppliers](docs/sdks/codatlendingsuppliers/README.md)
358363

359364
* [create](docs/sdks/codatlendingsuppliers/README.md#create) - Create supplier
@@ -378,6 +383,11 @@ asyncio.run(main())
378383
* [all_data_types](docs/sdks/refresh/README.md#all_data_types) - Refresh all data
379384
* [data_type](docs/sdks/refresh/README.md#data_type) - Refresh data type
380385

386+
### [manage_reports](docs/sdks/managereports/README.md)
387+
388+
* [generate_report](docs/sdks/managereports/README.md#generate_report) - Generate report
389+
* [list_reports](docs/sdks/managereports/README.md#list_reports) - List reports
390+
381391
### [sales](docs/sdks/sales/README.md)
382392

383393

@@ -530,12 +540,23 @@ if res is not None:
530540
<!-- Start Error Handling [errors] -->
531541
## Error Handling
532542

533-
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.
543+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
544+
545+
By default, an API error will raise a errors.SDKError exception, which has the following properties:
546+
547+
| Property | Type | Description |
548+
|-----------------|------------------|-----------------------|
549+
| `.status_code` | *int* | The HTTP status code |
550+
| `.message` | *str* | The error message |
551+
| `.raw_response` | *httpx.Response* | The raw HTTP response |
552+
| `.body` | *str* | The response content |
553+
554+
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:
534555

535-
| Error Object | Status Code | Content Type |
536-
| --------------------------- | --------------------------- | --------------------------- |
537-
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
538-
| errors.SDKError | 4xx-5xx | */* |
556+
| Error Type | Status Code | Content Type |
557+
| --------------------------------- | --------------------------------- | --------------------------------- |
558+
| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
559+
| errors.SDKError | 4XX, 5XX | \*/\* |
539560

540561
### Example
541562

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,14 @@ Based on:
128128
### Generated
129129
- [python v7.1.0] lending
130130
### Releases
131-
- [PyPI v7.1.0] https://pypi.org/project/codat-lending/7.1.0 - lending
131+
- [PyPI v7.1.0] https://pypi.org/project/codat-lending/7.1.0 - lending
132+
133+
## 2024-11-06 15:04:25
134+
### Changes
135+
Based on:
136+
- OpenAPI Doc
137+
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
138+
### Generated
139+
- [python v8.0.0] lending
140+
### Releases
141+
- [PyPI v8.0.0] https://pypi.org/project/codat-lending/8.0.0 - lending
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateBankAccountMappingRequest
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 |
10+
| `bank_feed_bank_account_mapping` | [Optional[shared.BankFeedBankAccountMapping]](../../models/shared/bankfeedbankaccountmapping.md) | :heavy_minus_sign: | N/A | {<br/>"sourceAccountId": "acc-002",<br/>"targetAccountId": "account-081"<br/>} |

lending/docs/models/operations/createbanktransactionsrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
8-
| `account_id` | *str* | :heavy_check_mark: | Unique identifier for an account. | |
8+
| `account_id` | *str* | :heavy_check_mark: | Unique identifier for an account. | 13d946f0-c5d5-42bc-b092-97ece17923ab |
99
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
1010
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
1111
| `accounting_create_bank_transactions` | [Optional[shared.AccountingCreateBankTransactions]](../../models/shared/accountingcreatebanktransactions.md) | :heavy_minus_sign: | N/A | |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateSourceAccountRequest
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 |
10+
| `request_body` | [Optional[operations.CreateSourceAccountRequestBody]](../../models/operations/createsourceaccountrequestbody.md) | :heavy_minus_sign: | N/A | |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CreateSourceAccountRequestBody
2+
3+
4+
## Supported Types
5+
6+
### `shared.SourceAccountV2`
7+
8+
```python
9+
value: shared.SourceAccountV2 = /* values here */
10+
```
11+
12+
### `shared.SourceAccount`
13+
14+
```python
15+
value: shared.SourceAccount = /* values here */
16+
```
17+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CreateSourceAccountResponseBody
2+
3+
Success
4+
5+
6+
## Supported Types
7+
8+
### `shared.SourceAccountV2`
9+
10+
```python
11+
value: shared.SourceAccountV2 = /* values here */
12+
```
13+
14+
### `shared.SourceAccount`
15+
16+
```python
17+
value: shared.SourceAccount = /* values here */
18+
```
19+

0 commit comments

Comments
 (0)