Skip to content

Commit e2ea593

Browse files
authored
Merge pull request #462 from codatio/speakeasy-sdk-regen-1697552009
chore: speakeasy sdk regeneration - Generate Sync for Commerce version 1 library
2 parents 9861c1b + 0f80a10 commit e2ea593

File tree

485 files changed

+2335
-2047
lines changed

Some content is hidden

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

485 files changed

+2335
-2047
lines changed

previous-versions/sync-for-commerce-version-1/README.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pip install codat-sync-for-commerce-version-1
1414

1515
## Example Usage
1616
<!-- Start SDK Example Usage -->
17-
18-
1917
```python
2018
import codatsynccommerce
2119
from codatsynccommerce.models import operations, shared
@@ -29,40 +27,43 @@ s = codatsynccommerce.CodatSyncCommerce(
2927

3028
req = operations.CreateAccountingAccountRequest(
3129
accounting_account=shared.AccountingAccount(
32-
currency='USD',
30+
currency='GBP',
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.AccountingAccountMetadata(
40-
is_deleted=False,
41-
),
36+
metadata=shared.AccountingAccountMetadata(),
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+
"Gasoline": {
45+
"Wall": 'Oriental',
46+
},
47+
},
48+
),
4749
type=shared.AccountType.ASSET,
4850
valid_datatype_links=[
4951
shared.AccountingAccountValidDataTypeLinks(
5052
links=[
51-
'unde',
53+
'Intranet',
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.accounting_accounts.create_accounting_account(req)
6363

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

@@ -154,16 +155,16 @@ if res.accounting_create_account_response is not None:
154155

155156
### [company_management](docs/sdks/companymanagement/README.md)
156157

157-
* [create_company](docs/sdks/companymanagement/README.md#create_company) - Create Sync for Commerce company
158+
* [create_company](docs/sdks/companymanagement/README.md#create_company) - Create sync for commerce company
158159
* [create_connection](docs/sdks/companymanagement/README.md#create_connection) - Create connection
159160
* [list_companies](docs/sdks/companymanagement/README.md#list_companies) - List companies
160161
* [list_connections](docs/sdks/companymanagement/README.md#list_connections) - List data connections
161162
* [update_connection](docs/sdks/companymanagement/README.md#update_connection) - Update data connection
162163

163164
### [configuration](docs/sdks/configuration/README.md)
164165

165-
* [get_configuration](docs/sdks/configuration/README.md#get_configuration) - Retrieve config preferences set for a company.
166-
* [set_configuration](docs/sdks/configuration/README.md#set_configuration) - Create or update configuration.
166+
* [get_configuration](docs/sdks/configuration/README.md#get_configuration) - Retrieve config preferences set for a company
167+
* [set_configuration](docs/sdks/configuration/README.md#set_configuration) - Create or update configuration
167168

168169
### [connections](docs/sdks/connections/README.md)
169170

@@ -174,7 +175,7 @@ if res.accounting_create_account_response is not None:
174175
### [integrations](docs/sdks/integrations/README.md)
175176

176177
* [get_integration_branding](docs/sdks/integrations/README.md#get_integration_branding) - Get branding for an integration
177-
* [list_integrations](docs/sdks/integrations/README.md#list_integrations) - List information on Codat's supported integrations
178+
* [list_integrations](docs/sdks/integrations/README.md#list_integrations) - List integrations
178179

179180
### [push_data](docs/sdks/pushdata/README.md)
180181

@@ -197,10 +198,22 @@ if res.accounting_create_account_response is not None:
197198

198199
### [sync_flow_preferences](docs/sdks/syncflowpreferences/README.md)
199200

200-
* [get_config_text_sync_flow](docs/sdks/syncflowpreferences/README.md#get_config_text_sync_flow) - Retrieve preferences for text fields on Sync Flow
201+
* [get_config_text_sync_flow](docs/sdks/syncflowpreferences/README.md#get_config_text_sync_flow) - Retrieve preferences for text fields on sync flow
201202
* [get_sync_flow_url](docs/sdks/syncflowpreferences/README.md#get_sync_flow_url) - Retrieve sync flow url
202203
* [get_visible_accounts](docs/sdks/syncflowpreferences/README.md#get_visible_accounts) - List visible accounts
203204
* [update_config_text_sync_flow](docs/sdks/syncflowpreferences/README.md#update_config_text_sync_flow) - Update preferences for text fields on sync flow
204-
* [update_visible_accounts_sync_flow](docs/sdks/syncflowpreferences/README.md#update_visible_accounts_sync_flow) - Update the visible accounts on Sync Flow
205+
* [update_visible_accounts_sync_flow](docs/sdks/syncflowpreferences/README.md#update_visible_accounts_sync_flow) - Update the visible accounts on sync flow
205206
<!-- End SDK Available Operations -->
207+
208+
209+
210+
<!-- Start Dev Containers -->
211+
212+
213+
214+
<!-- End Dev Containers -->
215+
216+
<!-- Placeholder for Future Speakeasy SDK Sections -->
217+
218+
206219
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2023-10-17 14:13:25
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce-v1.yaml
7+
- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [python v0.2.0] previous-versions/sync-for-commerce-version-1
10+
### Releases
11+
- [PyPI v0.2.0] https://pypi.org/project/codat-sync-for-commerce-version-1/0.2.0 - previous-versions/sync-for-commerce-version-1

previous-versions/sync-for-commerce-version-1/USAGE.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,42 @@ s = codatsynccommerce.CodatSyncCommerce(
1414

1515
req = operations.CreateAccountingAccountRequest(
1616
accounting_account=shared.AccountingAccount(
17-
currency='USD',
17+
currency='GBP',
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.AccountingAccountMetadata(
25-
is_deleted=False,
26-
),
23+
metadata=shared.AccountingAccountMetadata(),
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+
"Gasoline": {
32+
"Wall": 'Oriental',
33+
},
34+
},
35+
),
3236
type=shared.AccountType.ASSET,
3337
valid_datatype_links=[
3438
shared.AccountingAccountValidDataTypeLinks(
3539
links=[
36-
'unde',
40+
'Intranet',
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.accounting_accounts.create_accounting_account(req)
4850

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

previous-versions/sync-for-commerce-version-1/docs/models/operations/createaccountingaccountrequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
| Field | Type | Required | Description | Example |
77
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
88
| `accounting_account` | [Optional[shared.AccountingAccount]](../../models/shared/accountingaccount.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 | |
9+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

previous-versions/sync-for-commerce-version-1/docs/models/operations/createaccountingaccountresponse.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
| `accounting_create_account_response` | [Optional[shared.AccountingCreateAccountResponse]](../../models/shared/accountingcreateaccountresponse.md) | :heavy_minus_sign: | Success |
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 |

previous-versions/sync-for-commerce-version-1/docs/models/operations/createaccountingcreditnoterequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
| Field | Type | Required | Description | Example |
77
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
88
| `accounting_credit_note` | [Optional[shared.AccountingCreditNote]](../../models/shared/accountingcreditnote.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 | |
9+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
10+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
11+
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |

0 commit comments

Comments
 (0)