Skip to content

Commit cd3dcfc

Browse files
authored
Merge pull request #523 from codatio/speakeasy-sdk-regen-1701853411
chore: 🐝 Update SDK - Generate Accounting library
2 parents 4732ac8 + 78e96f7 commit cd3dcfc

File tree

20 files changed

+90
-62
lines changed

20 files changed

+90
-62
lines changed

previous-versions/accounting/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ Based on:
2828
### Generated
2929
- [python v0.32.0] previous-versions/accounting
3030
### Releases
31-
- [PyPI v0.32.0] https://pypi.org/project/codat-accounting/0.32.0 - previous-versions/accounting
31+
- [PyPI v0.32.0] https://pypi.org/project/codat-accounting/0.32.0 - previous-versions/accounting
32+
33+
## 2023-12-06 09:03:27
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
37+
- Speakeasy CLI 1.125.2 (2.210.6) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [python v0.33.0] previous-versions/accounting
40+
### Releases
41+
- [PyPI v0.33.0] https://pypi.org/project/codat-accounting/0.33.0 - previous-versions/accounting

previous-versions/accounting/docs/models/operations/uploadbillattachmentrequest.md

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

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
8-
| `request_body` | [Optional[operations.UploadBillAttachmentRequestBody]](../../models/operations/uploadbillattachmentrequestbody.md) | :heavy_minus_sign: | N/A | |
9-
| `bill_id` | *str* | :heavy_check_mark: | Unique identifier for a bill. | 13d946f0-c5d5-42bc-b092-97ece17923ab |
10-
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11-
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8+
| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | |
9+
| `bill_id` | *str* | :heavy_check_mark: | Unique identifier for a bill. | 13d946f0-c5d5-42bc-b092-97ece17923ab |
10+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |

previous-versions/accounting/docs/models/operations/uploaddirectcostattachmentrequest.md

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

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
8-
| `request_body` | [Optional[operations.UploadDirectCostAttachmentRequestBody]](../../models/operations/uploaddirectcostattachmentrequestbody.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 |
11-
| `direct_cost_id` | *str* | :heavy_check_mark: | Unique identifier for a direct cost. | |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8+
| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.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 |
11+
| `direct_cost_id` | *str* | :heavy_check_mark: | Unique identifier for a direct cost. | |

previous-versions/accounting/docs/models/operations/uploaddirectcostattachmentrequestbody.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AttachmentUpload
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. |

previous-versions/accounting/docs/models/operations/uploadbillattachmentrequestbody.md renamed to previous-versions/accounting/docs/models/shared/codatfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# UploadBillAttachmentRequestBody
1+
# CodatFile
22

33

44
## Fields

previous-versions/accounting/docs/sdks/bills/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,11 @@ s = codataccounting.CodatAccounting(
703703
)
704704

705705
req = operations.UploadBillAttachmentRequest(
706-
request_body=operations.UploadBillAttachmentRequestBody(
707-
content='0xE3ABc1980E'.encode(),
708-
file_name='elegant_producer_electric.jpeg',
706+
attachment_upload=shared.AttachmentUpload(
707+
file=shared.CodatFile(
708+
content='0xE3ABc1980E'.encode(),
709+
file_name='elegant_producer_electric.jpeg',
710+
),
709711
),
710712
bill_id='9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2',
711713
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',

previous-versions/accounting/docs/sdks/directcosts/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,11 @@ s = codataccounting.CodatAccounting(
476476
)
477477

478478
req = operations.UploadDirectCostAttachmentRequest(
479-
request_body=operations.UploadDirectCostAttachmentRequestBody(
480-
content='0xE3ABc1980E'.encode(),
481-
file_name='elegant_producer_electric.jpeg',
479+
attachment_upload=shared.AttachmentUpload(
480+
file=shared.CodatFile(
481+
content='0xE3ABc1980E'.encode(),
482+
file_name='elegant_producer_electric.jpeg',
483+
),
482484
),
483485
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
484486
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',

previous-versions/accounting/files.gen

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ src/codataccounting/models/shared/attachment.py
220220
src/codataccounting/models/shared/bills.py
221221
src/codataccounting/models/shared/attachmentsdataset.py
222222
src/codataccounting/models/shared/updatebillresponse.py
223+
src/codataccounting/models/shared/attachmentupload.py
224+
src/codataccounting/models/shared/codatfile.py
223225
src/codataccounting/models/shared/createcustomerresponse.py
224226
src/codataccounting/models/shared/customer.py
225227
src/codataccounting/models/shared/customerstatus.py
@@ -401,7 +403,6 @@ docs/models/operations/listbillattachmentsrequest.md
401403
docs/models/operations/listbillattachmentsresponse.md
402404
docs/models/operations/updatebillrequest.md
403405
docs/models/operations/updatebillresponse.md
404-
docs/models/operations/uploadbillattachmentrequestbody.md
405406
docs/models/operations/uploadbillattachmentrequest.md
406407
docs/models/operations/uploadbillattachmentresponse.md
407408
docs/models/operations/createcustomerrequest.md
@@ -434,7 +435,6 @@ docs/models/operations/listdirectcostsrequest.md
434435
docs/models/operations/listdirectcostsresponse.md
435436
docs/models/operations/listdirectcostattachmentsrequest.md
436437
docs/models/operations/listdirectcostattachmentsresponse.md
437-
docs/models/operations/uploaddirectcostattachmentrequestbody.md
438438
docs/models/operations/uploaddirectcostattachmentrequest.md
439439
docs/models/operations/uploaddirectcostattachmentresponse.md
440440
docs/models/operations/createdirectincomerequest.md
@@ -694,6 +694,8 @@ docs/models/shared/attachment.md
694694
docs/models/shared/bills.md
695695
docs/models/shared/attachmentsdataset.md
696696
docs/models/shared/updatebillresponse.md
697+
docs/models/shared/attachmentupload.md
698+
docs/models/shared/codatfile.md
697699
docs/models/shared/createcustomerresponse.md
698700
docs/models/shared/customer.md
699701
docs/models/shared/customerstatus.md

previous-versions/accounting/gen.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 1643e696b57c43c25f8da2810bbbeae4
3+
docChecksum: 643eb8e5abb697d514899964068b369b
44
docVersion: 3.0.0
5-
speakeasyVersion: 1.125.1
6-
generationVersion: 2.210.3
5+
speakeasyVersion: 1.125.2
6+
generationVersion: 2.210.6
77
generation:
88
comments: {}
99
sdkClassName: CodatAccounting
@@ -13,7 +13,7 @@ generation:
1313
telemetryEnabled: true
1414
features:
1515
python:
16-
core: 4.1.5
16+
core: 4.1.6
1717
deprecations: 2.81.1
1818
downloadStreams: 0.0.2
1919
examples: 2.81.3
@@ -23,7 +23,7 @@ features:
2323
nameOverrides: 2.81.1
2424
retries: 2.82.0
2525
python:
26-
version: 0.32.0
26+
version: 0.33.0
2727
author: Codat
2828
clientServerStatusCodesAsErrors: true
2929
description: Access standardized accounting data from our accounting integrations.

0 commit comments

Comments
 (0)