Skip to content

Commit

Permalink
Merge pull request #632 from codatio/speakeasy-sdk-regen-1736154644
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 10.1.0
  • Loading branch information
dcoplowe authored Jan 6, 2025
2 parents 4b84005 + e1143a0 commit a1e75e6
Show file tree
Hide file tree
Showing 158 changed files with 3,405 additions and 917 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.460.6
speakeasyVersion: 1.462.2
sources:
accounting-source:
sourceNamespace: accounting-source
Expand Down Expand Up @@ -52,11 +52,11 @@ sources:
- main
lending-source:
sourceNamespace: lending-source
sourceRevisionDigest: sha256:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
sourceRevisionDigest: sha256:fa937a375b6289e3d007c7c1ba3835cbcc300388cba7cc6a704d38950871d579
sourceBlobDigest: sha256:c099262909612a8421934ac332897e738611c24f1d6f3878de41ec219fd78b48
tags:
- latest
- speakeasy-sdk-regen-1733826112
- speakeasy-sdk-regen-1736154644
- 3.0.0
platform-source:
sourceNamespace: platform-source
Expand Down Expand Up @@ -138,10 +138,10 @@ targets:
lending-library:
source: lending-source
sourceNamespace: lending-source
sourceRevisionDigest: sha256:6a6559ff1708203015c12ef0715df1944b69a78beaaaf74d668bb0699683c35f
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
sourceRevisionDigest: sha256:fa937a375b6289e3d007c7c1ba3835cbcc300388cba7cc6a704d38950871d579
sourceBlobDigest: sha256:c099262909612a8421934ac332897e738611c24f1d6f3878de41ec219fd78b48
codeSamplesNamespace: lending-source-python-code-samples
codeSamplesRevisionDigest: sha256:d10023577a87c786508ad9634f78b1fd6e72689dc60fbe3caf6a62bc74e50528
codeSamplesRevisionDigest: sha256:f5f1b3069f72f047356ceddbf281ed9e2234b2d20448e61f682c9bf8920af7b1
platform-library:
source: platform-source
sourceNamespace: platform-source
Expand Down
1 change: 1 addition & 0 deletions lending/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.speakeasy/reports
.venv/
pyrightconfig.json
README-PYPI.md
Expand Down
96 changes: 84 additions & 12 deletions lending/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lending/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 10.0.1
version: 10.1.0
additionalDependencies:
dev: {}
main: {}
Expand Down
44 changes: 29 additions & 15 deletions lending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ poetry add codat-lending
from codat_lending import CodatLending

with CodatLending() as codat_lending:

codat_lending.account_categories_updated(request={
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
Expand Down Expand Up @@ -117,6 +118,7 @@ from codat_lending import CodatLending

async def main():
async with CodatLending() as codat_lending:

await codat_lending.account_categories_updated_async(request={
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
Expand Down Expand Up @@ -367,6 +369,7 @@ asyncio.run(main())

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

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

Expand Down Expand Up @@ -508,15 +511,17 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

res = codat_lending.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```

Expand All @@ -532,14 +537,16 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -578,14 +585,16 @@ with CodatLending(
) as codat_lending:
res = None
try:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
Expand All @@ -612,14 +621,16 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -726,14 +737,16 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Authentication [security] -->
Expand Down Expand Up @@ -767,6 +780,7 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

codat_lending.file_upload.upload(request={
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,14 @@ Based on:
### Generated
- [python v10.0.1] lending
### Releases
- [PyPI v10.0.1] https://pypi.org/project/codat-lending/10.0.1 - lending
- [PyPI v10.0.1] https://pypi.org/project/codat-lending/10.0.1 - lending

## 2025-01-06 09:10:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.462.2 (2.486.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v10.1.0] lending
### Releases
- [PyPI v10.1.0] https://pypi.org/project/codat-lending/10.1.0 - lending
16 changes: 10 additions & 6 deletions lending/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ with CodatLending(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)
```

</br>
Expand All @@ -34,14 +36,16 @@ async def main():
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_lending:

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

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

asyncio.run(main())
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

## Supported Types

### `shared.SourceAccountV2`
### `shared.SourceAccountV2Prototype`

```python
value: shared.SourceAccountV2 = /* values here */
value: shared.SourceAccountV2Prototype = /* values here */
```

### `shared.SourceAccount`
### `shared.SourceAccountPrototype`

```python
value: shared.SourceAccount = /* values here */
value: shared.SourceAccountPrototype = /* values here */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GetBankAccountMappingRequest


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
13 changes: 7 additions & 6 deletions lending/docs/models/operations/listcompaniesrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

## Fields

| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate |
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 |
| `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 |
| `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 |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate |
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 |
| `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 |
| `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 |
| `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 |
Loading

0 comments on commit a1e75e6

Please sign in to comment.