diff --git a/sync-for-commerce/README.md b/sync-for-commerce/README.md index c8f8f8cb7..438d3d809 100755 --- a/sync-for-commerce/README.md +++ b/sync-for-commerce/README.md @@ -40,14 +40,14 @@ if res.company is not None: ## Available Resources and Operations -### [advanced_controls](docs/sdks/advancedcontrols/README.md) +### [AdvancedControls](docs/sdks/advancedcontrols/README.md) * [create_company](docs/sdks/advancedcontrols/README.md#create_company) - Create company * [get_configuration](docs/sdks/advancedcontrols/README.md#get_configuration) - Get company configuration * [list_companies](docs/sdks/advancedcontrols/README.md#list_companies) - List companies * [set_configuration](docs/sdks/advancedcontrols/README.md#set_configuration) - Set configuration -### [connections](docs/sdks/connections/README.md) +### [Connections](docs/sdks/connections/README.md) * [create](docs/sdks/connections/README.md#create) - Create connection * [get_sync_flow_url](docs/sdks/connections/README.md#get_sync_flow_url) - Start new sync flow @@ -55,12 +55,12 @@ if res.company is not None: * [update_authorization](docs/sdks/connections/README.md#update_authorization) - Update authorization * [update_connection](docs/sdks/connections/README.md#update_connection) - Update connection -### [integrations](docs/sdks/integrations/README.md) +### [Integrations](docs/sdks/integrations/README.md) * [get_branding](docs/sdks/integrations/README.md#get_branding) - Get branding for an integration * [list](docs/sdks/integrations/README.md#list) - List integrations -### [sync](docs/sdks/sync/README.md) +### [Sync](docs/sdks/sync/README.md) * [get](docs/sdks/sync/README.md#get) - Get sync status * [get_last_successful_sync](docs/sdks/sync/README.md#get_last_successful_sync) - Last successful sync @@ -70,7 +70,7 @@ if res.company is not None: * [request](docs/sdks/sync/README.md#request) - Initiate new sync * [request_for_date_range](docs/sdks/sync/README.md#request_for_date_range) - Initiate sync for specific range -### [sync_flow_settings](docs/sdks/syncflowsettings/README.md) +### [SyncFlowSettings](docs/sdks/syncflowsettings/README.md) * [get_config_text_sync_flow](docs/sdks/syncflowsettings/README.md#get_config_text_sync_flow) - Get preferences for text fields * [get_visible_accounts](docs/sdks/syncflowsettings/README.md#get_visible_accounts) - List visible accounts diff --git a/sync-for-commerce/RELEASES.md b/sync-for-commerce/RELEASES.md index 51b0c6edb..b07a3c4b3 100644 --- a/sync-for-commerce/RELEASES.md +++ b/sync-for-commerce/RELEASES.md @@ -538,4 +538,14 @@ Based on: ### Generated - [python v1.1.0] sync-for-commerce ### Releases -- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-commerce/1.1.0 - sync-for-commerce \ No newline at end of file +- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-commerce/1.1.0 - sync-for-commerce + +## 2023-09-18 21:44:38 +### Changes +Based on: +- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml +- Speakeasy CLI 1.87.0 (2.116.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] sync-for-commerce +### Releases +- [PyPI v2.1.0] https://pypi.org/project/codat-sync-for-commerce/2.1.0 - sync-for-commerce \ No newline at end of file diff --git a/sync-for-commerce/docs/models/shared/syncconnectiondeletedwebhook.md b/sync-for-commerce/docs/models/shared/syncconnectiondeletedwebhook.md new file mode 100755 index 000000000..d20b93a0f --- /dev/null +++ b/sync-for-commerce/docs/models/shared/syncconnectiondeletedwebhook.md @@ -0,0 +1,16 @@ +# SyncConnectionDeletedWebhook + +A Sync for Commerce connection is deleted. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | | +| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | | +| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | | +| `company_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `message` | *Optional[str]* | :heavy_minus_sign: | A human readable message about the webhook. | | +| `rule_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the rule. | | +| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | | \ No newline at end of file diff --git a/sync-for-commerce/docs/models/webhooks/syncconnectiondeletedresponse.md b/sync-for-commerce/docs/models/webhooks/syncconnectiondeletedresponse.md new file mode 100755 index 000000000..28c0f0a6d --- /dev/null +++ b/sync-for-commerce/docs/models/webhooks/syncconnectiondeletedresponse.md @@ -0,0 +1,10 @@ +# SyncConnectionDeletedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-commerce/docs/sdks/advancedcontrols/README.md b/sync-for-commerce/docs/sdks/advancedcontrols/README.md index 7e2c893ad..47fdf9d07 100755 --- a/sync-for-commerce/docs/sdks/advancedcontrols/README.md +++ b/sync-for-commerce/docs/sdks/advancedcontrols/README.md @@ -1,4 +1,4 @@ -# advanced_controls +# AdvancedControls ## Overview diff --git a/sync-for-commerce/docs/sdks/connections/README.md b/sync-for-commerce/docs/sdks/connections/README.md index 3566d1c59..144a4bf12 100755 --- a/sync-for-commerce/docs/sdks/connections/README.md +++ b/sync-for-commerce/docs/sdks/connections/README.md @@ -1,4 +1,4 @@ -# connections +# Connections ## Overview diff --git a/sync-for-commerce/docs/sdks/integrations/README.md b/sync-for-commerce/docs/sdks/integrations/README.md index b74e8e3fb..a1165db75 100755 --- a/sync-for-commerce/docs/sdks/integrations/README.md +++ b/sync-for-commerce/docs/sdks/integrations/README.md @@ -1,4 +1,4 @@ -# integrations +# Integrations ## Overview diff --git a/sync-for-commerce/docs/sdks/sync/README.md b/sync-for-commerce/docs/sdks/sync/README.md index e49bad5d5..d8685cb18 100755 --- a/sync-for-commerce/docs/sdks/sync/README.md +++ b/sync-for-commerce/docs/sdks/sync/README.md @@ -1,4 +1,4 @@ -# sync +# Sync ## Overview diff --git a/sync-for-commerce/docs/sdks/syncflowsettings/README.md b/sync-for-commerce/docs/sdks/syncflowsettings/README.md index 67e54cdc7..54d095bae 100755 --- a/sync-for-commerce/docs/sdks/syncflowsettings/README.md +++ b/sync-for-commerce/docs/sdks/syncflowsettings/README.md @@ -1,4 +1,4 @@ -# sync_flow_settings +# SyncFlowSettings ## Overview diff --git a/sync-for-commerce/files.gen b/sync-for-commerce/files.gen index d60e4dcee..d8c46ce65 100755 --- a/sync-for-commerce/files.gen +++ b/sync-for-commerce/files.gen @@ -87,7 +87,10 @@ src/codatsynccommerce/models/shared/syncrange.py src/codatsynccommerce/models/shared/localization.py src/codatsynccommerce/models/shared/visibleaccounts.py src/codatsynccommerce/models/shared/security.py +src/codatsynccommerce/models/shared/syncconnectiondeletedwebhook.py src/codatsynccommerce/models/shared/__init__.py +src/codatsynccommerce/models/webhooks/sync_connection_deleted.py +src/codatsynccommerce/models/webhooks/__init__.py src/codatsynccommerce/models/errors/__init__.py docs/sdks/codatsynccommerce/README.md docs/models/utils/retryconfig.md @@ -194,4 +197,6 @@ docs/models/shared/syncrange.md docs/models/shared/localization.md docs/models/shared/visibleaccounts.md docs/models/shared/security.md +docs/models/shared/syncconnectiondeletedwebhook.md +docs/models/webhooks/syncconnectiondeletedresponse.md .gitattributes \ No newline at end of file diff --git a/sync-for-commerce/gen.yaml b/sync-for-commerce/gen.yaml index f1f4266e8..9e61b7c33 100644 --- a/sync-for-commerce/gen.yaml +++ b/sync-for-commerce/gen.yaml @@ -1,16 +1,16 @@ configVersion: 1.0.0 management: - docChecksum: c0acc08add5921c52dad125db9a25813 + docChecksum: 4dc4e8d6a2f265ba21c0680691dce9e0 docVersion: "1.1" - speakeasyVersion: 1.82.5 - generationVersion: 2.108.3 + speakeasyVersion: 1.87.0 + generationVersion: 2.116.0 generation: sdkClassName: CodatSyncCommerce singleTagPerOp: false telemetryEnabled: true features: python: - core: 2.85.4 + core: 2.85.5 deprecations: 2.81.1 examples: 2.81.2 globalSecurity: 2.81.1 @@ -18,7 +18,7 @@ features: nameOverrides: 2.81.1 retries: 2.82.0 python: - version: 2.0.0 + version: 2.1.0 author: Codat description: Push merchants' data from your ecommerce or point-of-sale (POS) platform into your merchants' accounting platform. maxMethodParams: 0 diff --git a/sync-for-commerce/setup.py b/sync-for-commerce/setup.py index 33176971c..b5f0c17b5 100755 --- a/sync-for-commerce/setup.py +++ b/sync-for-commerce/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="codat-sync-for-commerce", - version="1.1.0", + version="2.1.0", author="Codat", description="Push merchants' data from your ecommerce or point-of-sale (POS) platform into your merchants' accounting platform.", long_description=long_description, diff --git a/sync-for-commerce/src/codatsynccommerce/models/shared/__init__.py b/sync-for-commerce/src/codatsynccommerce/models/shared/__init__.py index c3ad58330..17fd95c6d 100755 --- a/sync-for-commerce/src/codatsynccommerce/models/shared/__init__.py +++ b/sync-for-commerce/src/codatsynccommerce/models/shared/__init__.py @@ -42,6 +42,7 @@ from .security import * from .sourcetype import * from .supportedfeature import * +from .syncconnectiondeletedwebhook import * from .syncflowurl import * from .syncrange import * from .syncstatus import * @@ -52,4 +53,4 @@ from .updateconnection import * from .visibleaccounts import * -__all__ = ["AccountOption","Branding","BrandingButton","BrandingImage","BrandingLogo","Companies","Company","CompanySyncStatus","ConfigAccount","Configuration","Connection","ConnectionSourceType","Connections","CreateCompany","Customer","DataConnectionError","DataConnectionStatus","DataTypeFeature","DataTypeFeatureDataTypes","ErrorMessage","FeatureState","FeatureType","Fees","FeesSupplier","Grouping","GroupingLevels","GroupingPeriod","HalRef","ImageReference","Integration","Integrations","InvoiceLevelSelection","InvoiceLineLevelSelection","InvoiceStatus","Links","Localization","NewPayments","NewTaxRates","Option","Payments","Sales","Security","SourceType","SupportedFeature","SyncFlowURL","SyncRange","SyncRangeDateRange","SyncStatus","SyncSummary","SyncSummarySyncDateRangeUtc","SyncToLatestArgs","TaxRateAmount","TaxRateMapping","UpdateConnection","VisibleAccounts"] +__all__ = ["AccountOption","Branding","BrandingButton","BrandingImage","BrandingLogo","Companies","Company","CompanySyncStatus","ConfigAccount","Configuration","Connection","ConnectionSourceType","Connections","CreateCompany","Customer","DataConnectionError","DataConnectionStatus","DataTypeFeature","DataTypeFeatureDataTypes","ErrorMessage","FeatureState","FeatureType","Fees","FeesSupplier","Grouping","GroupingLevels","GroupingPeriod","HalRef","ImageReference","Integration","Integrations","InvoiceLevelSelection","InvoiceLineLevelSelection","InvoiceStatus","Links","Localization","NewPayments","NewTaxRates","Option","Payments","Sales","Security","SourceType","SupportedFeature","SyncConnectionDeletedWebhook","SyncFlowURL","SyncRange","SyncRangeDateRange","SyncStatus","SyncSummary","SyncSummarySyncDateRangeUtc","SyncToLatestArgs","TaxRateAmount","TaxRateMapping","UpdateConnection","VisibleAccounts"] diff --git a/sync-for-commerce/src/codatsynccommerce/models/shared/syncconnectiondeletedwebhook.py b/sync-for-commerce/src/codatsynccommerce/models/shared/syncconnectiondeletedwebhook.py new file mode 100755 index 000000000..34d5db831 --- /dev/null +++ b/sync-for-commerce/src/codatsynccommerce/models/shared/syncconnectiondeletedwebhook.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from codatsynccommerce import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class SyncConnectionDeletedWebhook: + r"""A Sync for Commerce connection is deleted.""" + alert_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('AlertId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier of the webhook event.""" + client_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your client in Codat.""" + client_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientName'), 'exclude': lambda f: f is None }}) + r"""Name of your client in Codat.""" + company_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('CompanyId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your SMB in Codat.""" + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Message'), 'exclude': lambda f: f is None }}) + r"""A human readable message about the webhook.""" + rule_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for the rule.""" + rule_type: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleType'), 'exclude': lambda f: f is None }}) + r"""The type of rule.""" + + diff --git a/sync-for-commerce/src/codatsynccommerce/models/webhooks/__init__.py b/sync-for-commerce/src/codatsynccommerce/models/webhooks/__init__.py new file mode 100755 index 000000000..416aa090c --- /dev/null +++ b/sync-for-commerce/src/codatsynccommerce/models/webhooks/__init__.py @@ -0,0 +1,5 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from .sync_connection_deleted import * + +__all__ = ["SyncConnectionDeletedResponse"] diff --git a/sync-for-commerce/src/codatsynccommerce/models/webhooks/sync_connection_deleted.py b/sync-for-commerce/src/codatsynccommerce/models/webhooks/sync_connection_deleted.py new file mode 100755 index 000000000..a7e3c2594 --- /dev/null +++ b/sync-for-commerce/src/codatsynccommerce/models/webhooks/sync_connection_deleted.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from typing import Optional + + + +@dataclasses.dataclass +class SyncConnectionDeletedResponse: + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + diff --git a/sync-for-commerce/src/codatsynccommerce/sdkconfiguration.py b/sync-for-commerce/src/codatsynccommerce/sdkconfiguration.py index c9557f9b6..65b52c533 100755 --- a/sync-for-commerce/src/codatsynccommerce/sdkconfiguration.py +++ b/sync-for-commerce/src/codatsynccommerce/sdkconfiguration.py @@ -20,8 +20,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.1' - sdk_version: str = '1.1.0' - gen_version: str = '2.108.3' + sdk_version: str = '2.1.0' + gen_version: str = '2.116.0' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: