Skip to content

Commit ec6bed9

Browse files
authored
Merge pull request #466 from codatio/speakeasy-sdk-regen-1697554168
chore: speakeasy sdk regeneration - Generate Sync for Payroll library
2 parents 19c5fd0 + c872770 commit ec6bed9

File tree

226 files changed

+1349
-924
lines changed

Some content is hidden

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

226 files changed

+1349
-924
lines changed

sync-for-payroll/README.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pip install codat-sync-for-payroll
1414

1515
## Example Usage
1616
<!-- Start SDK Example Usage -->
17-
18-
1917
```python
2018
import codatsyncpayroll
2119
from codatsyncpayroll.models import operations, shared
@@ -33,86 +31,89 @@ req = operations.CreateAccountRequest(
3331
current_balance=Decimal('0'),
3432
description='Invoices the business has issued but has not yet collected payment on.',
3533
fully_qualified_category='Asset.Current',
36-
fully_qualified_name='Fixed Asset',
34+
fully_qualified_name='Cash On Hand',
3735
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
38-
is_bank_account=False,
39-
metadata=shared.AccountMetadata(
40-
is_deleted=False,
41-
),
36+
metadata=shared.AccountMetadata(),
4237
modified_date='2022-10-23T00:00:00.000Z',
4338
name='Accounts Receivable',
4439
nominal_code='610',
4540
source_modified_date='2022-10-23T00:00:00.000Z',
4641
status=shared.AccountStatus.ACTIVE,
42+
supplemental_data=shared.SupplementalData(
43+
content={
44+
"Money": {
45+
"blue": 'shred',
46+
},
47+
},
48+
),
4749
type=shared.AccountType.ASSET,
4850
valid_datatype_links=[
4951
shared.AccountValidDataTypeLinks(
5052
links=[
51-
'unde',
53+
'abnormally',
5254
],
53-
property='nulla',
5455
),
5556
],
5657
),
5758
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5859
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
59-
timeout_in_minutes=544883,
6060
)
6161

6262
res = s.accounts.create(req)
6363

6464
if res.create_account_response is not None:
6565
# handle response
66+
pass
6667
```
6768
<!-- End SDK Example Usage -->
6869

6970
<!-- Start SDK Available Operations -->
7071
## Available Resources and Operations
7172

7273

73-
### [Accounts](docs/sdks/accounts/README.md)
74+
### [accounts](docs/sdks/accounts/README.md)
7475

7576
* [create](docs/sdks/accounts/README.md#create) - Create account
7677
* [get](docs/sdks/accounts/README.md#get) - Get account
7778
* [get_create_model](docs/sdks/accounts/README.md#get_create_model) - Get create account model
7879
* [list](docs/sdks/accounts/README.md#list) - List accounts
7980

80-
### [Companies](docs/sdks/companies/README.md)
81+
### [companies](docs/sdks/companies/README.md)
8182

8283
* [create](docs/sdks/companies/README.md#create) - Create company
8384
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
8485
* [get](docs/sdks/companies/README.md#get) - Get company
8586
* [list](docs/sdks/companies/README.md#list) - List companies
8687
* [update](docs/sdks/companies/README.md#update) - Update company
8788

88-
### [CompanyInfo](docs/sdks/companyinfo/README.md)
89+
### [company_info](docs/sdks/companyinfo/README.md)
8990

9091
* [get_accounting_profile](docs/sdks/companyinfo/README.md#get_accounting_profile) - Get company accounting profile
9192

92-
### [Connections](docs/sdks/connections/README.md)
93+
### [connections](docs/sdks/connections/README.md)
9394

9495
* [create](docs/sdks/connections/README.md#create) - Create connection
9596
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
9697
* [get](docs/sdks/connections/README.md#get) - Get connection
9798
* [list](docs/sdks/connections/README.md#list) - List connections
9899
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
99100

100-
### [JournalEntries](docs/sdks/journalentries/README.md)
101+
### [journal_entries](docs/sdks/journalentries/README.md)
101102

102103
* [create](docs/sdks/journalentries/README.md#create) - Create journal entry
103104
* [delete](docs/sdks/journalentries/README.md#delete) - Delete journal entry
104105
* [get](docs/sdks/journalentries/README.md#get) - Get journal entry
105106
* [get_create_model](docs/sdks/journalentries/README.md#get_create_model) - Get create journal entry model
106107
* [list](docs/sdks/journalentries/README.md#list) - List journal entries
107108

108-
### [Journals](docs/sdks/journals/README.md)
109+
### [journals](docs/sdks/journals/README.md)
109110

110111
* [create](docs/sdks/journals/README.md#create) - Create journal
111112
* [get](docs/sdks/journals/README.md#get) - Get journal
112113
* [get_create_model](docs/sdks/journals/README.md#get_create_model) - Get create journal model
113114
* [list](docs/sdks/journals/README.md#list) - List journals
114115

115-
### [ManageData](docs/sdks/managedata/README.md)
116+
### [manage_data](docs/sdks/managedata/README.md)
116117

117118
* [get_data_status](docs/sdks/managedata/README.md#get_data_status) - Get data status
118119
* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation
@@ -122,9 +123,21 @@ if res.create_account_response is not None:
122123
* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data
123124
* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type
124125

125-
### [TrackingCategories](docs/sdks/trackingcategories/README.md)
126+
### [tracking_categories](docs/sdks/trackingcategories/README.md)
126127

127128
* [get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories
128129
* [list](docs/sdks/trackingcategories/README.md#list) - List tracking categories
129130
<!-- End SDK Available Operations -->
131+
132+
133+
134+
<!-- Start Dev Containers -->
135+
136+
137+
138+
<!-- End Dev Containers -->
139+
140+
<!-- Placeholder for Future Speakeasy SDK Sections -->
141+
142+
130143
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

sync-for-payroll/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ Based on:
2828
### Generated
2929
- [python v1.1.0] sync-for-payroll
3030
### Releases
31-
- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payroll/1.1.0 - sync-for-payroll
31+
- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payroll/1.1.0 - sync-for-payroll
32+
33+
## 2023-10-17 14:49:24
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml
37+
- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [python v2.0.0] sync-for-payroll
40+
### Releases
41+
- [PyPI v2.0.0] https://pypi.org/project/codat-sync-for-payroll/2.0.0 - sync-for-payroll

sync-for-payroll/USAGE.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,38 @@ 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',
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-
'unde',
40+
'abnormally',
3741
],
38-
property='nulla',
3942
),
4043
],
4144
),
4245
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
4346
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
44-
timeout_in_minutes=544883,
4547
)
4648

4749
res = s.accounts.create(req)
4850

4951
if res.create_account_response is not None:
5052
# handle response
53+
pass
5154
```
5255
<!-- End SDK Example Usage -->

sync-for-payroll/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]](../../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` | *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 |
12+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

sync-for-payroll/docs/models/operations/createaccountresponse.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 |
77
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `create_account_response` | [Optional[shared.CreateAccountResponse]](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
1010
| `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 |
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-payroll/docs/models/operations/createcompanyresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
88
| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
9-
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
1010
| `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 |
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 |

0 commit comments

Comments
 (0)