Skip to content

Commit 7e6e8d8

Browse files
authored
Merge pull request #627 from codatio/speakeasy-sdk-regen-1733826200
chore: 🐝 Update SDK - Generate Sync for Commerce library SYNC-FOR-COMMERCE-LIBRARY 6.0.1
2 parents 0aa533b + b95c75d commit 7e6e8d8

File tree

17 files changed

+281
-214
lines changed

17 files changed

+281
-214
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ sources:
6868
- 3.0.0
6969
sync-for-commerce-source:
7070
sourceNamespace: sync-for-commerce-source
71-
sourceRevisionDigest: sha256:6d5e5550a748f71a9e40dde1c1a69b1719d16b4ba34df3caad9d76471865ed5b
71+
sourceRevisionDigest: sha256:df4334894c5b162a67c75770369c6fd6c0cf7b4ce5374c2f9654c2fc6da9fcb5
7272
sourceBlobDigest: sha256:1d1592cd53dae647bff1e58e43cb64f19f9da714cfc6f6198c43659b89b05369
7373
tags:
7474
- latest
75-
- speakeasy-sdk-regen-1732635208
75+
- speakeasy-sdk-regen-1733826200
7676
- "1.1"
7777
sync-for-expenses-source:
7878
sourceNamespace: sync-for-expenses-source
@@ -152,10 +152,10 @@ targets:
152152
sync-for-commerce-library:
153153
source: sync-for-commerce-source
154154
sourceNamespace: sync-for-commerce-source
155-
sourceRevisionDigest: sha256:6d5e5550a748f71a9e40dde1c1a69b1719d16b4ba34df3caad9d76471865ed5b
155+
sourceRevisionDigest: sha256:df4334894c5b162a67c75770369c6fd6c0cf7b4ce5374c2f9654c2fc6da9fcb5
156156
sourceBlobDigest: sha256:1d1592cd53dae647bff1e58e43cb64f19f9da714cfc6f6198c43659b89b05369
157-
codeSamplesNamespace: sync-for-commerce-source-code-samples
158-
codeSamplesRevisionDigest: sha256:3b9ecd425a767a3ec537a2496260b5f66bcc810311faa362630aecb65f6c8367
157+
codeSamplesNamespace: sync-for-commerce-source-python-code-samples
158+
codeSamplesRevisionDigest: sha256:f936f9db889b789f7d3b90695f9b203b63e08f2f32dc96d753e5bd322d6af49a
159159
sync-for-expenses-library:
160160
source: sync-for-expenses-source
161161
sourceNamespace: sync-for-expenses-source

sync-for-commerce/.speakeasy/gen.lock

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 3b92187c-e150-4a7c-9381-a62db9757019
33
management:
44
docChecksum: 4dd3691e8d9cbb167c6a1a7bffed41b8
55
docVersion: "1.1"
6-
speakeasyVersion: 1.446.1
7-
generationVersion: 2.462.1
8-
releaseVersion: 6.0.0
9-
configChecksum: 2a50d118ee0568e3c9e55392665245a1
6+
speakeasyVersion: 1.453.8
7+
generationVersion: 2.474.15
8+
releaseVersion: 6.0.1
9+
configChecksum: 397ff36e157098ee12c6ed9f5a8e5ee0
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: sync-for-commerce
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-commerce
@@ -15,7 +15,7 @@ features:
1515
python:
1616
additionalDependencies: 1.0.0
1717
constsAndDefaults: 1.0.5
18-
core: 5.6.8
18+
core: 5.6.11
1919
defaultEnabledRetries: 0.2.0
2020
deprecations: 3.0.0
2121
enumUnions: 0.1.0
@@ -566,4 +566,12 @@ examples:
566566
responses:
567567
"400":
568568
application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400}
569+
Sync Connection Deleted:
570+
speakeasy-default-sync-connection-deleted:
571+
requestBody:
572+
application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "CompanyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "Message": "Sync connection for company Tesco (8a210b68-6988-11ed-a1eb-0242ac120002) deleted", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Sync Connection Deleted"}
573+
connection.deleted:
574+
speakeasy-default-connection-deleted:
575+
requestBody:
576+
application/json: {"eventType": "connection.created", "generatedDate": "2022-10-23T00:00:00Z", "id": "ba29118f-5406-4e59-b05c-ba307ca38d01", "payload": {"connection": {"created": "2022-10-23T00:00:00Z", "id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "integrationId": "fd321cb6-7963-4506-b873-e99593a45e30", "integrationKey": "dfxm", "lastSync": "2022-10-23T00:00:00Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "35b92968-9851-4095-ad60-395c95cbcba4", "sourceType": "Accounting", "status": "Linked"}, "referenceCompany": {"description": "Requested early access to the new financing scheme.", "id": "8a210b68-6988-11ed-a1eb-0242ac120002", "name": "Codat Ltd."}}}
569577
generatedTests: {}

