Skip to content

Commit 6b1a054

Browse files
authored
Merge pull request #618 from codatio/speakeasy-sdk-regen-1732640659
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 10.0.0
2 parents 4a4dc5d + eb9d8d9 commit 6b1a054

File tree

85 files changed

+2732
-2735
lines changed

Some content is hidden

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

85 files changed

+2732
-2735
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ sources:
5252
- main
5353
lending-source:
5454
sourceNamespace: lending-source
55-
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
56-
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
55+
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
56+
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
5757
tags:
5858
- latest
59-
- speakeasy-sdk-regen-1731929356
59+
- speakeasy-sdk-regen-1732640659
60+
- 3.0.0
6061
platform-source:
6162
sourceNamespace: platform-source
6263
sourceRevisionDigest: sha256:43fa77abcae884c23afeea140d8e7fcbc14211c707ef801439ad9508b35b21d4
@@ -136,10 +137,10 @@ targets:
136137
lending-library:
137138
source: lending-source
138139
sourceNamespace: lending-source
139-
sourceRevisionDigest: sha256:0778d9e413245b5a14417b4796f06c28d282a1203ba7f8a48e147904a9787142
140-
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
140+
sourceRevisionDigest: sha256:3f872850d34670b950341643ce0476ecaaba175c4e2c36d5e7e266797115ffbd
141+
sourceBlobDigest: sha256:b52d78f87b496418a9a1d7ee5f4b78f4ee3ed0a257fba5a6bd13e82a5ed3548f
141142
codeSamplesNamespace: lending-source-code-samples
142-
codeSamplesRevisionDigest: sha256:2a3bee0a978a51571d6cbec79cdcf1073f22d5d7afe86b41d7bfff4cf53e6be8
143+
codeSamplesRevisionDigest: sha256:b7511b3055b763213950c5ee099869857756beb6faec11baddc339e4682a9062
143144
platform-library:
144145
source: platform-source
145146
sourceNamespace: platform-source

lending/.speakeasy/gen.lock

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

lending/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
python:
15-
version: 9.0.0
15+
version: 10.0.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

lending/README.md

Lines changed: 82 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,19 @@ poetry add codat-lending
8585
from codat_lending import CodatLending
8686
from codat_lending.models import shared
8787

88-
s = CodatLending(
88+
with CodatLending(
8989
security=shared.Security(
9090
auth_header="Basic BASE_64_ENCODED(API_KEY)",
9191
),
92-
)
93-
94-
res = s.companies.create(request={
95-
"name": "Technicalium",
96-
"description": "Requested early access to the new financing scheme.",
97-
})
92+
) as s:
93+
res = s.companies.create(request={
94+
"name": "Technicalium",
95+
"description": "Requested early access to the new financing scheme.",
96+
})
9897

99-
if res is not None:
100-
# handle response
101-
pass
98+
if res is not None:
99+
# handle response
100+
pass
102101
```
103102

104103
</br>
@@ -111,18 +110,19 @@ from codat_lending import CodatLending
111110
from codat_lending.models import shared
112111

113112
async def main():
114-
s = CodatLending(
113+
async with CodatLending(
115114
security=shared.Security(
116115
auth_header="Basic BASE_64_ENCODED(API_KEY)",
117116
),
118-
)
119-
res = await s.companies.create_async(request={
120-
"name": "Technicalium",
121-
"description": "Requested early access to the new financing scheme.",
122-
})
123-
if res is not None:
124-
# handle response
125-
pass
117+
) as s:
118+
res = await s.companies.create_async(request={
119+
"name": "Technicalium",
120+
"description": "Requested early access to the new financing scheme.",
121+
})
122+
123+
if res is not None:
124+
# handle response
125+
pass
126126

127127
asyncio.run(main())
128128
```
@@ -494,21 +494,20 @@ from codat_lending import CodatLending
494494
from codat_lending.models import shared
495495
from codatlending.utils import BackoffStrategy, RetryConfig
496496

