Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ sources:
- main
lending-source:
sourceNamespace: lending-source
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
tags:
- latest
- speakeasy-sdk-regen-1731929356
- speakeasy-sdk-regen-1732640659
- 3.0.0
platform-source:
sourceNamespace: platform-source
sourceRevisionDigest: sha256:43fa77abcae884c23afeea140d8e7fcbc14211c707ef801439ad9508b35b21d4
Expand Down Expand Up @@ -136,10 +137,10 @@ targets:
lending-library:
source: lending-source
sourceNamespace: lending-source
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
codeSamplesNamespace: lending-source-code-samples
codeSamplesRevisionDigest: sha256:2a3bee0a978a51571d6cbec79cdcf1073f22d5d7afe86b41d7bfff4cf53e6be8
codeSamplesRevisionDigest: sha256:b7511b3055b763213950c5ee099869857756beb6faec11baddc339e4682a9062
platform-library:
source: platform-source
sourceNamespace: platform-source
Expand Down
982 changes: 491 additions & 491 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: 9.0.0
version: 10.0.0
additionalDependencies:
dev: {}
main: {}
Expand Down
170 changes: 82 additions & 88 deletions lending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,19 @@ poetry add codat-lending
from codat_lending import CodatLending
from codat_lending.models import shared

s = CodatLending(
with CodatLending(
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.",
})
) as s:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

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

</br>
Expand All @@ -111,18 +110,19 @@ from codat_lending import CodatLending
from codat_lending.models import shared

async def main():
s = CodatLending(
async with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
)
res = await s.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})
if res is not None:
# handle response
pass
) as s:
res = await s.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass

asyncio.run(main())
```
Expand Down Expand Up @@ -494,21 +494,20 @@ from codat_lending import CodatLending
from codat_lending.models import shared
from codatlending.utils import BackoffStrategy, RetryConfig

s = CodatLending(
with CodatLending(
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.",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
) as s:
res = s.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
if res is not None:
# handle response
pass

```

Expand All @@ -518,21 +517,20 @@ from codat_lending import CodatLending
from codat_lending.models import shared
from codatlending.utils import BackoffStrategy, RetryConfig

s = CodatLending(
with CodatLending(
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
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.",
})
) as s:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

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

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -564,29 +562,28 @@ When custom error responses are specified for an operation, the SDK may also rai
from codat_lending import CodatLending
from codat_lending.models import errors, shared

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

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

if res is not None:
# handle response
pass

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
raise(e)
except errors.SDKError as e:
# handle exception
raise(e)
) as s:
res = None
try:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
raise(e)
except errors.SDKError as e:
# handle exception
raise(e)
```
<!-- End Error Handling [errors] -->

Expand All @@ -600,21 +597,20 @@ The default server can also be overridden globally by passing a URL to the `serv
from codat_lending import CodatLending
from codat_lending.models import shared

s = CodatLending(
with CodatLending(
server_url="https://api.codat.io",
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.",
})
) as s:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

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

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -716,20 +712,19 @@ You can set the security parameters through the `security` optional parameter wh
from codat_lending import CodatLending
from codat_lending.models import shared

s = CodatLending(
with CodatLending(
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.",
})
) as s:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

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

```
<!-- End Authentication [security] -->
Expand Down Expand Up @@ -758,18 +753,17 @@ Certain SDK methods accept file objects as part of a request body or multi-part
from codat_lending import CodatLending
from codat_lending.models import shared

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

s.file_upload.upload(request={
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
})
) as s:
s.file_upload.upload(request={
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
})

# Use the SDK ...
# Use the SDK ...

```
<!-- End File uploads [file-upload] -->
Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,14 @@ Based on:
### Generated
- [python v9.0.0] lending
### Releases
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending

## 2024-11-26 17:04:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.447.0 (2.463.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v10.0.0] lending
### Releases
- [PyPI v10.0.0] https://pypi.org/project/codat-lending/10.0.0 - lending
38 changes: 19 additions & 19 deletions lending/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
from codat_lending import CodatLending
from codat_lending.models import shared

s = CodatLending(
with CodatLending(
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.",
})
) as s:
res = s.companies.create(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

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

</br>
Expand All @@ -30,18 +29,19 @@ from codat_lending import CodatLending
from codat_lending.models import shared

async def main():
s = CodatLending(
async with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
)
res = await s.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})
if res is not None:
# handle response
pass
) as s:
res = await s.companies.create_async(request={
"name": "Technicalium",
"description": "Requested early access to the new financing scheme.",
})

if res is not None:
# handle response
pass

asyncio.run(main())
```
Expand Down
2 changes: 1 addition & 1 deletion lending/docs/models/shared/accountingcompanyinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Company info provides standard details about a linked company such as their addr

> **Company information or companies?**
>
> Company profile is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources.
> Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources.


## Fields
Expand Down
Loading