Skip to content

Commit 8758d68

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.5 (#607)
Co-authored-by: speakeasybot <[email protected]>
1 parent 2e6dcec commit 8758d68

File tree

11 files changed

+74
-40
lines changed

11 files changed

+74
-40
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.423.3
1+
speakeasyVersion: 1.423.5
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -65,8 +65,8 @@ sources:
6565
- main
6666
sync-for-payables-source:
6767
sourceNamespace: sync-for-payables-source
68-
sourceRevisionDigest: sha256:666b91d3454006f19097463c442428b273b95d632e0bc0099b6db10194f7284e
69-
sourceBlobDigest: sha256:1ffa6da669abbf5bb7fef62b991e1c237af95f876b930288b8ab14994e0ab0b5
68+
sourceRevisionDigest: sha256:9b7390685375f6bb8f444cfdaef0cf211fe30a63abac80c98d441203bd76d654
69+
sourceBlobDigest: sha256:f472244dc98845d90f55da060a2cc4acee05c771a89a0ff55bc5db04108e5693
7070
tags:
7171
- latest
7272
- main
@@ -126,8 +126,8 @@ targets:
126126
sync-for-payables-library:
127127
source: sync-for-payables-source
128128
sourceNamespace: sync-for-payables-source
129-
sourceRevisionDigest: sha256:666b91d3454006f19097463c442428b273b95d632e0bc0099b6db10194f7284e
130-
sourceBlobDigest: sha256:1ffa6da669abbf5bb7fef62b991e1c237af95f876b930288b8ab14994e0ab0b5
129+
sourceRevisionDigest: sha256:9b7390685375f6bb8f444cfdaef0cf211fe30a63abac80c98d441203bd76d654
130+
sourceBlobDigest: sha256:f472244dc98845d90f55da060a2cc4acee05c771a89a0ff55bc5db04108e5693
131131
sync-for-payables-version-1-library:
132132
source: sync-for-payables-version-1-source
133133
sourceNamespace: sync-for-payables-version-1-source

sync-for-payables/.speakeasy/gen.lock

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 0722f07c-657c-4062-93f1-39ee3fe757d0
33
management:
4-
docChecksum: 16c2aba5060738f14671556b6526c400
4+
docChecksum: c0f4a56a46c488781ea9be7def894f8c
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.423.3
7-
generationVersion: 2.442.11
8-
releaseVersion: 6.0.0
9-
configChecksum: 969122e26723670a0043a6789d53d844
6+
speakeasyVersion: 1.423.5
7+
generationVersion: 2.445.1
8+
releaseVersion: 7.0.0
9+
configChecksum: cac49a7fdde1648960a7e91570796611
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: sync-for-payables
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-payables
@@ -15,7 +15,7 @@ features:
1515
python:
1616
additionalDependencies: 1.0.0
1717
constsAndDefaults: 1.0.4
18-
core: 5.6.0
18+
core: 5.6.1
1919
decimal: 1.0.0
2020
defaultEnabledRetries: 0.2.0
2121
deprecations: 3.0.0
@@ -680,6 +680,15 @@ examples:
680680
responses:
681681
"400":
682682
application/json: {"statusCode": 400, "service": "PublicApi", "error": "Error processing request - not valid.", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "canBeRetried": "Unknown", "detailedErrorCode": 0}
683+
Attachment metadata:
684+
parameters:
685+
path:
686+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
687+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
688+
billId: "EILBDVJVNUAGVKRQ"
689+
responses:
690+
"201":
691+
application/json: {"id": "422f093f-e556-4bf3-91c0-93af70c3e850", "name": "receipt.png", "contentType": "image/png", "dateCreated": "2022-10-23T00:00:00.000Z", "fileSize": 100, "includeWhenSent": true, "sourceModifiedDate": "2022-05-26T10:34:10Z"}
683692
list-bill-attachments:
684693
Info:
685694
parameters:
@@ -699,6 +708,15 @@ examples:
699708
responses:
700709
"401":
701710
application/json: {"statusCode": 401, "service": "PublicApi", "error": "Unauthorized", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "canBeRetried": "Unknown", "detailedErrorCode": 0}
711+
Attachments:
712+
parameters:
713+
path:
714+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
715+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
716+
billId: "EILBDVJVNUAGVKRQ"
717+
responses:
718+
"200":
719+
application/json: [{"id": "422f093f-e556-4bf3-91c0-93af70c3e850", "name": "receipt.png", "contentType": "image/png", "dateCreated": "2022-10-23T00:00:00.000Z", "fileSize": 100, "includeWhenSent": true, "sourceModifiedDate": "2022-05-26T10:34:10Z"}, {"id": "20cfd269-2f0f-44ef-a28c-7b5f725cf1aa", "name": "another_receipt.png", "contentType": "image/png", "dateCreated": "2022-10-24T00:00:00.000Z", "fileSize": 98, "includeWhenSent": true, "sourceModifiedDate": "2022-05-27T12:38:10Z"}]
702720
download-bill-attachment:
703721
Unauthorized:
704722
parameters:

sync-for-payables/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
python:
15-
version: 6.0.0
15+
version: 7.0.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

sync-for-payables/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,15 @@ s = CodatSyncPayables(
218218
),
219219
)
220220

