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
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ Based on:
### Generated
- [python v6.1.0] lending
### Releases
- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending
- [PyPI v6.1.0] https://pypi.org/project/codat-lending/6.1.0 - lending

## 2023-12-15 12:55:37
### Changes
Based on:
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v6.2.0] lending
### Releases
- [PyPI v6.2.0] https://pypi.org/project/codat-lending/6.2.0 - lending
10 changes: 5 additions & 5 deletions lending/docs/models/operations/uploadfilesrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `request_body` | [Optional[operations.UploadFilesRequestBody]](../../models/operations/uploadfilesrequestbody.md) | :heavy_minus_sign: | N/A | |
| `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 |
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `file_upload` | [Optional[shared.FileUpload]](../../models/shared/fileupload.md) | :heavy_minus_sign: | N/A | |
| `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 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UploadFilesRequestBody
# CodatFile


## Fields
Expand Down
8 changes: 8 additions & 0 deletions lending/docs/models/shared/fileupload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FileUpload


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `file` | [shared.CodatFile](../../models/shared/codatfile.md) | :heavy_check_mark: | The file to be uploaded as an attachment. |
8 changes: 5 additions & 3 deletions lending/docs/sdks/fileupload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ s = codatlending.CodatLending(
)

req = operations.UploadFilesRequest(
request_body=operations.UploadFilesRequestBody(
content='0x87cbca97eC'.encode(),
file_name='ullam.wav',
file_upload=shared.FileUpload(
file=shared.CodatFile(
content='0x87cbca97eC'.encode(),
file_name='ullam.wav',
),
),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
Expand Down
5 changes: 4 additions & 1 deletion lending/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ src/codatlending/models/shared/agedoutstandingamountdetail.py
src/codatlending/models/shared/accountingageddebtorreport.py
src/codatlending/models/shared/ageddebtor.py
src/codatlending/models/shared/file.py
src/codatlending/models/shared/fileupload.py
src/codatlending/models/shared/codatfile.py
src/codatlending/models/shared/accountingcreatebankaccountresponse.py
src/codatlending/models/shared/validation.py
src/codatlending/models/shared/validationitem.py
Expand Down Expand Up @@ -686,7 +688,6 @@ docs/models/operations/downloadfilesrequest.md
docs/models/operations/downloadfilesresponse.md
docs/models/operations/listfilesrequest.md
docs/models/operations/listfilesresponse.md
docs/models/operations/uploadfilesrequestbody.md
docs/models/operations/uploadfilesrequest.md
docs/models/operations/uploadfilesresponse.md
docs/models/operations/createbankaccountrequest.md
Expand Down Expand Up @@ -970,6 +971,8 @@ docs/models/shared/agedoutstandingamountdetail.md
docs/models/shared/accountingageddebtorreport.md
docs/models/shared/ageddebtor.md
docs/models/shared/file.md
docs/models/shared/fileupload.md
docs/models/shared/codatfile.md
docs/models/shared/accountingcreatebankaccountresponse.md
docs/models/shared/validation.md
docs/models/shared/validationitem.md
Expand Down
4 changes: 2 additions & 2 deletions lending/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configVersion: 1.0.0
management:
docChecksum: 6a74810fd57eea3cc5941ff18d1a2430
docChecksum: 7cb8227cc55b72607e39c0387a4f6937
docVersion: 3.0.0
speakeasyVersion: 1.126.3
generationVersion: 2.214.3
Expand All @@ -24,7 +24,7 @@ features:
nameOverrides: 2.81.1
retries: 2.82.0
python:
version: 6.1.0
version: 6.2.0
author: Codat
clientServerStatusCodesAsErrors: true
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
Expand Down
2 changes: 1 addition & 1 deletion lending/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="codat-lending",
version="6.1.0",
version="6.2.0",
author="Codat",
description="Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion lending/src/codatlending/file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def upload(self, request: operations.UploadFilesRequest, retries: Optional[utils

url = utils.generate_url(operations.UploadFilesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/files', request)
headers = {}
req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "request_body", False, True, 'multipart')
req_content_type, data, form = utils.serialize_request_body(request, operations.UploadFilesRequest, "file_upload", False, True, 'multipart')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
Expand Down
2 changes: 1 addition & 1 deletion lending/src/codatlending/models/operations/__init__.py

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions lending/src/codatlending/models/operations/upload_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,17 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ...models.shared import fileupload as shared_fileupload
from typing import Optional


@dataclasses.dataclass
class UploadFilesRequestBody:
content: bytes = dataclasses.field(metadata={'multipart_form': { 'content': True }})
file_name: str = dataclasses.field(metadata={'multipart_form': { 'field_name': 'fileName' }})




@dataclasses.dataclass
class UploadFilesRequest:
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a company."""
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a connection."""
request_body: Optional[UploadFilesRequestBody] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }, 'request': { 'media_type': 'multipart/form-data' }})
file_upload: Optional[shared_fileupload.FileUpload] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'multipart/form-data' }})



Expand Down
Loading