497-
s = CodatLending(
497+
with CodatLending(
498498
security=shared.Security(
499499
auth_header="Basic BASE_64_ENCODED(API_KEY)",
500500
),
501-
)
502-
503-
res = s.companies.create(request={
504-
"name": "Technicalium",
505-
"description": "Requested early access to the new financing scheme.",
506-
},
507-
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
501+
) as s:
502+
res = s.companies.create(request={
503+
"name": "Technicalium",
504+
"description": "Requested early access to the new financing scheme.",
505+
},
506+
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
508507

509-
if res is not None:
510-
# handle response
511-
pass
508+
if res is not None:
509+
# handle response
510+
pass
512511

513512
```
514513

@@ -518,21 +517,20 @@ from codat_lending import CodatLending
518517
from codat_lending.models import shared
519518
from codatlending.utils import BackoffStrategy, RetryConfig
520519

521-
s = CodatLending(
520+
with CodatLending(
522521
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
523522
security=shared.Security(
524523
auth_header="Basic BASE_64_ENCODED(API_KEY)",
525524
),
526-
)
527-
528-
res = s.companies.create(request={
529-
"name": "Technicalium",
530-
"description": "Requested early access to the new financing scheme.",
531-
})
525+
) as s:
526+
res = s.companies.create(request={
527+
"name": "Technicalium",
528+
"description": "Requested early access to the new financing scheme.",
529+
})
532530

533-
if res is not None:
534-
# handle response
535-
pass
531+
if res is not None:
532+
# handle response
533+
pass
536534

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

567-
s = CodatLending(
565+
with CodatLending(
568566
security=shared.Security(
569567
auth_header="Basic BASE_64_ENCODED(API_KEY)",
570568
),
571-
)
572-
573-
res = None
574-
try:
575-
res = s.companies.create(request={
576-
"name": "Technicalium",
577-
"description": "Requested early access to the new financing scheme.",
578-
})
579-
580-
if res is not None:
581-
# handle response
582-
pass
583-
584-
except errors.ErrorMessage as e:
585-
# handle e.data: errors.ErrorMessageData
586-
raise(e)
587-
except errors.SDKError as e:
588-
# handle exception
589-
raise(e)
569+
) as s:
570+
res = None
571+
try:
572+
res = s.companies.create(request={
573+
"name": "Technicalium",
574+
"description": "Requested early access to the new financing scheme.",
575+
})
576+
577+
if res is not None:
578+
# handle response
579+
pass
580+
581+
except errors.ErrorMessage as e:
582+
# handle e.data: errors.ErrorMessageData
583+
raise(e)
584+
except errors.SDKError as e:
585+
# handle exception
586+
raise(e)
590587
```
591588
<!-- End Error Handling [errors] -->
592589

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

603-
s = CodatLending(
600+
with CodatLending(
604601
server_url="https://api.codat.io",
605602
security=shared.Security(
606603
auth_header="Basic BASE_64_ENCODED(API_KEY)",
607604
),
608-
)
609-
610-
res = s.companies.create(request={
611-
"name": "Technicalium",
612-
"description": "Requested early access to the new financing scheme.",
613-
})
605+
) as s:
606+
res = s.companies.create(request={
607+
"name": "Technicalium",
608+
"description": "Requested early access to the new financing scheme.",
609+
})
614610

615-
if res is not None:
616-
# handle response
617-
pass
611+
if res is not None:
612+
# handle response
613+
pass
618614

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

719-
s = CodatLending(
715+
with CodatLending(
720716
security=shared.Security(
721717
auth_header="Basic BASE_64_ENCODED(API_KEY)",
722718
),
723-
)
724-
725-
res = s.companies.create(request={
726-
"name": "Technicalium",
727-
"description": "Requested early access to the new financing scheme.",
728-
})
719+
) as s:
720+
res = s.companies.create(request={
721+
"name": "Technicalium",
722+
"description": "Requested early access to the new financing scheme.",
723+
})
729724

730-
if res is not None:
731-
# handle response
732-
pass
725+
if res is not None:
726+
# handle response
727+
pass
733728

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

761-
s = CodatLending(
756+
with CodatLending(
762757
security=shared.Security(
763758
auth_header="Basic BASE_64_ENCODED(API_KEY)",
764759
),
765-
)
766-
767-
s.file_upload.upload(request={
768-
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
769-
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
770-
})
760+
) as s:
761+
s.file_upload.upload(request={
762+
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
763+
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
764+
})
771765

772-
# Use the SDK ...
766+
# Use the SDK ...
773767

774768
```
775769
<!-- End File uploads [file-upload] -->

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,14 @@ Based on:
148148
### Generated
149149
- [python v9.0.0] lending
150150
### Releases
151-
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending
151+
- [PyPI v9.0.0] https://pypi.org/project/codat-lending/9.0.0 - lending
152+
153+
## 2024-11-26 17:04:10
154+
### Changes
155+
Based on:
156+
- OpenAPI Doc
157+
- Speakeasy CLI 1.447.0 (2.463.0) https://github.com/speakeasy-api/speakeasy
158+
### Generated
159+
- [python v10.0.0] lending
160+
### Releases
161+
- [PyPI v10.0.0] https://pypi.org/project/codat-lending/10.0.0 - lending

lending/USAGE.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44
from codat_lending import CodatLending
55
from codat_lending.models import shared
66

7-
s = CodatLending(
7+
with CodatLending(
88
security=shared.Security(
99
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1010
),
11-
)
12-
13-
res = s.companies.create(request={
14-
"name": "Technicalium",
15-
"description": "Requested early access to the new financing scheme.",
16-
})
11+
) as s:
12+
res = s.companies.create(request={
13+
"name": "Technicalium",
14+
"description": "Requested early access to the new financing scheme.",
15+
})
1716

18-
if res is not None:
19-
# handle response
20-
pass
17+
if res is not None:
18+
# handle response
19+
pass
2120
```
2221

2322
</br>
@@ -30,18 +29,19 @@ from codat_lending import CodatLending
3029
from codat_lending.models import shared
3130

3231
async def main():
33-
s = CodatLending(
32+
async with CodatLending(
3433
security=shared.Security(
3534
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3635
),
37-
)
38-
res = await s.companies.create_async(request={
39-
"name": "Technicalium",
40-
"description": "Requested early access to the new financing scheme.",
41-
})
42-
if res is not None:
43-
# handle response
44-
pass
36+
) as s:
37+
res = await s.companies.create_async(request={
38+
"name": "Technicalium",
39+
"description": "Requested early access to the new financing scheme.",
40+
})
41+
42+
if res is not None:
43+
# handle response
44+
pass
4545

4646
asyncio.run(main())
4747
```

lending/docs/models/shared/accountingcompanyinfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Company info provides standard details about a linked company such as their addr
44

55
> **Company information or companies?**
66
>
7-
> 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.
7+
> 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.
88
99

1010
## Fields

0 commit comments

Comments
 (0)