Skip to content

Commit 647a508

Browse files
authored
Merge pull request #465 from codatio/speakeasy-sdk-regen-1697554156
chore: speakeasy sdk regeneration - Generate Sync for Expenses library
2 parents ec6bed9 + cd30944 commit 647a508

File tree

282 files changed

+929
-1147
lines changed

Some content is hidden

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

282 files changed

+929
-1147
lines changed

sync-for-expenses/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,37 @@ req = operations.CreateAccountRequest(
3333
fully_qualified_category='Asset.Current',
3434
fully_qualified_name='Cash On Hand',
3535
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
36-
is_bank_account=False,
37-
metadata=shared.AccountMetadata(
38-
is_deleted=False,
39-
),
36+
metadata=shared.AccountMetadata(),
4037
modified_date='2022-10-23T00:00:00.000Z',
4138
name='Accounts Receivable',
4239
nominal_code='610',
4340
source_modified_date='2022-10-23T00:00:00.000Z',
4441
status=shared.AccountStatus.ACTIVE,
42+
supplemental_data=shared.SupplementalData(
43+
content={
44+
"Money": {
45+
"blue": 'shred',
46+
},
47+
},
48+
),
4549
type=shared.AccountType.ASSET,
4650
valid_datatype_links=[
4751
shared.AccountValidDataTypeLinks(
4852
links=[
49-
'Money',
53+
'abnormally',
5054
],
51-
property='Cambridgeshire grey technology',
5255
),
5356
],
5457
),
55-
allow_sync_on_push_complete=False,
5658
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5759
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
58-
timeout_in_minutes=86,
5960
)
6061

6162
res = s.accounts.create(req)
6263

6364
if res.create_account_response is not None:
6465
# handle response
66+
pass
6567
```
6668
<!-- End SDK Example Usage -->
6769

@@ -146,8 +148,6 @@ if res.create_account_response is not None:
146148

147149
<!-- Start Dev Containers -->
148150

149-
150-
151151
<!-- End Dev Containers -->
152152

153153

sync-for-expenses/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,4 +666,14 @@ Based on:
666666
### Generated
667667
- [python v3.1.0] sync-for-expenses
668668
### Releases
669-
- [PyPI v3.1.0] https://pypi.org/project/codat-sync-for-expenses/3.1.0 - sync-for-expenses
669+
- [PyPI v3.1.0] https://pypi.org/project/codat-sync-for-expenses/3.1.0 - sync-for-expenses
670+
671+
## 2023-10-17 14:49:12
672+
### Changes
673+
Based on:
674+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
675+
- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy
676+
### Generated
677+
- [python v4.0.0] sync-for-expenses
678+
### Releases
679+
- [PyPI v4.0.0] https://pypi.org/project/codat-sync-for-expenses/4.0.0 - sync-for-expenses

sync-for-expenses/USAGE.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,36 @@ req = operations.CreateAccountRequest(
2020
fully_qualified_category='Asset.Current',
2121
fully_qualified_name='Cash On Hand',
2222
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
23-
is_bank_account=False,
24-
metadata=shared.AccountMetadata(
25-
is_deleted=False,
26-
),
23+
metadata=shared.AccountMetadata(),
2724
modified_date='2022-10-23T00:00:00.000Z',
2825
name='Accounts Receivable',
2926
nominal_code='610',
3027
source_modified_date='2022-10-23T00:00:00.000Z',
3128
status=shared.AccountStatus.ACTIVE,
29+
supplemental_data=shared.SupplementalData(
30+
content={
31+
"Money": {
32+
"blue": 'shred',
33+
},
34+
},
35+
),
3236
type=shared.AccountType.ASSET,
3337
valid_datatype_links=[
3438
shared.AccountValidDataTypeLinks(
3539
links=[
36-
'Money',
40+
'abnormally',
3741
],
38-
property='Cambridgeshire grey technology',
3942
),
4043
],
4144
),
42-
allow_sync_on_push_complete=False,
4345
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
4446
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
45-
timeout_in_minutes=86,
4647
)
4748

4849
res = s.accounts.create(req)
4950

5051
if res.create_account_response is not None:
5152
# handle response
53+
pass
5254
```
5355
<!-- End SDK Example Usage -->

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

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

66
| Field | Type | Required | Description | Example |
77
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
8-
| `account` | [Optional[shared.Account]](undefined/models/shared/account.md) | :heavy_minus_sign: | N/A | |
8+
| `account` | [Optional[shared.Account]](../../models/shared/account.md) | :heavy_minus_sign: | N/A | |
99
| `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 |
10+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
1212
| `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` | *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 |
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
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: | 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 |

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

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

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `company` | [Optional[shared.Company]](undefined/models/shared/company.md) | :heavy_minus_sign: | OK |
9-
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
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 |
8+
| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
9+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
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: | HTTP response status code for this operation |
1212
| `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)