Skip to content

Commit 6d943bb

Browse files
authored
Merge pull request #244 from codatio/speakeasy-sdk-regen-1693586584
chore: speakeasy sdk regeneration - Generate Sync for Expenses library
2 parents 5913d78 + 39a9dac commit 6d943bb

File tree

231 files changed

+6810
-846
lines changed

Some content is hidden

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

231 files changed

+6810
-846
lines changed

sync-for-expenses/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

sync-for-expenses/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,4 +616,14 @@ Based on:
616616
### Generated
617617
- [python v0.34.0] expenses
618618
### Releases
619-
- [PyPI v0.34.0] https://pypi.org/project/codat-sync-for-expenses/0.34.0 - expenses
619+
- [PyPI v0.34.0] https://pypi.org/project/codat-sync-for-expenses/0.34.0 - expenses
620+
621+
## 2023-09-01 16:43:00
622+
### Changes
623+
Based on:
624+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
625+
- Speakeasy CLI 1.77.1 (2.91.4) https://github.com/speakeasy-api/speakeasy
626+
### Generated
627+
- [python v0.35.0] sync-for-expenses
628+
### Releases
629+
- [PyPI v0.35.0] https://pypi.org/project/codat-sync-for-expenses/0.35.0 - sync-for-expenses

sync-for-expenses/USAGE.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,57 @@ s = codatsyncexpenses.CodatSyncExpenses(
1111
),
1212
)
1313

14-
req = operations.GetCompanyConfigurationRequest(
14+
req = operations.CreateAccountRequest(
15+
account=shared.Account(
16+
currency='USD',
17+
current_balance=0,
18+
description='Invoices the business has issued but has not yet collected payment on.',
19+
fully_qualified_category='Asset.Current',
20+
fully_qualified_name='Fixed Asset',
21+
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
22+
is_bank_account=False,
23+
metadata=shared.AccountMetadata(
24+
is_deleted=False,
25+
),
26+
modified_date='2022-10-23T00:00:00.000Z',
27+
name='Accounts Receivable',
28+
nominal_code='610',
29+
source_modified_date='2022-10-23T00:00:00.000Z',
30+
status=shared.AccountStatus.ACTIVE,
31+
type=shared.AccountType.ASSET,
32+
valid_datatype_links=[
33+
shared.AccountValidDataTypeLinks(
34+
links=[
35+
'corrupti',
36+
'illum',
37+
'vel',
38+
'error',
39+
],
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',
54+
),
55+
],
56+
),
1557
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
58+
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
59+
timeout_in_minutes=383441,
1660
)
1761

18-
res = s.configuration.get_company_configuration(req)
62+
res = s.accounts.create(req)
1963

20-
if res.company_configuration is not None:
64+
if res.create_account_response is not None:
2165
# handle response
2266
```
2367
<!-- End SDK Example Usage -->
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateAccountRequest
2+
3+
4+
## Fields
5+
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 | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateAccountResponse
2+
3+
4+
## Fields
5+
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 |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateCompanyResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
9+
| `content_type` | *str* | :heavy_check_mark: | N/A |
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 |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateConnectionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8+
| `request_body` | [Optional[CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | |
9+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CreateConnectionRequestBody
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `platform_key` | *Optional[str]* | :heavy_minus_sign: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateConnectionResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK |
9+
| `content_type` | *str* | :heavy_check_mark: | N/A |
10+
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
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 |
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# IntiateSyncRequest
1+
# CreateCustomerRequest
22

33

44
## Fields
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
8-
| `post_sync` | [Optional[shared.PostSync]](../../models/shared/postsync.md) | :heavy_minus_sign: | N/A | |
9-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
8+
| `customer` | [Optional[shared.Customer]](../../models/shared/customer.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 | |

0 commit comments

Comments
 (0)