Skip to content

Commit 1f3d9f0

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.20.0
1 parent 730c97b commit 1f3d9f0

14 files changed

Lines changed: 203 additions & 67 deletions

File tree

accounting/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ if res.account_transaction is not None:
154154

155155
* `download_invoice_pdf` - Get invoice as PDF
156156
* `create_invoice` - Create invoice
157+
* `delete_invoice` - Delete invoice
157158
* `download_invoice_attachment` - Download invoice attachment
158159
* `get_create_update_invoices_model` - Get create/update invoice model
159160
* `get_invoice` - Get invoice
@@ -173,6 +174,7 @@ if res.account_transaction is not None:
173174
### journal_entries
174175

175176
* `create_journal_entry` - Create journal entry
177+
* `delete_journal_entry` - Delete journal entry
176178
* `get_create_journal_entries_model` - Get create journal entry model
177179
* `get_journal_entry` - Get journal entry
178180
* `list_journal_entries` - List journal entries

accounting/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,12 @@ Based on:
230230
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
231231
- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy
232232
### Releases
233-
- [PyPI v0.10.1] https://pypi.org/project/codat-accounting/0.10.1 - accounting
233+
- [PyPI v0.10.1] https://pypi.org/project/codat-accounting/0.10.1 - accounting
234+
235+
## 2023-04-14 00:10:04
236+
### Changes
237+
Based on:
238+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml
239+
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy
240+
### Releases
241+
- [PyPI v0.11.0] https://pypi.org/project/codat-accounting/0.11.0 - accounting

accounting/files.gen

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ src/codataccounting/models/operations/get_cash_flow_statement.py
104104
src/codataccounting/models/operations/get_profit_and_loss.py
105105
src/codataccounting/models/operations/download_invoice_pdf.py
106106
src/codataccounting/models/operations/create_invoice.py
107+
src/codataccounting/models/operations/delete_invoice.py
107108
src/codataccounting/models/operations/download_invoice_attachment.py
108109
src/codataccounting/models/operations/get_create_update_invoices_model.py
109110
src/codataccounting/models/operations/get_invoice.py
@@ -117,6 +118,7 @@ src/codataccounting/models/operations/get_create_items_model.py
117118
src/codataccounting/models/operations/get_item.py
118119
src/codataccounting/models/operations/list_items.py
119120
src/codataccounting/models/operations/create_journal_entry.py
121+
src/codataccounting/models/operations/delete_journal_entry.py
120122
src/codataccounting/models/operations/get_create_journalentries_model.py
121123
src/codataccounting/models/operations/get_journal_entry.py
122124
src/codataccounting/models/operations/list_journal_entries.py

accounting/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 13cfc907c832e4d683929bdab7d92b0c
3+
docChecksum: c34c1f453cb470a82008f4eca5a4bdef
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.19.7
6-
generationVersion: 2.17.9
5+
speakeasyVersion: 1.20.0
6+
generationVersion: 2.18.0
77
generation:
88
telemetryEnabled: false
99
sdkClassName: CodatAccounting
1010
sdkFlattening: false
1111
singleTagPerOp: false
1212
python:
13-
version: 0.10.1
13+
version: 0.11.0
1414
author: Speakeasy
1515
description: Python Client SDK Generated by Speakeasy
1616
packageName: codat-accounting

accounting/pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ disable=raw-checker-failed,
439439
using-constant-test,
440440
too-many-statements,
441441
cyclic-import,
442+
too-many-nested-blocks
442443

443444
# Enable the message, report, category or checker with the given id(s). You can
444445
# either give multiple identifier separated by comma (,) or put this option

accounting/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-accounting",
13-
version="0.10.1",
13+
version="0.11.0",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

