Skip to content

Commit

Permalink
Merge pull request #340 from codatio/speakeasy-sdk-regen-1695073483
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate Sync for Commerce library
  • Loading branch information
dcoplowe authored Sep 18, 2023
2 parents c2484f4 + ac9818f commit 1427d9c
Show file tree
Hide file tree
Showing 17 changed files with 113 additions and 20 deletions.
10 changes: 5 additions & 5 deletions sync-for-commerce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,27 @@ 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
* [list](docs/sdks/connections/README.md#list) - List connections
* [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
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion sync-for-commerce/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [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
Original file line number Diff line number Diff line change
@@ -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. | |
Original file line number Diff line number Diff line change
@@ -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 |
2 changes: 1 addition & 1 deletion sync-for-commerce/docs/sdks/advancedcontrols/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# advanced_controls
# AdvancedControls

## Overview

Expand Down
2 changes: 1 addition & 1 deletion sync-for-commerce/docs/sdks/connections/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# connections
# Connections

## Overview

Expand Down
2 changes: 1 addition & 1 deletion sync-for-commerce/docs/sdks/integrations/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# integrations
# Integrations

## Overview

Expand Down
2 changes: 1 addition & 1 deletion sync-for-commerce/docs/sdks/sync/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sync
# Sync

## Overview

Expand Down
2 changes: 1 addition & 1 deletion sync-for-commerce/docs/sdks/syncflowsettings/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sync_flow_settings
# SyncFlowSettings

## Overview

Expand Down
5 changes: 5 additions & 0 deletions sync-for-commerce/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 5 additions & 5 deletions sync-for-commerce/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
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
globalServerURLs: 2.82.0
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
Expand Down
2 changes: 1 addition & 1 deletion sync-for-commerce/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand All @@ -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"]
Original file line number Diff line number Diff line change
@@ -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."""


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from .sync_connection_deleted import *

__all__ = ["SyncConnectionDeletedResponse"]
Original file line number Diff line number Diff line change
@@ -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)


4 changes: 2 additions & 2 deletions sync-for-commerce/src/codatsynccommerce/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down

0 comments on commit 1427d9c

Please sign in to comment.