Skip to content

Commit 8f0bf9b

Browse files
authored
Merge pull request #316 from codatio/speakeasy-sdk-regen-1694604668
chore: speakeasy sdk regeneration - Generate Sync for Expenses library
2 parents 181b839 + 60ca90e commit 8f0bf9b

File tree

93 files changed

+498
-492
lines changed

Some content is hidden

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

93 files changed

+498
-492
lines changed

sync-for-expenses/README.md

Lines changed: 130 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,142 @@
33
Embedded accounting integrations for corporate card providers.
44

55
<!-- Start SDK Installation -->
6-
replace me
6+
## SDK Installation
7+
8+
```bash
9+
pip install codat-sync-for-expenses
10+
```
711
<!-- End SDK Installation -->
812

913
## Example Usage
1014
<!-- Start SDK Example Usage -->
11-
replace me
15+
16+
17+
```python
18+
import codatsyncexpenses
19+
from codatsyncexpenses.models import operations, shared
20+
from decimal import Decimal
21+
22+
s = codatsyncexpenses.CodatSyncExpenses(
23+
security=shared.Security(
24+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
25+
),
26+
)
27+
28+
req = operations.CreateAccountRequest(
29+
account=shared.Account(
30+
currency='USD',
31+
current_balance=Decimal('0'),
32+
description='Invoices the business has issued but has not yet collected payment on.',
33+
fully_qualified_category='Asset.Current',
34+
fully_qualified_name='Fixed Asset',
35+
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
36+
is_bank_account=False,
37+
metadata=shared.AccountMetadata(
38+
is_deleted=False,
39+
),
40+
modified_date='2022-10-23T00:00:00.000Z',
41+
name='Accounts Receivable',
42+
nominal_code='610',
43+
source_modified_date='2022-10-23T00:00:00.000Z',
44+
status=shared.AccountStatus.ACTIVE,
45+
type=shared.AccountType.ASSET,
46+
valid_datatype_links=[
47+
shared.AccountValidDataTypeLinks(
48+
links=[
49+
'unde',
50+
],
51+
property='nulla',
52+
),
53+
],
54+
),
55+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
56+
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
57+
timeout_in_minutes=544883,
58+
)
59+
60+
res = s.accounts.create(req)
61+
62+
if res.create_account_response is not None:
63+
# handle response
64+
```
1265
<!-- End SDK Example Usage -->
1366

