diff --git a/sync-for-expenses/.speakeasy/gen.lock b/sync-for-expenses/.speakeasy/gen.lock
index 618318d94..7d2378632 100755
--- a/sync-for-expenses/.speakeasy/gen.lock
+++ b/sync-for-expenses/.speakeasy/gen.lock
@@ -1,12 +1,12 @@
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
@@ -14,12 +14,12 @@ management:
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:
@@ -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
@@ -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
diff --git a/sync-for-expenses/README.md b/sync-for-expenses/README.md
index 88a088a59..7de8ffc77 100755
--- a/sync-for-expenses/README.md
+++ b/sync-for-expenses/README.md
@@ -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)
@@ -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,
@@ -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)
@@ -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(
@@ -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:
@@ -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)
@@ -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)
@@ -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)
diff --git a/sync-for-expenses/RELEASES.md b/sync-for-expenses/RELEASES.md
index 5f0702c16..6f29ea72b 100644
--- a/sync-for-expenses/RELEASES.md
+++ b/sync-for-expenses/RELEASES.md
@@ -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
\ No newline at end of file
+- [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
\ No newline at end of file
diff --git a/sync-for-expenses/USAGE.md b/sync-for-expenses/USAGE.md
index e357c53c8..e34fe6b8d 100644
--- a/sync-for-expenses/USAGE.md
+++ b/sync-for-expenses/USAGE.md
@@ -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)
diff --git a/sync-for-expenses/docs/models/errors/errormessage.md b/sync-for-expenses/docs/models/errors/errormessage.md
index a2631711d..4c73e63ee 100644
--- a/sync-for-expenses/docs/models/errors/errormessage.md
+++ b/sync-for-expenses/docs/models/errors/errormessage.md
@@ -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. |
\ No newline at end of file
+| 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. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createaccountrequest.md b/sync-for-expenses/docs/models/operations/createaccountrequest.md
index f8733acf4..2bf17b3d4 100644
--- a/sync-for-expenses/docs/models/operations/createaccountrequest.md
+++ b/sync-for-expenses/docs/models/operations/createaccountrequest.md
@@ -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. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createaccountresponse.md b/sync-for-expenses/docs/models/operations/createaccountresponse.md
index c98c449ea..e7025bac2 100644
--- a/sync-for-expenses/docs/models/operations/createaccountresponse.md
+++ b/sync-for-expenses/docs/models/operations/createaccountresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `create_account_response` | [Optional[shared.CreateAccountResponse]](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `create_account_response` | [Optional[shared.CreateAccountResponse]](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createcompanyresponse.md b/sync-for-expenses/docs/models/operations/createcompanyresponse.md
index 509542849..faee951b5 100644
--- a/sync-for-expenses/docs/models/operations/createcompanyresponse.md
+++ b/sync-for-expenses/docs/models/operations/createcompanyresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK | {"id":"0498e921-9b53-4396-a412-4f2f5983b0a2","name":"string","platform":"string","redirect":"https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739","lastSync":"2022-01-01T12:00:00.000Z","created":"2022-01-01T12:00:00.000Z","createdByUserName":"string","dataConnections":[{"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"}],"groups":[{"id":"d7a6c4b4-dc87-45f6-b803-62f466398680"}]} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createconnectionrequest.md b/sync-for-expenses/docs/models/operations/createconnectionrequest.md
index 0998495bf..ff26e52b6 100644
--- a/sync-for-expenses/docs/models/operations/createconnectionrequest.md
+++ b/sync-for-expenses/docs/models/operations/createconnectionrequest.md
@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
-| `request_body` | [Optional[operations.CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | |
-| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
\ No newline at end of file
+| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `request_body` | [Optional[operations.CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createconnectionresponse.md b/sync-for-expenses/docs/models/operations/createconnectionresponse.md
index 4f38451fa..4d113122e 100644
--- a/sync-for-expenses/docs/models/operations/createconnectionresponse.md
+++ b/sync-for-expenses/docs/models/operations/createconnectionresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK | {"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createcustomerrequest.md b/sync-for-expenses/docs/models/operations/createcustomerrequest.md
index 1d3602c2c..1d5367283 100644
--- a/sync-for-expenses/docs/models/operations/createcustomerrequest.md
+++ b/sync-for-expenses/docs/models/operations/createcustomerrequest.md
@@ -5,8 +5,8 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
-| `customer` | [Optional[shared.Customer]](../../models/shared/customer.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 |
+| `customer` | [Optional[shared.Customer]](../../models/shared/customer.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. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createcustomerresponse.md b/sync-for-expenses/docs/models/operations/createcustomerresponse.md
index d13700cba..36222dc08 100644
--- a/sync-for-expenses/docs/models/operations/createcustomerresponse.md
+++ b/sync-for-expenses/docs/models/operations/createcustomerresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `create_customer_response` | [Optional[shared.CreateCustomerResponse]](../../models/shared/createcustomerresponse.md) | :heavy_minus_sign: | Success |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `create_customer_response` | [Optional[shared.CreateCustomerResponse]](../../models/shared/createcustomerresponse.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md
index c77505081..3c14bf266 100644
--- a/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md
+++ b/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md
@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
-| `create_expense_request` | [Optional[shared.CreateExpenseRequest]](../../models/shared/createexpenserequest.md) | :heavy_minus_sign: | N/A | |
-| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
\ No newline at end of file
+| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `create_expense_request` | [Optional[shared.CreateExpenseRequest]](../../models/shared/createexpenserequest.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createexpensetransactionresponse.md b/sync-for-expenses/docs/models/operations/createexpensetransactionresponse.md
index 8f724ef84..19e7d2aa9 100644
--- a/sync-for-expenses/docs/models/operations/createexpensetransactionresponse.md
+++ b/sync-for-expenses/docs/models/operations/createexpensetransactionresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `create_expense_response` | [Optional[shared.CreateExpenseResponse]](../../models/shared/createexpenseresponse.md) | :heavy_minus_sign: | OK |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `create_expense_response` | [Optional[shared.CreateExpenseResponse]](../../models/shared/createexpenseresponse.md) | :heavy_minus_sign: | OK |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createpartnerexpenseconnectionresponse.md b/sync-for-expenses/docs/models/operations/createpartnerexpenseconnectionresponse.md
index 8cc71b0a9..9698402c8 100644
--- a/sync-for-expenses/docs/models/operations/createpartnerexpenseconnectionresponse.md
+++ b/sync-for-expenses/docs/models/operations/createpartnerexpenseconnectionresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | Success |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | Success | {"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createsupplierrequest.md b/sync-for-expenses/docs/models/operations/createsupplierrequest.md
index 52d43571a..72cfe4315 100644
--- a/sync-for-expenses/docs/models/operations/createsupplierrequest.md
+++ b/sync-for-expenses/docs/models/operations/createsupplierrequest.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description | Example |
-| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
-| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.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 |
-| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `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 |
+| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | {"id":"C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F","supplierName":"Kelly's Industrial Supplies","contactName":"Kelly's Industrial Supplies","emailAddress":"sales@kellysupplies.com","phone":"07999 999999","addresses":[{"type":"Billing","line1":"Unit 51","line2":"Bakersfield Industrial Estate","city":"Bakersfield","region":"California","country":"USA","postalcode":"93308"}],"registrationNumber":"string","taxNumber":"string","status":"Unknown","defaultCurrency":"string","metadata":{"isDeleted":true},"supplementalData":{"content":{"property1":{"property1":null,"property2":null},"property2":{"property1":null,"property2":null}}},"modifiedDate":"2022-10-23T00:00:00Z","sourceModifiedDate":"2022-10-23T00:00:00Z"} |
+| `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. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/createsupplierresponse.md b/sync-for-expenses/docs/models/operations/createsupplierresponse.md
index 62b86c271..f86dd97c9 100644
--- a/sync-for-expenses/docs/models/operations/createsupplierresponse.md
+++ b/sync-for-expenses/docs/models/operations/createsupplierresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `create_supplier_response` | [Optional[shared.CreateSupplierResponse]](../../models/shared/createsupplierresponse.md) | :heavy_minus_sign: | Success |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `create_supplier_response` | [Optional[shared.CreateSupplierResponse]](../../models/shared/createsupplierresponse.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getcompanyconfigurationresponse.md b/sync-for-expenses/docs/models/operations/getcompanyconfigurationresponse.md
index 3bee465b8..2d592d881 100644
--- a/sync-for-expenses/docs/models/operations/getcompanyconfigurationresponse.md
+++ b/sync-for-expenses/docs/models/operations/getcompanyconfigurationresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getcompanyresponse.md b/sync-for-expenses/docs/models/operations/getcompanyresponse.md
index 98fd19b23..9b44863d2 100644
--- a/sync-for-expenses/docs/models/operations/getcompanyresponse.md
+++ b/sync-for-expenses/docs/models/operations/getcompanyresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK | {"id":"0498e921-9b53-4396-a412-4f2f5983b0a2","name":"string","platform":"string","redirect":"https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739","lastSync":"2022-01-01T12:00:00.000Z","created":"2022-01-01T12:00:00.000Z","createdByUserName":"string","dataConnections":[{"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"}],"groups":[{"id":"d7a6c4b4-dc87-45f6-b803-62f466398680"}]} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getconnectionresponse.md b/sync-for-expenses/docs/models/operations/getconnectionresponse.md
index 4dd62a7a6..66e3f65f1 100644
--- a/sync-for-expenses/docs/models/operations/getconnectionresponse.md
+++ b/sync-for-expenses/docs/models/operations/getconnectionresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK | {"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getcreatechartofaccountsmodelresponse.md b/sync-for-expenses/docs/models/operations/getcreatechartofaccountsmodelresponse.md
index 9ba81a42b..c54480aae 100644
--- a/sync-for-expenses/docs/models/operations/getcreatechartofaccountsmodelresponse.md
+++ b/sync-for-expenses/docs/models/operations/getcreatechartofaccountsmodelresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `push_option` | [Optional[shared.PushOption]](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `push_option` | [Optional[shared.PushOption]](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getcustomerresponse.md b/sync-for-expenses/docs/models/operations/getcustomerresponse.md
index e2d29bc72..8991196c1 100644
--- a/sync-for-expenses/docs/models/operations/getcustomerresponse.md
+++ b/sync-for-expenses/docs/models/operations/getcustomerresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | Success |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getdatastatusresponse.md b/sync-for-expenses/docs/models/operations/getdatastatusresponse.md
index ecc77b87b..6cb313174 100644
--- a/sync-for-expenses/docs/models/operations/getdatastatusresponse.md
+++ b/sync-for-expenses/docs/models/operations/getdatastatusresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `data_statuses` | Dict[str, [shared.DataStatus](../../models/shared/datastatus.md)] | :heavy_minus_sign: | OK |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `data_statuses` | Dict[str, [shared.DataStatus](../../models/shared/datastatus.md)] | :heavy_minus_sign: | OK |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getlastsuccessfulsyncresponse.md b/sync-for-expenses/docs/models/operations/getlastsuccessfulsyncresponse.md
index 05e7bbc95..afd005b68 100644
--- a/sync-for-expenses/docs/models/operations/getlastsuccessfulsyncresponse.md
+++ b/sync-for-expenses/docs/models/operations/getlastsuccessfulsyncresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getlatestsyncresponse.md b/sync-for-expenses/docs/models/operations/getlatestsyncresponse.md
index 14ad8ea02..2b631cac5 100644
--- a/sync-for-expenses/docs/models/operations/getlatestsyncresponse.md
+++ b/sync-for-expenses/docs/models/operations/getlatestsyncresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getmappingoptionsresponse.md b/sync-for-expenses/docs/models/operations/getmappingoptionsresponse.md
index 872806635..fd3d47cf0 100644
--- a/sync-for-expenses/docs/models/operations/getmappingoptionsresponse.md
+++ b/sync-for-expenses/docs/models/operations/getmappingoptionsresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `mapping_options` | [Optional[shared.MappingOptions]](../../models/shared/mappingoptions.md) | :heavy_minus_sign: | Success |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `mapping_options` | [Optional[shared.MappingOptions]](../../models/shared/mappingoptions.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getpulloperationresponse.md b/sync-for-expenses/docs/models/operations/getpulloperationresponse.md
index 6ed2cf572..1ee27f4e4 100644
--- a/sync-for-expenses/docs/models/operations/getpulloperationresponse.md
+++ b/sync-for-expenses/docs/models/operations/getpulloperationresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `pull_operation` | [Optional[shared.PullOperation]](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `pull_operation` | [Optional[shared.PullOperation]](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK | {"id":"97d60846-f07a-4d42-b5a0-0bdcc6ebf56b","companyId":"4645bd78-8988-45bc-ac9e-67ba5df6e4e5","connectionId":"51baa045-4836-4317-a42e-3542e991e581","dataType":"invoices","status":"Initial","statusDescription":"Paused until 2022-10-23T00:00:00.000Z","requested":"2022-11-14T11:18:37.2798351Z","progress":10,"isCompleted":false,"isErrored":false} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getpushoperationresponse.md b/sync-for-expenses/docs/models/operations/getpushoperationresponse.md
index bfc9ae726..17e937758 100644
--- a/sync-for-expenses/docs/models/operations/getpushoperationresponse.md
+++ b/sync-for-expenses/docs/models/operations/getpushoperationresponse.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getsupplierresponse.md b/sync-for-expenses/docs/models/operations/getsupplierresponse.md
index 267850d07..feeab839e 100644
--- a/sync-for-expenses/docs/models/operations/getsupplierresponse.md
+++ b/sync-for-expenses/docs/models/operations/getsupplierresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
-| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | Success | {"id":"C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F","supplierName":"Kelly's Industrial Supplies","contactName":"Kelly's Industrial Supplies","emailAddress":"sales@kellysupplies.com","phone":"07999 999999","addresses":[{"type":"Billing","line1":"Unit 51","line2":"Bakersfield Industrial Estate","city":"Bakersfield","region":"California","country":"USA","postalcode":"93308"}],"registrationNumber":"string","taxNumber":"string","status":"Unknown","defaultCurrency":"string","metadata":{"isDeleted":true},"supplementalData":{"content":{"property1":{"property1":null,"property2":null},"property2":{"property1":null,"property2":null}}},"modifiedDate":"2022-10-23T00:00:00Z","sourceModifiedDate":"2022-10-23T00:00:00Z"} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/getsyncbyidresponse.md b/sync-for-expenses/docs/models/operations/getsyncbyidresponse.md
index b07ccd872..ae491be82 100644
--- a/sync-for-expenses/docs/models/operations/getsyncbyidresponse.md
+++ b/sync-for-expenses/docs/models/operations/getsyncbyidresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `company_sync_status` | [Optional[shared.CompanySyncStatus]](../../models/shared/companysyncstatus.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/initiatesyncrequest.md b/sync-for-expenses/docs/models/operations/initiatesyncrequest.md
index b16459728..6b45d34dc 100644
--- a/sync-for-expenses/docs/models/operations/initiatesyncrequest.md
+++ b/sync-for-expenses/docs/models/operations/initiatesyncrequest.md
@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
-| `initiate_sync` | [Optional[shared.InitiateSync]](../../models/shared/initiatesync.md) | :heavy_minus_sign: | N/A | |
-| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
\ No newline at end of file
+| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `initiate_sync` | [Optional[shared.InitiateSync]](../../models/shared/initiatesync.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listcompaniesresponse.md b/sync-for-expenses/docs/models/operations/listcompaniesresponse.md
index 42b07950c..7abc40ecd 100644
--- a/sync-for-expenses/docs/models/operations/listcompaniesresponse.md
+++ b/sync-for-expenses/docs/models/operations/listcompaniesresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `companies` | [Optional[shared.Companies]](../../models/shared/companies.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `companies` | [Optional[shared.Companies]](../../models/shared/companies.md) | :heavy_minus_sign: | OK | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listconnectionsresponse.md b/sync-for-expenses/docs/models/operations/listconnectionsresponse.md
index dacec2f64..78b8ddd89 100644
--- a/sync-for-expenses/docs/models/operations/listconnectionsresponse.md
+++ b/sync-for-expenses/docs/models/operations/listconnectionsresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `connections` | [Optional[shared.Connections]](../../models/shared/connections.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `connections` | [Optional[shared.Connections]](../../models/shared/connections.md) | :heavy_minus_sign: | OK | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listcustomersresponse.md b/sync-for-expenses/docs/models/operations/listcustomersresponse.md
index e82eedb8d..caf030417 100644
--- a/sync-for-expenses/docs/models/operations/listcustomersresponse.md
+++ b/sync-for-expenses/docs/models/operations/listcustomersresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `customers` | [Optional[shared.Customers]](../../models/shared/customers.md) | :heavy_minus_sign: | Success |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `customers` | [Optional[shared.Customers]](../../models/shared/customers.md) | :heavy_minus_sign: | Success | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listpulloperationsresponse.md b/sync-for-expenses/docs/models/operations/listpulloperationsresponse.md
index b58dc8961..b51df770a 100644
--- a/sync-for-expenses/docs/models/operations/listpulloperationsresponse.md
+++ b/sync-for-expenses/docs/models/operations/listpulloperationsresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `pull_operations` | [Optional[shared.PullOperations]](../../models/shared/pulloperations.md) | :heavy_minus_sign: | OK |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `pull_operations` | [Optional[shared.PullOperations]](../../models/shared/pulloperations.md) | :heavy_minus_sign: | OK | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listpushoperationsresponse.md b/sync-for-expenses/docs/models/operations/listpushoperationsresponse.md
index 73633c436..b2097f793 100644
--- a/sync-for-expenses/docs/models/operations/listpushoperationsresponse.md
+++ b/sync-for-expenses/docs/models/operations/listpushoperationsresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `push_operations` | [Optional[shared.PushOperations]](../../models/shared/pushoperations.md) | :heavy_minus_sign: | OK |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `push_operations` | [Optional[shared.PushOperations]](../../models/shared/pushoperations.md) | :heavy_minus_sign: | OK | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listsuppliersresponse.md b/sync-for-expenses/docs/models/operations/listsuppliersresponse.md
index 4cb4e0ce8..93cef3bf5 100644
--- a/sync-for-expenses/docs/models/operations/listsuppliersresponse.md
+++ b/sync-for-expenses/docs/models/operations/listsuppliersresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
-| `suppliers` | [Optional[shared.Suppliers]](../../models/shared/suppliers.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `suppliers` | [Optional[shared.Suppliers]](../../models/shared/suppliers.md) | :heavy_minus_sign: | Success | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md b/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md
index 3293bbae1..6a4beb9fc 100644
--- a/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md
+++ b/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 |
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 |
-| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 |
-| `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 |
\ No newline at end of file
+| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/listsynctransactionsresponse.md b/sync-for-expenses/docs/models/operations/listsynctransactionsresponse.md
index e8102e15c..7f38e0079 100644
--- a/sync-for-expenses/docs/models/operations/listsynctransactionsresponse.md
+++ b/sync-for-expenses/docs/models/operations/listsynctransactionsresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
-| `transactions` | [Optional[shared.Transactions]](../../models/shared/transactions.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `transactions` | [Optional[shared.Transactions]](../../models/shared/transactions.md) | :heavy_minus_sign: | Success | {"_links":{"pageNumber":1,"pageSize":10,"totalResults":1,"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md b/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md
index 1047c2228..35df09d55 100644
--- a/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md
+++ b/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md
@@ -6,5 +6,5 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `connection_id` | *Optional[str]* | :heavy_minus_sign: | Optionally, provide a data connection id to only queue pull operations on that connection. | |
-| `data_type` | [shared.SchemaDataType](../../models/shared/schemadatatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices |
\ No newline at end of file
+| `data_type` | [shared.SchemaDataType](../../models/shared/schemadatatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices |
+| `connection_id` | *Optional[str]* | :heavy_minus_sign: | Optionally, provide a data connection id to only queue pull operations on that connection. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/refreshdatatyperesponse.md b/sync-for-expenses/docs/models/operations/refreshdatatyperesponse.md
index 7be7f61b1..7ec003a19 100644
--- a/sync-for-expenses/docs/models/operations/refreshdatatyperesponse.md
+++ b/sync-for-expenses/docs/models/operations/refreshdatatyperesponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `pull_operation` | [Optional[shared.PullOperation]](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `pull_operation` | [Optional[shared.PullOperation]](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK | {"id":"97d60846-f07a-4d42-b5a0-0bdcc6ebf56b","companyId":"4645bd78-8988-45bc-ac9e-67ba5df6e4e5","connectionId":"51baa045-4836-4317-a42e-3542e991e581","dataType":"invoices","status":"Initial","statusDescription":"Paused until 2022-10-23T00:00:00.000Z","requested":"2022-11-14T11:18:37.2798351Z","progress":10,"isCompleted":false,"isErrored":false} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md b/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md
index 1afe2e73f..bac7ddc03 100644
--- a/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md
+++ b/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md
@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
-| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | N/A | |
-| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
\ No newline at end of file
+| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/setcompanyconfigurationresponse.md b/sync-for-expenses/docs/models/operations/setcompanyconfigurationresponse.md
index 18295e29e..9a20b3fe1 100644
--- a/sync-for-expenses/docs/models/operations/setcompanyconfigurationresponse.md
+++ b/sync-for-expenses/docs/models/operations/setcompanyconfigurationresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | Success |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | Success |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md b/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md
index 37c72c7bc..79d8b2072 100644
--- a/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md
+++ b/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md
@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
-| `request_body` | [Optional[operations.UnlinkConnectionUpdateConnection]](../../models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | |
| `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 |
\ No newline at end of file
+| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
+| `request_body` | [Optional[operations.UnlinkConnectionUpdateConnection]](../../models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/unlinkconnectionresponse.md b/sync-for-expenses/docs/models/operations/unlinkconnectionresponse.md
index d1754acb5..08eb976b5 100644
--- a/sync-for-expenses/docs/models/operations/unlinkconnectionresponse.md
+++ b/sync-for-expenses/docs/models/operations/unlinkconnectionresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `connection` | [Optional[shared.Connection]](../../models/shared/connection.md) | :heavy_minus_sign: | OK | {"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/updatecompanyrequest.md b/sync-for-expenses/docs/models/operations/updatecompanyrequest.md
index 7b76c7562..8ee99180f 100644
--- a/sync-for-expenses/docs/models/operations/updatecompanyrequest.md
+++ b/sync-for-expenses/docs/models/operations/updatecompanyrequest.md
@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
-| `company_request_body` | [Optional[shared.CompanyRequestBody]](../../models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | |
-| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
\ No newline at end of file
+| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `company_request_body` | [Optional[shared.CompanyRequestBody]](../../models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/updatecompanyresponse.md b/sync-for-expenses/docs/models/operations/updatecompanyresponse.md
index d299179e8..3005c9e88 100644
--- a/sync-for-expenses/docs/models/operations/updatecompanyresponse.md
+++ b/sync-for-expenses/docs/models/operations/updatecompanyresponse.md
@@ -3,9 +3,9 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK |
-| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
-| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
+| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
+| `company` | [Optional[shared.Company]](../../models/shared/company.md) | :heavy_minus_sign: | OK | {"id":"0498e921-9b53-4396-a412-4f2f5983b0a2","name":"string","platform":"string","redirect":"https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739","lastSync":"2022-01-01T12:00:00.000Z","created":"2022-01-01T12:00:00.000Z","createdByUserName":"string","dataConnections":[{"id":"ee2eb431-c0fa-4dc9-93fa-d29781c12bcd","integrationId":"bf083d72-62c7-493e-aec9-81b4dbba7e2c","integrationKey":"dfxm","sourceId":"bdd831ce-eebd-4896-89a7-20e5ee8989ee","platformName":"Basiq","linkUrl":"https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start","status":"Linked","lastSync":"2022-10-27T10:22:43.6464237Z","created":"2022-10-27T09:53:29Z","sourceType":"Banking"}],"groups":[{"id":"d7a6c4b4-dc87-45f6-b803-62f466398680"}]} |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/updatecustomerrequest.md b/sync-for-expenses/docs/models/operations/updatecustomerrequest.md
index 8de2214ec..8c3f44280 100644
--- a/sync-for-expenses/docs/models/operations/updatecustomerrequest.md
+++ b/sync-for-expenses/docs/models/operations/updatecustomerrequest.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `customer` | [Optional[shared.Customer]](../../models/shared/customer.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 |
| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | |
+| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | N/A | |
+| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
| `force_update` | *Optional[bool]* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md
index 44a52487c..7b6577be1 100644
--- a/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md
+++ b/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md
@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
-| `update_expense_request` | [Optional[shared.UpdateExpenseRequest]](../../models/shared/updateexpenserequest.md) | :heavy_minus_sign: | N/A | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
\ No newline at end of file
+| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
+| `update_expense_request` | [Optional[shared.UpdateExpenseRequest]](../../models/shared/updateexpenserequest.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/updatesupplierrequest.md b/sync-for-expenses/docs/models/operations/updatesupplierrequest.md
index 5e94a53f2..110fbde5b 100644
--- a/sync-for-expenses/docs/models/operations/updatesupplierrequest.md
+++ b/sync-for-expenses/docs/models/operations/updatesupplierrequest.md
@@ -3,12 +3,12 @@
## Fields
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.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 |
-| `force_update` | *Optional[bool]* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | |
-| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | 13d946f0-c5d5-42bc-b092-97ece17923ab |
-| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `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 |
+| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | 13d946f0-c5d5-42bc-b092-97ece17923ab |
+| `supplier` | [Optional[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | {"id":"C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F","supplierName":"Kelly's Industrial Supplies","contactName":"Kelly's Industrial Supplies","emailAddress":"sales@kellysupplies.com","phone":"07999 999999","addresses":[{"type":"Billing","line1":"Unit 51","line2":"Bakersfield Industrial Estate","city":"Bakersfield","region":"California","country":"USA","postalcode":"93308"}],"registrationNumber":"string","taxNumber":"string","status":"Unknown","defaultCurrency":"string","metadata":{"isDeleted":true},"supplementalData":{"content":{"property1":{"property1":null,"property2":null},"property2":{"property1":null,"property2":null}}},"modifiedDate":"2022-10-23T00:00:00Z","sourceModifiedDate":"2022-10-23T00:00:00Z"} |
+| `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | |
+| `force_update` | *Optional[bool]* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | |
+| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md
index 747fb2886..3ed90fbb2 100644
--- a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md
+++ b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
-| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 |
-| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
\ No newline at end of file
+| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee |
+| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentresponse.md b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentresponse.md
index 1c5ddb230..10e6d2663 100644
--- a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentresponse.md
+++ b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentresponse.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `attachment` | [Optional[shared.Attachment]](../../models/shared/attachment.md) | :heavy_minus_sign: | OK |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
\ No newline at end of file
+| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
+| `attachment` | [Optional[shared.Attachment]](../../models/shared/attachment.md) | :heavy_minus_sign: | OK |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/accountingaddress.md b/sync-for-expenses/docs/models/shared/accountingaddress.md
index d1f4f82ec..f9fa117c8 100644
--- a/sync-for-expenses/docs/models/shared/accountingaddress.md
+++ b/sync-for-expenses/docs/models/shared/accountingaddress.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
+| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
| `city` | *Optional[str]* | :heavy_minus_sign: | City of the customer address. |
| `country` | *Optional[str]* | :heavy_minus_sign: | Country of the customer address. |
| `line1` | *Optional[str]* | :heavy_minus_sign: | Line 1 of the customer address. |
| `line2` | *Optional[str]* | :heavy_minus_sign: | Line 2 of the customer address. |
| `postal_code` | *Optional[str]* | :heavy_minus_sign: | Postal code or zip code. |
-| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
-| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
\ No newline at end of file
+| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/accountingcustomer.md b/sync-for-expenses/docs/models/shared/accountingcustomer.md
index 8fa50ea52..34bebd153 100644
--- a/sync-for-expenses/docs/models/shared/accountingcustomer.md
+++ b/sync-for-expenses/docs/models/shared/accountingcustomer.md
@@ -16,6 +16,7 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `addresses` | List[[shared.CreateCustomerResponseAccountingAddress](../../models/shared/createcustomerresponseaccountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | |
| `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | |
@@ -28,6 +29,5 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/accountingsupplier.md b/sync-for-expenses/docs/models/shared/accountingsupplier.md
index c0d289183..ad1f945f7 100644
--- a/sync-for-expenses/docs/models/shared/accountingsupplier.md
+++ b/sync-for-expenses/docs/models/shared/accountingsupplier.md
@@ -13,6 +13,7 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | |
| `default_currency` | *Optional[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | |
@@ -23,7 +24,6 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `supplier_name` | *Optional[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Supplier's company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/companies.md b/sync-for-expenses/docs/models/shared/companies.md
index 05e8c5131..c19c46de5 100644
--- a/sync-for-expenses/docs/models/shared/companies.md
+++ b/sync-for-expenses/docs/models/shared/companies.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.Company](../../models/shared/company.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.Company](../../models/shared/company.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/company.md b/sync-for-expenses/docs/models/shared/company.md
index e82fb2851..4ea964cc6 100644
--- a/sync-for-expenses/docs/models/shared/company.md
+++ b/sync-for-expenses/docs/models/shared/company.md
@@ -11,13 +11,13 @@ When you create a company, you can specify a `name` and we will automatically ge
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `name` | *str* | :heavy_check_mark: | The name of the company | Codat Ltd. |
+| `redirect` | *str* | :heavy_check_mark: | The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company. | https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739 |
| `created` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `created_by_user_name` | *Optional[str]* | :heavy_minus_sign: | Name of user that created the company in Codat. | |
| `data_connections` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | |
| `description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. |
| `groups` | List[[shared.GroupReference](../../models/shared/groupreference.md)] | :heavy_minus_sign: | An array of groups the company has been assigned to. | |
-| `id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `name` | *str* | :heavy_check_mark: | The name of the company | Codat Ltd. |
-| ~~`platform`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
`platformKeys` name used when creating the company. | Xero |
-| `redirect` | *str* | :heavy_check_mark: | The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company. | https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739 |
\ No newline at end of file
+| ~~`platform`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
`platformKeys` name used when creating the company. | Xero |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/companyrequestbody.md b/sync-for-expenses/docs/models/shared/companyrequestbody.md
index 91e845d9e..40bf2f400 100644
--- a/sync-for-expenses/docs/models/shared/companyrequestbody.md
+++ b/sync-for-expenses/docs/models/shared/companyrequestbody.md
@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
+| `name` | *str* | :heavy_check_mark: | Name of company being connected. | Bank of Dave |
| `description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. |
-| `groups` | List[[shared.GroupItems](../../models/shared/groupitems.md)] | :heavy_minus_sign: | Reference to the groups that the company is assigned to. | |
-| `name` | *str* | :heavy_check_mark: | Name of company being connected. | Bank of Dave |
\ No newline at end of file
+| `groups` | List[[shared.GroupItems](../../models/shared/groupitems.md)] | :heavy_minus_sign: | Reference to the groups that the company is assigned to. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/connection.md b/sync-for-expenses/docs/models/shared/connection.md
index 3b8fb01fe..5a29ae5cb 100644
--- a/sync-for-expenses/docs/models/shared/connection.md
+++ b/sync-for-expenses/docs/models/shared/connection.md
@@ -16,16 +16,16 @@ Before you can use a data connection to pull or push data, the company must gran
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `additional_properties` | *Optional[Any]* | :heavy_minus_sign: | N/A | |
-| `connection_info` | Dict[str, *str*] | :heavy_minus_sign: | N/A | |
| `created` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data_connection_errors` | List[[shared.DataConnectionError](../../models/shared/dataconnectionerror.md)] | :heavy_minus_sign: | N/A | |
| `id` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
| `integration_id` | *str* | :heavy_check_mark: | A Codat ID representing the integration. | fd321cb6-7963-4506-b873-e99593a45e30 |
| `integration_key` | *str* | :heavy_check_mark: | A unique four-character ID that identifies the platform of the company's data connection. This ensures continuity if the platform changes its name in the future. | |
-| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `link_url` | *str* | :heavy_check_mark: | The link URL your customers can use to authorize access to their business application. | https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start |
| `platform_name` | *str* | :heavy_check_mark: | Name of integration connected to company. | |
| `source_id` | *str* | :heavy_check_mark: | A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. | 35b92968-9851-4095-ad60-395c95cbcba4 |
| `source_type` | [shared.SourceType](../../models/shared/sourcetype.md) | :heavy_check_mark: | The type of platform of the connection. | Accounting |
-| `status` | [shared.DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | |
\ No newline at end of file
+| `status` | [shared.DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | |
+| `additional_properties` | *Optional[Any]* | :heavy_minus_sign: | N/A | |
+| `connection_info` | Dict[str, *str*] | :heavy_minus_sign: | N/A | |
+| `data_connection_errors` | List[[shared.DataConnectionError](../../models/shared/dataconnectionerror.md)] | :heavy_minus_sign: | N/A | |
+| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/connections.md b/sync-for-expenses/docs/models/shared/connections.md
index 5a69d197d..b2e15bef0 100644
--- a/sync-for-expenses/docs/models/shared/connections.md
+++ b/sync-for-expenses/docs/models/shared/connections.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/contact.md b/sync-for-expenses/docs/models/shared/contact.md
index da32b87b8..35a8e7ea2 100644
--- a/sync-for-expenses/docs/models/shared/contact.md
+++ b/sync-for-expenses/docs/models/shared/contact.md
@@ -5,9 +5,9 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `address` | [Optional[shared.Items]](../../models/shared/items.md) | :heavy_minus_sign: | N/A | |
| `email` | *Optional[str]* | :heavy_minus_sign: | Email of a contact for a customer. | |
| `modified_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `name` | *Optional[str]* | :heavy_minus_sign: | Name of a contact for a customer. | |
-| `phone` | List[[shared.Phone](../../models/shared/phone.md)] | :heavy_minus_sign: | An array of Phone numbers. | |
-| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
\ No newline at end of file
+| `phone` | List[[shared.Phone](../../models/shared/phone.md)] | :heavy_minus_sign: | An array of Phone numbers. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/createaccountresponse.md b/sync-for-expenses/docs/models/shared/createaccountresponse.md
index dd5952d1d..e1b4f0bf7 100644
--- a/sync-for-expenses/docs/models/shared/createaccountresponse.md
+++ b/sync-for-expenses/docs/models/shared/createaccountresponse.md
@@ -5,17 +5,17 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data` | [Optional[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :heavy_minus_sign: | N/A | |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data` | [Optional[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :heavy_minus_sign: | N/A | |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/createcustomerresponse.md b/sync-for-expenses/docs/models/shared/createcustomerresponse.md
index a02d812ff..91e9efc62 100644
--- a/sync-for-expenses/docs/models/shared/createcustomerresponse.md
+++ b/sync-for-expenses/docs/models/shared/createcustomerresponse.md
@@ -5,17 +5,17 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data` | [Optional[shared.AccountingCustomer]](../../models/shared/accountingcustomer.md) | :heavy_minus_sign: | N/A | |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data` | [Optional[shared.AccountingCustomer]](../../models/shared/accountingcustomer.md) | :heavy_minus_sign: | N/A | |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/createcustomerresponseaccountingaddress.md b/sync-for-expenses/docs/models/shared/createcustomerresponseaccountingaddress.md
index 45ec7136a..1c73c3931 100644
--- a/sync-for-expenses/docs/models/shared/createcustomerresponseaccountingaddress.md
+++ b/sync-for-expenses/docs/models/shared/createcustomerresponseaccountingaddress.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
+| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
| `city` | *Optional[str]* | :heavy_minus_sign: | City of the customer address. |
| `country` | *Optional[str]* | :heavy_minus_sign: | Country of the customer address. |
| `line1` | *Optional[str]* | :heavy_minus_sign: | Line 1 of the customer address. |
| `line2` | *Optional[str]* | :heavy_minus_sign: | Line 2 of the customer address. |
| `postal_code` | *Optional[str]* | :heavy_minus_sign: | Postal code or zip code. |
-| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
-| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
\ No newline at end of file
+| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/createsupplierresponse.md b/sync-for-expenses/docs/models/shared/createsupplierresponse.md
index 29fe1cbff..56effea05 100644
--- a/sync-for-expenses/docs/models/shared/createsupplierresponse.md
+++ b/sync-for-expenses/docs/models/shared/createsupplierresponse.md
@@ -5,17 +5,17 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data` | [Optional[shared.AccountingSupplier]](../../models/shared/accountingsupplier.md) | :heavy_minus_sign: | N/A | |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data` | [Optional[shared.AccountingSupplier]](../../models/shared/accountingsupplier.md) | :heavy_minus_sign: | N/A | {"id":"C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F","supplierName":"Kelly's Industrial Supplies","contactName":"Kelly's Industrial Supplies","emailAddress":"sales@kellysupplies.com","phone":"07999 999999","addresses":[{"type":"Billing","line1":"Unit 51","line2":"Bakersfield Industrial Estate","city":"Bakersfield","region":"California","country":"USA","postalcode":"93308"}],"registrationNumber":"string","taxNumber":"string","status":"Unknown","defaultCurrency":"string","metadata":{"isDeleted":true},"supplementalData":{"content":{"property1":{"property1":null,"property2":null},"property2":{"property1":null,"property2":null}}},"modifiedDate":"2022-10-23T00:00:00Z","sourceModifiedDate":"2022-10-23T00:00:00Z"} |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/customer.md b/sync-for-expenses/docs/models/shared/customer.md
index e400ced8b..c96c487b7 100644
--- a/sync-for-expenses/docs/models/shared/customer.md
+++ b/sync-for-expenses/docs/models/shared/customer.md
@@ -14,6 +14,7 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `addresses` | List[[shared.AccountingAddress](../../models/shared/accountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | |
| `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | |
@@ -26,6 +27,5 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/customers.md b/sync-for-expenses/docs/models/shared/customers.md
index ca79aa46d..d334764d1 100644
--- a/sync-for-expenses/docs/models/shared/customers.md
+++ b/sync-for-expenses/docs/models/shared/customers.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.Customer](../../models/shared/customer.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.Customer](../../models/shared/customer.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/errorvalidation.md b/sync-for-expenses/docs/models/shared/errorvalidation.md
new file mode 100644
index 000000000..122badd9d
--- /dev/null
+++ b/sync-for-expenses/docs/models/shared/errorvalidation.md
@@ -0,0 +1,11 @@
+# ErrorValidation
+
+A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.
+
+
+## Fields
+
+| Field | Type | Required | Description |
+| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
+| `errors` | List[[shared.ErrorValidationItem](../../models/shared/errorvalidationitem.md)] | :heavy_minus_sign: | N/A |
+| `warnings` | List[[shared.ErrorValidationItem](../../models/shared/errorvalidationitem.md)] | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/errorvalidationitem.md b/sync-for-expenses/docs/models/shared/errorvalidationitem.md
new file mode 100644
index 000000000..346bb51f1
--- /dev/null
+++ b/sync-for-expenses/docs/models/shared/errorvalidationitem.md
@@ -0,0 +1,10 @@
+# ErrorValidationItem
+
+
+## Fields
+
+| Field | Type | Required | Description |
+| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
+| `item_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for a validation item. |
+| `message` | *Optional[str]* | :heavy_minus_sign: | A message outlining validation item's issue. |
+| `validator_name` | *Optional[str]* | :heavy_minus_sign: | Name of validator. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/expensetransaction.md b/sync-for-expenses/docs/models/shared/expensetransaction.md
index 5db1f9144..86e51e22a 100644
--- a/sync-for-expenses/docs/models/shared/expensetransaction.md
+++ b/sync-for-expenses/docs/models/shared/expensetransaction.md
@@ -5,14 +5,14 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `bank_account_ref` | [Optional[shared.BankAccountReference]](../../models/shared/bankaccountreference.md) | :heavy_minus_sign: | N/A | |
-| `contact_ref` | [Optional[shared.ContactRef]](../../models/shared/contactref.md) | :heavy_minus_sign: | N/A | |
| `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP |
-| `currency_rate` | *Optional[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.
Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.
It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.
Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).
For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.
## Examples with base currency of GBP
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|
## Examples with base currency of USD
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|
### Integration-specific details
\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. \| | |
| `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | 4d7c6929-7770-412b-91bb-44d3bc71d111 |
| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `type` | [shared.ExpenseTransactionType](../../models/shared/expensetransactiontype.md) | :heavy_check_mark: | The type of transaction. | Payment |
+| `bank_account_ref` | [Optional[shared.BankAccountReference]](../../models/shared/bankaccountreference.md) | :heavy_minus_sign: | N/A | |
+| `contact_ref` | [Optional[shared.ContactRef]](../../models/shared/contactref.md) | :heavy_minus_sign: | N/A | |
+| `currency_rate` | *Optional[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.
Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.
It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.
Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).
For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.
## Examples with base currency of GBP
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|
## Examples with base currency of USD
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|
### Integration-specific details
\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. \| | |
| `lines` | List[[shared.ExpenseTransactionLine](../../models/shared/expensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | |
| `merchant_name` | *Optional[str]* | :heavy_minus_sign: | Name of the merchant where the purchase took place | Amazon UK |
| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 |
-| `post_as_draft` | *Optional[bool]* | :heavy_minus_sign: | For supported accouting platforms, setting this optional property to true will post the transaction to a drafted state. | |
-| `type` | [shared.ExpenseTransactionType](../../models/shared/expensetransactiontype.md) | :heavy_check_mark: | The type of transaction. | Payment |
\ No newline at end of file
+| `post_as_draft` | *Optional[bool]* | :heavy_minus_sign: | For supported accouting platforms, setting this optional property to true will post the transaction to a drafted state. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/expensetransactionline.md b/sync-for-expenses/docs/models/shared/expensetransactionline.md
index b3df08d1c..2efaaacee 100644
--- a/sync-for-expenses/docs/models/shared/expensetransactionline.md
+++ b/sync-for-expenses/docs/models/shared/expensetransactionline.md
@@ -6,8 +6,8 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `account_ref` | [shared.RecordRef](../../models/shared/recordref.md) | :heavy_check_mark: | N/A | |
-| `invoice_to` | [Optional[shared.InvoiceTo]](../../models/shared/invoiceto.md) | :heavy_minus_sign: | Unique identifier of the customer the expense is billable to. The invoiceTo object is currently only supported for QBO. | |
| `net_amount` | *Decimal* | :heavy_check_mark: | Amount of the line, exclusive of tax. | 110.42 |
| `tax_amount` | *Decimal* | :heavy_check_mark: | Amount of tax for the line. | 14.43 |
+| `invoice_to` | [Optional[shared.InvoiceTo]](../../models/shared/invoiceto.md) | :heavy_minus_sign: | Unique identifier of the customer the expense is billable to. The invoiceTo object is currently only supported for QBO. | |
| `tax_rate_ref` | [Optional[shared.RecordRef]](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | |
| `tracking_refs` | List[[shared.TrackingRef](../../models/shared/trackingref.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/items.md b/sync-for-expenses/docs/models/shared/items.md
index 6c2e07a2e..5df15c285 100644
--- a/sync-for-expenses/docs/models/shared/items.md
+++ b/sync-for-expenses/docs/models/shared/items.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
+| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
| `city` | *Optional[str]* | :heavy_minus_sign: | City of the customer address. |
| `country` | *Optional[str]* | :heavy_minus_sign: | Country of the customer address. |
| `line1` | *Optional[str]* | :heavy_minus_sign: | Line 1 of the customer address. |
| `line2` | *Optional[str]* | :heavy_minus_sign: | Line 2 of the customer address. |
| `postal_code` | *Optional[str]* | :heavy_minus_sign: | Postal code or zip code. |
-| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
-| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
\ No newline at end of file
+| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/links.md b/sync-for-expenses/docs/models/shared/links.md
index 5f80d2652..bfd552f9a 100644
--- a/sync-for-expenses/docs/models/shared/links.md
+++ b/sync-for-expenses/docs/models/shared/links.md
@@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `current` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A |
+| `self_` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A |
| `next` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A |
-| `previous` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A |
-| `self_` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A |
\ No newline at end of file
+| `previous` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pulloperation.md b/sync-for-expenses/docs/models/shared/pulloperation.md
index 629e645ab..8bcdf5d2b 100644
--- a/sync-for-expenses/docs/models/shared/pulloperation.md
+++ b/sync-for-expenses/docs/models/shared/pulloperation.md
@@ -9,14 +9,14 @@ Information about a queued, in progress or completed pull operation.
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier of the company associated to this pull operation. | 22ece347-e5f6-4896-95e0-35a4c7f17023 |
-| `completed` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier of the connection associated to this pull operation. | 50830828-7d39-4367-b0eb-5ddb2de5faa5 |
| `data_type` | *str* | :heavy_check_mark: | The data type you are requesting in a pull operation. | |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about a transient or persistent error. | |
| `id` | *str* | :heavy_check_mark: | Unique identifier of the pull operation. | 943accd0-4247-42d8-865b-363c8629e1da |
| `is_completed` | *bool* | :heavy_check_mark: | `True` if the pull operation is completed successfully. The `isCompleted` property is not queryable. To filter failed pull operations, query by `status!=Complete&&status!=NotSupported` instead. | |
| `is_errored` | *bool* | :heavy_check_mark: | `True` if the pull operation entered an error state. | |
| `progress` | *int* | :heavy_check_mark: | An integer signifying the progress of the pull operation. | |
| `requested` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.Status](../../models/shared/status.md) | :heavy_check_mark: | The current status of the pull operation. | Complete |
+| `completed` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about a transient or persistent error. | |
| `status_description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the dataset status. | Paused until 2022-10-23T00:00:00.000Z |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pulloperations.md b/sync-for-expenses/docs/models/shared/pulloperations.md
index bc8a8c451..75bc96de7 100644
--- a/sync-for-expenses/docs/models/shared/pulloperations.md
+++ b/sync-for-expenses/docs/models/shared/pulloperations.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.PullOperation](../../models/shared/pulloperation.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.PullOperation](../../models/shared/pulloperation.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pushoperation.md b/sync-for-expenses/docs/models/shared/pushoperation.md
index 4dd49b0f0..8ceefbf7f 100644
--- a/sync-for-expenses/docs/models/shared/pushoperation.md
+++ b/sync-for-expenses/docs/models/shared/pushoperation.md
@@ -5,16 +5,16 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pushoperations.md b/sync-for-expenses/docs/models/shared/pushoperations.md
index be6e80331..fbdf79507 100644
--- a/sync-for-expenses/docs/models/shared/pushoperations.md
+++ b/sync-for-expenses/docs/models/shared/pushoperations.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.PushOperation](../../models/shared/pushoperation.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.PushOperation](../../models/shared/pushoperation.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pushoption.md b/sync-for-expenses/docs/models/shared/pushoption.md
index e908d0b28..a41fbc063 100644
--- a/sync-for-expenses/docs/models/shared/pushoption.md
+++ b/sync-for-expenses/docs/models/shared/pushoption.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
-| `description` | *Optional[str]* | :heavy_minus_sign: | A description of the property. |
| `display_name` | *str* | :heavy_check_mark: | The property's display name. |
-| `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A |
-| `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A |
| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. |
| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. |
+| `description` | *Optional[str]* | :heavy_minus_sign: | A description of the property. |
+| `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A |
+| `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A |
| `validation` | [Optional[shared.PushValidationInfo]](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/pushoptionproperty.md b/sync-for-expenses/docs/models/shared/pushoptionproperty.md
index 2bedd19d3..cb20b30fe 100644
--- a/sync-for-expenses/docs/models/shared/pushoptionproperty.md
+++ b/sync-for-expenses/docs/models/shared/pushoptionproperty.md
@@ -7,8 +7,8 @@
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `description` | *str* | :heavy_check_mark: | A description of the property. |
| `display_name` | *str* | :heavy_check_mark: | The property's display name. |
-| `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A |
-| `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A |
| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. |
| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. |
+| `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A |
+| `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A |
| `validation` | [Optional[shared.PushValidationInfo]](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/supplier.md b/sync-for-expenses/docs/models/shared/supplier.md
index 4454fe9ec..88d7c00a5 100644
--- a/sync-for-expenses/docs/models/shared/supplier.md
+++ b/sync-for-expenses/docs/models/shared/supplier.md
@@ -11,6 +11,7 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | |
| `default_currency` | *Optional[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | |
@@ -21,7 +22,6 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `supplier_name` | *Optional[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Supplier's company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/suppliers.md b/sync-for-expenses/docs/models/shared/suppliers.md
index 5b6c7f7c5..c9a9079d6 100644
--- a/sync-for-expenses/docs/models/shared/suppliers.md
+++ b/sync-for-expenses/docs/models/shared/suppliers.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.Supplier](../../models/shared/supplier.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.Supplier](../../models/shared/supplier.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/transactions.md b/sync-for-expenses/docs/models/shared/transactions.md
index f69947d2d..7af32a396 100644
--- a/sync-for-expenses/docs/models/shared/transactions.md
+++ b/sync-for-expenses/docs/models/shared/transactions.md
@@ -3,10 +3,10 @@
## Fields
-| Field | Type | Required | Description |
-| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
-| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A |
-| `page_number` | *int* | :heavy_check_mark: | Current page number. |
-| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. |
-| `results` | List[[shared.Transaction](../../models/shared/transaction.md)] | :heavy_minus_sign: | N/A |
-| `total_results` | *int* | :heavy_check_mark: | Total number of items. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {"self":{"href":"/companies/{id}/data/{dataType}"},"current":{"href":"/companies/{id}/data/{dataType}?page=1&pageSize=10"}} |
+| `page_number` | *int* | :heavy_check_mark: | Current page number. | |
+| `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | |
+| `total_results` | *int* | :heavy_check_mark: | Total number of items. | |
+| `results` | List[[shared.Transaction](../../models/shared/transaction.md)] | :heavy_minus_sign: | N/A | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updatecustomerresponse.md b/sync-for-expenses/docs/models/shared/updatecustomerresponse.md
index 86dc28931..aa815d737 100644
--- a/sync-for-expenses/docs/models/shared/updatecustomerresponse.md
+++ b/sync-for-expenses/docs/models/shared/updatecustomerresponse.md
@@ -5,17 +5,17 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data` | [Optional[shared.UpdateCustomerResponseAccountingCustomer]](../../models/shared/updatecustomerresponseaccountingcustomer.md) | :heavy_minus_sign: | N/A | |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data` | [Optional[shared.UpdateCustomerResponseAccountingCustomer]](../../models/shared/updatecustomerresponseaccountingcustomer.md) | :heavy_minus_sign: | N/A | |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingaddress.md b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingaddress.md
index 049114033..2ae08e6f2 100644
--- a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingaddress.md
+++ b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingaddress.md
@@ -5,10 +5,10 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
+| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
| `city` | *Optional[str]* | :heavy_minus_sign: | City of the customer address. |
| `country` | *Optional[str]* | :heavy_minus_sign: | Country of the customer address. |
| `line1` | *Optional[str]* | :heavy_minus_sign: | Line 1 of the customer address. |
| `line2` | *Optional[str]* | :heavy_minus_sign: | Line 2 of the customer address. |
| `postal_code` | *Optional[str]* | :heavy_minus_sign: | Postal code or zip code. |
-| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
-| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address |
\ No newline at end of file
+| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md
index 91617e1de..5a19f57ac 100644
--- a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md
+++ b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md
@@ -16,6 +16,7 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `addresses` | List[[shared.UpdateCustomerResponseAccountingAddress](../../models/shared/updatecustomerresponseaccountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | |
| `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | |
@@ -28,6 +29,5 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updateexpenserequest.md b/sync-for-expenses/docs/models/shared/updateexpenserequest.md
index 9c1a04e98..741e81aa2 100644
--- a/sync-for-expenses/docs/models/shared/updateexpenserequest.md
+++ b/sync-for-expenses/docs/models/shared/updateexpenserequest.md
@@ -5,12 +5,12 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `issue_date` | *str* | :heavy_check_mark: | Date the transaction was recorded. | 2022-06-28T00:00:00.000Z |
+| `type` | *Any* | :heavy_check_mark: | N/A | |
| `bank_account_ref` | [Optional[shared.UpdateExpenseRequestBankAccountReference]](../../models/shared/updateexpenserequestbankaccountreference.md) | :heavy_minus_sign: | N/A | |
| `contact_ref` | [Optional[shared.ContactRef]](../../models/shared/contactref.md) | :heavy_minus_sign: | N/A | |
| `currency` | *Optional[str]* | :heavy_minus_sign: | Currency the transaction was recorded in. | GBP |
| `currency_rate` | *Optional[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.
Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.
It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.
Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).
For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.
## Examples with base currency of GBP
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|
## Examples with base currency of USD
\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|
### Integration-specific details
\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, include the required currency rate in the expense transaction. \| | |
-| `issue_date` | *str* | :heavy_check_mark: | Date the transaction was recorded. | 2022-06-28T00:00:00.000Z |
| `lines` | List[[shared.ExpenseTransactionLine](../../models/shared/expensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | |
| `merchant_name` | *Optional[str]* | :heavy_minus_sign: | Name of the merchant where the purchase took place | Amazon UK |
-| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 |
-| `type` | *Any* | :heavy_check_mark: | N/A | |
\ No newline at end of file
+| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updatesupplierresponse.md b/sync-for-expenses/docs/models/shared/updatesupplierresponse.md
index 0fffe8665..f90e6589f 100644
--- a/sync-for-expenses/docs/models/shared/updatesupplierresponse.md
+++ b/sync-for-expenses/docs/models/shared/updatesupplierresponse.md
@@ -5,17 +5,17 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
-| `data` | [Optional[shared.UpdateSupplierResponseAccountingSupplier]](../../models/shared/updatesupplierresponseaccountingsupplier.md) | :heavy_minus_sign: | N/A | |
| `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
-| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
-| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | |
| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | |
| `status_code` | *int* | :heavy_check_mark: | Push status code. | |
+| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | |
+| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
+| `data` | [Optional[shared.UpdateSupplierResponseAccountingSupplier]](../../models/shared/updatesupplierresponseaccountingsupplier.md) | :heavy_minus_sign: | N/A | {"id":"C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F","supplierName":"Kelly's Industrial Supplies","contactName":"Kelly's Industrial Supplies","emailAddress":"sales@kellysupplies.com","phone":"07999 999999","addresses":[{"type":"Billing","line1":"Unit 51","line2":"Bakersfield Industrial Estate","city":"Bakersfield","region":"California","country":"USA","postalcode":"93308"}],"registrationNumber":"string","taxNumber":"string","status":"Unknown","defaultCurrency":"string","metadata":{"isDeleted":true},"supplementalData":{"content":{"property1":{"property1":null,"property2":null},"property2":{"property1":null,"property2":null}}},"modifiedDate":"2022-10-23T00:00:00Z","sourceModifiedDate":"2022-10-23T00:00:00Z"} |
+| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices |
+| `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about the error. | |
| `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | |
| ~~`timeout_in_seconds`~~ | *Optional[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.
Number of seconds the push operation must complete within before it times out. | |
| `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md b/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md
index ef3e775df..e5f7cc256 100644
--- a/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md
+++ b/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md
@@ -13,6 +13,7 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | |
| `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | |
| `default_currency` | *Optional[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | |
@@ -23,7 +24,6 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers
| `phone` | *Optional[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 |
| `registration_number` | *Optional[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | |
| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC |
-| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | |
| `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | |
| `supplier_name` | *Optional[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | |
| `tax_number` | *Optional[str]* | :heavy_minus_sign: | Supplier's company tax number. | |
\ No newline at end of file
diff --git a/sync-for-expenses/docs/sdks/accounts/README.md b/sync-for-expenses/docs/sdks/accounts/README.md
index 4a3cb2421..5aa34e8dd 100644
--- a/sync-for-expenses/docs/sdks/accounts/README.md
+++ b/sync-for-expenses/docs/sdks/accounts/README.md
@@ -28,7 +28,6 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/
```python
import codatsyncexpenses
from codatsyncexpenses.models import operations, shared
-from decimal import Decimal
s = codatsyncexpenses.CodatSyncExpenses(
security=shared.Security(
@@ -37,31 +36,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.CreateAccountRequest(
- account_prototype=shared.AccountPrototype(
- currency='USD',
- current_balance=Decimal('0'),
- description='Invoices the business has issued but has not yet collected payment on.',
- fully_qualified_category='Asset.Current',
- fully_qualified_name='Cash On Hand',
- name='Accounts Receivable',
- nominal_code='610',
- status=shared.AccountStatus.ACTIVE,
- supplemental_data=shared.SupplementalData(
- content={
- 'key': {
- 'key': 'string',
- },
- },
- ),
- type=shared.AccountType.ASSET,
- valid_datatype_links=[
- shared.ValidDataTypeLinks(
- links=[
- 'string',
- ],
- ),
- ],
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
)
diff --git a/sync-for-expenses/docs/sdks/companies/README.md b/sync-for-expenses/docs/sdks/companies/README.md
index ae570846a..b072d414f 100644
--- a/sync-for-expenses/docs/sdks/companies/README.md
+++ b/sync-for-expenses/docs/sdks/companies/README.md
@@ -35,13 +35,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)
@@ -238,15 +233,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UpdateCompanyRequest(
- company_request_body=shared.CompanyRequestBody(
- description='Requested early access to the new financing scheme.',
- groups=[
- shared.GroupItems(
- id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
- ),
- ],
- name='Bank of Dave',
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)
diff --git a/sync-for-expenses/docs/sdks/configuration/README.md b/sync-for-expenses/docs/sdks/configuration/README.md
index 06c0b0c0c..3fab5ea58 100644
--- a/sync-for-expenses/docs/sdks/configuration/README.md
+++ b/sync-for-expenses/docs/sdks/configuration/README.md
@@ -118,13 +118,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.SetCompanyConfigurationRequest(
- company_configuration=shared.CompanyConfiguration(
- bank_account=shared.BankAccount(
- id='32',
- ),
- customer=shared.CustomerDetails(),
- supplier=shared.SupplierDetails(),
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)
diff --git a/sync-for-expenses/docs/sdks/connections/README.md b/sync-for-expenses/docs/sdks/connections/README.md
index 875e9e151..dbf903bc0 100644
--- a/sync-for-expenses/docs/sdks/connections/README.md
+++ b/sync-for-expenses/docs/sdks/connections/README.md
@@ -33,9 +33,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.CreateConnectionRequest(
- request_body=operations.CreateConnectionRequestBody(
- platform_key='gbol',
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)
@@ -267,7 +264,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UnlinkConnectionRequest(
- request_body=operations.UnlinkConnectionUpdateConnection(),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
)
diff --git a/sync-for-expenses/docs/sdks/customers/README.md b/sync-for-expenses/docs/sdks/customers/README.md
index 9b351ab04..7a41675f9 100644
--- a/sync-for-expenses/docs/sdks/customers/README.md
+++ b/sync-for-expenses/docs/sdks/customers/README.md
@@ -38,40 +38,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.CreateCustomerRequest(
- customer=shared.Customer(
- addresses=[
- shared.AccountingAddress(
- type=shared.AccountingAddressType.BILLING,
- ),
- ],
- contacts=[
- shared.Contact(
- address=shared.Items(
- type=shared.AccountingAddressType.BILLING,
- ),
- modified_date='2022-10-23T00:00:00Z',
- phone=[
- shared.Phone(
- number='01224 658 999',
- type=shared.PhoneNumberType.MOBILE,
- ),
- ],
- status=shared.CustomerStatus.UNKNOWN,
- ),
- ],
- default_currency='GBP',
- metadata=shared.Metadata(),
- modified_date='2022-10-23T00:00:00Z',
- source_modified_date='2022-10-23T00:00:00Z',
- status=shared.CustomerStatus.ARCHIVED,
- supplemental_data=shared.SupplementalData(
- content={
- 'key': {
- 'key': 'string',
- },
- },
- ),
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
)
@@ -126,7 +92,7 @@ s = codatsyncexpenses.CodatSyncExpenses(
req = operations.GetCustomerRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
- customer_id='string',
+ customer_id='',
)
res = s.customers.get(req)
@@ -233,43 +199,9 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UpdateCustomerRequest(
- customer=shared.Customer(
- addresses=[
- shared.AccountingAddress(
- type=shared.AccountingAddressType.DELIVERY,
- ),
- ],
- contacts=[
- shared.Contact(
- address=shared.Items(
- type=shared.AccountingAddressType.UNKNOWN,
- ),
- modified_date='2022-10-23T00:00:00Z',
- phone=[
- shared.Phone(
- number='+44 25691 154789',
- type=shared.PhoneNumberType.LANDLINE,
- ),
- ],
- status=shared.CustomerStatus.ARCHIVED,
- ),
- ],
- default_currency='EUR',
- metadata=shared.Metadata(),
- modified_date='2022-10-23T00:00:00Z',
- source_modified_date='2022-10-23T00:00:00Z',
- status=shared.CustomerStatus.ARCHIVED,
- supplemental_data=shared.SupplementalData(
- content={
- 'key': {
- 'key': 'string',
- },
- },
- ),
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
- customer_id='string',
+ customer_id='',
)
res = s.customers.update(req)
diff --git a/sync-for-expenses/docs/sdks/expenses/README.md b/sync-for-expenses/docs/sdks/expenses/README.md
index 124aa8a08..4e2edfb51 100644
--- a/sync-for-expenses/docs/sdks/expenses/README.md
+++ b/sync-for-expenses/docs/sdks/expenses/README.md
@@ -34,7 +34,6 @@ Some accounting platforms support the option of pushing transactions to a draft
```python
import codatsyncexpenses
from codatsyncexpenses.models import operations, shared
-from decimal import Decimal
s = codatsyncexpenses.CodatSyncExpenses(
security=shared.Security(
@@ -43,47 +42,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.CreateExpenseTransactionRequest(
- create_expense_request=shared.CreateExpenseRequest(
- items=[
- shared.ExpenseTransaction(
- bank_account_ref=shared.BankAccountReference(
- id='787dfb37-5707-4dc0-8a86-8d74e4cc78ea',
- ),
- contact_ref=shared.ContactRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- type=shared.Type.SUPPLIER,
- ),
- currency='GBP',
- id='4d7c6929-7770-412b-91bb-44d3bc71d111',
- issue_date='2022-10-23T00:00:00Z',
- lines=[
- shared.ExpenseTransactionLine(
- account_ref=shared.RecordRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- ),
- invoice_to=shared.InvoiceTo(
- data_type=shared.InvoiceToDataType.CUSTOMERS,
- id='80000002-1674552702',
- ),
- net_amount=Decimal('110.42'),
- tax_amount=Decimal('14.43'),
- tax_rate_ref=shared.RecordRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- ),
- tracking_refs=[
- shared.TrackingRef(
- data_type=shared.TrackingRefDataType.TRACKING_CATEGORIES,
- id='e9a1b63d-9ff0-40e7-8038-016354b987e6',
- ),
- ],
- ),
- ],
- merchant_name='Amazon UK',
- notes='APPLE.COM/BILL - 09001077498 - Card Ending: 4590',
- type=shared.ExpenseTransactionType.PAYMENT,
- ),
- ],
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)
@@ -128,7 +86,6 @@ At the moment you can update expenses only for Xero ([Payment](https://docs.coda
```python
import codatsyncexpenses
from codatsyncexpenses.models import operations, shared
-from decimal import Decimal
s = codatsyncexpenses.CodatSyncExpenses(
security=shared.Security(
@@ -137,42 +94,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UpdateExpenseTransactionRequest(
- update_expense_request=shared.UpdateExpenseRequest(
- bank_account_ref=shared.UpdateExpenseRequestBankAccountReference(
- id='787dfb37-5707-4dc0-8a86-8d74e4cc78ea',
- ),
- contact_ref=shared.ContactRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- type=shared.Type.SUPPLIER,
- ),
- currency='GBP',
- issue_date='2022-06-28T00:00:00.000Z',
- lines=[
- shared.ExpenseTransactionLine(
- account_ref=shared.RecordRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- ),
- invoice_to=shared.InvoiceTo(
- data_type=shared.InvoiceToDataType.CUSTOMERS,
- id='80000002-1674552702',
- ),
- net_amount=Decimal('110.42'),
- tax_amount=Decimal('14.43'),
- tax_rate_ref=shared.RecordRef(
- id='40e3e57c-2322-4898-966c-ca41adfd23fd',
- ),
- tracking_refs=[
- shared.TrackingRef(
- data_type=shared.TrackingRefDataType.TRACKING_CATEGORIES,
- id='e9a1b63d-9ff0-40e7-8038-016354b987e6',
- ),
- ],
- ),
- ],
- merchant_name='Amazon UK',
- notes='APPLE.COM/BILL - 09001077498 - Card Ending: 4590',
- type='string',
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
transaction_id='336694d8-2dca-4cb5-a28d-3ccb83e55eee',
)
@@ -232,12 +153,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UploadExpenseAttachmentRequest(
- attachment_upload=shared.AttachmentUpload(
- file=shared.CodatFile(
- content='0xE3ABc1980E'.encode(),
- file_name='elegant_producer_electric.jpeg',
- ),
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
sync_id='6fb40d5e-b13e-11ed-afa1-0242ac120002',
transaction_id='336694d8-2dca-4cb5-a28d-3ccb83e55eee',
diff --git a/sync-for-expenses/docs/sdks/suppliers/README.md b/sync-for-expenses/docs/sdks/suppliers/README.md
index 1919fac27..6ef547cc6 100644
--- a/sync-for-expenses/docs/sdks/suppliers/README.md
+++ b/sync-for-expenses/docs/sdks/suppliers/README.md
@@ -38,27 +38,46 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.CreateSupplierRequest(
+ company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
+ connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
supplier=shared.Supplier(
+ status=shared.SupplierStatus.UNKNOWN,
addresses=[
shared.Items(
type=shared.AccountingAddressType.BILLING,
+ city='Bakersfield',
+ country='USA',
+ line1='Unit 51',
+ line2='Bakersfield Industrial Estate',
+ region='California',
),
],
- metadata=shared.Metadata(),
+ contact_name='Kelly\'s Industrial Supplies',
+ default_currency='string',
+ email_address='sales@kellysupplies.com',
+ id='C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F',
+ metadata=shared.Metadata(
+ is_deleted=True,
+ ),
modified_date='2022-10-23T00:00:00Z',
- phone='(877) 492-8687',
+ phone='07999 999999',
+ registration_number='string',
source_modified_date='2022-10-23T00:00:00Z',
- status=shared.SupplierStatus.ACTIVE,
supplemental_data=shared.SupplementalData(
content={
- 'key': {
- 'key': 'string',
+ 'property1': {
+ 'property1': None,
+ 'property2': None,
+ },
+ 'property2': {
+ 'property1': None,
+ 'property2': None,
},
},
),
+ supplier_name='Kelly\'s Industrial Supplies',
+ tax_number='string',
),
- company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
- connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
)
res = s.suppliers.create(req)
@@ -218,28 +237,47 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.UpdateSupplierRequest(
+ company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
+ connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
+ supplier_id='EILBDVJVNUAGVKRQ',
supplier=shared.Supplier(
+ status=shared.SupplierStatus.UNKNOWN,
addresses=[
shared.Items(
- type=shared.AccountingAddressType.DELIVERY,
+ type=shared.AccountingAddressType.BILLING,
+ city='Bakersfield',
+ country='USA',
+ line1='Unit 51',
+ line2='Bakersfield Industrial Estate',
+ region='California',
),
],
- metadata=shared.Metadata(),
+ contact_name='Kelly\'s Industrial Supplies',
+ default_currency='string',
+ email_address='sales@kellysupplies.com',
+ id='C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F',
+ metadata=shared.Metadata(
+ is_deleted=True,
+ ),
modified_date='2022-10-23T00:00:00Z',
- phone='(877) 492-8687',
+ phone='07999 999999',
+ registration_number='string',
source_modified_date='2022-10-23T00:00:00Z',
- status=shared.SupplierStatus.ACTIVE,
supplemental_data=shared.SupplementalData(
content={
- 'key': {
- 'key': 'string',
+ 'property1': {
+ 'property1': None,
+ 'property2': None,
+ },
+ 'property2': {
+ 'property1': None,
+ 'property2': None,
},
},
),
+ supplier_name='Kelly\'s Industrial Supplies',
+ tax_number='string',
),
- company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
- connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
- supplier_id='7110701885',
)
res = s.suppliers.update(req)
diff --git a/sync-for-expenses/docs/sdks/sync/README.md b/sync-for-expenses/docs/sdks/sync/README.md
index 84a8c69b3..78b835e28 100644
--- a/sync-for-expenses/docs/sdks/sync/README.md
+++ b/sync-for-expenses/docs/sdks/sync/README.md
@@ -166,11 +166,6 @@ s = codatsyncexpenses.CodatSyncExpenses(
)
req = operations.InitiateSyncRequest(
- initiate_sync=shared.InitiateSync(
- dataset_ids=[
- 'acce2362-83d6-4e3e-a27f-f4a08e7217d5',
- ],
- ),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
)
diff --git a/sync-for-expenses/docs/sdks/transactionstatus/README.md b/sync-for-expenses/docs/sdks/transactionstatus/README.md
index 02d1cc6b1..1ae05e7c8 100644
--- a/sync-for-expenses/docs/sdks/transactionstatus/README.md
+++ b/sync-for-expenses/docs/sdks/transactionstatus/README.md
@@ -75,9 +75,9 @@ s = codatsyncexpenses.CodatSyncExpenses(
req = operations.ListSyncTransactionsRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
+ sync_id='6fb40d5e-b13e-11ed-afa1-0242ac120002',
page=1,
page_size=100,
- sync_id='6fb40d5e-b13e-11ed-afa1-0242ac120002',
)
res = s.transaction_status.list(req)
diff --git a/sync-for-expenses/gen.yaml b/sync-for-expenses/gen.yaml
index 58db82262..f9f485239 100644
--- a/sync-for-expenses/gen.yaml
+++ b/sync-for-expenses/gen.yaml
@@ -6,9 +6,10 @@ generation:
fixes:
nameResolutionDec2023: false
parameterOrderingFeb2024: false
+ requestResponseComponentNamesFeb2024: false
telemetryEnabled: true
python:
- version: 6.0.0
+ version: 6.0.1
author: Codat
clientServerStatusCodesAsErrors: true
description: Push expenses to accounting platforms.
diff --git a/sync-for-expenses/setup.py b/sync-for-expenses/setup.py
index d2f8a20e5..4211ef41a 100644
--- a/sync-for-expenses/setup.py
+++ b/sync-for-expenses/setup.py
@@ -10,7 +10,7 @@
setuptools.setup(
name="codat-sync-for-expenses",
- version="6.0.0",
+ version="6.0.1",
author="Codat",
description="Push expenses to accounting platforms.",
long_description=long_description,
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/errors/errormessage.py b/sync-for-expenses/src/codatsyncexpenses/models/errors/errormessage.py
index cfea19ec8..e89b1edc2 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/errors/errormessage.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/errors/errormessage.py
@@ -2,6 +2,7 @@
from __future__ import annotations
import dataclasses
+from ...models.shared import errorvalidation as shared_errorvalidation
from codatsyncexpenses import utils
from dataclasses_json import Undefined, dataclass_json
from typing import Optional
@@ -12,6 +13,7 @@
@dataclasses.dataclass
class ErrorMessage(Exception):
r"""The request made is not valid."""
+ UNSET='__SPEAKEASY_UNSET__'
can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }})
r"""`True` if the error occurred transiently and can be retried."""
correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }})
@@ -24,6 +26,8 @@ class ErrorMessage(Exception):
r"""Codat's service the returned the error."""
status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }})
r"""The HTTP status code returned by the error."""
+ validation: Optional[shared_errorvalidation.ErrorValidation] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validation'), 'exclude': lambda f: f is ErrorMessage.UNSET }})
+ r"""A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here."""
def __str__(self) -> str:
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_account.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_account.py
index 9d732a849..d3518e85f 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_account.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_account.py
@@ -27,10 +27,10 @@ class CreateAccountRequest:
class CreateAccountResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
create_account_response: Optional[shared_createaccountresponse.CreateAccountResponse] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_company.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_company.py
index 6d6514892..d7751fcaf 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_company.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_company.py
@@ -11,10 +11,10 @@
class CreateCompanyResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company: Optional[shared_company.Company] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_connection.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_connection.py
index 17911be2d..60e47c30d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_connection.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_connection.py
@@ -31,10 +31,10 @@ class CreateConnectionRequest:
class CreateConnectionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
connection: Optional[shared_connection.Connection] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_customer.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_customer.py
index 6fd91dcbf..4100d3c7a 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_customer.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_customer.py
@@ -10,13 +10,14 @@
@dataclasses.dataclass
class CreateCustomerRequest:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a company."""
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a connection."""
+ customer: Optional[shared_customer.Customer] = dataclasses.field(default=UNSET, metadata={'request': { 'media_type': 'application/json' }})
allow_sync_on_push_complete: Optional[bool] = dataclasses.field(default=True, metadata={'query_param': { 'field_name': 'allowSyncOnPushComplete', 'style': 'form', 'explode': True }})
r"""Allow a sync upon push completion."""
- customer: Optional[shared_customer.Customer] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }})
timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'timeoutInMinutes', 'style': 'form', 'explode': True }})
r"""Time limit for the push operation to complete before it is timed out."""
@@ -27,10 +28,10 @@ class CreateCustomerRequest:
class CreateCustomerResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
create_customer_response: Optional[shared_createcustomerresponse.CreateCustomerResponse] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_expense_transaction.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_expense_transaction.py
index 3bb4d54bc..875623e16 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_expense_transaction.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_expense_transaction.py
@@ -21,10 +21,10 @@ class CreateExpenseTransactionRequest:
class CreateExpenseTransactionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
create_expense_response: Optional[shared_createexpenseresponse.CreateExpenseResponse] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_partner_expense_connection.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_partner_expense_connection.py
index bda377eb1..c77e6e944 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_partner_expense_connection.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_partner_expense_connection.py
@@ -19,10 +19,10 @@ class CreatePartnerExpenseConnectionRequest:
class CreatePartnerExpenseConnectionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
connection: Optional[shared_connection.Connection] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_supplier.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_supplier.py
index 28464ac8b..8550e10e2 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/create_supplier.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/create_supplier.py
@@ -10,13 +10,14 @@
@dataclasses.dataclass
class CreateSupplierRequest:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a company."""
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a connection."""
+ supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=UNSET, metadata={'request': { 'media_type': 'application/json' }})
allow_sync_on_push_complete: Optional[bool] = dataclasses.field(default=True, metadata={'query_param': { 'field_name': 'allowSyncOnPushComplete', 'style': 'form', 'explode': True }})
r"""Allow a sync upon push completion."""
- supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }})
timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'timeoutInMinutes', 'style': 'form', 'explode': True }})
r"""Time limit for the push operation to complete before it is timed out."""
@@ -27,10 +28,10 @@ class CreateSupplierRequest:
class CreateSupplierResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
create_supplier_response: Optional[shared_createsupplierresponse.CreateSupplierResponse] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_company.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_company.py
index cee215d50..e544df054 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_company.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_company.py
@@ -17,9 +17,9 @@ class DeleteCompanyRequest:
class DeleteCompanyResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_connection.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_connection.py
index f6c98ce2b..f6a77abb5 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_connection.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/delete_connection.py
@@ -19,9 +19,9 @@ class DeleteConnectionRequest:
class DeleteConnectionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company.py
index 2938755e5..65e6aba22 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company.py
@@ -19,10 +19,10 @@ class GetCompanyRequest:
class GetCompanyResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company: Optional[shared_company.Company] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company_configuration.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company_configuration.py
index 7bb4d5f62..c187bf7d3 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company_configuration.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_company_configuration.py
@@ -19,10 +19,10 @@ class GetCompanyConfigurationRequest:
class GetCompanyConfigurationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company_configuration: Optional[shared_companyconfiguration.CompanyConfiguration] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_connection.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_connection.py
index 80642dd26..083a24ed2 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_connection.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_connection.py
@@ -21,10 +21,10 @@ class GetConnectionRequest:
class GetConnectionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
connection: Optional[shared_connection.Connection] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_create_chartofaccounts_model.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_create_chartofaccounts_model.py
index 029cfcc20..db617ad13 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_create_chartofaccounts_model.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_create_chartofaccounts_model.py
@@ -21,10 +21,10 @@ class GetCreateChartOfAccountsModelRequest:
class GetCreateChartOfAccountsModelResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
push_option: Optional[shared_pushoption.PushOption] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_customer.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_customer.py
index ea6aa0090..ace38e272 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_customer.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_customer.py
@@ -19,13 +19,14 @@ class GetCustomerRequest:
@dataclasses.dataclass
class GetCustomerResponse:
+ UNSET='__SPEAKEASY_UNSET__'
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
- customer: Optional[shared_customer.Customer] = dataclasses.field(default=None)
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
+ customer: Optional[shared_customer.Customer] = dataclasses.field(default=UNSET)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_data_status.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_data_status.py
index 47c2dde92..23cfdc107 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_data_status.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_data_status.py
@@ -19,10 +19,10 @@ class GetDataStatusRequest:
class GetDataStatusResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
data_statuses: Optional[Dict[str, shared_datastatus.DataStatus]] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_last_successful_sync.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_last_successful_sync.py
index 8bfca0564..0ea1b275b 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_last_successful_sync.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_last_successful_sync.py
@@ -19,10 +19,10 @@ class GetLastSuccessfulSyncRequest:
class GetLastSuccessfulSyncResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company_sync_status: Optional[shared_companysyncstatus.CompanySyncStatus] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_latest_sync.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_latest_sync.py
index d674b7efe..870412d8a 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_latest_sync.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_latest_sync.py
@@ -19,10 +19,10 @@ class GetLatestSyncRequest:
class GetLatestSyncResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company_sync_status: Optional[shared_companysyncstatus.CompanySyncStatus] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_mapping_options.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_mapping_options.py
index b173d4afa..2525beaf6 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_mapping_options.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_mapping_options.py
@@ -19,10 +19,10 @@ class GetMappingOptionsRequest:
class GetMappingOptionsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
mapping_options: Optional[shared_mappingoptions.MappingOptions] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_pull_operation.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_pull_operation.py
index 0afe77aaf..ecdbbb805 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_pull_operation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_pull_operation.py
@@ -21,10 +21,10 @@ class GetPullOperationRequest:
class GetPullOperationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
pull_operation: Optional[shared_pulloperation.PullOperation] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_push_operation.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_push_operation.py
index d40da909e..bcca4f62d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_push_operation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_push_operation.py
@@ -21,10 +21,10 @@ class GetPushOperationRequest:
class GetPushOperationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
push_operation: Optional[shared_pushoperation.PushOperation] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_supplier.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_supplier.py
index b9a96bf71..3a7996908 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_supplier.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_supplier.py
@@ -19,13 +19,14 @@ class GetSupplierRequest:
@dataclasses.dataclass
class GetSupplierResponse:
+ UNSET='__SPEAKEASY_UNSET__'
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
- supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=None)
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
+ supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=UNSET)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_by_id.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_by_id.py
index 8223094f9..0f00bd02c 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_by_id.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_by_id.py
@@ -21,10 +21,10 @@ class GetSyncByIDRequest:
class GetSyncByIDResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company_sync_status: Optional[shared_companysyncstatus.CompanySyncStatus] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_transaction.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_transaction.py
index 65e002113..ac6252673 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_transaction.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/get_sync_transaction.py
@@ -23,10 +23,10 @@ class GetSyncTransactionRequest:
class GetSyncTransactionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
transaction: Optional[shared_transaction.Transaction] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/initiate_sync.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/initiate_sync.py
index daf5ee82e..af30cadea 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/initiate_sync.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/initiate_sync.py
@@ -21,10 +21,10 @@ class InitiateSyncRequest:
class InitiateSyncResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
sync_initiated: Optional[shared_syncinitiated.SyncInitiated] = dataclasses.field(default=None)
r"""Returns the newly created SyncId"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_companies.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_companies.py
index 72bcc118a..41f52fdfb 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_companies.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_companies.py
@@ -25,10 +25,10 @@ class ListCompaniesRequest:
class ListCompaniesResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
companies: Optional[shared_companies.Companies] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_connections.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_connections.py
index 24f4c54f5..e4665b548 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_connections.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_connections.py
@@ -27,10 +27,10 @@ class ListConnectionsRequest:
class ListConnectionsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
connections: Optional[shared_connections.Connections] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_customers.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_customers.py
index d6a05381e..ae1a0d67b 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_customers.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_customers.py
@@ -27,10 +27,10 @@ class ListCustomersRequest:
class ListCustomersResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
customers: Optional[shared_customers.Customers] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_pull_operations.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_pull_operations.py
index 348e80bd8..d25577197 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_pull_operations.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_pull_operations.py
@@ -27,10 +27,10 @@ class ListPullOperationsRequest:
class ListPullOperationsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
pull_operations: Optional[shared_pulloperations.PullOperations] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_push_operations.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_push_operations.py
index 989e10b46..97806aade 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_push_operations.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_push_operations.py
@@ -27,10 +27,10 @@ class ListPushOperationsRequest:
class ListPushOperationsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
push_operations: Optional[shared_pushoperations.PushOperations] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_suppliers.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_suppliers.py
index c77b1ce6f..fe6f22f49 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_suppliers.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_suppliers.py
@@ -27,10 +27,10 @@ class ListSuppliersRequest:
class ListSuppliersResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
suppliers: Optional[shared_suppliers.Suppliers] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_sync_transactions.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_sync_transactions.py
index 25c62621f..f85c22eaa 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_sync_transactions.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_sync_transactions.py
@@ -25,10 +25,10 @@ class ListSyncTransactionsRequest:
class ListSyncTransactionsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
transactions: Optional[shared_transactions.Transactions] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_syncs.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_syncs.py
index 497fdcac5..2b6e0413f 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/list_syncs.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/list_syncs.py
@@ -19,10 +19,10 @@ class ListSyncsRequest:
class ListSyncsResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
classes: Optional[List[shared_companysyncstatus.CompanySyncStatus]] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_all_data_types.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_all_data_types.py
index a67673841..043fdd704 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_all_data_types.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_all_data_types.py
@@ -17,9 +17,9 @@ class RefreshAllDataTypesRequest:
class RefreshAllDataTypesResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_data_type.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_data_type.py
index ea9a0a6be..1c2f20d9f 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_data_type.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/refresh_data_type.py
@@ -24,10 +24,10 @@ class RefreshDataTypeRequest:
class RefreshDataTypeResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
pull_operation: Optional[shared_pulloperation.PullOperation] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/set_company_configuration.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/set_company_configuration.py
index ee1ef6008..15118b04a 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/set_company_configuration.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/set_company_configuration.py
@@ -20,10 +20,10 @@ class SetCompanyConfigurationRequest:
class SetCompanyConfigurationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company_configuration: Optional[shared_companyconfiguration.CompanyConfiguration] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/unlink_connection.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/unlink_connection.py
index 080564ea5..fdbba5aeb 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/unlink_connection.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/unlink_connection.py
@@ -34,10 +34,10 @@ class UnlinkConnectionRequest:
class UnlinkConnectionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
connection: Optional[shared_connection.Connection] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_company.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_company.py
index 3df4f661f..4eae4a4d0 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_company.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_company.py
@@ -21,10 +21,10 @@ class UpdateCompanyRequest:
class UpdateCompanyResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
company: Optional[shared_company.Company] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_customer.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_customer.py
index 284f96c03..b272d05c3 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_customer.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_customer.py
@@ -10,15 +10,16 @@
@dataclasses.dataclass
class UpdateCustomerRequest:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a company."""
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a connection."""
customer_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'customerId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a customer."""
+ customer: Optional[shared_customer.Customer] = dataclasses.field(default=UNSET, metadata={'request': { 'media_type': 'application/json' }})
allow_sync_on_push_complete: Optional[bool] = dataclasses.field(default=True, metadata={'query_param': { 'field_name': 'allowSyncOnPushComplete', 'style': 'form', 'explode': True }})
r"""Allow a sync upon push completion."""
- customer: Optional[shared_customer.Customer] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }})
force_update: Optional[bool] = dataclasses.field(default=False, metadata={'query_param': { 'field_name': 'forceUpdate', 'style': 'form', 'explode': True }})
r"""When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check."""
timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'timeoutInMinutes', 'style': 'form', 'explode': True }})
@@ -31,10 +32,10 @@ class UpdateCustomerRequest:
class UpdateCustomerResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
update_customer_response: Optional[shared_updatecustomerresponse.UpdateCustomerResponse] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_expense_transaction.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_expense_transaction.py
index 096aebdfd..89beb553d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_expense_transaction.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_expense_transaction.py
@@ -23,10 +23,10 @@ class UpdateExpenseTransactionRequest:
class UpdateExpenseTransactionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
update_expense_response: Optional[shared_updateexpenseresponse.UpdateExpenseResponse] = dataclasses.field(default=None)
r"""Accepted"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_supplier.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_supplier.py
index e6a610e68..55b47bb57 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/update_supplier.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/update_supplier.py
@@ -10,17 +10,18 @@
@dataclasses.dataclass
class UpdateSupplierRequest:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a company."""
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a connection."""
supplier_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'supplierId', 'style': 'simple', 'explode': False }})
r"""Unique identifier for a supplier."""
+ supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=UNSET, metadata={'request': { 'media_type': 'application/json' }})
allow_sync_on_push_complete: Optional[bool] = dataclasses.field(default=True, metadata={'query_param': { 'field_name': 'allowSyncOnPushComplete', 'style': 'form', 'explode': True }})
r"""Allow a sync upon push completion."""
force_update: Optional[bool] = dataclasses.field(default=False, metadata={'query_param': { 'field_name': 'forceUpdate', 'style': 'form', 'explode': True }})
r"""When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check."""
- supplier: Optional[shared_supplier.Supplier] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }})
timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'timeoutInMinutes', 'style': 'form', 'explode': True }})
r"""Time limit for the push operation to complete before it is timed out."""
@@ -31,10 +32,10 @@ class UpdateSupplierRequest:
class UpdateSupplierResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
update_supplier_response: Optional[shared_updatesupplierresponse.UpdateSupplierResponse] = dataclasses.field(default=None)
r"""Success"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/operations/upload_expense_attachment.py b/sync-for-expenses/src/codatsyncexpenses/models/operations/upload_expense_attachment.py
index f669abc31..9f637907b 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/operations/upload_expense_attachment.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/operations/upload_expense_attachment.py
@@ -25,10 +25,10 @@ class UploadExpenseAttachmentRequest:
class UploadExpenseAttachmentResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
attachment: Optional[shared_attachment.Attachment] = dataclasses.field(default=None)
r"""OK"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/__init__.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/__init__.py
index dfd8d0b2e..44492051c 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/__init__.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/__init__.py
@@ -35,6 +35,8 @@
from .dataconnectionstatus import *
from .datastatus import *
from .datatype import *
+from .errorvalidation import *
+from .errorvalidationitem import *
from .expensetransaction import *
from .expensetransactionline import *
from .group_items import *
@@ -88,4 +90,4 @@
from .validation import *
from .validationitem import *
-__all__ = ["AccountMappingInfo","AccountMappingInfoAccountType","AccountPrototype","AccountStatus","AccountType","AccountingAccount","AccountingAddress","AccountingAddressType","AccountingCustomer","AccountingSupplier","Attachment","AttachmentUpload","BankAccount","BankAccountReference","ClientRateLimitReachedWebhook","ClientRateLimitReachedWebhookData","ClientRateLimitResetWebhook","ClientRateLimitResetWebhookData","CodatFile","Companies","Company","CompanyConfiguration","CompanyRequestBody","CompanySyncStatus","Connection","Connections","Contact","ContactRef","CreateAccountResponse","CreateAccountResponseMetadata","CreateAccountResponseValidDataTypeLinks","CreateCustomerResponse","CreateCustomerResponseAccountingAddress","CreateExpenseRequest","CreateExpenseResponse","CreateSupplierResponse","Customer","CustomerDetails","CustomerStatus","Customers","Data","DataConnectionError","DataConnectionStatus","DataStatus","DataType","DataTypes","ExpenseTransaction","ExpenseTransactionLine","ExpenseTransactionType","GroupItems","GroupReference","HalRef","InitiateSync","IntegrationType","InvoiceTo","InvoiceToDataType","Items","Links","MappingOptions","Metadata","Phone","PhoneNumberType","PullOperation","PullOperations","PushChangeType","PushFieldValidation","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperations","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","RecordRef","SchemaDataType","Security","SourceType","Status","SupplementalData","Supplier","SupplierDetails","SupplierStatus","Suppliers","SyncCompleteWebhook","SyncCompleteWebhookData","SyncFailedWebhook","SyncFailedWebhookData","SyncInitiated","SyncStartedWebhook","TaxRateMappingInfo","TaxRateMappingInfoValidTransactionTypes","TrackingCategoryMappingInfo","TrackingRef","TrackingRefDataType","Transaction","TransactionStatus","Transactions","Type","UpdateCustomerResponse","UpdateCustomerResponseAccountingAddress","UpdateCustomerResponseAccountingCustomer","UpdateExpenseRequest","UpdateExpenseRequestBankAccountReference","UpdateExpenseResponse","UpdateSupplierResponse","UpdateSupplierResponseAccountingSupplier","ValidDataTypeLinks","ValidTransactionTypes","Validation","ValidationItem"]
+__all__ = ["AccountMappingInfo","AccountMappingInfoAccountType","AccountPrototype","AccountStatus","AccountType","AccountingAccount","AccountingAddress","AccountingAddressType","AccountingCustomer","AccountingSupplier","Attachment","AttachmentUpload","BankAccount","BankAccountReference","ClientRateLimitReachedWebhook","ClientRateLimitReachedWebhookData","ClientRateLimitResetWebhook","ClientRateLimitResetWebhookData","CodatFile","Companies","Company","CompanyConfiguration","CompanyRequestBody","CompanySyncStatus","Connection","Connections","Contact","ContactRef","CreateAccountResponse","CreateAccountResponseMetadata","CreateAccountResponseValidDataTypeLinks","CreateCustomerResponse","CreateCustomerResponseAccountingAddress","CreateExpenseRequest","CreateExpenseResponse","CreateSupplierResponse","Customer","CustomerDetails","CustomerStatus","Customers","Data","DataConnectionError","DataConnectionStatus","DataStatus","DataType","DataTypes","ErrorValidation","ErrorValidationItem","ExpenseTransaction","ExpenseTransactionLine","ExpenseTransactionType","GroupItems","GroupReference","HalRef","InitiateSync","IntegrationType","InvoiceTo","InvoiceToDataType","Items","Links","MappingOptions","Metadata","Phone","PhoneNumberType","PullOperation","PullOperations","PushChangeType","PushFieldValidation","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperations","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","RecordRef","SchemaDataType","Security","SourceType","Status","SupplementalData","Supplier","SupplierDetails","SupplierStatus","Suppliers","SyncCompleteWebhook","SyncCompleteWebhookData","SyncFailedWebhook","SyncFailedWebhookData","SyncInitiated","SyncStartedWebhook","TaxRateMappingInfo","TaxRateMappingInfoValidTransactionTypes","TrackingCategoryMappingInfo","TrackingRef","TrackingRefDataType","Transaction","TransactionStatus","Transactions","Type","UpdateCustomerResponse","UpdateCustomerResponseAccountingAddress","UpdateCustomerResponseAccountingCustomer","UpdateExpenseRequest","UpdateExpenseRequestBankAccountReference","UpdateExpenseResponse","UpdateSupplierResponse","UpdateSupplierResponseAccountingSupplier","ValidDataTypeLinks","ValidTransactionTypes","Validation","ValidationItem"]
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/accountmappinginfo.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/accountmappinginfo.py
index 4ca99a44e..cc621b1c8 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/accountmappinginfo.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/accountmappinginfo.py
@@ -29,15 +29,16 @@ class ValidTransactionTypes(str, Enum):
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class AccountMappingInfo:
- account_type: Optional[AccountMappingInfoAccountType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accountType') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ account_type: Optional[AccountMappingInfoAccountType] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accountType'), 'exclude': lambda f: f is AccountMappingInfo.UNSET }})
r"""Type of the account."""
- currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency') }})
+ currency: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is AccountMappingInfo.UNSET }})
r"""Currency of the account."""
- id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }})
+ id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is AccountMappingInfo.UNSET }})
r"""Unique identifier of account."""
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is AccountMappingInfo.UNSET }})
r"""Name of the account as it appears in the companies accounting software."""
- valid_transaction_types: Optional[List[ValidTransactionTypes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validTransactionTypes') }})
+ valid_transaction_types: Optional[List[ValidTransactionTypes]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validTransactionTypes'), 'exclude': lambda f: f is AccountMappingInfo.UNSET }})
r"""Supported transaction types for the account."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/accountprototype.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/accountprototype.py
index d355b4a18..d8f721cf0 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/accountprototype.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/accountprototype.py
@@ -55,9 +55,10 @@ class ValidDataTypeLinks:
If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap.
"""
- links: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('links') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ links: Optional[List[str]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('links'), 'exclude': lambda f: f is ValidDataTypeLinks.UNSET }})
r"""Supported `dataTypes` that the record can be linked to."""
- property: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('property') }})
+ property: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('property'), 'exclude': lambda f: f is ValidDataTypeLinks.UNSET }})
r"""The property from the account that can be linked."""
@@ -66,6 +67,7 @@ class ValidDataTypeLinks:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class AccountPrototype:
+ UNSET='__SPEAKEASY_UNSET__'
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
@@ -75,16 +77,16 @@ class AccountPrototype:
There are only a very small number of edge cases where this currency code is returned by the Codat system.
"""
- current_balance: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentBalance'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder }})
+ current_balance: Optional[Decimal] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentBalance'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Current balance in the account."""
- description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description') }})
+ description: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Description for the account."""
- fully_qualified_category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedCategory') }})
+ fully_qualified_category: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedCategory'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Full category of the account.
For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation.
"""
- fully_qualified_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedName') }})
+ fully_qualified_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedName'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
@@ -92,9 +94,9 @@ class AccountPrototype:
"""
is_bank_account: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('isBankAccount'), 'exclude': lambda f: f is None }})
r"""Confirms whether the account is a bank account or not."""
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Name of the account."""
- nominal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode') }})
+ nominal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system."""
status: Optional[AccountStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }})
r"""Status of the account"""
@@ -105,7 +107,7 @@ class AccountPrototype:
"""
type: Optional[AccountType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
r"""Type of account"""
- valid_datatype_links: Optional[List[ValidDataTypeLinks]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validDatatypeLinks') }})
+ valid_datatype_links: Optional[List[ValidDataTypeLinks]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validDatatypeLinks'), 'exclude': lambda f: f is AccountPrototype.UNSET }})
r"""The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-expenses-api#/schemas/ValidDataTypeLinks)."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/clientratelimitresetwebhookdata.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/clientratelimitresetwebhookdata.py
index cc406c1d4..12df09270 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/clientratelimitresetwebhookdata.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/clientratelimitresetwebhookdata.py
@@ -10,6 +10,7 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class ClientRateLimitResetWebhookData:
+ UNSET='__SPEAKEASY_UNSET__'
daily_quota: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('DailyQuota'), 'exclude': lambda f: f is None }})
r"""The number of available requests per day."""
expires_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ExpiresUtc'), 'exclude': lambda f: f is None }})
@@ -33,7 +34,7 @@ class ClientRateLimitResetWebhookData:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- quota_remaining: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('QuotaRemaining') }})
+ quota_remaining: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('QuotaRemaining'), 'exclude': lambda f: f is ClientRateLimitResetWebhookData.UNSET }})
r"""Total number of request remaining for your client."""
reset_reason: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ResetReason'), 'exclude': lambda f: f is None }})
r"""The reason for your rate limit quota being reset."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/companysyncstatus.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/companysyncstatus.py
index 3415bb73b..57013a448 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/companysyncstatus.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/companysyncstatus.py
@@ -10,17 +10,18 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CompanySyncStatus:
- company_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ company_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId'), 'exclude': lambda f: f is CompanySyncStatus.UNSET }})
r"""Unique identifier for your SMB in Codat."""
data_pushed: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataPushed'), 'exclude': lambda f: f is None }})
r"""Boolean of whether the sync resulted in data being pushed."""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is CompanySyncStatus.UNSET }})
r"""Error message of the sync."""
- sync_exception_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncExceptionMessage') }})
+ sync_exception_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncExceptionMessage'), 'exclude': lambda f: f is CompanySyncStatus.UNSET }})
r"""Exception message of the sync."""
- sync_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncId') }})
+ sync_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncId'), 'exclude': lambda f: f is CompanySyncStatus.UNSET }})
r"""Unique identifier of the sync."""
- sync_status: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncStatus') }})
+ sync_status: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncStatus'), 'exclude': lambda f: f is CompanySyncStatus.UNSET }})
r"""Text status of the sync."""
sync_status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('syncStatusCode'), 'exclude': lambda f: f is None }})
r"""Status code of the sync."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/contact.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/contact.py
index bb5cefb66..7d7f8b977 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/contact.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/contact.py
@@ -24,10 +24,11 @@ class Phone:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class Contact:
+ UNSET='__SPEAKEASY_UNSET__'
status: CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of customer."""
address: Optional[Items] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('address'), 'exclude': lambda f: f is None }})
- email: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email') }})
+ email: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email'), 'exclude': lambda f: f is Contact.UNSET }})
r"""Email of a contact for a customer."""
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -50,9 +51,9 @@ class Contact:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is Contact.UNSET }})
r"""Name of a contact for a customer."""
- phone: Optional[List[Phone]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[List[Phone]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is Contact.UNSET }})
r"""An array of Phone numbers."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/createaccountresponse.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/createaccountresponse.py
index 5e8f54739..83e9a3da8 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/createaccountresponse.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/createaccountresponse.py
@@ -18,7 +18,8 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CreateAccountResponseMetadata:
- is_deleted: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('isDeleted') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ is_deleted: Optional[bool] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('isDeleted'), 'exclude': lambda f: f is CreateAccountResponseMetadata.UNSET }})
r"""Indicates whether the record has been deleted in the third-party system this record originated from."""
@@ -68,9 +69,10 @@ class CreateAccountResponseValidDataTypeLinks:
If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap.
"""
- links: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('links') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ links: Optional[List[str]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('links'), 'exclude': lambda f: f is CreateAccountResponseValidDataTypeLinks.UNSET }})
r"""Supported `dataTypes` that the record can be linked to."""
- property: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('property') }})
+ property: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('property'), 'exclude': lambda f: f is CreateAccountResponseValidDataTypeLinks.UNSET }})
r"""The property from the account that can be linked."""
@@ -110,6 +112,7 @@ class AccountingAccount:
Deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
"""
+ UNSET='__SPEAKEASY_UNSET__'
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
@@ -119,16 +122,16 @@ class AccountingAccount:
There are only a very small number of edge cases where this currency code is returned by the Codat system.
"""
- current_balance: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentBalance'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder }})
+ current_balance: Optional[Decimal] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentBalance'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Current balance in the account."""
- description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description') }})
+ description: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Description for the account."""
- fully_qualified_category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedCategory') }})
+ fully_qualified_category: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedCategory'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Full category of the account.
For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation.
"""
- fully_qualified_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedName') }})
+ fully_qualified_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fullyQualifiedName'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
@@ -140,9 +143,9 @@ class AccountingAccount:
r"""Confirms whether the account is a bank account or not."""
metadata: Optional[CreateAccountResponseMetadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Name of the account."""
- nominal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode') }})
+ nominal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nominalCode'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
status: Optional[AccountStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }})
@@ -154,7 +157,7 @@ class AccountingAccount:
"""
type: Optional[AccountType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
r"""Type of account"""
- valid_datatype_links: Optional[List[CreateAccountResponseValidDataTypeLinks]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validDatatypeLinks') }})
+ valid_datatype_links: Optional[List[CreateAccountResponseValidDataTypeLinks]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validDatatypeLinks'), 'exclude': lambda f: f is AccountingAccount.UNSET }})
r"""The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-expenses-api#/schemas/ValidDataTypeLinks)."""
@@ -163,6 +166,7 @@ class AccountingAccount:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CreateAccountResponse:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -194,7 +198,7 @@ class CreateAccountResponse:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is CreateAccountResponse.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -217,14 +221,14 @@ class CreateAccountResponse:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- data: Optional[AccountingAccount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }})
+ data: Optional[AccountingAccount] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data'), 'exclude': lambda f: f is CreateAccountResponse.UNSET }})
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is CreateAccountResponse.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is CreateAccountResponse.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is CreateAccountResponse.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/createcustomerresponse.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/createcustomerresponse.py
index dc9c6c169..b00cefbfa 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/createcustomerresponse.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/createcustomerresponse.py
@@ -19,19 +19,20 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CreateCustomerResponseAccountingAddress:
+ UNSET='__SPEAKEASY_UNSET__'
type: AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
r"""The type of the address"""
- city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city') }})
+ city: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""City of the customer address."""
- country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country') }})
+ country: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""Country of the customer address."""
- line1: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1') }})
+ line1: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""Line 1 of the customer address."""
- line2: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2') }})
+ line2: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""Line 2 of the customer address."""
- postal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode') }})
+ postal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""Postal code or zip code."""
- region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region') }})
+ region: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is CreateCustomerResponseAccountingAddress.UNSET }})
r"""Region of the customer address."""
@@ -50,15 +51,16 @@ class AccountingCustomer:
Deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of customer."""
- addresses: Optional[List[CreateCustomerResponseAccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[CreateCustomerResponseAccountingAddress]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Name of the main contact for the identified customer."""
- contacts: Optional[List[Contact]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts') }})
+ contacts: Optional[List[Contact]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""An array of Contacts."""
- customer_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName') }})
+ customer_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Name of the customer as recorded in the accounting system, typically the company name."""
default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is None }})
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
@@ -69,15 +71,15 @@ class AccountingCustomer:
There are only a very small number of edge cases where this currency code is returned by the Codat system.
"""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Email address the customer can be contacted by."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the customer, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Phone number the customer can be contacted by."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Company number. In the UK, this is typically the Companies House company registration number."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -85,7 +87,7 @@ class AccountingCustomer:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is AccountingCustomer.UNSET }})
r"""Company tax number."""
@@ -94,6 +96,7 @@ class AccountingCustomer:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CreateCustomerResponse:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -125,7 +128,7 @@ class CreateCustomerResponse:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is CreateCustomerResponse.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -148,14 +151,14 @@ class CreateCustomerResponse:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- data: Optional[AccountingCustomer] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }})
+ data: Optional[AccountingCustomer] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data'), 'exclude': lambda f: f is CreateCustomerResponse.UNSET }})
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is CreateCustomerResponse.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is CreateCustomerResponse.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is CreateCustomerResponse.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/createsupplierresponse.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/createsupplierresponse.py
index eb1cbdc0a..fe6a6a51d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/createsupplierresponse.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/createsupplierresponse.py
@@ -26,23 +26,24 @@ class AccountingSupplier:
Deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: SupplierStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of the supplier."""
- addresses: Optional[List[Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[Items]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Name of the main contact for the supplier."""
- default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency') }})
+ default_currency: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Default currency the supplier's transactional data is recorded in."""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Email address that the supplier may be contacted on."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the supplier, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Phone number that the supplier may be contacted on."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -50,9 +51,9 @@ class AccountingSupplier:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- supplier_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName') }})
+ supplier_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Name of the supplier as recorded in the accounting system, typically the company name."""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is AccountingSupplier.UNSET }})
r"""Supplier's company tax number."""
@@ -61,6 +62,7 @@ class AccountingSupplier:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CreateSupplierResponse:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -92,7 +94,7 @@ class CreateSupplierResponse:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is CreateSupplierResponse.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -115,14 +117,14 @@ class CreateSupplierResponse:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- data: Optional[AccountingSupplier] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }})
+ data: Optional[AccountingSupplier] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data'), 'exclude': lambda f: f is CreateSupplierResponse.UNSET }})
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is CreateSupplierResponse.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is CreateSupplierResponse.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is CreateSupplierResponse.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/customer.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/customer.py
index c25746bd3..36abe351d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/customer.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/customer.py
@@ -15,19 +15,20 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class AccountingAddress:
+ UNSET='__SPEAKEASY_UNSET__'
type: AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
r"""The type of the address"""
- city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city') }})
+ city: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""City of the customer address."""
- country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country') }})
+ country: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""Country of the customer address."""
- line1: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1') }})
+ line1: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""Line 1 of the customer address."""
- line2: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2') }})
+ line2: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""Line 2 of the customer address."""
- postal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode') }})
+ postal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""Postal code or zip code."""
- region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region') }})
+ region: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is AccountingAddress.UNSET }})
r"""Region of the customer address."""
@@ -44,15 +45,16 @@ class Customer:
Customers' data links to accounts receivable [invoices](https://docs.codat.io/sync-for-expenses-api#/schemas/Invoice).
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of customer."""
- addresses: Optional[List[AccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[AccountingAddress]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is Customer.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Name of the main contact for the identified customer."""
- contacts: Optional[List[Contact]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts') }})
+ contacts: Optional[List[Contact]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts'), 'exclude': lambda f: f is Customer.UNSET }})
r"""An array of Contacts."""
- customer_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName') }})
+ customer_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Name of the customer as recorded in the accounting system, typically the company name."""
default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is None }})
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
@@ -63,15 +65,15 @@ class Customer:
There are only a very small number of edge cases where this currency code is returned by the Codat system.
"""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Email address the customer can be contacted by."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the customer, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Phone number the customer can be contacted by."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Company number. In the UK, this is typically the Companies House company registration number."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -79,7 +81,7 @@ class Customer:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is Customer.UNSET }})
r"""Company tax number."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/dataconnectionerror.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/dataconnectionerror.py
index c8e7e7aa9..5d276561e 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/dataconnectionerror.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/dataconnectionerror.py
@@ -10,6 +10,8 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class DataConnectionError:
+ error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is None }})
+ r"""A brief message about the error."""
errored_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('erroredOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -31,8 +33,6 @@ class DataConnectionError:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is None }})
- r"""A brief message about the error."""
status_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }})
r"""The HTTP status code returned by the error."""
status_text: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusText'), 'exclude': lambda f: f is None }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidation.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidation.py
new file mode 100644
index 000000000..26a78b0a8
--- /dev/null
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidation.py
@@ -0,0 +1,19 @@
+"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
+
+from __future__ import annotations
+import dataclasses
+from .errorvalidationitem import ErrorValidationItem
+from codatsyncexpenses import utils
+from dataclasses_json import Undefined, dataclass_json
+from typing import List, Optional
+
+
+@dataclass_json(undefined=Undefined.EXCLUDE)
+@dataclasses.dataclass
+class ErrorValidation:
+ r"""A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here."""
+ UNSET='__SPEAKEASY_UNSET__'
+ errors: Optional[List[ErrorValidationItem]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errors'), 'exclude': lambda f: f is ErrorValidation.UNSET }})
+ warnings: Optional[List[ErrorValidationItem]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('warnings'), 'exclude': lambda f: f is ErrorValidation.UNSET }})
+
+
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidationitem.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidationitem.py
new file mode 100644
index 000000000..271d0fb5d
--- /dev/null
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/errorvalidationitem.py
@@ -0,0 +1,21 @@
+"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
+
+from __future__ import annotations
+import dataclasses
+from codatsyncexpenses import utils
+from dataclasses_json import Undefined, dataclass_json
+from typing import Optional
+
+
+@dataclass_json(undefined=Undefined.EXCLUDE)
+@dataclasses.dataclass
+class ErrorValidationItem:
+ UNSET='__SPEAKEASY_UNSET__'
+ item_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('itemId'), 'exclude': lambda f: f is ErrorValidationItem.UNSET }})
+ r"""Unique identifier for a validation item."""
+ message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is ErrorValidationItem.UNSET }})
+ r"""A message outlining validation item's issue."""
+ validator_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validatorName'), 'exclude': lambda f: f is ErrorValidationItem.UNSET }})
+ r"""Name of validator."""
+
+
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransaction.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransaction.py
index b90e424d3..79cae4d45 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransaction.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransaction.py
@@ -34,6 +34,7 @@ class ExpenseTransactionType(str, Enum):
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class ExpenseTransaction:
+ UNSET='__SPEAKEASY_UNSET__'
currency: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency') }})
r"""Currency the transaction was recorded in."""
id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }})
@@ -63,7 +64,7 @@ class ExpenseTransaction:
r"""The type of transaction."""
bank_account_ref: Optional[BankAccountReference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bankAccountRef'), 'exclude': lambda f: f is None }})
contact_ref: Optional[ContactRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactRef'), 'exclude': lambda f: f is None }})
- currency_rate: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currencyRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder }})
+ currency_rate: Optional[Decimal] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currencyRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is ExpenseTransaction.UNSET }})
r"""Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.
Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.
@@ -103,7 +104,7 @@ class ExpenseTransaction:
r"""Name of the merchant where the purchase took place"""
notes: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('notes'), 'exclude': lambda f: f is None }})
r"""Any private, company notes about the transaction."""
- post_as_draft: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postAsDraft') }})
+ post_as_draft: Optional[bool] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postAsDraft'), 'exclude': lambda f: f is ExpenseTransaction.UNSET }})
r"""For supported accouting platforms, setting this optional property to true will post the transaction to a drafted state."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransactionline.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransactionline.py
index 8dd1525ca..2dafe7a03 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransactionline.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/expensetransactionline.py
@@ -14,14 +14,15 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class ExpenseTransactionLine:
+ UNSET='__SPEAKEASY_UNSET__'
account_ref: RecordRef = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accountRef') }})
net_amount: Decimal = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('netAmount'), 'encoder': utils.decimalencoder(False, False), 'decoder': utils.decimaldecoder }})
r"""Amount of the line, exclusive of tax."""
tax_amount: Decimal = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxAmount'), 'encoder': utils.decimalencoder(False, False), 'decoder': utils.decimaldecoder }})
r"""Amount of tax for the line."""
- invoice_to: Optional[InvoiceTo] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('invoiceTo') }})
+ invoice_to: Optional[InvoiceTo] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('invoiceTo'), 'exclude': lambda f: f is ExpenseTransactionLine.UNSET }})
r"""Unique identifier of the customer the expense is billable to. The invoiceTo object is currently only supported for QBO."""
tax_rate_ref: Optional[RecordRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxRateRef'), 'exclude': lambda f: f is None }})
- tracking_refs: Optional[List[TrackingRef]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('trackingRefs') }})
+ tracking_refs: Optional[List[TrackingRef]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('trackingRefs'), 'exclude': lambda f: f is ExpenseTransactionLine.UNSET }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/initiatesync.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/initiatesync.py
index 143b208c7..2d2737cd6 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/initiatesync.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/initiatesync.py
@@ -10,6 +10,7 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class InitiateSync:
- dataset_ids: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('datasetIds') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ dataset_ids: Optional[List[str]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('datasetIds'), 'exclude': lambda f: f is InitiateSync.UNSET }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/items.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/items.py
index 5440879ff..b17929958 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/items.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/items.py
@@ -11,19 +11,20 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class Items:
+ UNSET='__SPEAKEASY_UNSET__'
type: AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
r"""The type of the address"""
- city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city') }})
+ city: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is Items.UNSET }})
r"""City of the customer address."""
- country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country') }})
+ country: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is Items.UNSET }})
r"""Country of the customer address."""
- line1: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1') }})
+ line1: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1'), 'exclude': lambda f: f is Items.UNSET }})
r"""Line 1 of the customer address."""
- line2: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2') }})
+ line2: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2'), 'exclude': lambda f: f is Items.UNSET }})
r"""Line 2 of the customer address."""
- postal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode') }})
+ postal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode'), 'exclude': lambda f: f is Items.UNSET }})
r"""Postal code or zip code."""
- region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region') }})
+ region: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is Items.UNSET }})
r"""Region of the customer address."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/mappingoptions.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/mappingoptions.py
index e231f5f20..4b4e3571b 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/mappingoptions.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/mappingoptions.py
@@ -13,13 +13,14 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class MappingOptions:
- accounts: Optional[List[AccountMappingInfo]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accounts') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ accounts: Optional[List[AccountMappingInfo]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accounts'), 'exclude': lambda f: f is MappingOptions.UNSET }})
r"""Array of available accounts for mapping."""
- expense_provider: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('expenseProvider') }})
+ expense_provider: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('expenseProvider'), 'exclude': lambda f: f is MappingOptions.UNSET }})
r"""Name of the expense integration."""
- tax_rates: Optional[List[TaxRateMappingInfo]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxRates') }})
+ tax_rates: Optional[List[TaxRateMappingInfo]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxRates'), 'exclude': lambda f: f is MappingOptions.UNSET }})
r"""Array of available tax rates for mapping."""
- tracking_categories: Optional[List[TrackingCategoryMappingInfo]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('trackingCategories') }})
+ tracking_categories: Optional[List[TrackingCategoryMappingInfo]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('trackingCategories'), 'exclude': lambda f: f is MappingOptions.UNSET }})
r"""Array of available tracking categories for mapping."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/metadata.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/metadata.py
index 493860ff8..35a249214 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/metadata.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/metadata.py
@@ -10,7 +10,8 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class Metadata:
- is_deleted: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('isDeleted') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ is_deleted: Optional[bool] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('isDeleted'), 'exclude': lambda f: f is Metadata.UNSET }})
r"""Indicates whether the record has been deleted in the third-party system this record originated from."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pulloperation.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pulloperation.py
index be456afbf..978f9049f 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pulloperation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pulloperation.py
@@ -40,6 +40,7 @@ class PullOperation:
r"""Information about a queued, in progress or completed pull operation.
*Formally called `dataset`*
"""
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier of the company associated to this pull operation."""
connection_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('connectionId') }})
@@ -98,9 +99,9 @@ class PullOperation:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is PullOperation.UNSET }})
r"""A message about a transient or persistent error."""
- status_description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusDescription') }})
+ status_description: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusDescription'), 'exclude': lambda f: f is PullOperation.UNSET }})
r"""Additional information about the dataset status."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushfieldvalidation.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushfieldvalidation.py
index b04eea8f0..157cc0ded 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushfieldvalidation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushfieldvalidation.py
@@ -10,11 +10,12 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushFieldValidation:
+ UNSET='__SPEAKEASY_UNSET__'
details: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('details') }})
r"""Details on the validation issue."""
field: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('field'), 'exclude': lambda f: f is None }})
r"""Field name that resulted in the validation issue."""
- ref: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ref') }})
+ ref: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ref'), 'exclude': lambda f: f is PushFieldValidation.UNSET }})
r"""Unique reference identifier for the validation issue."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperation.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperation.py
index 1c3c65c4b..9171dc7da 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperation.py
@@ -14,6 +14,7 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushOperation:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -45,7 +46,7 @@ class PushOperation:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is PushOperation.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -70,11 +71,11 @@ class PushOperation:
"""
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is PushOperation.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is PushOperation.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is PushOperation.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperationchange.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperationchange.py
index 32d42eb26..91e163544 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperationchange.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoperationchange.py
@@ -12,7 +12,8 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushOperationChange:
- attachment_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('attachmentId') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ attachment_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('attachmentId'), 'exclude': lambda f: f is PushOperationChange.UNSET }})
r"""Unique identifier for the attachment created otherwise null."""
record_ref: Optional[PushOperationRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('recordRef'), 'exclude': lambda f: f is None }})
type: Optional[PushChangeType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoption.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoption.py
index 0c71ccf0c..2eaede5be 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoption.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoption.py
@@ -14,6 +14,7 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushOption:
+ UNSET='__SPEAKEASY_UNSET__'
display_name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('displayName') }})
r"""The property's display name."""
required: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required') }})
@@ -22,8 +23,8 @@ class PushOption:
r"""The option type."""
description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }})
r"""A description of the property."""
- options: Optional[List[PushOptionChoice]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('options') }})
- properties: Optional[Dict[str, PushOptionProperty]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('properties') }})
+ options: Optional[List[PushOptionChoice]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('options'), 'exclude': lambda f: f is PushOption.UNSET }})
+ properties: Optional[Dict[str, PushOptionProperty]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('properties'), 'exclude': lambda f: f is PushOption.UNSET }})
validation: Optional[PushValidationInfo] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validation'), 'exclude': lambda f: f is None }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoptionproperty.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoptionproperty.py
index 1d17451c3..282c9fe4d 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoptionproperty.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushoptionproperty.py
@@ -13,6 +13,7 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushOptionProperty:
+ UNSET='__SPEAKEASY_UNSET__'
description: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description') }})
r"""A description of the property."""
display_name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('displayName') }})
@@ -21,8 +22,8 @@ class PushOptionProperty:
r"""The property is required if `True`."""
type: PushOptionType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
r"""The option type."""
- options: Optional[List[PushOptionChoice]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('options') }})
- properties: Optional[Dict[str, PushOptionProperty]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('properties') }})
+ options: Optional[List[PushOptionChoice]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('options'), 'exclude': lambda f: f is PushOptionProperty.UNSET }})
+ properties: Optional[Dict[str, PushOptionProperty]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('properties'), 'exclude': lambda f: f is PushOptionProperty.UNSET }})
validation: Optional[PushValidationInfo] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validation'), 'exclude': lambda f: f is None }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushvalidationinfo.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushvalidationinfo.py
index d7ea59e17..d1b3a7e1e 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/pushvalidationinfo.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/pushvalidationinfo.py
@@ -11,7 +11,8 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class PushValidationInfo:
- information: Optional[List[PushFieldValidation]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('information') }})
- warnings: Optional[List[PushFieldValidation]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('warnings') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ information: Optional[List[PushFieldValidation]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('information'), 'exclude': lambda f: f is PushValidationInfo.UNSET }})
+ warnings: Optional[List[PushFieldValidation]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('warnings'), 'exclude': lambda f: f is PushValidationInfo.UNSET }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/supplementaldata.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/supplementaldata.py
index c65ba272a..4c2244927 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/supplementaldata.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/supplementaldata.py
@@ -14,6 +14,7 @@ class SupplementalData:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- content: Optional[Dict[str, Dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('content') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ content: Optional[Dict[str, Dict[str, Any]]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('content'), 'exclude': lambda f: f is SupplementalData.UNSET }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/supplier.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/supplier.py
index ce4f5a51f..be912db28 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/supplier.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/supplier.py
@@ -20,23 +20,24 @@ class Supplier:
From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-expenses-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-expenses-api#/schemas/Bill).
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: SupplierStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of the supplier."""
- addresses: Optional[List[Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[Items]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Name of the main contact for the supplier."""
- default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency') }})
+ default_currency: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Default currency the supplier's transactional data is recorded in."""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Email address that the supplier may be contacted on."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the supplier, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Phone number that the supplier may be contacted on."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -44,9 +45,9 @@ class Supplier:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- supplier_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName') }})
+ supplier_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Name of the supplier as recorded in the accounting system, typically the company name."""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is Supplier.UNSET }})
r"""Supplier's company tax number."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/taxratemappinginfo.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/taxratemappinginfo.py
index 8cc30382e..9a424100e 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/taxratemappinginfo.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/taxratemappinginfo.py
@@ -22,17 +22,18 @@ class TaxRateMappingInfoValidTransactionTypes(str, Enum):
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class TaxRateMappingInfo:
- code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('code') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('code'), 'exclude': lambda f: f is TaxRateMappingInfo.UNSET }})
r"""Code for the tax rate from the accounting platform."""
effective_tax_rate: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('effectiveTaxRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is None }})
r"""Effective tax rate."""
- id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }})
+ id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is TaxRateMappingInfo.UNSET }})
r"""Unique identifier of tax rate."""
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is TaxRateMappingInfo.UNSET }})
r"""Name of the tax rate in the accounting platform."""
total_tax_rate: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('totalTaxRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is None }})
r"""Total (not compounded) sum of the components of a tax rate."""
- valid_transaction_types: Optional[List[TaxRateMappingInfoValidTransactionTypes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validTransactionTypes') }})
+ valid_transaction_types: Optional[List[TaxRateMappingInfoValidTransactionTypes]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validTransactionTypes'), 'exclude': lambda f: f is TaxRateMappingInfo.UNSET }})
r"""Supported transaction types for the account."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/trackingcategorymappinginfo.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/trackingcategorymappinginfo.py
index aae15833a..566cafff0 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/trackingcategorymappinginfo.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/trackingcategorymappinginfo.py
@@ -10,9 +10,10 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class TrackingCategoryMappingInfo:
+ UNSET='__SPEAKEASY_UNSET__'
has_children: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('hasChildren'), 'exclude': lambda f: f is None }})
r"""Boolean of whether the tracking category has child categories."""
- id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }})
+ id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is TrackingCategoryMappingInfo.UNSET }})
r"""Unique identifier of the tracking category."""
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -35,9 +36,9 @@ class TrackingCategoryMappingInfo:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }})
+ name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is TrackingCategoryMappingInfo.UNSET }})
r"""Name of the tracking category as it appears in the accounting software."""
- parent_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parentId') }})
+ parent_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parentId'), 'exclude': lambda f: f is TrackingCategoryMappingInfo.UNSET }})
r"""ID of the parent tracking category"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/transaction.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/transaction.py
index 0fafb7922..5c08c8fb1 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/transaction.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/transaction.py
@@ -12,13 +12,14 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class Transaction:
- integration_type: Optional[IntegrationType] = dataclasses.field(default=IntegrationType.EXPENSES, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('integrationType') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ integration_type: Optional[IntegrationType] = dataclasses.field(default=IntegrationType.EXPENSES, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('integrationType'), 'exclude': lambda f: f is Transaction.UNSET }})
r"""Type of transaction that has been processed e.g. Expense or Bank Feed."""
- message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message') }})
+ message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is Transaction.UNSET }})
r"""Metadata such as validation errors or the resulting record created in the accounting software."""
- status: Optional[TransactionStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
+ status: Optional[TransactionStatus] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is Transaction.UNSET }})
r"""Status of the transaction."""
- transaction_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('transactionId') }})
+ transaction_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('transactionId'), 'exclude': lambda f: f is Transaction.UNSET }})
r"""Your unique idenfier of the transaction."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/updatecustomerresponse.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/updatecustomerresponse.py
index 667d1e41c..e895ac1aa 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/updatecustomerresponse.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/updatecustomerresponse.py
@@ -19,19 +19,20 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class UpdateCustomerResponseAccountingAddress:
+ UNSET='__SPEAKEASY_UNSET__'
type: AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
r"""The type of the address"""
- city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city') }})
+ city: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""City of the customer address."""
- country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country') }})
+ country: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""Country of the customer address."""
- line1: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1') }})
+ line1: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""Line 1 of the customer address."""
- line2: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2') }})
+ line2: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""Line 2 of the customer address."""
- postal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode') }})
+ postal_code: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""Postal code or zip code."""
- region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region') }})
+ region: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingAddress.UNSET }})
r"""Region of the customer address."""
@@ -50,15 +51,16 @@ class UpdateCustomerResponseAccountingCustomer:
Deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of customer."""
- addresses: Optional[List[UpdateCustomerResponseAccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[UpdateCustomerResponseAccountingAddress]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Name of the main contact for the identified customer."""
- contacts: Optional[List[Contact]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts') }})
+ contacts: Optional[List[Contact]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contacts'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""An array of Contacts."""
- customer_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName') }})
+ customer_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerName'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Name of the customer as recorded in the accounting system, typically the company name."""
default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is None }})
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
@@ -69,15 +71,15 @@ class UpdateCustomerResponseAccountingCustomer:
There are only a very small number of edge cases where this currency code is returned by the Codat system.
"""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Email address the customer can be contacted by."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the customer, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Phone number the customer can be contacted by."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Company number. In the UK, this is typically the Companies House company registration number."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -85,7 +87,7 @@ class UpdateCustomerResponseAccountingCustomer:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is UpdateCustomerResponseAccountingCustomer.UNSET }})
r"""Company tax number."""
@@ -94,6 +96,7 @@ class UpdateCustomerResponseAccountingCustomer:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class UpdateCustomerResponse:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -125,7 +128,7 @@ class UpdateCustomerResponse:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is UpdateCustomerResponse.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -148,14 +151,14 @@ class UpdateCustomerResponse:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- data: Optional[UpdateCustomerResponseAccountingCustomer] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }})
+ data: Optional[UpdateCustomerResponseAccountingCustomer] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data'), 'exclude': lambda f: f is UpdateCustomerResponse.UNSET }})
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is UpdateCustomerResponse.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is UpdateCustomerResponse.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is UpdateCustomerResponse.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/updateexpenserequest.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/updateexpenserequest.py
index da9459512..2988c9d0b 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/updateexpenserequest.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/updateexpenserequest.py
@@ -22,6 +22,7 @@ class UpdateExpenseRequestBankAccountReference:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class UpdateExpenseRequest:
+ UNSET='__SPEAKEASY_UNSET__'
issue_date: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('issueDate') }})
r"""Date the transaction was recorded."""
type: Any = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
@@ -29,7 +30,7 @@ class UpdateExpenseRequest:
contact_ref: Optional[ContactRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactRef'), 'exclude': lambda f: f is None }})
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
r"""Currency the transaction was recorded in."""
- currency_rate: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currencyRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder }})
+ currency_rate: Optional[Decimal] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currencyRate'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is UpdateExpenseRequest.UNSET }})
r"""Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.
Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/updatesupplierresponse.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/updatesupplierresponse.py
index 2bc22b84f..ff3928568 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/updatesupplierresponse.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/updatesupplierresponse.py
@@ -26,23 +26,24 @@ class UpdateSupplierResponseAccountingSupplier:
Deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
"""
+ UNSET='__SPEAKEASY_UNSET__'
status: SupplierStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }})
r"""Status of the supplier."""
- addresses: Optional[List[Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses') }})
+ addresses: Optional[List[Items]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""An array of Addresses."""
- contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName') }})
+ contact_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Name of the main contact for the supplier."""
- default_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency') }})
+ default_currency: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('defaultCurrency'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Default currency the supplier's transactional data is recorded in."""
- email_address: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress') }})
+ email_address: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emailAddress'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Email address that the supplier may be contacted on."""
id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }})
r"""Identifier for the supplier, unique to the company in the accounting platform."""
metadata: Optional[Metadata] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('metadata'), 'exclude': lambda f: f is None }})
modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }})
- phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone') }})
+ phone: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Phone number that the supplier may be contacted on."""
- registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber') }})
+ registration_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House."""
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
supplemental_data: Optional[SupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }})
@@ -50,9 +51,9 @@ class UpdateSupplierResponseAccountingSupplier:
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data.
"""
- supplier_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName') }})
+ supplier_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierName'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Name of the supplier as recorded in the accounting system, typically the company name."""
- tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber') }})
+ tax_number: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is UpdateSupplierResponseAccountingSupplier.UNSET }})
r"""Supplier's company tax number."""
@@ -61,6 +62,7 @@ class UpdateSupplierResponseAccountingSupplier:
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class UpdateSupplierResponse:
+ UNSET='__SPEAKEASY_UNSET__'
company_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId') }})
r"""Unique identifier for your SMB in Codat."""
data_connection_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataConnectionKey') }})
@@ -92,7 +94,7 @@ class UpdateSupplierResponse:
r"""The current status of the push operation."""
status_code: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode') }})
r"""Push status code."""
- changes: Optional[List[PushOperationChange]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes') }})
+ changes: Optional[List[PushOperationChange]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('changes'), 'exclude': lambda f: f is UpdateSupplierResponse.UNSET }})
r"""Contains a single entry that communicates which record has changed and the manner in which it changed."""
completed_on_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('completedOnUtc'), 'exclude': lambda f: f is None }})
r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
@@ -115,14 +117,14 @@ class UpdateSupplierResponse:
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
"""
- data: Optional[UpdateSupplierResponseAccountingSupplier] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }})
+ data: Optional[UpdateSupplierResponseAccountingSupplier] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data'), 'exclude': lambda f: f is UpdateSupplierResponse.UNSET }})
data_type: Optional[DataType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dataType'), 'exclude': lambda f: f is None }})
r"""Available Data types"""
- error_message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage') }})
+ error_message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errorMessage'), 'exclude': lambda f: f is UpdateSupplierResponse.UNSET }})
r"""A message about the error."""
- timeout_in_minutes: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes') }})
+ timeout_in_minutes: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInMinutes'), 'exclude': lambda f: f is UpdateSupplierResponse.UNSET }})
r"""Number of minutes the push operation must complete within before it times out."""
- timeout_in_seconds: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds') }})
+ timeout_in_seconds: Optional[int] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timeoutInSeconds'), 'exclude': lambda f: f is UpdateSupplierResponse.UNSET }})
r"""Number of seconds the push operation must complete within before it times out.
Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/validation.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/validation.py
index 2e3837e15..954c724bf 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/validation.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/validation.py
@@ -12,7 +12,8 @@
@dataclasses.dataclass
class Validation:
r"""A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here."""
- errors: Optional[List[ValidationItem]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errors') }})
- warnings: Optional[List[ValidationItem]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('warnings') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ errors: Optional[List[ValidationItem]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errors'), 'exclude': lambda f: f is Validation.UNSET }})
+ warnings: Optional[List[ValidationItem]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('warnings'), 'exclude': lambda f: f is Validation.UNSET }})
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/shared/validationitem.py b/sync-for-expenses/src/codatsyncexpenses/models/shared/validationitem.py
index 6b572e1db..654766e6c 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/shared/validationitem.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/shared/validationitem.py
@@ -10,11 +10,12 @@
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class ValidationItem:
- item_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('itemId') }})
+ UNSET='__SPEAKEASY_UNSET__'
+ item_id: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('itemId'), 'exclude': lambda f: f is ValidationItem.UNSET }})
r"""Unique identifier for a validation item."""
- message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message') }})
+ message: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is ValidationItem.UNSET }})
r"""A message outlining validation item's issue."""
- validator_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validatorName') }})
+ validator_name: Optional[str] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('validatorName'), 'exclude': lambda f: f is ValidationItem.UNSET }})
r"""Name of validator."""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reached.py b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reached.py
index 2e236f1a6..6f8ec4867 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reached.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reached.py
@@ -9,9 +9,9 @@
class ClientRateLimitReachedResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reset.py b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reset.py
index 27dbf5cb4..ecc722470 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reset.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/client_rate_limit_reset.py
@@ -9,9 +9,9 @@
class ClientRateLimitResetResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_complete.py b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_complete.py
index 5e7f61f93..0ece45907 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_complete.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_complete.py
@@ -9,9 +9,9 @@
class SyncCompleteResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_failed.py b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_failed.py
index 77c4ae00f..b5288346f 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_failed.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_failed.py
@@ -9,9 +9,9 @@
class SyncFailedResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_started.py b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_started.py
index b1ccaf7b0..aa669a237 100644
--- a/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_started.py
+++ b/sync-for-expenses/src/codatsyncexpenses/models/webhooks/sync_started.py
@@ -9,9 +9,9 @@
class SyncStartedResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
- raw_response: requests_http.Response = dataclasses.field()
- r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
+ raw_response: requests_http.Response = dataclasses.field()
+ r"""Raw HTTP response; suitable for custom response parsing"""
diff --git a/sync-for-expenses/src/codatsyncexpenses/sdkconfiguration.py b/sync-for-expenses/src/codatsyncexpenses/sdkconfiguration.py
index 40803778a..0d58d0b67 100644
--- a/sync-for-expenses/src/codatsyncexpenses/sdkconfiguration.py
+++ b/sync-for-expenses/src/codatsyncexpenses/sdkconfiguration.py
@@ -1,11 +1,12 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
-import requests
-from dataclasses import dataclass
-from typing import Dict, Tuple, Callable, Union
-from .utils.retries import RetryConfig
+
+import requests as requests_http
from .utils import utils
+from .utils.retries import RetryConfig
from codatsyncexpenses.models import shared
+from dataclasses import dataclass
+from typing import Callable, Dict, Tuple, Union
SERVERS = [
@@ -15,15 +16,15 @@
@dataclass
class SDKConfiguration:
- client: requests.Session
+ client: requests_http.Session
security: Union[shared.Security,Callable[[], shared.Security]] = None
server_url: str = ''
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = 'prealpha'
- sdk_version: str = '6.0.0'
- gen_version: str = '2.248.6'
- user_agent: str = 'speakeasy-sdk/python 6.0.0 2.248.6 prealpha codat-sync-for-expenses'
+ sdk_version: str = '6.0.1'
+ gen_version: str = '2.257.2'
+ user_agent: str = 'speakeasy-sdk/python 6.0.1 2.257.2 prealpha codat-sync-for-expenses'
retry_config: RetryConfig = None
def get_server_details(self) -> Tuple[str, Dict[str, str]]: