Skip to content

Commit 646a9cf

Browse files
authored
Merge pull request #624 from codatio/speakeasy-sdk-regen-1733826158
chore: 🐝 Update SDK - Generate Sync for Payables library SYNC-FOR-PAYABLES-LIBRARY 8.0.3
2 parents fcf4a81 + edba8c2 commit 646a9cf

File tree

19 files changed

+265
-224
lines changed

19 files changed

+265
-224
lines changed

.speakeasy/workflow.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ sources:
8484
- prealpha
8585
sync-for-payables-source:
8686
sourceNamespace: sync-for-payables-source
87-
sourceRevisionDigest: sha256:24533e2542e722cc2a54d350b8124a864d69ed4460b3fda7156caf3e8d822ca0
87+
sourceRevisionDigest: sha256:91db2475a2b22bd8d3aa4cc563979bf0c9c887c393c979537263a5f541ab8b04
8888
sourceBlobDigest: sha256:57b656eed2c5a98f97da8f59e196bb8052ead3cc7c87673cdf5e19c6badbb570
8989
tags:
9090
- latest
91-
- speakeasy-sdk-regen-1732702202
91+
- speakeasy-sdk-regen-1733826158
9292
- 3.0.0
9393
sync-for-payables-version-1-source:
9494
sourceNamespace: sync-for-payables-version-1-source
@@ -166,10 +166,10 @@ targets:
166166
sync-for-payables-library:
167167
source: sync-for-payables-source
168168
sourceNamespace: sync-for-payables-source
169-
sourceRevisionDigest: sha256:24533e2542e722cc2a54d350b8124a864d69ed4460b3fda7156caf3e8d822ca0
169+
sourceRevisionDigest: sha256:91db2475a2b22bd8d3aa4cc563979bf0c9c887c393c979537263a5f541ab8b04
170170
sourceBlobDigest: sha256:57b656eed2c5a98f97da8f59e196bb8052ead3cc7c87673cdf5e19c6badbb570
171171
codeSamplesNamespace: sync-for-payables-source-python-code-samples
172-
codeSamplesRevisionDigest: sha256:ee15bf6aec481ca23d8e2cb43d251e239334292e4affce738c03ef74f3e092b3
172+
codeSamplesRevisionDigest: sha256:9a230d00f4713b828e0a51c12d169f4c326865409b7aedb7525060826c7d7ef1
173173
sync-for-payables-version-1-library:
174174
source: sync-for-payables-version-1-source
175175
sourceNamespace: sync-for-payables-version-1-source

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 0722f07c-657c-4062-93f1-39ee3fe757d0
33
management:
44
docChecksum: 05c2a60eb0f4b40cda5e4a92d94e7b93
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.448.0
7-
generationVersion: 2.466.0
8-
releaseVersion: 8.0.2
9-
configChecksum: 770f66b877a0dda395dc34450854e097
6+
speakeasyVersion: 1.453.8
7+
generationVersion: 2.474.15
8+
releaseVersion: 8.0.3
9+
configChecksum: 52f1dd427d39b22a834f77dd51ec7337
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: sync-for-payables
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-payables
@@ -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
decimal: 1.0.0
2020
defaultEnabledRetries: 0.2.0
2121
deprecations: 3.0.0
@@ -954,4 +954,20 @@ examples:
954954
responses:
955955
"400":
956956
application/json: {"statusCode": 400, "service": "PublicApi", "error": "Error processing request - not valid.", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "canBeRetried": "Unknown", "detailedErrorCode": 0}
957+
client.rateLimit.reached:
958+
Reached:
959+
requestBody:
960+
application/json: {"id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "eventType": "client.rateLimit.reached", "generatedDate": "2024-09-01T00:00:00Z", "payload": {"dailyQuota": 12000, "quotaRemaining": 0, "expiryDate": "2024-09-01T12:14:14Z"}}
961+
client.rateLimit.reset:
962+
Reset:
963+
requestBody:
964+
application/json: {"id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "eventType": "client.rateLimit.reset", "generatedDate": "2024-09-01T00:00:00Z", "payload": {"dailyQuota": 12000, "quotaRemaining": 11993, "expiryDate": "2024-09-01T23:59:99Z"}}
965+
Client rate limit reached:
966+
speakeasy-default-client-rate-limit-reached:
967+
requestBody:
968+
application/json: {"ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reached", "AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "Message": "The current daily rate limit quota of 1000 requests for bae71d36-ff47-420a-b4a6-f8c9ddf41140 has been reached.", "Data": {"DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z"}}
969+
Client rate limit reset:
970+
speakeasy-default-client-rate-limit-reset:
971+
requestBody:
972+
application/json: {"ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reset", "AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "Message": "The current daily rate limit quota for client 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e has been reset to 1000 requests.", "Data": {"QuotaRemaining": 1000, "ResetReason": "The quota was reset because it is a new day.", "DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z"}}
957973
generatedTests: {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
python:
16-
version: 8.0.2
16+
version: 8.0.3
1717
additionalDependencies:
1818
dev: {}
1919
main: {}

sync-for-payables/README.md

Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,20 @@ poetry add codat-sync-for-payables
3535
```python
3636
# Synchronous Example
3737
from codat_sync_for_payables import CodatSyncPayables
38-
from codat_sync_for_payables.models import shared
3938

40-
with CodatSyncPayables(
41-
security=shared.Security(
42-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
43-
),
44-
) as s:
45-
res = s.companies.list(request={
46-
"page": 1,
47-
"page_size": 100,
48-
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
49-
"order_by": "-modifiedDate",
39+
with CodatSyncPayables() as codat_sync_payables:
40+
codat_sync_payables.client_rate_limit_reached(request={
41+
"id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b",
42+
"event_type": "client.rateLimit.reached",
43+
"generated_date": "2024-09-01T00:00:00Z",
44+
"payload": {
45+
"daily_quota": 12000,
46+
"quota_remaining": 0,
47+
"expiry_date": "2024-09-01T12:14:14Z",
48+
},
5049
})
5150

52-
if res is not None:
53-
# handle response
54-
pass
51+
# Use the SDK ...
5552
```
5653

5754
</br>
@@ -61,24 +58,21 @@ The same SDK client can also be used to make asychronous requests by importing a
6158
# Asynchronous Example
6259
import asyncio
6360
from codat_sync_for_payables import CodatSyncPayables
64-
from codat_sync_for_payables.models import shared
6561

6662
async def main():
67-
async with CodatSyncPayables(
68-
security=shared.Security(
69-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
70-
),
71-
) as s:
72-
res = await s.companies.list_async(request={
73-
"page": 1,
74-
"page_size": 100,
75-
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
76-
"order_by": "-modifiedDate",
63+
async with CodatSyncPayables() as codat_sync_payables:
64+
await codat_sync_payables.client_rate_limit_reached_async(request={
65+
"id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b",
66+
"event_type": "client.rateLimit.reached",
67+
"generated_date": "2024-09-01T00:00:00Z",
68+
"payload": {
69+
"daily_quota": 12000,
70+
"quota_remaining": 0,
71+
"expiry_date": "2024-09-01T12:14:14Z",
72+
},
7773
})
7874

79-
if res is not None:
80-
# handle response
81-
pass
75+
# Use the SDK ...
8276

8377
asyncio.run(main())
8478
```
@@ -174,18 +168,23 @@ The bill pay kit is an API and a set of supporting tools designed to integrate a
174168

175169
<!-- Start Table of Contents [toc] -->
176170
## Table of Contents
171+
<!-- $toc-max-depth=2 -->
172+
* [SDK Installation](#sdk-installation)
173+
* [Example Usage](#example-usage)
174+
* [SDK Example Usage](#sdk-example-usage)
175+
* [Available Resources and Operations](#available-resources-and-operations)
176+
* [Supported Integrations](#supported-integrations)
177+
* [Endpoints](#endpoints)
178+
* [IDE Support](#ide-support)
179+
* [File uploads](#file-uploads)
180+
* [Retries](#retries)
181+
* [Error Handling](#error-handling)
182+
* [Server Selection](#server-selection)
183+
* [Custom HTTP Client](#custom-http-client)
184+
* [Authentication](#authentication)
185+
* [Debugging](#debugging)
186+
* [Support](#support)
177187

178-
* [SDK Installation](#sdk-installation)
179-
* [IDE Support](#ide-support)
180-
* [SDK Example Usage](#sdk-example-usage)
181-
* [Available Resources and Operations](#available-resources-and-operations)
182-
* [File uploads](#file-uploads)
183-
* [Retries](#retries)
184-
* [Error Handling](#error-handling)
185-
* [Server Selection](#server-selection)
186-
* [Custom HTTP Client](#custom-http-client)
187-
* [Authentication](#authentication)
188-
* [Debugging](#debugging)
189188
<!-- End Table of Contents [toc] -->
190189

191190
<!-- Start IDE Support [idesupport] -->
@@ -216,8 +215,8 @@ with CodatSyncPayables(
216215
security=shared.Security(
217216
auth_header="Basic BASE_64_ENCODED(API_KEY)",
218217
),
219-
) as s:
220-
res = s.bills.upload_attachment(request={
218+
) as codat_sync_payables:
219+
res = codat_sync_payables.bills.upload_attachment(request={
221220
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
222221
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
223222
"bill_id": "EILBDVJVNUAGVKRQ",
@@ -239,14 +238,14 @@ To change the default retry strategy for a single API call, simply provide a `Re
239238
```python
240239
from codat_sync_for_payables import CodatSyncPayables
241240
from codat_sync_for_payables.models import shared
242-
from codatsyncpayables.utils import BackoffStrategy, RetryConfig
241+
from codat_sync_for_payables.utils import BackoffStrategy, RetryConfig
243242

244243
with CodatSyncPayables(
245244
security=shared.Security(
246245
auth_header="Basic BASE_64_ENCODED(API_KEY)",
247246
),
248-
) as s:
249-
res = s.companies.list(request={
247+
) as codat_sync_payables:
248+
res = codat_sync_payables.companies.list(request={
250249
"page": 1,
251250
"page_size": 100,
252251
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
@@ -264,15 +263,15 @@ If you'd like to override the default retry strategy for all operations that sup
264263
```python
265264
from codat_sync_for_payables import CodatSyncPayables
266265
from codat_sync_for_payables.models import shared
267-
from codatsyncpayables.utils import BackoffStrategy, RetryConfig
266+
from codat_sync_for_payables.utils import BackoffStrategy, RetryConfig
268267

269268
with CodatSyncPayables(
270269
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
271270
security=shared.Security(
272271
auth_header="Basic BASE_64_ENCODED(API_KEY)",
273272
),
274-
) as s:
275-
res = s.companies.list(request={
273+
) as codat_sync_payables:
274+
res = codat_sync_payables.companies.list(request={
276275
"page": 1,
277276
"page_size": 100,
278277
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
@@ -317,10 +316,10 @@ with CodatSyncPayables(
317316
security=shared.Security(
318317
auth_header="Basic BASE_64_ENCODED(API_KEY)",
319318
),
320-
) as s:
319+
) as codat_sync_payables:
321320
res = None
322321
try:
323-
res = s.companies.list(request={
322+
res = codat_sync_payables.companies.list(request={
324323
"page": 1,
325324
"page_size": 100,
326325
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
@@ -355,8 +354,8 @@ with CodatSyncPayables(
355354
security=shared.Security(
356355
auth_header="Basic BASE_64_ENCODED(API_KEY)",
357356
),
358-
) as s:
359-
res = s.companies.list(request={
357+
) as codat_sync_payables:
358+
res = codat_sync_payables.companies.list(request={
360359
"page": 1,
361360
"page_size": 100,
362361
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
@@ -471,8 +470,8 @@ with CodatSyncPayables(
471470
security=shared.Security(
472471
auth_header="Basic BASE_64_ENCODED(API_KEY)",
473472
),
474-
) as s:
475-
res = s.companies.list(request={
473+
) as codat_sync_payables:
474+
res = codat_sync_payables.companies.list(request={
476475
"page": 1,
477476
"page_size": 100,
478477
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",

sync-for-payables/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [python v8.0.2] sync-for-payables
7070
### Releases
71-
- [PyPI v8.0.2] https://pypi.org/project/codat-sync-for-payables/8.0.2 - sync-for-payables
71+
- [PyPI v8.0.2] https://pypi.org/project/codat-sync-for-payables/8.0.2 - sync-for-payables
72+
73+
## 2024-12-10 10:22:29
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [python v8.0.3] sync-for-payables
80+
### Releases
81+
- [PyPI v8.0.3] https://pypi.org/project/codat-sync-for-payables/8.0.3 - sync-for-payables

sync-for-payables/USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ with CodatSyncPayables(
88
security=shared.Security(
99
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1010
),
11-
) as s:
12-
res = s.companies.list(request={
11+
) as codat_sync_payables:
12+
res = codat_sync_payables.companies.list(request={
1313
"page": 1,
1414
"page_size": 100,
1515
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
@@ -35,8 +35,8 @@ async def main():
3535
security=shared.Security(
3636
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3737
),
38-
) as s:
39-
res = await s.companies.list_async(request={
38+
) as codat_sync_payables:
39+
res = await codat_sync_payables.companies.list_async(request={
4040
"page": 1,
4141
"page_size": 100,
4242
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",

sync-for-payables/docs/sdks/bankaccounts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ with CodatSyncPayables(
2525
security=shared.Security(
2626
auth_header="Basic BASE_64_ENCODED(API_KEY)",
2727
),
28-
) as s:
29-
res = s.bank_accounts.create(request={
28+
) as codat_sync_payables:
29+
res = codat_sync_payables.bank_accounts.create(request={
3030
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
3131
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
3232
"bank_account_prototype": {

sync-for-payables/docs/sdks/billpayments/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ with CodatSyncPayables(
2828
security=shared.Security(
2929
auth_header="Basic BASE_64_ENCODED(API_KEY)",
3030
),
31-
) as s:
32-
res = s.bill_payments.get_payment_options(request={
31+
) as codat_sync_payables:
32+
res = codat_sync_payables.bill_payments.get_payment_options(request={
3333
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
3434
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
3535
"continuation_token": "continuationToken=eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ==",
@@ -77,8 +77,8 @@ with CodatSyncPayables(
7777
security=shared.Security(
7878
auth_header="Basic BASE_64_ENCODED(API_KEY)",
7979
),
80-
) as s:
81-
res = s.bill_payments.create(request={
80+
) as codat_sync_payables:
81+
res = codat_sync_payables.bill_payments.create(request={
8282
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
8383
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
8484
"bill_id": "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2",

0 commit comments

Comments
 (0)