Skip to content

Commit 7a279c0

Browse files
authored
Merge pull request #583 from codatio/speakeasy-sdk-regen-1712679326
chore: 🐝 Update SDK - Generate Sync for Expenses library
2 parents 8ca2f02 + 7b2c74d commit 7a279c0

File tree

74 files changed

+2352
-1183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2352
-1183
lines changed

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

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
lockVersion: 2.0.0
22
id: a2c830ee-4f93-4e8e-8f01-48d0991317f5
33
management:
4-
docChecksum: f7909a451d1597b90dec569f16a52c39
4+
docChecksum: b84c137b488c9aa6b56fa6e53acdf2cc
55
docVersion: prealpha
6-
speakeasyVersion: 1.214.0
7-
generationVersion: 2.286.2
8-
releaseVersion: 6.1.0
9-
configChecksum: e79911b643cf0af7980744493efc5dad
6+
speakeasyVersion: 1.244.2
7+
generationVersion: 2.301.3
8+
releaseVersion: 6.2.0
9+
configChecksum: 459921fe135cf9813305705dbcdd4885
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: sync-for-expenses
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-expenses
1313
published: true
1414
features:
1515
python:
1616
constsAndDefaults: 0.1.3
17-
core: 4.5.1
17+
core: 4.6.4
1818
decimal: 0.1.0
1919
deprecations: 2.81.1
2020
examples: 2.81.3
2121
globalSecurity: 2.83.5
2222
globalServerURLs: 2.82.2
2323
inputOutputModels: 2.83.1
24-
nameOverrides: 2.81.1
24+
nameOverrides: 2.81.2
2525
responseFormat: 0.1.0
2626
retries: 2.82.1
2727
webhooks: 1.0.0
@@ -36,8 +36,11 @@ generatedFiles:
3636
- src/codatsyncexpenses/push_operations.py
3737
- src/codatsyncexpenses/configuration.py
3838
- src/codatsyncexpenses/expenses.py
39+
- src/codatsyncexpenses/reimbursements.py
3940
- src/codatsyncexpenses/sync.py
4041
- src/codatsyncexpenses/transaction_status.py
42+
- src/codatsyncexpenses/attachments.py
43+
- src/codatsyncexpenses/transfers.py
4144
- src/codatsyncexpenses/sdk.py
4245
- py.typed
4346
- pylintrc
@@ -81,14 +84,17 @@ generatedFiles:
8184
- src/codatsyncexpenses/models/operations/set_company_configuration.py
8285
- src/codatsyncexpenses/models/operations/create_expense_transaction.py
8386
- src/codatsyncexpenses/models/operations/update_expense_transaction.py
84-
- src/codatsyncexpenses/models/operations/upload_expense_attachment.py
87+
- src/codatsyncexpenses/models/operations/create_reimbursable_expense_transaction.py
88+
- src/codatsyncexpenses/models/operations/update_reimbursable_expense_transaction.py
8589
- src/codatsyncexpenses/models/operations/get_sync_by_id.py
8690
- src/codatsyncexpenses/models/operations/get_last_successful_sync.py
8791
- src/codatsyncexpenses/models/operations/get_latest_sync.py
8892
- src/codatsyncexpenses/models/operations/initiate_sync.py
8993
- src/codatsyncexpenses/models/operations/list_syncs.py
9094
- src/codatsyncexpenses/models/operations/get_sync_transaction.py
9195
- src/codatsyncexpenses/models/operations/list_sync_transactions.py
96+
- src/codatsyncexpenses/models/operations/upload_expense_attachment.py
97+
- src/codatsyncexpenses/models/operations/create_transfer_transaction.py
9298
- src/codatsyncexpenses/models/shared/company.py
9399
- src/codatsyncexpenses/models/shared/connection.py
94100
- src/codatsyncexpenses/models/shared/dataconnectionstatus.py
@@ -158,16 +164,24 @@ generatedFiles:
158164
- src/codatsyncexpenses/models/shared/contactref.py
159165
- src/codatsyncexpenses/models/shared/updateexpenseresponse.py
160166
- src/codatsyncexpenses/models/shared/updateexpenserequest.py
161-
- src/codatsyncexpenses/models/shared/attachment.py
162-
- src/codatsyncexpenses/models/shared/attachmentupload.py
163-
- src/codatsyncexpenses/models/shared/codatfile.py
167+
- src/codatsyncexpenses/models/shared/createreimbursableexpenseresponse.py
168+
- src/codatsyncexpenses/models/shared/createreimbursableexpenserequest.py
169+
- src/codatsyncexpenses/models/shared/reimbursableexpensetransaction.py
170+
- src/codatsyncexpenses/models/shared/reimbursableexpensetransactionline.py
164171
- src/codatsyncexpenses/models/shared/companysyncstatus.py
165172
- src/codatsyncexpenses/models/shared/syncinitiated.py
166173
- src/codatsyncexpenses/models/shared/initiatesync.py
167174
- src/codatsyncexpenses/models/shared/transaction.py
168175
- src/codatsyncexpenses/models/shared/transactionstatus.py
169176
- src/codatsyncexpenses/models/shared/integrationtype.py
170177
- src/codatsyncexpenses/models/shared/transactions.py
178+
- src/codatsyncexpenses/models/shared/attachment.py
179+
- src/codatsyncexpenses/models/shared/attachmentupload.py
180+
- src/codatsyncexpenses/models/shared/codatfile.py
181+
- src/codatsyncexpenses/models/shared/createtransferresponse.py
182+
- src/codatsyncexpenses/models/shared/createtransferrequest.py
183+
- src/codatsyncexpenses/models/shared/transferdetails.py
184+
- src/codatsyncexpenses/models/shared/accountref.py
171185
- src/codatsyncexpenses/models/shared/security.py
172186
- src/codatsyncexpenses/models/shared/clientratelimitreachedwebhook.py
173187
- src/codatsyncexpenses/models/shared/clientratelimitreachedwebhookdata.py
@@ -256,8 +270,10 @@ generatedFiles:
256270
- docs/models/operations/createexpensetransactionresponse.md
257271
- docs/models/operations/updateexpensetransactionrequest.md
258272
- docs/models/operations/updateexpensetransactionresponse.md
259-
- docs/models/operations/uploadexpenseattachmentrequest.md
260-
- docs/models/operations/uploadexpenseattachmentresponse.md
273+
- docs/models/operations/createreimbursableexpensetransactionrequest.md
274+
- docs/models/operations/createreimbursableexpensetransactionresponse.md
275+
- docs/models/operations/updatereimbursableexpensetransactionrequest.md
276+
- docs/models/operations/updatereimbursableexpensetransactionresponse.md
261277
- docs/models/operations/getsyncbyidrequest.md
262278
- docs/models/operations/getsyncbyidresponse.md
263279
- docs/models/operations/getlastsuccessfulsyncrequest.md
@@ -272,6 +288,10 @@ generatedFiles:
272288
- docs/models/operations/getsynctransactionresponse.md
273289
- docs/models/operations/listsynctransactionsrequest.md
274290
- docs/models/operations/listsynctransactionsresponse.md
291+
- docs/models/operations/uploadexpenseattachmentrequest.md
292+
- docs/models/operations/uploadexpenseattachmentresponse.md
293+
- docs/models/operations/createtransfertransactionrequest.md
294+
- docs/models/operations/createtransfertransactionresponse.md
275295
- docs/models/shared/groupreference.md
276296
- docs/models/shared/company.md
277297
- docs/models/shared/sourcetype.md
@@ -352,7 +372,7 @@ generatedFiles:
352372
- docs/models/shared/accountmappinginfo.md
353373
- docs/models/shared/createexpenseresponse.md
354374
- docs/models/shared/createexpenserequest.md
355-
- docs/models/shared/bankaccountreference.md
375+
- docs/models/shared/expensetransactionbankaccountreference.md
356376
- docs/models/shared/expensetransactiontype.md
357377
- docs/models/shared/expensetransaction.md
358378
- docs/models/shared/expensetransactionline.md
@@ -366,16 +386,25 @@ generatedFiles:
366386
- docs/models/shared/updateexpenseresponse.md
367387
- docs/models/shared/updateexpenserequestbankaccountreference.md
368388
- docs/models/shared/updateexpenserequest.md
369-
- docs/models/shared/attachment.md
370-
- docs/models/shared/attachmentupload.md
371-
- docs/models/shared/codatfile.md
389+
- docs/models/shared/createreimbursableexpenseresponse.md
390+
- docs/models/shared/createreimbursableexpenserequest.md
391+
- docs/models/shared/bankaccountreference.md
392+
- docs/models/shared/reimbursableexpensetransaction.md
393+
- docs/models/shared/reimbursableexpensetransactionline.md
372394
- docs/models/shared/companysyncstatus.md
373395
- docs/models/shared/syncinitiated.md
374396
- docs/models/shared/initiatesync.md
375397
- docs/models/shared/transaction.md
376398
- docs/models/shared/transactionstatus.md
377399
- docs/models/shared/integrationtype.md
378400
- docs/models/shared/transactions.md
401+
- docs/models/shared/attachment.md
402+
- docs/models/shared/attachmentupload.md
403+
- docs/models/shared/codatfile.md
404+
- docs/models/shared/createtransferresponse.md
405+
- docs/models/shared/createtransferrequest.md
406+
- docs/models/shared/transferdetails.md
407+
- docs/models/shared/accountref.md
379408
- docs/models/shared/security.md
380409
- docs/models/shared/clientratelimitreachedwebhook.md
381410
- docs/models/shared/clientratelimitreachedwebhookdata.md
@@ -404,8 +433,11 @@ generatedFiles:
404433
- docs/sdks/pushoperations/README.md
405434
- docs/sdks/configuration/README.md
406435
- docs/sdks/expenses/README.md
436+
- docs/sdks/reimbursements/README.md
407437
- docs/sdks/sync/README.md
408438
- docs/sdks/transactionstatus/README.md
439+
- docs/sdks/attachments/README.md
440+
- docs/sdks/transfers/README.md
409441
- USAGE.md
410442
- .gitattributes
411443
- src/codatsyncexpenses/_hooks/sdkhooks.py