accounting/src/codataccounting/bills.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def delete_bill(self, request: operations.DeleteBillRequest) -> operations.Delet
6262
6363
> **Supported Integrations**
6464
>
65-
> This functionality is currently only supported for our Oracle NetSuite integration. Check out our [public roadmap](https://portal.productboard.com/codat/7-public-product-roadmap/tabs/46-accounting-api) to see what we're building next, and to submit ideas for new features.
65+
> This functionality is currently only supported for our Oracle NetSuite and QuickBooks Online integrations. Check out our [public roadmap](https://portal.productboard.com/codat/7-public-product-roadmap/tabs/46-accounting-api) to see what we're building next, and to submit ideas for new features.
6666
"""
6767
base_url = self._server_url
6868

accounting/src/codataccounting/invoices.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,33 @@ def create_invoice(self, request: operations.CreateInvoiceRequest) -> operations
7878

7979
return res
8080

81+
def delete_invoice(self, request: operations.DeleteInvoiceRequest) -> operations.DeleteInvoiceResponse:
82+
r"""Delete invoice
83+
Deletes an invoice from the accounting package for a given company.
84+
85+
> **Supported Integrations**
86+
>
87+
> This functionality is currently only supported for our QuickBooks Online integration. Check out our [public roadmap](https://portal.productboard.com/codat/7-public-product-roadmap/tabs/46-accounting-api) to see what we're building next, and to submit ideas for new features.
88+
"""
89+
base_url = self._server_url
90+
91+
url = utils.generate_url(operations.DeleteInvoiceRequest, base_url, '/companies/{companyId}/connections/{connectionId}/push/invoices/{invoiceId}', request)
92+
93+
94+
client = self._security_client
95+
96+
http_res = client.request('DELETE', url)
97+
content_type = http_res.headers.get('Content-Type')
98+
99+
res = operations.DeleteInvoiceResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
100+
101+
if http_res.status_code == 200:
102+
if utils.match_content_type(content_type, 'application/json'):
103+
out = utils.unmarshal_json(http_res.text, Optional[shared.PushOperationSummary])
104+
res.push_operation_summary = out
105+
106+
return res
107+
81108
def download_invoice_attachment(self, request: operations.DownloadInvoiceAttachmentRequest) -> operations.DownloadInvoiceAttachmentResponse:
82109
r"""Download invoice attachment
83110
Download invoice attachments

accounting/src/codataccounting/journal_entries.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,33 @@ def create_journal_entry(self, request: operations.CreateJournalEntryRequest) ->
5656

5757
return res
5858

59+
def delete_journal_entry(self, request: operations.DeleteJournalEntryRequest) -> operations.DeleteJournalEntryResponse:
60+
r"""Delete journal entry
61+
Deletes a journal entry from the accounting package for a given company.
62+
63+
> **Supported Integrations**
64+
>
65+
> This functionality is currently only supported for our QuickBooks Online integration. Check out our [public roadmap](https://portal.productboard.com/codat/7-public-product-roadmap/tabs/46-accounting-api) to see what we're building next, and to submit ideas for new features.
66+
"""
67+
base_url = self._server_url
68+
69+
url = utils.generate_url(operations.DeleteJournalEntryRequest, base_url, '/companies/{companyId}/connections/{connectionId}/push/journalEntries/{journalEntryId}', request)
70+
71+
72+
client = self._security_client
73+
74+
http_res = client.request('DELETE', url)
75+
content_type = http_res.headers.get('Content-Type')
76+
77+
res = operations.DeleteJournalEntryResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
78+
79+
if http_res.status_code == 200:
80+
if utils.match_content_type(content_type, 'application/json'):
81+
out = utils.unmarshal_json(http_res.text, Optional[shared.PushOperationSummary])
82+
res.push_operation_summary = out
83+
84+
return res
85+
5986
def get_create_journal_entries_model(self, request: operations.GetCreateJournalEntriesModelRequest) -> operations.GetCreateJournalEntriesModelResponse:
6087
r"""Get create journal entry model
6188
Get create journal entry model. Returns the expected data for the request payload.

0 commit comments

Comments
 (0)