Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.440.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 18, 2024
1 parent 7414a66 commit da4cf6b
Show file tree
Hide file tree
Showing 27 changed files with 151 additions and 168 deletions.
14 changes: 8 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.431.0
speakeasyVersion: 1.440.1
sources:
accounting-source:
sourceNamespace: accounting-source
Expand Down Expand Up @@ -51,11 +51,11 @@ sources:
- main
lending-source:
sourceNamespace: lending-source
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
tags:
- latest
- main
- speakeasy-sdk-regen-1731929356
sync-for-commerce-source:
sourceNamespace: sync-for-commerce-source
sourceRevisionDigest: sha256:6a62a3d9d65254b83a8e6afa5ea2e9d287076520c057bf8a1b60e42ebbdc815e
Expand Down Expand Up @@ -116,8 +116,10 @@ targets:
lending-library:
source: lending-source
sourceNamespace: lending-source
sourceRevisionDigest: sha256:db9283292e52e0b11e1dc217a45a967819382b72943f82f071818621ef7b643b
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
codeSamplesNamespace: lending-source-code-samples
codeSamplesRevisionDigest: sha256:2a3bee0a978a51571d6cbec79cdcf1073f22d5d7afe86b41d7bfff4cf53e6be8
sync-for-commerce-library:
source: sync-for-commerce-source
sourceNamespace: sync-for-commerce-source
Expand Down
93 changes: 53 additions & 40 deletions lending/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lending/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 8.0.0
version: 9.0.0
additionalDependencies:
dev: {}
main: {}
author: Codat
authors:
- Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
enumFormat: enum
fixFlags:
Expand Down
47 changes: 7 additions & 40 deletions lending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,10 @@ By default, an API error will raise a errors.SDKError exception, which has the f

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:

| Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- |
| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| ------------------- | --------------------------------- | ---------------- |
| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

### Example

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

### Select Server by Index

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:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.codat.io` | None |

#### Example

```python
from codat_lending import CodatLending
from codat_lending.models import shared

s = CodatLending(
server_idx=0,
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
)

res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass

```


### Override Server URL Per-Client

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:
Expand Down Expand Up @@ -740,9 +707,9 @@ s = CodatLending(async_client=CustomClient(httpx.AsyncClient()))

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------------- | ------------- | ------------- |
| `auth_header` | apiKey | API key |
| Name | Type | Scheme |
| ------------- | ------ | ------- |
| `auth_header` | apiKey | API key |

You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
```python
Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,14 @@ Based on:
### Generated
- [python v8.0.0] lending
### Releases
- [PyPI v8.0.0] https://pypi.org/project/codat-lending/8.0.0 - lending
- [PyPI v8.0.0] https://pypi.org/project/codat-lending/8.0.0 - lending

## 2024-11-18 11:29:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v9.0.0] lending
### Releases
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending
2 changes: 1 addition & 1 deletion lending/docs/models/shared/accountingbillcreditnote.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RecordRef
# AccountingRecordRef

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

Expand Down
2 changes: 1 addition & 1 deletion lending/docs/models/shared/accountingtransfer.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lending/docs/models/shared/accountsreceivabletracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Categories, and a project and customer, against which the item is tracked.
| `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. |
| `customer_ref` | [Optional[shared.AccountingCustomerRef]](../../models/shared/accountingcustomerref.md) | :heavy_minus_sign: | N/A |
| `project_ref` | [Optional[shared.ProjectRef]](../../models/shared/projectref.md) | :heavy_minus_sign: | N/A |
| `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. |
| `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. |
Loading

0 comments on commit da4cf6b

Please sign in to comment.