sync-for-expenses/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ if res.company is not None:
104104

105105
* [create](docs/sdks/expenses/README.md#create) - Create expense transaction
106106
* [update](docs/sdks/expenses/README.md#update) - Update expense transactions
107-
* [upload_attachment](docs/sdks/expenses/README.md#upload_attachment) - Upload attachment
107+
108+
### [reimbursements](docs/sdks/reimbursements/README.md)
109+
110+
* [create](docs/sdks/reimbursements/README.md#create) - Create reimbursable expense transaction
111+
* [update](docs/sdks/reimbursements/README.md#update) - Update reimbursable expense transaction
108112

109113
### [sync](docs/sdks/sync/README.md)
110114

@@ -118,6 +122,14 @@ if res.company is not None:
118122

119123
* [get](docs/sdks/transactionstatus/README.md#get) - Get sync transaction
120124
* [list](docs/sdks/transactionstatus/README.md#list) - List sync transactions
125+
126+
### [attachments](docs/sdks/attachments/README.md)
127+
128+
* [upload](docs/sdks/attachments/README.md#upload) - Upload attachment
129+
130+
### [transfers](docs/sdks/transfers/README.md)
131+
132+
* [create](docs/sdks/transfers/README.md#create) - Create transfer transaction
121133
<!-- End Available Resources and Operations [operations] -->
122134

123135

@@ -188,7 +200,7 @@ Handling errors in this SDK should largely match your expectations. All operati
188200
| Error Object | Status Code | Content Type |
189201
| --------------------------- | --------------------------- | --------------------------- |
190202
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
191-
| errors.SDKError | 4x-5xx | */* |
203+
| errors.SDKError | 4xx-5xx | */* |
192204

193205
### Example
194206

@@ -302,7 +314,7 @@ import requests
302314

303315
http_client = requests.Session()
304316
http_client.headers.update({'x-custom-header': 'someValue'})
305-
s = codatsyncexpenses.CodatSyncExpenses(client: http_client)
317+
s = codatsyncexpenses.CodatSyncExpenses(client=http_client)
306318
```
307319
<!-- End Custom HTTP Client [http-client] -->
308320

sync-for-expenses/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,4 +716,14 @@ Based on:
716716
### Generated
717717
- [python v6.1.0] sync-for-expenses
718718
### Releases
719-
- [PyPI v6.1.0] https://pypi.org/project/codat-sync-for-expenses/6.1.0 - sync-for-expenses
719+
- [PyPI v6.1.0] https://pypi.org/project/codat-sync-for-expenses/6.1.0 - sync-for-expenses
720+
721+
## 2024-04-09 16:15:19
722+
### Changes
723+
Based on:
724+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
725+
- Speakeasy CLI 1.244.2 (2.301.3) https://github.com/speakeasy-api/speakeasy
726+
### Generated
727+
- [python v6.2.0] sync-for-expenses
728+
### Releases
729+
- [PyPI v6.2.0] https://pypi.org/project/codat-sync-for-expenses/6.2.0 - sync-for-expenses
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateReimbursableExpenseTransactionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `create_reimbursable_expense_request` | [Optional[shared.CreateReimbursableExpenseRequest]](../../models/shared/createreimbursableexpenserequest.md) | :heavy_minus_sign: | N/A | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateReimbursableExpenseTransactionResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `create_reimbursable_expense_response` | [Optional[shared.CreateReimbursableExpenseResponse]](../../models/shared/createreimbursableexpenseresponse.md) | :heavy_minus_sign: | OK |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateTransferTransactionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
10+
| `create_transfer_request` | [Optional[shared.CreateTransferRequest]](../../models/shared/createtransferrequest.md) | :heavy_minus_sign: | N/A | |

0 commit comments

Comments
 (0)