Skip to content

Commit be5223a

Browse files
authored
Merge pull request #94 from codatio/speakeasy-sdk-regen-1682409472
chore: speakeasy sdk regeneration - Generate Expenses SDK
2 parents bba412d + 9c9c290 commit be5223a

File tree

17 files changed

+790
-38
lines changed

17 files changed

+790
-38
lines changed

expenses/README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pip install codat-sync-for-expenses
1414
<!-- Start SDK Example Usage -->
1515
```python
1616
import codatsyncexpenses
17-
from codatsyncexpenses.models import operations, shared
17+
from codatsyncexpenses.models import operations
1818

1919
s = codatsyncexpenses.CodatSyncExpenses(
2020
security=shared.Security(
@@ -26,7 +26,7 @@ s = codatsyncexpenses.CodatSyncExpenses(
2626
req = operations.GetCompanyConfigurationRequest(
2727
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
2828
)
29-
29+
3030
res = s.configuration.get_company_configuration(req)
3131

3232
if res.company_configuration is not None:
@@ -38,39 +38,39 @@ if res.company_configuration is not None:
3838
## Available Resources and Operations
3939

4040

41-
### configuration
41+
### [configuration](docs/configuration/README.md)
4242

43-
* `get_company_configuration` - Get company configuration
44-
* `save_company_configuration` - Set company configuration
43+
* [get_company_configuration](docs/configuration/README.md#get_company_configuration) - Get company configuration
44+
* [save_company_configuration](docs/configuration/README.md#save_company_configuration) - Set company configuration
4545

46-
### connections
46+
### [connections](docs/connections/README.md)
4747

48-
* `create_partner_expense_connection` - Create Partner Expense connection
48+
* [create_partner_expense_connection](docs/connections/README.md#create_partner_expense_connection) - Create Partner Expense connection
4949

50-
### expenses
50+
### [expenses](docs/expenses/README.md)
5151

52-
* `create_expense_dataset` - Create expense-transactions
53-
* `upload_attachment` - Upload attachment
52+
* [create_expense_dataset](docs/expenses/README.md#create_expense_dataset) - Create expense-transactions
53+
* [upload_attachment](docs/expenses/README.md#upload_attachment) - Upload attachment
5454

55-
### mapping_options
55+
### [mapping_options](docs/mappingoptions/README.md)
5656

57-
* `get_mapping_options` - Mapping options
57+
* [get_mapping_options](docs/mappingoptions/README.md#get_mapping_options) - Mapping options
5858

59-
### sync
59+
### [sync](docs/sync/README.md)
6060

61-
* `intiate_sync` - Initiate sync
61+
* [intiate_sync](docs/sync/README.md#intiate_sync) - Initiate sync
6262

63-
### sync_status
63+
### [sync_status](docs/syncstatus/README.md)
6464

65-
* `get_last_successful_sync` - Last successful sync
66-
* `get_latest_sync` - Latest sync status
67-
* `get_sync_by_id` - Get Sync status
68-
* `list_syncs` - List sync statuses
65+
* [get_last_successful_sync](docs/syncstatus/README.md#get_last_successful_sync) - Last successful sync
66+
* [get_latest_sync](docs/syncstatus/README.md#get_latest_sync) - Latest sync status
67+
* [get_sync_by_id](docs/syncstatus/README.md#get_sync_by_id) - Get Sync status
68+
* [list_syncs](docs/syncstatus/README.md#list_syncs) - List sync statuses
6969

70-
### transaction_status
70+
### [transaction_status](docs/transactionstatus/README.md)
7171

72-
* `get_sync_transaction` - Get Sync Transaction
73-
* `list_sync_transactions` - Get Sync transactions
72+
* [get_sync_transaction](docs/transactionstatus/README.md#get_sync_transaction) - Get Sync Transaction
73+
* [list_sync_transactions](docs/transactionstatus/README.md#list_sync_transactions) - Get Sync transactions
7474
<!-- End SDK Available Operations -->
7575

7676
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

expenses/RELEASES.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,28 @@ Based on:
230230
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
231231
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
232232
### Releases
233-
- [PyPI v0.10.1] https://pypi.org/project/codat-sync-for-expenses/0.10.1 - expenses
233+
- [PyPI v0.10.1] https://pypi.org/project/codat-sync-for-expenses/0.10.1 - expenses
234+
235+
## 2023-04-25 07:57:50
236+
### Changes
237+
Based on:
238+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
239+
- Speakeasy CLI 1.23.0 (2.21.0) https://github.com/speakeasy-api/speakeasy
240+
### Releases
241+
- [PyPI v0.11.0] https://pypi.org/project/codat-sync-for-expenses/0.11.0 - expenses
242+
243+
## 2023-04-25 14:17:52
244+
### Changes
245+
Based on:
246+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
247+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
248+
### Releases
249+
- [PyPI v0.11.1] https://pypi.org/project/codat-sync-for-expenses/0.11.1 - expenses
250+
251+
## 2023-04-26 14:59:30
252+
### Changes
253+
Based on:
254+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Expenses.yaml
255+
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
256+
### Releases
257+
- [PyPI v0.12.0] https://pypi.org/project/codat-sync-for-expenses/0.12.0 - expenses

expenses/USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage -->
22
```python
33
import codatsyncexpenses
4-
from codatsyncexpenses.models import operations, shared
4+
from codatsyncexpenses.models import operations
55

