Skip to content

Commit c5c4aec

Browse files
committed
ci: regenerated with OpenAPI Doc 1.1, Speakeay CLI 1.53.0
1 parent 970eaff commit c5c4aec

File tree

10 files changed

+90
-82
lines changed

10 files changed

+90
-82
lines changed

synccommerce/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ if res.company is not None:
4848
### [configuration](docs/sdks/configuration/README.md)
4949

5050
* [get_configuration](docs/sdks/configuration/README.md#get_configuration) - Retrieve config preferences set for a company.
51-
* [get_sync_status](docs/sdks/configuration/README.md#get_sync_status) - Get status for a company's syncs
5251
* [set_configuration](docs/sdks/configuration/README.md#set_configuration) - Create or update configuration.
5352

5453
### [integrations](docs/sdks/integrations/README.md)
@@ -58,6 +57,7 @@ if res.company is not None:
5857

5958
### [sync](docs/sdks/sync/README.md)
6059

60+
* [get_sync_status](docs/sdks/sync/README.md#get_sync_status) - Get status for a company's syncs
6161
* [request_sync](docs/sdks/sync/README.md#request_sync) - Sync new
6262
* [request_sync_for_date_range](docs/sdks/sync/README.md#request_sync_for_date_range) - Sync range
6363

synccommerce/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,4 +510,12 @@ Based on:
510510
- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml
511511
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
512512
### Releases
513-
- [PyPI v0.30.0] https://pypi.org/project/codat-sync-for-commerce/0.30.0 - synccommerce
513+
- [PyPI v0.30.0] https://pypi.org/project/codat-sync-for-commerce/0.30.0 - synccommerce
514+
515+
## 2023-07-07 09:23:36
516+
### Changes
517+
Based on:
518+
- OpenAPI Doc 1.1 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml
519+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
520+
### Releases
521+
- [PyPI v0.30.1] https://pypi.org/project/codat-sync-for-commerce/0.30.1 - synccommerce

synccommerce/docs/sdks/configuration/README.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Expressively configure preferences for any given Sync for Commerce company.
77
### Available Operations
88

99
* [get_configuration](#get_configuration) - Retrieve config preferences set for a company.
10-
* [get_sync_status](#get_sync_status) - Get status for a company's syncs
1110
* [set_configuration](#set_configuration) - Create or update configuration.
1211

1312
## get_configuration
@@ -49,45 +48,6 @@ if res.configuration is not None:
4948
**[operations.GetConfigurationResponse](../../models/operations/getconfigurationresponse.md)**
5049

5150

52-
## get_sync_status
53-
54-
Check the sync history and sync status for a company.
55-
56-
### Example Usage
57-
58-
```python
59-
import codatsynccommerce
60-
from codatsynccommerce.models import operations
61-
62-
s = codatsynccommerce.CodatSyncCommerce(
63-
security=shared.Security(
64-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
65-
),
66-
)
67-
68-
req = operations.GetSyncStatusRequest(
69-
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
70-
)
71-
72-
res = s.configuration.get_sync_status(req)
73-
74-
if res.status_code == 200:
75-
# handle response
76-
```
77-
78-
### Parameters
79-
80-
| Parameter | Type | Required | Description |
81-
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
82-
| `request` | [operations.GetSyncStatusRequest](../../models/operations/getsyncstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. |
83-
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
84-
85-
86-
### Response
87-
88-
**[operations.GetSyncStatusResponse](../../models/operations/getsyncstatusresponse.md)**
89-
90-
9151
## set_configuration
9252

9353
Make changes to configuration preferences.

synccommerce/docs/sdks/sync/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,49 @@ Initiate a sync of Sync for Commerce company data into their respective accounti
66

77
### Available Operations
88

9+
* [get_sync_status](#get_sync_status) - Get status for a company's syncs
910
* [request_sync](#request_sync) - Sync new
1011
* [request_sync_for_date_range](#request_sync_for_date_range) - Sync range
1112

13+
## get_sync_status
14+
15+
Check the sync history and sync status for a company.
16+
17+
### Example Usage
18+
19+
```python
20+
import codatsynccommerce
21+
from codatsynccommerce.models import operations
22+
23+
s = codatsynccommerce.CodatSyncCommerce(
24+
security=shared.Security(
25+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
26+
),
27+
)
28+
29+
req = operations.GetSyncStatusRequest(
30+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
31+
)
32+
33+
res = s.sync.get_sync_status(req)
34+
35+
if res.status_code == 200:
36+
# handle response
37+
```
38+
39+
### Parameters
40+
41+
| Parameter | Type | Required | Description |
42+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
43+
| `request` | [operations.GetSyncStatusRequest](../../models/operations/getsyncstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. |
44+
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
45+
46+
47+
### Response
48+
49+
**[operations.GetSyncStatusResponse](../../models/operations/getsyncstatusresponse.md)**
50+
51+
1252
## request_sync
1353

1454
Run a Commerce sync from the last successful sync up to the date provided (optional), otherwise UtcNow is used.

synccommerce/files.gen

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ src/codatsynccommerce/models/operations/list_companies.py
1818
src/codatsynccommerce/models/operations/list_connections.py
1919
src/codatsynccommerce/models/operations/update_connection.py
2020
src/codatsynccommerce/models/operations/get_configuration.py
21-
src/codatsynccommerce/models/operations/get_sync_status.py
2221
src/codatsynccommerce/models/operations/set_configuration.py
2322
src/codatsynccommerce/models/operations/get_integration_branding.py
2423
src/codatsynccommerce/models/operations/list_integrations.py
24+
src/codatsynccommerce/models/operations/get_sync_status.py
2525
src/codatsynccommerce/models/operations/request_sync.py
2626
src/codatsynccommerce/models/operations/request_sync_for_date_range.py
2727
src/codatsynccommerce/models/operations/get_config_text_sync_flow.py
@@ -99,14 +99,14 @@ docs/models/operations/updateconnectionrequest.md
9999
docs/models/operations/updateconnectionresponse.md
100100
docs/models/operations/getconfigurationrequest.md
101101
docs/models/operations/getconfigurationresponse.md
102-
docs/models/operations/getsyncstatusrequest.md
103-
docs/models/operations/getsyncstatusresponse.md
104102
docs/models/operations/setconfigurationrequest.md
105103
docs/models/operations/setconfigurationresponse.md
106104
docs/models/operations/getintegrationbrandingrequest.md
107105
docs/models/operations/getintegrationbrandingresponse.md
108106
docs/models/operations/listintegrationsrequest.md
109107
docs/models/operations/listintegrationsresponse.md
108+
docs/models/operations/getsyncstatusrequest.md
109+
docs/models/operations/getsyncstatusresponse.md
110110
docs/models/operations/requestsyncrequest.md
111111
docs/models/operations/requestsyncresponse.md
112112
docs/models/operations/requestsyncfordaterangerequest.md

synccommerce/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 6adb2177a882164715f20b24bdbd2ecb
3+
docChecksum: f7474dbdc4ce0d8cb99078cd5318523f
44
docVersion: "1.1"
55
speakeasyVersion: 1.53.0
66
generationVersion: 2.58.0
@@ -9,7 +9,7 @@ generation:
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.30.0
12+
version: 0.30.1
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

synccommerce/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-sync-for-commerce",
13-
version="0.30.0",
13+
version="0.30.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

synccommerce/src/codatsynccommerce/configuration.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,39 +50,6 @@ def do_request():
5050
return res
5151

5252

53-
def get_sync_status(self, request: operations.GetSyncStatusRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetSyncStatusResponse:
54-
r"""Get status for a company's syncs
55-
Check the sync history and sync status for a company.
56-
"""
57-
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
58-
59-
url = utils.generate_url(operations.GetSyncStatusRequest, base_url, '/meta/companies/{companyId}/sync/commerce/status', request)
60-
headers = {}
61-
headers['Accept'] = '*/*'
62-
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
63-
64-
client = self.sdk_configuration.security_client
65-
66-
retry_config = retries
67-
if retry_config is None:
68-
retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True)
69-
70-
def do_request():
71-
return client.request('GET', url, headers=headers)
72-
73-
http_res = utils.retry(do_request, utils.Retries(retry_config, [
74-
'408',
75-
'429',
76-
'5XX'
77-
]))
78-
content_type = http_res.headers.get('Content-Type')
79-
80-
res = operations.GetSyncStatusResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
81-
82-
83-
return res
84-
85-
8653
def set_configuration(self, request: operations.SetConfigurationRequest, retries: Optional[utils.RetryConfig] = None) -> operations.SetConfigurationResponse:
8754
r"""Create or update configuration.
8855
Make changes to configuration preferences.

synccommerce/src/codatsynccommerce/sdkconfiguration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SDKConfiguration:
1818
server_idx: int = 0
1919
language: str = 'python'
2020
openapi_doc_version: str = '1.1'
21-
sdk_version: str = '0.30.0'
21+
sdk_version: str = '0.30.1'
2222
gen_version: str = '2.58.0'
2323

2424
def get_server_details(self) -> tuple[str, dict[str, str]]:

synccommerce/src/codatsynccommerce/sync.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,39 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
1313
self.sdk_configuration = sdk_config
1414

1515

16+
def get_sync_status(self, request: operations.GetSyncStatusRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetSyncStatusResponse:
17+
r"""Get status for a company's syncs
18+
Check the sync history and sync status for a company.
19+
"""
20+
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
21+
22+
url = utils.generate_url(operations.GetSyncStatusRequest, base_url, '/meta/companies/{companyId}/sync/commerce/status', request)
23+
headers = {}
24+
headers['Accept'] = '*/*'
25+
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
26+
27+
client = self.sdk_configuration.security_client
28+
29+
retry_config = retries
30+
if retry_config is None:
31+
retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True)
32+
33+
def do_request():
34+
return client.request('GET', url, headers=headers)
35+
36+
http_res = utils.retry(do_request, utils.Retries(retry_config, [
37+
'408',
38+
'429',
39+
'5XX'
40+
]))
41+
content_type = http_res.headers.get('Content-Type')
42+
43+
res = operations.GetSyncStatusResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
44+
45+
46+
return res
47+
48+
1649
def request_sync(self, request: operations.RequestSyncRequest, retries: Optional[utils.RetryConfig] = None) -> operations.RequestSyncResponse:
1750
r"""Sync new
1851
Run a Commerce sync from the last successful sync up to the date provided (optional), otherwise UtcNow is used.

0 commit comments

Comments
 (0)