Skip to content

Commit c7c7628

Browse files
committed
ci: regenerated with OpenAPI Doc prealpha, Speakeay CLI 1.52.0
1 parent 639c101 commit c7c7628

17 files changed

Lines changed: 317 additions & 11 deletions

expenses/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if res.company_configuration is not None:
4949
### [expenses](docs/sdks/expenses/README.md)
5050

5151
* [create_expense_dataset](docs/sdks/expenses/README.md#create_expense_dataset) - Create expense-transactions
52+
* [update_expense_dataset](docs/sdks/expenses/README.md#update_expense_dataset) - Update expense-transactions
5253
* [upload_attachment](docs/sdks/expenses/README.md#upload_attachment) - Upload attachment
5354

5455
### [mapping_options](docs/sdks/mappingoptions/README.md)

expenses/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,12 @@ Based on:
574574
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
575575
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
576576
### Releases
577-
- [PyPI v0.31.0] https://pypi.org/project/codat-sync-for-expenses/0.31.0 - expenses
577+
- [PyPI v0.31.0] https://pypi.org/project/codat-sync-for-expenses/0.31.0 - expenses
578+
579+
## 2023-07-04 00:16:58
580+
### Changes
581+
Based on:
582+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
583+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
584+
### Releases
585+
- [PyPI v0.31.1] https://pypi.org/project/codat-sync-for-expenses/0.31.1 - expenses
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# UpdateExpenseDataset202ApplicationJSON
2+
3+
Accepted
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------ | ------------------ | ------------------ | ------------------ |
10+
| `sync_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# UpdateExpenseDatasetRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
8+
| `update_expense_request` | [Optional[shared.UpdateExpenseRequest]](../../models/shared/updateexpenserequest.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UpdateExpenseDatasetResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `status_code` | *int* | :heavy_check_mark: | N/A |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11+
| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | The request made is not valid. |
12+
| `update_expense_dataset_202_application_json_object` | [Optional[UpdateExpenseDataset202ApplicationJSON]](../../models/operations/updateexpensedataset202applicationjson.md) | :heavy_minus_sign: | Accepted |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# UpdateExpenseRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
8+
| `currency` | *Optional[str]* | :heavy_minus_sign: | Currency the transaction was recorded in. | GBP |
9+
| `issue_date` | *str* | :heavy_check_mark: | Date the transaction was recorded. | 2022-06-28T00:00:00.000Z |
10+
| `lines` | list[[ExpenseTransactionLine](../../models/shared/expensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | |
11+
| `merchant_name` | *Optional[str]* | :heavy_minus_sign: | Name of the merchant where the purchase took place | Amazon UK |
12+
| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 |
13+
| `type` | *Any* | :heavy_check_mark: | N/A | |

expenses/docs/sdks/expenses/README.md

Lines changed: 130 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Create expense datasets and upload receipts.
77
### Available Operations
88

99
* [create_expense_dataset](#create_expense_dataset) - Create expense-transactions
10+
* [update_expense_dataset](#update_expense_dataset) - Update expense-transactions
1011
* [upload_attachment](#upload_attachment) - Upload attachment
1112

1213
## create_expense_dataset
@@ -307,6 +308,133 @@ if res.create_expense_response is not None:
307308
**[operations.CreateExpenseDatasetResponse](../../models/operations/createexpensedatasetresponse.md)**
308309

309310

311+
## update_expense_dataset
312+
313+
Update an expense transaction
314+
315+
### Example Usage
316+
317+
```python
318+
import codatsyncexpenses
319+
from codatsyncexpenses.models import operations, shared
320+
321+
s = codatsyncexpenses.CodatSyncExpenses(
322+
security=shared.Security(
323+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
324+
),
325+
)
326+
327+
req = operations.UpdateExpenseDatasetRequest(
328+
update_expense_request=shared.UpdateExpenseRequest(
329+
currency='GBP',
330+
issue_date='2022-06-28T00:00:00.000Z',
331+
lines=[
332+
shared.ExpenseTransactionLine(
333+
account_ref=shared.RecordRef(
334+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
335+
),
336+
net_amount=110.42,
337+
tax_amount=14.43,
338+
tax_rate_ref=shared.RecordRef(
339+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
340+
),
341+
tracking_refs=[
342+
shared.RecordRef(
343+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
344+
),
345+
shared.RecordRef(
346+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
347+
),
348+
shared.RecordRef(
349+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
350+
),
351+
],
352+
),
353+
shared.ExpenseTransactionLine(
354+
account_ref=shared.RecordRef(
355+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
356+
),
357+
net_amount=110.42,
358+
tax_amount=14.43,
359+
tax_rate_ref=shared.RecordRef(
360+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
361+
),
362+
tracking_refs=[
363+
shared.RecordRef(
364+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
365+
),
366+
shared.RecordRef(
367+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
368+
),
369+
],
370+
),
371+
shared.ExpenseTransactionLine(
372+
account_ref=shared.RecordRef(
373+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
374+
),
375+
net_amount=110.42,
376+
tax_amount=14.43,
377+
tax_rate_ref=shared.RecordRef(
378+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
379+
),
380+
tracking_refs=[
381+
shared.RecordRef(
382+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
383+
),
384+
shared.RecordRef(
385+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
386+
),
387+
shared.RecordRef(
388+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
389+
),
390+
],
391+
),
392+
shared.ExpenseTransactionLine(
393+
account_ref=shared.RecordRef(
394+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
395+
),
396+
net_amount=110.42,
397+
tax_amount=14.43,
398+
tax_rate_ref=shared.RecordRef(
399+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
400+
),
401+
tracking_refs=[
402+
shared.RecordRef(
403+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
404+
),
405+
shared.RecordRef(
406+
id='40e3e57c-2322-4898-966c-ca41adfd23fd',
407+
),
408+
],
409+
),
410+
],
411+
merchant_name='Amazon UK',
412+
notes='APPLE.COM/BILL - 09001077498 - Card Ending: 4590',
413+
type='recusandae',
414+
),
415+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
416+
transaction_id='336694d8-2dca-4cb5-a28d-3ccb83e55eee',
417+
)
418+
419+
res = s.expenses.update_expense_dataset(req)
420+
421+
if res.update_expense_dataset_202_application_json_object is not None:
422+
# handle response
423+
```
424+
425+
### Parameters
426+
427+
| Parameter | Type | Required | Description |
428+
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
429+
| `request` | [operations.UpdateExpenseDatasetRequest](../../models/operations/updateexpensedatasetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
430+
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
431+
432+
433+
### Response
434+
435+
**[operations.UpdateExpenseDatasetResponse](../../models/operations/updateexpensedatasetresponse.md)**
436+
437+
310438
## upload_attachment
311439

312440
Creates an attachment in the accounting software against the given transactionId
@@ -325,8 +453,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
325453

326454
req = operations.UploadAttachmentRequest(
327455
request_body=operations.UploadAttachmentRequestBody(
328-
content='placeat'.encode(),
329-
request_body='voluptatum',
456+
content='temporibus'.encode(),
457+
request_body='ab',
330458
),
331459
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
332460
sync_id='6fb40d5e-b13e-11ed-afa1-0242ac120002',

expenses/docs/sdks/sync/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
2727
req = operations.IntiateSyncRequest(
2828
post_sync=shared.PostSync(
2929
dataset_ids=[
30-
'96ed151a-05df-4c2d-9f7c-c78ca1ba928f',
31-
'c816742c-b739-4205-9293-96fea7596eb1',
30+
'1a05dfc2-ddf7-4cc7-8ca1-ba928fc81674',
31+
'2cb73920-5929-4396-bea7-596eb10faaa2',
3232
],
3333
),
3434
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',

expenses/files.gen

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ src/codatsyncexpenses/models/operations/get_company_configuration.py
1818
src/codatsyncexpenses/models/operations/save_company_configuration.py
1919
src/codatsyncexpenses/models/operations/create_partner_expense_connection.py
2020
src/codatsyncexpenses/models/operations/create_expense_dataset.py
21+
src/codatsyncexpenses/models/operations/update_expense_dataset.py
2122
src/codatsyncexpenses/models/operations/upload_attachment.py
2223
src/codatsyncexpenses/models/operations/get_mapping_options.py
2324
src/codatsyncexpenses/models/operations/intiate_sync.py
@@ -41,6 +42,7 @@ src/codatsyncexpenses/models/shared/createexpenserequest.py
4142
src/codatsyncexpenses/models/shared/expensetransaction.py
4243
src/codatsyncexpenses/models/shared/expensetransactionline.py
4344
src/codatsyncexpenses/models/shared/recordref.py
45+
src/codatsyncexpenses/models/shared/updateexpenserequest.py
4446
src/codatsyncexpenses/models/shared/attachment.py
4547
src/codatsyncexpenses/models/shared/mappingoptions.py
4648
src/codatsyncexpenses/models/shared/trackingcategorymappinginfo.py
@@ -75,6 +77,9 @@ docs/models/operations/createpartnerexpenseconnectionrequest.md
7577
docs/models/operations/createpartnerexpenseconnectionresponse.md
7678
docs/models/operations/createexpensedatasetrequest.md
7779
docs/models/operations/createexpensedatasetresponse.md
80+
docs/models/operations/updateexpensedatasetrequest.md
81+
docs/models/operations/updateexpensedataset202applicationjson.md
82+
docs/models/operations/updateexpensedatasetresponse.md
7883
docs/models/operations/uploadattachmentrequestbody.md
7984
docs/models/operations/uploadattachmentrequest.md
8085
docs/models/operations/uploadattachmentresponse.md
@@ -109,6 +114,7 @@ docs/models/shared/expensetransactiontype.md
109114
docs/models/shared/expensetransaction.md
110115
docs/models/shared/expensetransactionline.md
111116
docs/models/shared/recordref.md
117+
docs/models/shared/updateexpenserequest.md
112118
docs/models/shared/attachment.md
113119
docs/models/shared/mappingoptions.md
114120
docs/models/shared/trackingcategorymappinginfo.md

expenses/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: 3f4727af6903d2c5cee6317f7ef30894
3+
docChecksum: 10a2f2e33bc0830d491b01b2e4f509c9
44
docVersion: prealpha
55
speakeasyVersion: 1.52.0
66
generationVersion: 2.55.0
@@ -9,7 +9,7 @@ generation:
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.31.0
12+
version: 0.31.1
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

0 commit comments

Comments
 (0)