221-
s.bills.upload_attachment(request={
221+
res = s.bills.upload_attachment(request={
222222
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
223223
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
224224
"bill_id": "EILBDVJVNUAGVKRQ",
225225
})
226226

227-
# Use the SDK ...
227+
if res is not None:
228+
# handle response
229+
pass
228230

229231
```
230232
<!-- End File uploads [file-upload] -->

sync-for-payables/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 v6.0.0] sync-for-payables
3030
### Releases
31-
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-payables/6.0.0 - sync-for-payables
31+
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-payables/6.0.0 - sync-for-payables
32+
33+
## 2024-10-31 13:31:23
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc
37+
- Speakeasy CLI 1.423.5 (2.445.1) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [python v7.0.0] sync-for-payables
40+
### Releases
41+
- [PyPI v7.0.0] https://pypi.org/project/codat-sync-for-payables/7.0.0 - sync-for-payables

sync-for-payables/docs/sdks/bills/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,15 @@ s = CodatSyncPayables(
235235
),
236236
)
237237

238-
s.bills.upload_attachment(request={
238+
res = s.bills.upload_attachment(request={
239239
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
240240
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
241241
"bill_id": "EILBDVJVNUAGVKRQ",
242242
})
243243

244-
# Use the SDK ...
244+
if res is not None:
245+
# handle response
246+
pass
245247

246248
```
247249

@@ -252,6 +254,10 @@ s.bills.upload_attachment(request={
252254
| `request` | [operations.UploadBillAttachmentRequest](../../models/operations/uploadbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
253255
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
254256

257+
### Response
258+
259+
**[shared.Attachment](../../models/shared/attachment.md)**
260+
255261
### Errors
256262

257263
| Error Type | Status Code | Content Type |
@@ -298,7 +304,7 @@ if res is not None:
298304

299305
### Response
300306

301-
**[shared.Attachment](../../models/shared/attachment.md)**
307+
**[List[shared.Attachment]](../../models/.md)**
302308

303309
### Errors
304310

sync-for-payables/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sync-for-payables/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codat-sync-for-payables"
3-
version = "6.0.0"
3+
version = "7.0.0"
44
description = "Streamline your customers' accounts payable workflow."
55
authors = ["Speakeasy",]
66
readme = "README-PYPI.md"
@@ -21,7 +21,7 @@ python = "^3.8"
2121
eval-type-backport = "^0.2.0"
2222
httpx = "^0.27.0"
2323
jsonpath-python = "^1.0.6"
24-
pydantic = "~2.9.0"
24+
pydantic = "~2.9.2"
2525
python-dateutil = "2.8.2"
2626
typing-inspect = "^0.9.0"
2727

sync-for-payables/src/codat_sync_for_payables/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import importlib.metadata
44

55
__title__: str = "codat-sync-for-payables"
6-
__version__: str = "6.0.0"
6+
__version__: str = "7.0.0"
77

88
try:
99
if __package__ is not None:

sync-for-payables/src/codat_sync_for_payables/bills.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from codat_sync_for_payables.models import errors, operations, shared
77
from codat_sync_for_payables.types import BaseModel, OptionalNullable, UNSET
88
import httpx
9-
from typing import Any, Optional, Union, cast
9+
from typing import Any, List, Optional, Union, cast
1010

1111

1212
class Bills(BaseSDK):
@@ -692,7 +692,7 @@ def upload_attachment(
692692
retries: OptionalNullable[utils.RetryConfig] = UNSET,
693693
server_url: Optional[str] = None,
694694
timeout_ms: Optional[int] = None,
695-
):
695+
) -> shared.Attachment:
696696
r"""Upload bill attachment
697697
698698
The *Upload bill attachment* endpoint uploads an attachment and assigns it against a specific `billId`.
@@ -773,8 +773,8 @@ def upload_attachment(
773773
)
774774

775775
data: Any = None
776-
if utils.match_response(http_res, "201", "*"):
777-
return
776+
if utils.match_response(http_res, "201", "application/json"):
777+
return utils.unmarshal_json(http_res.text, shared.Attachment)
778778
if utils.match_response(
779779
http_res,
780780
["400", "401", "402", "403", "404", "429", "500", "503"],
@@ -807,7 +807,7 @@ async def upload_attachment_async(
807807
retries: OptionalNullable[utils.RetryConfig] = UNSET,
808808
server_url: Optional[str] = None,
809809
timeout_ms: Optional[int] = None,
810-
):
810+
) -> shared.Attachment:
811811
r"""Upload bill attachment
812812
813813
The *Upload bill attachment* endpoint uploads an attachment and assigns it against a specific `billId`.
@@ -888,8 +888,8 @@ async def upload_attachment_async(
888888
)
889889

890890
data: Any = None
891-
if utils.match_response(http_res, "201", "*"):
892-
return
891+
if utils.match_response(http_res, "201", "application/json"):
892+
return utils.unmarshal_json(http_res.text, shared.Attachment)
893893
if utils.match_response(
894894
http_res,
895895
["400", "401", "402", "403", "404", "429", "500", "503"],
@@ -922,7 +922,7 @@ def list_attachments(
922922
retries: OptionalNullable[utils.RetryConfig] = UNSET,
923923
server_url: Optional[str] = None,
924924
timeout_ms: Optional[int] = None,
925-
) -> shared.Attachment:
925+
) -> List[shared.Attachment]:
926926
r"""List bill attachments
927927
928928
The *List bill attachments* endpoint returns a list of attachments available to download for a given `billId`.
@@ -948,7 +948,7 @@ def list_attachments(
948948

949949
req = self.build_request(
950950
method="GET",
951-
path="/companies/{companyId}/connections/{connectionId}/bills/{billId}/attachments",
951+
path="/companies/{companyId}/connections/{connectionId}/payables/bills/{billId}/attachments",
952952
base_url=base_url,
953953
url_variables=url_variables,
954954
request=request,
@@ -997,7 +997,7 @@ def list_attachments(
997997

998998
data: Any = None
999999
if utils.match_response(http_res, "200", "application/json"):
1000-
return utils.unmarshal_json(http_res.text, shared.Attachment)
1000+
return utils.unmarshal_json(http_res.text, List[shared.Attachment])
10011001
if utils.match_response(
10021002
http_res,
10031003
["401", "402", "403", "404", "409", "429", "500", "503"],
@@ -1030,7 +1030,7 @@ async def list_attachments_async(
10301030
retries: OptionalNullable[utils.RetryConfig] = UNSET,
10311031
server_url: Optional[str] = None,
10321032
timeout_ms: Optional[int] = None,
1033-
) -> shared.Attachment:
1033+
) -> List[shared.Attachment]:
10341034
r"""List bill attachments
10351035
10361036
The *List bill attachments* endpoint returns a list of attachments available to download for a given `billId`.
@@ -1056,7 +1056,7 @@ async def list_attachments_async(
10561056

10571057
req = self.build_request_async(
10581058
method="GET",
1059-
path="/companies/{companyId}/connections/{connectionId}/bills/{billId}/attachments",
1059+
path="/companies/{companyId}/connections/{connectionId}/payables/bills/{billId}/attachments",
10601060
base_url=base_url,
10611061
url_variables=url_variables,
10621062
request=request,
@@ -1105,7 +1105,7 @@ async def list_attachments_async(
11051105

11061106
data: Any = None
11071107
if utils.match_response(http_res, "200", "application/json"):
1108-
return utils.unmarshal_json(http_res.text, shared.Attachment)
1108+
return utils.unmarshal_json(http_res.text, List[shared.Attachment])
11091109
if utils.match_response(
11101110
http_res,
11111111
["401", "402", "403", "404", "409", "429", "500", "503"],

0 commit comments

Comments
 (0)