Skip to content

Commit 39e951e

Browse files
authored
Merge pull request #564 from codatio/speakeasy-sdk-regen-1707070159
chore: 🐝 Update SDK - Generate Sync for Expenses library
2 parents 9f5c7ef + f866ee8 commit 39e951e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1267
-494
lines changed

β€Žsync-for-expenses/.speakeasy/gen.lockβ€Ž

Lines changed: 402 additions & 0 deletions
Large diffs are not rendered by default.

β€Žsync-for-expenses/README.mdβ€Ž

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
3030

3131
req = shared.CompanyRequestBody(
3232
description='Requested early access to the new financing scheme.',
33+
groups=[
34+
shared.GroupItems(
35+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
36+
),
37+
],
3338
name='Bank of Dave',
3439
)
3540

@@ -124,9 +129,9 @@ if res.company is not None:
124129
<!-- Start Retries [retries] -->
125130
## Retries
126131

127-
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
132+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
128133

129-
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
134+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
130135
```python
131136
import codatsyncexpenses
132137
from codatsyncexpenses.models import shared
@@ -140,6 +145,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
140145

141146
req = shared.CompanyRequestBody(
142147
description='Requested early access to the new financing scheme.',
148+
groups=[
149+
shared.GroupItems(
150+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
151+
),
152+
],
143153
name='Bank of Dave',
144154
)
145155

@@ -151,7 +161,7 @@ if res.company is not None:
151161
pass
152162
```
153163

154-
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
164+
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
155165
```python
156166
import codatsyncexpenses
157167
from codatsyncexpenses.models import shared
@@ -166,6 +176,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
166176

167177
req = shared.CompanyRequestBody(
168178
description='Requested early access to the new financing scheme.',
179+
groups=[
180+
shared.GroupItems(
181+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
182+
),
183+
],
169184
name='Bank of Dave',
170185
)
171186

@@ -185,7 +200,7 @@ Handling errors in this SDK should largely match your expectations. All operati
185200
| Error Object | Status Code | Content Type |
186201
| --------------------------- | --------------------------- | --------------------------- |
187202
| errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
188-
| errors.SDKError | 400-600 | */* |
203+
| errors.SDKError | 4x-5xx | */* |
189204

190205
### Example
191206

@@ -201,6 +216,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
201216

202217
req = shared.CompanyRequestBody(
203218
description='Requested early access to the new financing scheme.',
219+
groups=[
220+
shared.GroupItems(
221+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
222+
),
223+
],
204224
name='Bank of Dave',
205225
)
206226

@@ -246,6 +266,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
246266

247267
req = shared.CompanyRequestBody(
248268
description='Requested early access to the new financing scheme.',
269+
groups=[
270+
shared.GroupItems(
271+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
272+
),
273+
],
249274
name='Bank of Dave',
250275
)
251276

@@ -273,6 +298,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
273298

274299
req = shared.CompanyRequestBody(
275300
description='Requested early access to the new financing scheme.',
301+
groups=[
302+
shared.GroupItems(
303+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
304+
),
305+
],
276306
name='Bank of Dave',
277307
)
278308

@@ -287,7 +317,7 @@ if res.company is not None:
287317
<!-- Start Custom HTTP Client [http-client] -->
288318
## Custom HTTP Client
289319

290-
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
320+
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
291321

292322
For example, you could specify a header for every request that this sdk makes as follows:
293323
```python
@@ -324,6 +354,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
324354

325355
req = shared.CompanyRequestBody(
326356
description='Requested early access to the new financing scheme.',
357+
groups=[
358+
shared.GroupItems(
359+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
360+
),
361+
],
327362
name='Bank of Dave',
328363
)
329364

β€Žsync-for-expenses/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,4 +686,14 @@ Based on:
686686
### Generated
687687
- [python v5.0.0] sync-for-expenses
688688
### Releases
689-
- [PyPI v5.0.0] https://pypi.org/project/codat-sync-for-expenses/5.0.0 - sync-for-expenses
689+
- [PyPI v5.0.0] https://pypi.org/project/codat-sync-for-expenses/5.0.0 - sync-for-expenses
690+
691+
## 2024-02-04 18:09:14
692+
### Changes
693+
Based on:
694+
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
695+
- Speakeasy CLI 1.166.0 (2.248.6) https://github.com/speakeasy-api/speakeasy
696+
### Generated
697+
- [python v6.0.0] sync-for-expenses
698+
### Releases
699+
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-expenses/6.0.0 - sync-for-expenses

β€Žsync-for-expenses/USAGE.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
1111

1212
req = shared.CompanyRequestBody(
1313
description='Requested early access to the new financing scheme.',
14+
groups=[
15+
shared.GroupItems(
16+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
17+
),
18+
],
1419
name='Bank of Dave',
1520
)
1621

sync-for-expenses/docs/models/shared/account.md renamed to sync-for-expenses/docs/models/shared/accountingaccount.md

Lines changed: 5 additions & 3 deletions
Large diffs are not rendered by default.

β€Žsync-for-expenses/docs/models/shared/accountingcustomer.mdβ€Ž

Lines changed: 33 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)