Skip to content

Commit d073f9f

Browse files
authored
Merge pull request #416 from codatio/speakeasy-sdk-regen-1696430899
chore: speakeasy sdk regeneration - Generate Sync for Expenses library
2 parents 1fc4630 + 1f8546d commit d073f9f

File tree

286 files changed

+2119
-1170
lines changed

Some content is hidden

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

286 files changed

+2119
-1170
lines changed

sync-for-expenses/README.md

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ pip install codat-sync-for-expenses
1212

1313
## Example Usage
1414
<!-- Start SDK Example Usage -->
15-
16-
1715
```python
1816
import codatsyncexpenses
1917
from codatsyncexpenses.models import operations, shared
@@ -31,7 +29,7 @@ req = operations.CreateAccountRequest(
3129
current_balance=Decimal('0'),
3230
description='Invoices the business has issued but has not yet collected payment on.',
3331
fully_qualified_category='Asset.Current',
34-
fully_qualified_name='Fixed Asset',
32+
fully_qualified_name='Cash On Hand',
3533
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
3634
is_bank_account=False,
3735
metadata=shared.AccountMetadata(
@@ -46,15 +44,16 @@ req = operations.CreateAccountRequest(
4644
valid_datatype_links=[
4745
shared.AccountValidDataTypeLinks(
4846
links=[
49-
'unde',
47+
'Money',
5048
],
51-
property='nulla',
49+
property='Cambridgeshire grey technology',
5250
),
5351
],
5452
),
53+
allow_sync_on_push_complete=False,
5554
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5655
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
57-
timeout_in_minutes=544883,
56+
timeout_in_minutes=86,
5857
)
5958

6059
res = s.accounts.create(req)
@@ -68,77 +67,104 @@ if res.create_account_response is not None:
6867
## Available Resources and Operations
6968

7069

71-
### [Accounts](docs/sdks/accounts/README.md)
70+
### [accounts](docs/sdks/accounts/README.md)
7271

7372
* [create](docs/sdks/accounts/README.md#create) - Create account
73+
* [get_create_model](docs/sdks/accounts/README.md#get_create_model) - Get create account model
7474

75-
### [Companies](docs/sdks/companies/README.md)
75+
### [companies](docs/sdks/companies/README.md)
7676

7777
* [create](docs/sdks/companies/README.md#create) - Create company
7878
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
7979
* [get](docs/sdks/companies/README.md#get) - Get company
8080
* [list](docs/sdks/companies/README.md#list) - List companies
8181
* [update](docs/sdks/companies/README.md#update) - Update company
8282

83-
### [Configuration](docs/sdks/configuration/README.md)
83+
### [configuration](docs/sdks/configuration/README.md)
8484

8585
* [get](docs/sdks/configuration/README.md#get) - Get company configuration
8686
* [get_mapping_options](docs/sdks/configuration/README.md#get_mapping_options) - Mapping options
8787
* [set](docs/sdks/configuration/README.md#set) - Set company configuration
8888

89-
### [Connections](docs/sdks/connections/README.md)
89+
### [connections](docs/sdks/connections/README.md)
9090

9191
* [create](docs/sdks/connections/README.md#create) - Create connection
92-
* [create_partner_expense_connection](docs/sdks/connections/README.md#create_partner_expense_connection) - Create Partner Expense connection
92+
* [create_partner_expense_connection](docs/sdks/connections/README.md#create_partner_expense_connection) - Create partner expense connection
9393
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
9494
* [get](docs/sdks/connections/README.md#get) - Get connection
9595
* [list](docs/sdks/connections/README.md#list) - List connections
9696
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
9797

98-
### [Customers](docs/sdks/customers/README.md)
98+
### [customers](docs/sdks/customers/README.md)
9999

100100
* [create](docs/sdks/customers/README.md#create) - Create customer
101101
* [get](docs/sdks/customers/README.md#get) - Get customer
102102
* [list](docs/sdks/customers/README.md#list) - List customers
103103
* [update](docs/sdks/customers/README.md#update) - Update customer
104104

105-
### [Expenses](docs/sdks/expenses/README.md)
105+
### [expenses](docs/sdks/expenses/README.md)
106106

107107
* [create](docs/sdks/expenses/README.md#create) - Create expense transaction
108108
* [update](docs/sdks/expenses/README.md#update) - Update expense-transactions
109109
* [upload_attachment](docs/sdks/expenses/README.md#upload_attachment) - Upload attachment
110110

111-
### [ManageData](docs/sdks/managedata/README.md)
111+
### [manage_data](docs/sdks/managedata/README.md)
112112

113113
* [get](docs/sdks/managedata/README.md#get) - Get data status
114114
* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation
115115
* [list_pull_operations](docs/sdks/managedata/README.md#list_pull_operations) - List pull operations
116116
* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data
117117
* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type
118118

119-
### [PushOperations](docs/sdks/pushoperations/README.md)
119+
### [push_operations](docs/sdks/pushoperations/README.md)
120120

121121
* [get](docs/sdks/pushoperations/README.md#get) - Get push operation
122122
* [list](docs/sdks/pushoperations/README.md#list) - List push operations
123123

124-
### [Suppliers](docs/sdks/suppliers/README.md)
124+
### [suppliers](docs/sdks/suppliers/README.md)
125125

126126
* [create](docs/sdks/suppliers/README.md#create) - Create supplier
127127
* [get](docs/sdks/suppliers/README.md#get) - Get supplier
128128
* [list](docs/sdks/suppliers/README.md#list) - List suppliers
129129
* [update](docs/sdks/suppliers/README.md#update) - Update supplier
130130

131-
### [Sync](docs/sdks/sync/README.md)
131+
### [sync](docs/sdks/sync/README.md)
132132

133-
* [get](docs/sdks/sync/README.md#get) - Get Sync status
133+
* [get](docs/sdks/sync/README.md#get) - Get sync status
134134
* [get_last_successful_sync](docs/sdks/sync/README.md#get_last_successful_sync) - Last successful sync
135135
* [get_latest_sync](docs/sdks/sync/README.md#get_latest_sync) - Latest sync status
136136
* [initiate_sync](docs/sdks/sync/README.md#initiate_sync) - Initiate sync
137137
* [list](docs/sdks/sync/README.md#list) - List sync statuses
138138

139-
### [TransactionStatus](docs/sdks/transactionstatus/README.md)
139+
### [transaction_status](docs/sdks/transactionstatus/README.md)
140140

141-
* [get](docs/sdks/transactionstatus/README.md#get) - Get Sync Transaction
141+
* [get](docs/sdks/transactionstatus/README.md#get) - Get sync transaction
142142
* [list](docs/sdks/transactionstatus/README.md#list) - List sync transactions
143143
<!-- End SDK Available Operations -->
144+
145+
146+
147+
<!-- Start Dev Containers -->
148+
149+
150+
151+
<!-- End Dev Containers -->
152+
153+
154+
155+
<!-- Start Pagination -->
156+
# Pagination
157+
158+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
159+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
160+
return value of `Next` is `None`, then there are no more pages to be fetched.
161+
162+
Here's an example of one such pagination call:
163+
164+
165+
<!-- End Pagination -->
166+
167+
<!-- Placeholder for Future Speakeasy SDK Sections -->
168+
169+
144170
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

sync-for-expenses/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,4 +656,14 @@ Based on:
656656
### Generated
657657
- [python v2.1.0] sync-for-expenses
658658
### Releases
659-
- [PyPI v2.1.0] https://pypi.org/project/codat-sync-for-expenses/2.1.0 - sync-for-expenses
659+
- [PyPI v2.1.0] https://pypi.org/project/codat-sync-for-expenses/2.1.0 - sync-for-expenses
660+
661+
## 2023-10-04 14:48:14
662+
### Changes
663+
Based on:
664+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
665+
- Speakeasy CLI 1.93.3 (2.146.1) https://github.com/speakeasy-api/speakeasy
666+
### Generated
667+
- [python v3.1.0] sync-for-expenses
668+
### Releases
669+
- [PyPI v3.1.0] https://pypi.org/project/codat-sync-for-expenses/3.1.0 - sync-for-expenses

sync-for-expenses/USAGE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ req = operations.CreateAccountRequest(
1818
current_balance=Decimal('0'),
1919
description='Invoices the business has issued but has not yet collected payment on.',
2020
fully_qualified_category='Asset.Current',
21-
fully_qualified_name='Fixed Asset',
21+
fully_qualified_name='Cash On Hand',
2222
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
2323
is_bank_account=False,
2424
metadata=shared.AccountMetadata(
@@ -33,15 +33,16 @@ req = operations.CreateAccountRequest(
3333
valid_datatype_links=[
3434
shared.AccountValidDataTypeLinks(
3535
links=[
36-
'unde',
36+
'Money',
3737
],
38-
property='nulla',
38+
property='Cambridgeshire grey technology',
3939
),
4040
],
4141
),
42+
allow_sync_on_push_complete=False,
4243
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
4344
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
44-
timeout_in_minutes=544883,
45+
timeout_in_minutes=86,
4546
)
4647

4748
res = s.accounts.create(req)

sync-for-expenses/docs/models/operations/createaccountrequest.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
8-
| `account` | [Optional[shared.Account]](../../models/shared/account.md) | :heavy_minus_sign: | N/A | |
9-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10-
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11-
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | N/A | |
6+
| Field | Type | Required | Description | Example |
7+
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
8+
| `account` | [Optional[shared.Account]](undefined/models/shared/account.md) | :heavy_minus_sign: | N/A | |
9+
| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
10+
| `company_id` | *Optional[str]* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11+
| `connection_id` | *Optional[str]* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
12+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

sync-for-expenses/docs/models/operations/createaccountresponse.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
9-
| `create_account_response` | [Optional[shared.CreateAccountResponse]](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
10-
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
11-
| `status_code` | *int* | :heavy_check_mark: | N/A |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
8+
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `create_account_response` | [Optional[shared.CreateAccountResponse]](undefined/models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
10+
| `error_message` | [Optional[shared.ErrorMessage]](undefined/models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
11+
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

0 commit comments

Comments
 (0)