Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions sync-for-expenses/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
lockVersion: 2.0.0
id: a2c830ee-4f93-4e8e-8f01-48d0991317f5
management:
docChecksum: fdc7285c8f3a9d1b51e0ac7f1c98ee14
docChecksum: cd6fa6671764b38bed9a8592c0f117ad
docVersion: prealpha
speakeasyVersion: internal
generationVersion: 2.248.6
releaseVersion: 6.0.0
configChecksum: 5656ea4200600af8771233f63ca99e99
generationVersion: 2.257.2
releaseVersion: 6.0.1
configChecksum: 8408f3e353fbd3cd90617a531d65c958
repoURL: https://github.com/codatio/client-sdk-python.git
repoSubDirectory: sync-for-expenses
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-expenses
published: true
features:
python:
constsAndDefaults: 0.1.2
core: 4.4.4
core: 4.4.6
deprecations: 2.81.1
examples: 2.81.3
globalSecurity: 2.83.2
globalServerURLs: 2.82.1
inputOutputModels: 2.83.0
inputOutputModels: 2.83.1
nameOverrides: 2.81.1
retries: 2.82.1
generatedFiles:
Expand Down Expand Up @@ -89,6 +89,8 @@ generatedFiles:
- src/codatsyncexpenses/models/shared/connection.py
- src/codatsyncexpenses/models/shared/dataconnectionstatus.py
- src/codatsyncexpenses/models/shared/dataconnectionerror.py
- src/codatsyncexpenses/models/shared/errorvalidation.py
- src/codatsyncexpenses/models/shared/errorvalidationitem.py
- src/codatsyncexpenses/models/shared/companyrequestbody.py
- src/codatsyncexpenses/models/shared/group_items.py
- src/codatsyncexpenses/models/shared/companies.py
Expand Down Expand Up @@ -272,6 +274,8 @@ generatedFiles:
- docs/models/shared/connection.md
- docs/models/shared/dataconnectionstatus.md
- docs/models/shared/dataconnectionerror.md
- docs/models/shared/errorvalidation.md
- docs/models/shared/errorvalidationitem.md
- docs/models/shared/companyrequestbody.md
- docs/models/shared/groupitems.md
- docs/models/shared/companies.md
Expand Down
55 changes: 10 additions & 45 deletions sync-for-expenses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand Down Expand Up @@ -144,13 +139,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req,
Expand All @@ -175,13 +165,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand All @@ -206,7 +191,7 @@ Handling errors in this SDK should largely match your expectations. All operati

```python
import codatsyncexpenses
from codatsyncexpenses.models import shared
from codatsyncexpenses.models import errors, shared

s = codatsyncexpenses.CodatSyncExpenses(
security=shared.Security(
Expand All @@ -215,23 +200,18 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = None
try:
res = s.companies.create(req)
except errors.ErrorMessage as e:
print(e) # handle exception
# handle exception
raise(e)
except errors.SDKError as e:
print(e) # handle exception
# handle exception
raise(e)

if res.company is not None:
Expand Down Expand Up @@ -265,13 +245,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand All @@ -297,13 +272,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand Down Expand Up @@ -353,13 +323,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand Down
12 changes: 11 additions & 1 deletion sync-for-expenses/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,14 @@ Based on:
### Generated
- [python v6.0.0] sync-for-expenses
### Releases
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-expenses/6.0.0 - sync-for-expenses
- [PyPI v6.0.0] https://pypi.org/project/codat-sync-for-expenses/6.0.0 - sync-for-expenses

## 2024-02-14 10:44:06
### Changes
Based on:
- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml
- Speakeasy CLI 1.179.0 (2.257.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v6.0.1] sync-for-expenses
### Releases
- [PyPI v6.0.1] https://pypi.org/project/codat-sync-for-expenses/6.0.1 - sync-for-expenses
7 changes: 1 addition & 6 deletions sync-for-expenses/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ s = codatsyncexpenses.CodatSyncExpenses(
)

req = shared.CompanyRequestBody(
description='Requested early access to the new financing scheme.',
groups=[
shared.GroupItems(
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
),
],
name='Bank of Dave',
description='Requested early access to the new financing scheme.',
)

res = s.companies.create(req)
Expand Down
17 changes: 9 additions & 8 deletions sync-for-expenses/docs/models/errors/errormessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ The request made is not valid.

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
| `validation` | [Optional[shared.ErrorValidation]](../../models/shared/errorvalidation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. |
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
| `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | |
| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
Loading