Skip to content

Commit d0f62ca

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.179.0 (#574)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 6a8165a commit d0f62ca

File tree

595 files changed

+5380
-2350
lines changed

Some content is hidden

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

595 files changed

+5380
-2350
lines changed

lending/.speakeasy/gen.lock

Lines changed: 1191 additions & 0 deletions
Large diffs are not rendered by default.

lending/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ s = codatlending.CodatLending(
2929
)
3030

3131
req = shared.CompanyRequestBody(
32-
description='Requested early access to the new financing scheme.',
3332
name='Bank of Dave',
33+
description='Requested early access to the new financing scheme.',
3434
)
3535

3636
res = s.companies.create(req)
@@ -361,9 +361,9 @@ if res.company is not None:
361361
<!-- Start Retries [retries] -->
362362
## Retries
363363

364-
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
364+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
365365

366-
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
366+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
367367
```python
368368
import codatlending
369369
from codatlending.models import shared
@@ -376,8 +376,8 @@ s = codatlending.CodatLending(
376376
)
377377

378378
req = shared.CompanyRequestBody(
379-
description='Requested early access to the new financing scheme.',
380379
name='Bank of Dave',
380+
description='Requested early access to the new financing scheme.',
381381
)
382382

383383
res = s.companies.create(req,
@@ -388,7 +388,7 @@ if res.company is not None:
388388
pass
389389
```
390390

391-
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
391+
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
392392
```python
393393
import codatlending
394394
from codatlending.models import shared
@@ -402,8 +402,8 @@ s = codatlending.CodatLending(
402402
)
403403

404404
req = shared.CompanyRequestBody(
405-
description='Requested early access to the new financing scheme.',
406405
name='Bank of Dave',
406+
description='Requested early access to the new financing scheme.',
407407
)
408408

409409
res = s.companies.create(req)
@@ -422,13 +422,13 @@ Handling errors in this SDK should largely match your expectations. All operati
422422
| Error Object | Status Code | Content Type |
423423
| --------------------------- | --------------------------- | --------------------------- |
424424
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
425-
| errors.SDKError | 400-600 | */* |
425+
| errors.SDKError | 4x-5xx | */* |
426426

427427
### Example
428428

429429
```python
430430
import codatlending
431-
from codatlending.models import shared
431+
from codatlending.models import errors, shared
432432

433433
s = codatlending.CodatLending(
434434
security=shared.Security(
@@ -437,18 +437,18 @@ s = codatlending.CodatLending(
437437
)
438438

439439
req = shared.CompanyRequestBody(
440-
description='Requested early access to the new financing scheme.',
441440
name='Bank of Dave',
441+
description='Requested early access to the new financing scheme.',
442442
)
443443

444444
res = None
445445
try:
446446
res = s.companies.create(req)
447447
except errors.ErrorMessage as e:
448-
print(e) # handle exception
448+
# handle exception
449449
raise(e)
450450
except errors.SDKError as e:
451-
print(e) # handle exception
451+
# handle exception
452452
raise(e)
453453

454454
if res.company is not None:
@@ -482,8 +482,8 @@ s = codatlending.CodatLending(
482482
)
483483

484484
req = shared.CompanyRequestBody(
485-
description='Requested early access to the new financing scheme.',
486485
name='Bank of Dave',
486+
description='Requested early access to the new financing scheme.',
487487
)
488488

489489
res = s.companies.create(req)
@@ -509,8 +509,8 @@ s = codatlending.CodatLending(
509509
)
510510

511511
req = shared.CompanyRequestBody(
512-
description='Requested early access to the new financing scheme.',
513512
name='Bank of Dave',
513+
description='Requested early access to the new financing scheme.',
514514
)
515515

516516
res = s.companies.create(req)
@@ -524,7 +524,7 @@ if res.company is not None:
524524
<!-- Start Custom HTTP Client [http-client] -->
525525
## Custom HTTP Client
526526

527-
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
527+
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
528528

529529
For example, you could specify a header for every request that this sdk makes as follows:
530530
```python
@@ -560,8 +560,8 @@ s = codatlending.CodatLending(
560560
)
561561

562562
req = shared.CompanyRequestBody(
563-
description='Requested early access to the new financing scheme.',
564563
name='Bank of Dave',
564+
description='Requested early access to the new financing scheme.',
565565
)
566566

567567
res = s.companies.create(req)

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ Based on:
8888
### Generated
8989
- [python v6.2.0] lending
9090
### Releases
91-
- [PyPI v6.2.0] https://pypi.org/project/codat-lending/6.2.0 - lending
91+
- [PyPI v6.2.0] https://pypi.org/project/codat-lending/6.2.0 - lending
92+
93+
## 2024-02-14 10:44:09
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
97+
- Speakeasy CLI 1.179.0 (2.257.2) https://github.com/speakeasy-api/speakeasy
98+
### Generated
99+
- [python v6.3.0] lending
100+
### Releases
101+
- [PyPI v6.3.0] https://pypi.org/project/codat-lending/6.3.0 - lending

lending/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ s = codatlending.CodatLending(
1010
)
1111

1212
req = shared.CompanyRequestBody(
13-
description='Requested early access to the new financing scheme.',
1413
name='Bank of Dave',
14+
description='Requested early access to the new financing scheme.',
1515
)
1616

1717
res = s.companies.create(req)

lending/docs/models/errors/errormessage.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ The request made is not valid.
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
10-
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
11-
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
12-
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
13-
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
14-
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
15-
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
10+
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
11+
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
12+
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
13+
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
14+
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
15+
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
16+
| `validation` | [Optional[shared.ErrorValidation]](../../models/shared/errorvalidation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. |

lending/docs/models/operations/createaccountrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
| Field | Type | Required | Description | Example |
77
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8-
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
9-
| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
108
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
119
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
10+
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
11+
| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
1212
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

0 commit comments

Comments
 (0)