Skip to content

Commit 39d818a

Browse files
authored
Merge pull request #544 from codatio/speakeasy-sdk-regen-1702562868
chore: 🐝 Update SDK - Generate Sync for Commerce version 1 library
2 parents 74b2d83 + cc31fc8 commit 39d818a

File tree

599 files changed

+5590
-4279
lines changed

Some content is hidden

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

599 files changed

+5590
-4279
lines changed

β€Žprevious-versions/sync-for-commerce-version-1/.gitattributesβ€Ž

100755100644
File mode changed.

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

Lines changed: 282 additions & 108 deletions
Large diffs are not rendered by default.

β€Žprevious-versions/sync-for-commerce-version-1/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [python v0.2.0] previous-versions/sync-for-commerce-version-1
1010
### 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
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
12+
13+
## 2023-12-14 14:07:43
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce-v1.yaml
17+
- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [python v0.3.0] previous-versions/sync-for-commerce-version-1
20+
### Releases
21+
- [PyPI v0.3.0] https://pypi.org/project/codat-sync-for-commerce-version-1/0.3.0 - previous-versions/sync-for-commerce-version-1
Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,22 @@
1-
<!-- Start SDK Example Usage -->
2-
3-
1+
<!-- Start SDK Example Usage [usage] -->
42
```python
53
import codatsynccommerce
64
from codatsynccommerce.models import operations, shared
7-
from decimal import Decimal
85

96
s = codatsynccommerce.CodatSyncCommerce(
107
security=shared.Security(
118
auth_header="Basic BASE_64_ENCODED(API_KEY)",
129
),
1310
)
1411

15-
req = operations.CreateAccountingAccountRequest(
16-
accounting_account=shared.AccountingAccount(
17-
currency='GBP',
18-
current_balance=Decimal('0'),
19-
description='Invoices the business has issued but has not yet collected payment on.',
20-
fully_qualified_category='Asset.Current',
21-
fully_qualified_name='Cash On Hand',
22-
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
23-
metadata=shared.AccountingAccountMetadata(),
24-
modified_date='2022-10-23T00:00:00.000Z',
25-
name='Accounts Receivable',
26-
nominal_code='610',
27-
source_modified_date='2022-10-23T00:00:00.000Z',
28-
status=shared.AccountStatus.ACTIVE,
29-
supplemental_data=shared.SupplementalData(
30-
content={
31-
"Gasoline": {
32-
"Wall": 'Oriental',
33-
},
34-
},
35-
),
36-
type=shared.AccountType.ASSET,
37-
valid_datatype_links=[
38-
shared.AccountingAccountValidDataTypeLinks(
39-
links=[
40-
'Intranet',
41-
],
42-
),
43-
],
44-
),
45-
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
46-
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
12+
req = operations.GetConfigTextSyncFlowRequest(
13+
locale=shared.Locale.EN_US,
4714
)
4815

49-
res = s.accounting_accounts.create_accounting_account(req)
16+
res = s.sync_flow_preferences.get_config_text_sync_flow(req)
5017

51-
if res.accounting_create_account_response is not None:
18+
if res.localization_info is not None:
5219
# handle response
5320
pass
5421
```
55-
<!-- End SDK Example Usage -->
22+
<!-- End SDK Example Usage [usage] -->

previous-versions/sync-for-commerce-version-1/docs/models/shared/errormessage.md renamed to previous-versions/sync-for-commerce-version-1/docs/models/errors/errormessage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ErrorMessage
22

3+
Your API request was not properly authorized.
4+
35

46
## Fields
57

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

100755100644
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
8-
| `accounting_account` | [Optional[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :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. | |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8+
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :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β€Ž

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
88
| `accounting_create_account_response` | [Optional[shared.AccountingCreateAccountResponse]](../../models/shared/accountingcreateaccountresponse.md) | :heavy_minus_sign: | Success |
99
| `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. |
1110
| `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 |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

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

100755100644
File mode changed.

β€Žprevious-versions/sync-for-commerce-version-1/docs/models/operations/createaccountingcreditnoteresponse.mdβ€Ž

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
88
| `accounting_create_credit_note_response` | [Optional[shared.AccountingCreateCreditNoteResponse]](../../models/shared/accountingcreatecreditnoteresponse.md) | :heavy_minus_sign: | Success |
99
| `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. |
1110
| `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 |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

β€Žprevious-versions/sync-for-commerce-version-1/docs/models/operations/createaccountingcustomerrequest.mdβ€Ž

100755100644
File mode changed.

0 commit comments

Comments
Β (0)