Skip to content

Commit e06a0d5

Browse files
authored
Merge pull request #552 from codatio/speakeasy-sdk-regen-1702644942
chore: 🐝 Update SDK - Generate Lending library
2 parents 09f8271 + 43213f0 commit e06a0d5

File tree

15 files changed

+71
-28
lines changed

15 files changed

+71
-28
lines changed

β€Žlending/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,14 @@ Based on:
7878
### Generated
7979
- [python v6.1.0] lending
8080
### Releases
81-
- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending
81+
- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending
82+
83+
## 2023-12-15 12:55:37
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
87+
- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy
88+
### Generated
89+
- [python v6.2.0] lending
90+
### Releases
91+
- [PyPI v6.2.0] https://pypi.org/project/codat-lending/6.2.0 - lending

β€Žlending/docs/models/operations/uploadfilesrequest.mdβ€Ž

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

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
8-
| `request_body` | [Optional[operations.UploadFilesRequestBody]](../../models/operations/uploadfilesrequestbody.md) | :heavy_minus_sign: | N/A | |
9-
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10-
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
8+
| `file_upload` | [Optional[shared.FileUpload]](../../models/shared/fileupload.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# UploadFilesRequestBody
1+
# CodatFile
22

33

44
## Fields
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# FileUpload
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
8+
| `file` | [shared.CodatFile](../../models/shared/codatfile.md) | :heavy_check_mark: | The file to be uploaded as an attachment. |

β€Žlending/docs/sdks/fileupload/README.mdβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ s = codatlending.CodatLending(
125125
)
126126

127127
req = operations.UploadFilesRequest(
128-
request_body=operations.UploadFilesRequestBody(
129-
content='0x87cbca97eC'.encode(),
130-
file_name='ullam.wav',
128+
file_upload=shared.FileUpload(
129+
file=shared.CodatFile(
130+
content='0x87cbca97eC'.encode(),
131+
file_name='ullam.wav',
132+
),
131133
),
132134
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
133135
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',

β€Žlending/files.genβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ src/codatlending/models/shared/agedoutstandingamountdetail.py
394394
src/codatlending/models/shared/accountingageddebtorreport.py
395395
src/codatlending/models/shared/ageddebtor.py
396396
src/codatlending/models/shared/file.py
397+
src/codatlending/models/shared/fileupload.py
398+
src/codatlending/models/shared/codatfile.py
397399
src/codatlending/models/shared/accountingcreatebankaccountresponse.py
398400
src/codatlending/models/shared/validation.py
399401
src/codatlending/models/shared/validationitem.py
@@ -686,7 +688,6 @@ docs/models/operations/downloadfilesrequest.md
686688
docs/models/operations/downloadfilesresponse.md
687689
docs/models/operations/listfilesrequest.md
688690
docs/models/operations/listfilesresponse.md
689-
docs/models/operations/uploadfilesrequestbody.md
690691
docs/models/operations/uploadfilesrequest.md
691692
docs/models/operations/uploadfilesresponse.md
692693
docs/models/operations/createbankaccountrequest.md
@@ -970,6 +971,8 @@ docs/models/shared/agedoutstandingamountdetail.md
970971
docs/models/shared/accountingageddebtorreport.md
971972
docs/models/shared/ageddebtor.md
972973
docs/models/shared/file.md
974+
docs/models/shared/fileupload.md
975+
docs/models/shared/codatfile.md
973976
docs/models/shared/accountingcreatebankaccountresponse.md
974977
docs/models/shared/validation.md
975978
docs/models/shared/validationitem.md

β€Žlending/gen.yamlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 6a74810fd57eea3cc5941ff18d1a2430
3+
docChecksum: 7cb8227cc55b72607e39c0387a4f6937
44
docVersion: 3.0.0
55
speakeasyVersion: 1.126.3
66
generationVersion: 2.214.3
@@ -24,7 +24,7 @@ features:
2424
nameOverrides: 2.81.1
2525
retries: 2.82.0
2626
python:
27-
version: 6.1.0
27+
version: 6.2.0
2828
author: Codat
2929
clientServerStatusCodesAsErrors: true
3030
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.

β€Žlending/setup.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-lending",
13-
version="6.1.0",
13+
version="6.2.0",
1414
author="Codat",
1515
description="Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.",
1616
long_description=long_description,

β€Žlending/src/codatlending/file_upload.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def upload(self, request: operations.UploadFilesRequest, retries: Optional[utils
148148

149149
url = utils.generate_url(operations.UploadFilesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/files', request)
150150
headers = {}
151-
req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "request_body", False, True, 'multipart')
151+
req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "file_upload", False, True, 'multipart')
152152
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
153153
headers['content-type'] = req_content_type
154154
headers['Accept'] = 'application/json'

β€Žlending/src/codatlending/models/operations/__init__.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)