sync-for-commerce/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
python:
15-
version: 6.0.0
15+
version: 6.0.1
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

sync-for-commerce/README.md

Lines changed: 77 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,22 @@ Not seeing the endpoints you're expecting? We've [reorganized our products](http
3232

3333
<!-- Start Table of Contents [toc] -->
3434
## Table of Contents
35+
<!-- $toc-max-depth=2 -->
36+
* [Sync for Commerce](#sync-for-commerce)
37+
* [Endpoints](#endpoints)
38+
* [SDK Installation](#sdk-installation)
39+
* [Example Usage](#example-usage)
40+
* [IDE Support](#ide-support)
41+
* [SDK Example Usage](#sdk-example-usage)
42+
* [Available Resources and Operations](#available-resources-and-operations)
43+
* [Retries](#retries)
44+
* [Error Handling](#error-handling)
45+
* [Server Selection](#server-selection)
46+
* [Custom HTTP Client](#custom-http-client)
47+
* [Authentication](#authentication)
48+
* [Debugging](#debugging)
49+
* [Support](#support)
3550

36-
* [SDK Installation](#sdk-installation)
37-
* [IDE Support](#ide-support)
38-
* [SDK Example Usage](#sdk-example-usage)
39-
* [Available Resources and Operations](#available-resources-and-operations)
40-
* [Retries](#retries)
41-
* [Error Handling](#error-handling)
42-
* [Server Selection](#server-selection)
43-
* [Custom HTTP Client](#custom-http-client)
44-
* [Authentication](#authentication)
45-
* [Debugging](#debugging)
4651
<!-- End Table of Contents [toc] -->
4752

4853
<!-- Start SDK Installation [installation] -->
@@ -88,18 +93,33 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
8893
from codat_sync_for_commerce import CodatSyncCommerce
8994
from codat_sync_for_commerce.models import shared
9095

91-
with CodatSyncCommerce(
92-
security=shared.Security(
93-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
94-
),
95-
) as s:
96-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
97-
"locale": shared.Locale.EN_US,
96+
with CodatSyncCommerce() as codat_sync_commerce:
97+
codat_sync_commerce.connection_deleted(request={
98+
"event_type": "connection.created",
99+
"generated_date": "2022-10-23T00:00:00Z",
100+
"id": "ba29118f-5406-4e59-b05c-ba307ca38d01",
101+
"payload": {
102+
"connection": {
103+
"created": "2022-10-23T00:00:00Z",
104+
"id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
105+
"integration_id": "fd321cb6-7963-4506-b873-e99593a45e30",
106+
"integration_key": "dfxm",
107+
"link_url": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start",
108+
"platform_name": "Basiq",
109+
"source_id": "35b92968-9851-4095-ad60-395c95cbcba4",
110+
"source_type": shared.SourceType.ACCOUNTING,
111+
"status": shared.DataConnectionStatus.LINKED,
112+
"last_sync": "2022-10-23T00:00:00Z",
113+
},
114+
"reference_company": {
115+
"description": "Requested early access to the new financing scheme.",
116+
"id": "8a210b68-6988-11ed-a1eb-0242ac120002",
117+
"name": "Codat Ltd.",
118+
},
119+
},
98120
})
99121

100-
if res is not None:
101-
# handle response
102-
pass
122+
# Use the SDK ...
103123
```
104124

105125
</br>
@@ -112,18 +132,33 @@ from codat_sync_for_commerce import CodatSyncCommerce
112132
from codat_sync_for_commerce.models import shared
113133

114134
async def main():
115-
async with CodatSyncCommerce(
116-
security=shared.Security(
117-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
118-
),
119-
) as s:
120-
res = await s.sync_flow_settings.get_config_text_sync_flow_async(request={
121-
"locale": shared.Locale.EN_US,
135+
async with CodatSyncCommerce() as codat_sync_commerce:
136+
await codat_sync_commerce.connection_deleted_async(request={
137+
"event_type": "connection.created",
138+
"generated_date": "2022-10-23T00:00:00Z",
139+
"id": "ba29118f-5406-4e59-b05c-ba307ca38d01",
140+
"payload": {
141+
"connection": {
142+
"created": "2022-10-23T00:00:00Z",
143+
"id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
144+
"integration_id": "fd321cb6-7963-4506-b873-e99593a45e30",
145+
"integration_key": "dfxm",
146+
"link_url": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start",
147+
"platform_name": "Basiq",
148+
"source_id": "35b92968-9851-4095-ad60-395c95cbcba4",
149+
"source_type": shared.SourceType.ACCOUNTING,
150+
"status": shared.DataConnectionStatus.LINKED,
151+
"last_sync": "2022-10-23T00:00:00Z",
152+
},
153+
"reference_company": {
154+
"description": "Requested early access to the new financing scheme.",
155+
"id": "8a210b68-6988-11ed-a1eb-0242ac120002",
156+
"name": "Codat Ltd.",
157+
},
158+
},
122159
})
123160

124-
if res is not None:
125-
# handle response
126-
pass
161+
# Use the SDK ...
127162

128163
asyncio.run(main())
129164
```
@@ -187,14 +222,14 @@ To change the default retry strategy for a single API call, simply provide a `Re
187222
```python
188223
from codat_sync_for_commerce import CodatSyncCommerce
189224
from codat_sync_for_commerce.models import shared
190-
from codatsynccommerce.utils import BackoffStrategy, RetryConfig
225+
from codat_sync_for_commerce.utils import BackoffStrategy, RetryConfig
191226

192227
with CodatSyncCommerce(
193228
security=shared.Security(
194229
auth_header="Basic BASE_64_ENCODED(API_KEY)",
195230
),
196-
) as s:
197-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
231+
) as codat_sync_commerce:
232+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
198233
"locale": shared.Locale.EN_US,
199234
},
200235
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
@@ -209,15 +244,15 @@ If you'd like to override the default retry strategy for all operations that sup
209244
```python
210245
from codat_sync_for_commerce import CodatSyncCommerce
211246
from codat_sync_for_commerce.models import shared
212-
from codatsynccommerce.utils import BackoffStrategy, RetryConfig
247+
from codat_sync_for_commerce.utils import BackoffStrategy, RetryConfig
213248

214249
with CodatSyncCommerce(
215250
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
216251
security=shared.Security(
217252
auth_header="Basic BASE_64_ENCODED(API_KEY)",
218253
),
219-
) as s:
220-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
254+
) as codat_sync_commerce:
255+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
221256
"locale": shared.Locale.EN_US,
222257
})
223258

@@ -259,10 +294,10 @@ with CodatSyncCommerce(
259294
security=shared.Security(
260295
auth_header="Basic BASE_64_ENCODED(API_KEY)",
261296
),
262-
) as s:
297+
) as codat_sync_commerce:
263298
res = None
264299
try:
265-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
300+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
266301
"locale": shared.Locale.EN_US,
267302
})
268303

@@ -294,8 +329,8 @@ with CodatSyncCommerce(
294329
security=shared.Security(
295330
auth_header="Basic BASE_64_ENCODED(API_KEY)",
296331
),
297-
) as s:
298-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
332+
) as codat_sync_commerce:
333+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
299334
"locale": shared.Locale.EN_US,
300335
})
301336

@@ -407,8 +442,8 @@ with CodatSyncCommerce(
407442
security=shared.Security(
408443
auth_header="Basic BASE_64_ENCODED(API_KEY)",
409444
),
410-
) as s:
411-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
445+
) as codat_sync_commerce:
446+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
412447
"locale": shared.Locale.EN_US,
413448
})
414449

sync-for-commerce/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,14 @@ Based on:
588588
### Generated
589589
- [python v6.0.0] sync-for-commerce
590590
### Releases
591-
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-commerce/6.0.0 - sync-for-commerce
591+
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-commerce/6.0.0 - sync-for-commerce
592+
593+
## 2024-12-10 10:23:10
594+
### Changes
595+
Based on:
596+
- OpenAPI Doc
597+
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
598+
### Generated
599+
- [python v6.0.1] sync-for-commerce
600+
### Releases
601+
- [PyPI v6.0.1] https://pypi.org/project/codat-sync-for-commerce/6.0.1 - sync-for-commerce

sync-for-commerce/USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ with CodatSyncCommerce(
88
security=shared.Security(
99
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1010
),
11-
) as s:
12-
res = s.sync_flow_settings.get_config_text_sync_flow(request={
11+
) as codat_sync_commerce:
12+
res = codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow(request={
1313
"locale": shared.Locale.EN_US,
1414
})
1515

@@ -32,8 +32,8 @@ async def main():
3232
security=shared.Security(
3333
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3434
),
35-
) as s:
36-
res = await s.sync_flow_settings.get_config_text_sync_flow_async(request={
35+
) as codat_sync_commerce:
36+
res = await codat_sync_commerce.sync_flow_settings.get_config_text_sync_flow_async(request={
3737
"locale": shared.Locale.EN_US,
3838
})
3939

sync-for-commerce/docs/sdks/advancedcontrols/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ with CodatSyncCommerce(
2626
security=shared.Security(
2727
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2828
),
29-
) as s:
30-
res = s.advanced_controls.create_company(request={
29+
) as codat_sync_commerce:
30+
res = codat_sync_commerce.advanced_controls.create_company(request={
3131
"name": "string",
3232
"description": "Requested early access to the new financing scheme.",
3333
})
@@ -70,8 +70,8 @@ with CodatSyncCommerce(
7070
security=shared.Security(
7171
auth_header="Basic BASE_64_ENCODED(API_KEY)",
7272
),
73-
) as s:
74-
res = s.advanced_controls.get_configuration(request={
73+
) as codat_sync_commerce:
74+
res = codat_sync_commerce.advanced_controls.get_configuration(request={
7575
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
7676
})
7777

@@ -113,8 +113,8 @@ with CodatSyncCommerce(
113113
security=shared.Security(
114114
auth_header="Basic BASE_64_ENCODED(API_KEY)",
115115
),
116-
) as s:
117-
res = s.advanced_controls.list_companies(request={
116+
) as codat_sync_commerce:
117+
res = codat_sync_commerce.advanced_controls.list_companies(request={
118118
"order_by": "-modifiedDate",
119119
"page": 1,
120120
"page_size": 100,
@@ -159,8 +159,8 @@ with CodatSyncCommerce(
159159
security=shared.Security(
160160
auth_header="Basic BASE_64_ENCODED(API_KEY)",
161161
),
162-
) as s:
163-
res = s.advanced_controls.set_configuration(request={
162+
) as codat_sync_commerce:
163+
res = codat_sync_commerce.advanced_controls.set_configuration(request={
164164
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
165165
})
166166

0 commit comments

Comments
 (0)