1467
<!-- Start SDK Available Operations -->
15-
replace me
68+
## Available Resources and Operations
69+
70+
71+
### [accounts](docs/sdks/accounts/README.md)
72+
73+
* [create](docs/sdks/accounts/README.md#create) - Create account
74+
75+
### [companies](docs/sdks/companies/README.md)
76+
77+
* [create](docs/sdks/companies/README.md#create) - Create company
78+
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
79+
* [get](docs/sdks/companies/README.md#get) - Get company
80+
* [list](docs/sdks/companies/README.md#list) - List companies
81+
* [update](docs/sdks/companies/README.md#update) - Update company
82+
83+
### [configuration](docs/sdks/configuration/README.md)
84+
85+
* [get](docs/sdks/configuration/README.md#get) - Get company configuration
86+
* [get_mapping_options](docs/sdks/configuration/README.md#get_mapping_options) - Mapping options
87+
* [set](docs/sdks/configuration/README.md#set) - Set company configuration
88+
89+
### [connections](docs/sdks/connections/README.md)
90+
91+
* [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
93+
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
94+
* [get](docs/sdks/connections/README.md#get) - Get connection
95+
* [list](docs/sdks/connections/README.md#list) - List connections
96+
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
97+
98+
### [customers](docs/sdks/customers/README.md)
99+
100+
* [create](docs/sdks/customers/README.md#create) - Create customer
101+
* [get](docs/sdks/customers/README.md#get) - Get customer
102+
* [list](docs/sdks/customers/README.md#list) - List customers
103+
* [update](docs/sdks/customers/README.md#update) - Update customer
104+
105+
### [expenses](docs/sdks/expenses/README.md)
106+
107+
* [create](docs/sdks/expenses/README.md#create) - Create expense transaction
108+
* [update](docs/sdks/expenses/README.md#update) - Update expense-transactions
109+
* [upload_attachment](docs/sdks/expenses/README.md#upload_attachment) - Upload attachment
110+
111+
### [manage_data](docs/sdks/managedata/README.md)
112+
113+
* [get](docs/sdks/managedata/README.md#get) - Get data status
114+
* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation
115+
* [list_pull_operations](docs/sdks/managedata/README.md#list_pull_operations) - List pull operations
116+
* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data
117+
* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type
118+
119+
### [push_operations](docs/sdks/pushoperations/README.md)
120+
121+
* [get](docs/sdks/pushoperations/README.md#get) - Get push operation
122+
* [list](docs/sdks/pushoperations/README.md#list) - List push operations
123+
124+
### [suppliers](docs/sdks/suppliers/README.md)
125+
126+
* [create](docs/sdks/suppliers/README.md#create) - Create supplier
127+
* [get](docs/sdks/suppliers/README.md#get) - Get supplier
128+
* [list](docs/sdks/suppliers/README.md#list) - List suppliers
129+
* [update](docs/sdks/suppliers/README.md#update) - Update supplier
130+
131+
### [sync](docs/sdks/sync/README.md)
132+
133+
* [get](docs/sdks/sync/README.md#get) - Get Sync status
134+
* [get_last_successful_sync](docs/sdks/sync/README.md#get_last_successful_sync) - Last successful sync
135+
* [get_latest_sync](docs/sdks/sync/README.md#get_latest_sync) - Latest sync status
136+
* [initiate_sync](docs/sdks/sync/README.md#initiate_sync) - Initiate sync
137+
* [list](docs/sdks/sync/README.md#list) - List sync statuses
138+
139+
### [transaction_status](docs/sdks/transactionstatus/README.md)
140+
141+
* [get](docs/sdks/transactionstatus/README.md#get) - Get Sync Transaction
142+
* [list](docs/sdks/transactionstatus/README.md#list) - List sync transactions
16143
<!-- End SDK Available Operations -->
17144
### 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
@@ -626,4 +626,14 @@ Based on:
626626
### Generated
627627
- [python v0.35.0] sync-for-expenses
628628
### Releases
629-
- [PyPI v0.35.0] https://pypi.org/project/codat-sync-for-expenses/0.35.0 - sync-for-expenses
629+
- [PyPI v0.35.0] https://pypi.org/project/codat-sync-for-expenses/0.35.0 - sync-for-expenses
630+
631+
## 2023-09-13 11:31:04
632+
### Changes
633+
Based on:
634+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
635+
- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy
636+
### Generated
637+
- [python v1.1.0] sync-for-expenses
638+
### Releases
639+
- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-expenses/1.1.0 - sync-for-expenses

sync-for-expenses/USAGE.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
```python
55
import codatsyncexpenses
66
from codatsyncexpenses.models import operations, shared
7+
from decimal import Decimal
78

89
s = codatsyncexpenses.CodatSyncExpenses(
910
security=shared.Security(
@@ -14,7 +15,7 @@ s = codatsyncexpenses.CodatSyncExpenses(
1415
req = operations.CreateAccountRequest(
1516
account=shared.Account(
1617
currency='USD',
17-
current_balance=0,
18+
current_balance=Decimal('0'),
1819
description='Invoices the business has issued but has not yet collected payment on.',
1920
fully_qualified_category='Asset.Current',
2021
fully_qualified_name='Fixed Asset',
@@ -32,31 +33,15 @@ req = operations.CreateAccountRequest(
3233
valid_datatype_links=[
3334
shared.AccountValidDataTypeLinks(
3435
links=[
35-
'corrupti',
36-
'illum',
37-
'vel',
38-
'error',
36+
'unde',
3937
],
40-
property='deserunt',
41-
),
42-
shared.AccountValidDataTypeLinks(
43-
links=[
44-
'iure',
45-
'magnam',
46-
],
47-
property='debitis',
48-
),
49-
shared.AccountValidDataTypeLinks(
50-
links=[
51-
'delectus',
52-
],
53-
property='tempora',
38+
property='nulla',
5439
),
5540
],
5641
),
5742
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5843
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
59-
timeout_in_minutes=383441,
44+
timeout_in_minutes=544883,
6045
)
6146

6247
res = s.accounts.create(req)

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

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

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8-
| `request_body` | [Optional[UnlinkConnectionRequestBody]](../../models/operations/unlinkconnectionrequestbody.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 |
6+
| Field | Type | Required | Description | Example |
7+
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
8+
| `request_body` | [Optional[UnlinkConnectionUpdateConnection]](../../models/operations/unlinkconnectionupdateconnection.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 |

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

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# UnlinkConnectionUpdateConnection
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
8+
| `status` | [Optional[shared.DataConnectionStatus]](../../models/shared/dataconnectionstatus.md) | :heavy_minus_sign: | The current authorization status of the data connection. |

0 commit comments

Comments
 (0)