Skip to content

Commit

Permalink
Merge pull request #544 from codatio/speakeasy-sdk-regen-1702562868
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Sync for Commerce version 1 library
  • Loading branch information
dcoplowe authored Dec 14, 2023
2 parents 74b2d83 + cc31fc8 commit 39d818a
Show file tree
Hide file tree
Showing 599 changed files with 5,590 additions and 4,279 deletions.
Empty file modified previous-versions/sync-for-commerce-version-1/.gitattributes
100755 β†’ 100644
Empty file.
390 changes: 282 additions & 108 deletions previous-versions/sync-for-commerce-version-1/README.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion previous-versions/sync-for-commerce-version-1/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ Based on:
### Generated
- [python v0.2.0] previous-versions/sync-for-commerce-version-1
### Releases
- [PyPI v0.2.0] https://pypi.org/project/codat-sync-for-commerce-version-1/0.2.0 - previous-versions/sync-for-commerce-version-1
- [PyPI v0.2.0] https://pypi.org/project/codat-sync-for-commerce-version-1/0.2.0 - previous-versions/sync-for-commerce-version-1

## 2023-12-14 14:07:43
### Changes
Based on:
- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce-v1.yaml
- Speakeasy CLI 1.126.3 (2.214.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.0] previous-versions/sync-for-commerce-version-1
### Releases
- [PyPI v0.3.0] https://pypi.org/project/codat-sync-for-commerce-version-1/0.3.0 - previous-versions/sync-for-commerce-version-1
45 changes: 6 additions & 39 deletions previous-versions/sync-for-commerce-version-1/USAGE.md
100755 β†’ 100644
Original file line number Diff line number Diff line change
@@ -1,55 +1,22 @@
<!-- Start SDK Example Usage -->


<!-- Start SDK Example Usage [usage] -->
```python
import codatsynccommerce
from codatsynccommerce.models import operations, shared
from decimal import Decimal

s = codatsynccommerce.CodatSyncCommerce(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
)

req = operations.CreateAccountingAccountRequest(
accounting_account=shared.AccountingAccount(
currency='GBP',
current_balance=Decimal('0'),
description='Invoices the business has issued but has not yet collected payment on.',
fully_qualified_category='Asset.Current',
fully_qualified_name='Cash On Hand',
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
metadata=shared.AccountingAccountMetadata(),
modified_date='2022-10-23T00:00:00.000Z',
name='Accounts Receivable',
nominal_code='610',
source_modified_date='2022-10-23T00:00:00.000Z',
status=shared.AccountStatus.ACTIVE,
supplemental_data=shared.SupplementalData(
content={
"Gasoline": {
"Wall": 'Oriental',
},
},
),
type=shared.AccountType.ASSET,
valid_datatype_links=[
shared.AccountingAccountValidDataTypeLinks(
links=[
'Intranet',
],
),
],
),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
req = operations.GetConfigTextSyncFlowRequest(
locale=shared.Locale.EN_US,
)

res = s.accounting_accounts.create_accounting_account(req)
res = s.sync_flow_preferences.get_config_text_sync_flow(req)

if res.accounting_create_account_response is not None:
if res.localization_info is not None:
# handle response
pass
```
<!-- End SDK Example Usage -->
<!-- End SDK Example Usage [usage] -->
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ErrorMessage

Your API request was not properly authorized.


## Fields

Expand Down
12 changes: 6 additions & 6 deletions ...for-commerce-version-1/docs/models/operations/createaccountingaccountrequest.md
100755 β†’ 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `accounting_account` | [Optional[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :heavy_minus_sign: | N/A | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
3 changes: 1 addition & 2 deletions ...or-commerce-version-1/docs/models/operations/createaccountingaccountresponse.md
100755 β†’ 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `accounting_create_account_response` | [Optional[shared.AccountingCreateAccountResponse]](../../models/shared/accountingcreateaccountresponse.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Empty file.
3 changes: 1 addition & 2 deletions ...commerce-version-1/docs/models/operations/createaccountingcreditnoteresponse.md
100755 β†’ 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `accounting_create_credit_note_response` | [Optional[shared.AccountingCreateCreditNoteResponse]](../../models/shared/accountingcreatecreditnoteresponse.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Empty file.
3 changes: 1 addition & 2 deletions ...r-commerce-version-1/docs/models/operations/createaccountingcustomerresponse.md
100755 β†’ 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `accounting_create_customer_response` | [Optional[shared.AccountingCreateCustomerResponse]](../../models/shared/accountingcreatecustomerresponse.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Empty file.
Loading

0 comments on commit 39d818a

Please sign in to comment.