66
s = codatsyncexpenses.CodatSyncExpenses(
77
security=shared.Security(
@@ -13,7 +13,7 @@ s = codatsyncexpenses.CodatSyncExpenses(
1313
req = operations.GetCompanyConfigurationRequest(
1414
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
1515
)
16-
16+
1717
res = s.configuration.get_company_configuration(req)
1818

1919
if res.company_configuration is not None:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CodatSyncExpenses SDK
2+
3+
## Overview
4+
5+
The API for Sync for Expenses.
6+
Sync for Expenses is an API and a set of supporting tools. It has been built to enable corporate card and expense management platforms to provide high-quality integrations with multiple accounting platforms through a standardized API.
7+
8+
[Read more...](https://docs.codat.io/sync-for-expenses/overview)
9+
10+
[See our OpenAPI spec](https://github.com/codatio/oas)
11+
12+
### Available Operations
13+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# configuration
2+
3+
## Overview
4+
5+
Companies sync configuration.
6+
7+
### Available Operations
8+
9+
* [get_company_configuration](#get_company_configuration) - Get company configuration
10+
* [save_company_configuration](#save_company_configuration) - Set company configuration
11+
12+
## get_company_configuration
13+
14+
Gets a companies expense sync configuration
15+
16+
### Example Usage
17+
18+
```python
19+
import codatsyncexpenses
20+
from codatsyncexpenses.models import operations
21+
22+
s = codatsyncexpenses.CodatSyncExpenses(
23+
security=shared.Security(
24+
auth_header="YOUR_API_KEY_HERE",
25+
),
26+
)
27+
28+
29+
req = operations.GetCompanyConfigurationRequest(
30+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
31+
)
32+
33+
res = s.configuration.get_company_configuration(req)
34+
35+
if res.company_configuration is not None:
36+
# handle response
37+
```
38+
39+
## save_company_configuration
40+
41+
Sets a companies expense sync configuration
42+
43+
### Example Usage
44+
45+
```python
46+
import codatsyncexpenses
47+
from codatsyncexpenses.models import operations, shared
48+
49+
s = codatsyncexpenses.CodatSyncExpenses(
50+
security=shared.Security(
51+
auth_header="YOUR_API_KEY_HERE",
52+
),
53+
)
54+
55+
56+
req = operations.SaveCompanyConfigurationRequest(
57+
company_configuration=shared.CompanyConfiguration(
58+
bank_account=shared.BankAccount(
59+
id="32",
60+
),
61+
customer=shared.Customer(
62+
id="142",
63+
),
64+
supplier=shared.Supplier(
65+
id="124",
66+
),
67+
),
68+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
69+
)
70+
71+
res = s.configuration.save_company_configuration(req)
72+
73+
if res.company_configuration is not None:
74+
# handle response
75+
```
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# connections
2+
3+
## Overview
4+
5+
Create and manage partner expense connection.
6+
7+
### Available Operations
8+
9+
* [create_partner_expense_connection](#create_partner_expense_connection) - Create Partner Expense connection
10+
11+
## create_partner_expense_connection
12+
13+
Creates a Partner Expense data connection
14+
15+
### Example Usage
16+
17+
```python
18+
import codatsyncexpenses
19+
from codatsyncexpenses.models import operations
20+
21+
s = codatsyncexpenses.CodatSyncExpenses(
22+
security=shared.Security(
23+
auth_header="YOUR_API_KEY_HERE",
24+
),
25+
)
26+
27+
28+
req = operations.CreatePartnerExpenseConnectionRequest(
29+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
30+
)
31+
32+
res = s.connections.create_partner_expense_connection(req)
33+
34+
if res.data_connection is not None:
35+
# handle response
36+
```

0 commit comments

Comments
 (0)