Skip to content

Commit f9ca6f2

Browse files
authored
Merge pull request #612 from codatio/speakeasy-sdk-regen-1731929356
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 9.0.0
2 parents 7414a66 + da4cf6b commit f9ca6f2

27 files changed

+151
-168
lines changed

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.431.0
1+
speakeasyVersion: 1.440.1
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -51,11 +51,11 @@ sources:
5151
- main
5252
lending-source:
5353
sourceNamespace: lending-source
54-
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
55-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
54+
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
55+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
5656
tags:
5757
- latest
58-
- main
58+
- speakeasy-sdk-regen-1731929356
5959
sync-for-commerce-source:
6060
sourceNamespace: sync-for-commerce-source
6161
sourceRevisionDigest: sha256:6a62a3d9d65254b83a8e6afa5ea2e9d287076520c057bf8a1b60e42ebbdc815e
@@ -116,8 +116,10 @@ targets:
116116
lending-library:
117117
source: lending-source
118118
sourceNamespace: lending-source
119-
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
120-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
119+
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
120+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
121+
codeSamplesNamespace: lending-source-code-samples
122+
codeSamplesRevisionDigest: sha256:2a3bee0a978a51571d6cbec79cdcf1073f22d5d7afe86b41d7bfff4cf53e6be8
121123
sync-for-commerce-library:
122124
source: sync-for-commerce-source
123125
sourceNamespace: sync-for-commerce-source

β€Žlending/.speakeasy/gen.lockβ€Ž

Lines changed: 53 additions & 40 deletions
Large diffs are not rendered by default.

β€Žlending/.speakeasy/gen.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
python:
15-
version: 8.0.0
15+
version: 9.0.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}
1919
author: Codat
2020
authors:
2121
- Speakeasy
2222
clientServerStatusCodesAsErrors: true
23+
defaultErrorName: SDKError
2324
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
2425
enumFormat: enum
2526
fixFlags:

β€Žlending/README.mdβ€Ž

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,10 @@ By default, an API error will raise a errors.SDKError exception, which has the f
553553

554554
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:
555555

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 | \*/\* |
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 | \*/\* |
560560

561561
### Example
562562

@@ -593,39 +593,6 @@ except errors.SDKError as e:
593593
<!-- Start Server Selection [server] -->
594594
## Server Selection
595595

596-
### Select Server by Index
597-
598-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
599-
600-
| # | Server | Variables |
601-
| - | ------ | --------- |
602-
| 0 | `https://api.codat.io` | None |
603-
604-
#### Example
605-
606-
```python
607-
from codat_lending import CodatLending
608-
from codat_lending.models import shared
609-
610-
s = CodatLending(
611-
server_idx=0,
612-
security=shared.Security(
613-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
614-
),
615-
)
616-
617-
res = s.companies.create(request={
618-
"name": "Technicalium",
619-
"description": "Requested early access to the new financing scheme.",
620-
})
621-
622-
if res is not None:
623-
# handle response
624-
pass
625-
626-
```
627-
628-
629596
### Override Server URL Per-Client
630597

631598
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -740,9 +707,9 @@ s = CodatLending(async_client=CustomClient(httpx.AsyncClient()))
740707

741708
This SDK supports the following security scheme globally:
742709

743-
| Name | Type | Scheme |
744-
| ------------- | ------------- | ------------- |
745-
| `auth_header` | apiKey | API key |
710+
| Name | Type | Scheme |
711+
| ------------- | ------ | ------- |
712+
| `auth_header` | apiKey | API key |
746713

747714
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
748715
```python

β€Žlending/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,14 @@ Based on:
138138
### Generated
139139
- [python v8.0.0] lending
140140
### Releases
141-
- [PyPI v8.0.0] https://pypi.org/project/codat-lending/8.0.0 - lending
141+
- [PyPI v8.0.0] https://pypi.org/project/codat-lending/8.0.0 - lending
142+
143+
## 2024-11-18 11:29:08
144+
### Changes
145+
Based on:
146+
- OpenAPI Doc
147+
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
148+
### Generated
149+
- [python v9.0.0] lending
150+
### Releases
151+
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending

β€Žlending/docs/models/shared/accountingbillcreditnote.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žlending/docs/models/shared/accountingcreatetransferresponseaccountingtransfer.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žlending/docs/models/shared/recordref.mdβ€Ž renamed to β€Žlending/docs/models/shared/accountingrecordref.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RecordRef
1+
# AccountingRecordRef
22

33
Links the current record to the underlying record or data type that created it.
44

β€Žlending/docs/models/shared/accountingtransfer.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žlending/docs/models/shared/accountsreceivabletracking.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Categories, and a project and customer, against which the item is tracked.
1212
| `is_rebilled_to` | [shared.BilledToType1](../../models/shared/billedtotype1.md) | :heavy_check_mark: | Defines if the bill or bill credit note is billed/rebilled to a project. |
1313
| `customer_ref` | [Optional[shared.AccountingCustomerRef]](../../models/shared/accountingcustomerref.md) | :heavy_minus_sign: | N/A |
1414
| `project_ref` | [Optional[shared.ProjectRef]](../../models/shared/projectref.md) | :heavy_minus_sign: | N/A |
15-
| `record_ref` | [Optional[shared.RecordReference]](../../models/shared/recordreference.md) | :heavy_minus_sign: | Links the current record to the underlying record or data type that created it. <br/><br/>For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. |
15+
| `record_ref` | [Optional[shared.AccountingRecordRef]](../../models/shared/accountingrecordref.md) | :heavy_minus_sign: | Links the current record to the underlying record or data type that created it. <br/><br/>For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. |

0 commit comments

Comments
Β (0)