diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bc2083281..be318105d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.420.0 +speakeasyVersion: 1.423.1 sources: accounting-source: sourceNamespace: accounting-source @@ -65,8 +65,8 @@ sources: - main sync-for-payables-source: sourceNamespace: sync-for-payables-source - sourceRevisionDigest: sha256:7c3fb539b32980f17c61cbe8bbe409b4057d4716e8cef551dd8ec88317143f70 - sourceBlobDigest: sha256:8df2e8138c36c7caf1549554e034c740c7e5b0250b1b001e86cb5fb1b9377447 + sourceRevisionDigest: sha256:7acbfc07ed039c8ecd50bb449bff9beb1dc68249d750d7b5ac14b0706ea179f2 + sourceBlobDigest: sha256:f16cfaff947469b23c5b6017dd1069909876cdb15b2ab4ed49cbf9c272a1896b tags: - latest - main @@ -126,8 +126,8 @@ targets: sync-for-payables-library: source: sync-for-payables-source sourceNamespace: sync-for-payables-source - sourceRevisionDigest: sha256:7c3fb539b32980f17c61cbe8bbe409b4057d4716e8cef551dd8ec88317143f70 - sourceBlobDigest: sha256:8df2e8138c36c7caf1549554e034c740c7e5b0250b1b001e86cb5fb1b9377447 + sourceRevisionDigest: sha256:7acbfc07ed039c8ecd50bb449bff9beb1dc68249d750d7b5ac14b0706ea179f2 + sourceBlobDigest: sha256:f16cfaff947469b23c5b6017dd1069909876cdb15b2ab4ed49cbf9c272a1896b sync-for-payables-version-1-library: source: sync-for-payables-version-1-source sourceNamespace: sync-for-payables-version-1-source @@ -221,6 +221,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/accounting-source-code-samples + blocking: false assess-library: target: python source: assess-source @@ -228,6 +232,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/assess-source-code-samples + blocking: false bank-feeds-library: target: python source: bank-feeds-source @@ -235,6 +243,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/bank-feeds-source-code-samples + blocking: false banking-library: target: python source: banking-source @@ -242,6 +254,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/banking-source-code-samples + blocking: false commerce-library: target: python source: commerce-source @@ -249,6 +265,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/commerce-source-code-samples + blocking: false common-library: target: python source: common-source @@ -256,6 +276,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/common-source-code-samples + blocking: false files-library: target: python source: files-source @@ -263,6 +287,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/files-source-code-samples + blocking: false lending-library: target: python source: lending-source @@ -270,6 +298,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/lending-source-code-samples + blocking: false platform-library: target: python source: platform-source @@ -277,6 +309,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/platform-source-code-samples + blocking: false sync-for-commerce-library: target: python source: sync-for-commerce-source @@ -284,6 +320,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-commerce-source-code-samples + blocking: false sync-for-commerce-version-1-library: target: python source: sync-for-commerce-version-1-source @@ -298,6 +338,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-expenses-source-code-samples + blocking: false sync-for-expenses-version-1-library: target: python source: sync-for-expenses-version-1-source @@ -312,6 +356,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source-code-samples + blocking: false sync-for-payables-version-1-library: target: python source: sync-for-payables-version-1-source @@ -319,6 +367,10 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-version-1-source-code-samples + blocking: false sync-for-payroll-library: target: python source: sync-for-payroll-source @@ -326,3 +378,7 @@ workflow: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source-code-samples + blocking: false diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 8fdbd31ed..f3e5b49ed 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -85,6 +85,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/accounting-source-code-samples + blocking: false assess-library: target: python source: assess-source @@ -92,6 +96,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/assess-source-code-samples + blocking: false bank-feeds-library: target: python source: bank-feeds-source @@ -99,6 +107,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/bank-feeds-source-code-samples + blocking: false banking-library: target: python source: banking-source @@ -106,6 +118,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/banking-source-code-samples + blocking: false commerce-library: target: python source: commerce-source @@ -113,6 +129,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/commerce-source-code-samples + blocking: false common-library: target: python source: common-source @@ -120,6 +140,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/common-source-code-samples + blocking: false files-library: target: python source: files-source @@ -127,6 +151,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/files-source-code-samples + blocking: false lending-library: target: python source: lending-source @@ -134,6 +162,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/lending-source-code-samples + blocking: false platform-library: target: python source: platform-source @@ -141,6 +173,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/platform-source-code-samples + blocking: false sync-for-commerce-library: target: python source: sync-for-commerce-source @@ -148,6 +184,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-commerce-source-code-samples + blocking: false sync-for-commerce-version-1-library: target: python source: sync-for-commerce-version-1-source @@ -162,6 +202,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-expenses-source-code-samples + blocking: false sync-for-expenses-version-1-library: target: python source: sync-for-expenses-version-1-source @@ -176,6 +220,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source-code-samples + blocking: false sync-for-payables-version-1-library: target: python source: sync-for-payables-version-1-source @@ -183,6 +231,10 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-version-1-source-code-samples + blocking: false sync-for-payroll-library: target: python source: sync-for-payroll-source @@ -190,3 +242,7 @@ targets: publish: pypi: token: $pypi_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source-code-samples + blocking: false diff --git a/sync-for-payables/.speakeasy/gen.lock b/sync-for-payables/.speakeasy/gen.lock index 6e359f8da..ad0cee56e 100644 --- a/sync-for-payables/.speakeasy/gen.lock +++ b/sync-for-payables/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 0722f07c-657c-4062-93f1-39ee3fe757d0 management: - docChecksum: 5d8ab43ac5cb4826a302caff35118eeb + docChecksum: fbf8f2528e5a3e33fc271641da46c916 docVersion: 3.0.0 - speakeasyVersion: 1.420.0 - generationVersion: 2.438.15 - releaseVersion: 4.0.0 - configChecksum: 5e8fc9efa052592f604ba3772ffa47df + speakeasyVersion: 1.423.1 + generationVersion: 2.442.11 + releaseVersion: 5.0.0 + configChecksum: b486ff3d7b57c3e5c67ee0c5958295e6 repoURL: https://github.com/codatio/client-sdk-python.git repoSubDirectory: sync-for-payables installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-payables @@ -34,6 +34,7 @@ features: retries: 3.0.2 sdkHooks: 1.0.0 serverEventsSentinels: 0.1.0 + tests: 1.6.0 uploadStreams: 1.0.0 webhooks: 2.0.0 generatedFiles: @@ -100,7 +101,6 @@ generatedFiles: - docs/models/shared/company.md - docs/models/shared/companyinformation.md - docs/models/shared/companyrequestbody.md - - docs/models/shared/companytags.md - docs/models/shared/connection.md - docs/models/shared/connections.md - docs/models/shared/dataconnectionerror.md @@ -119,7 +119,6 @@ generatedFiles: - docs/models/shared/supplierref.md - docs/models/shared/suppliers.md - docs/models/shared/supplierstatus.md - - docs/models/shared/tags.md - docs/models/shared/taxratemappingoption.md - docs/models/shared/taxratestatus.md - docs/models/utils/retryconfig.md @@ -226,7 +225,6 @@ generatedFiles: - src/codat_sync_for_payables/models/shared/supplierref.py - src/codat_sync_for_payables/models/shared/suppliers.py - src/codat_sync_for_payables/models/shared/supplierstatus.py - - src/codat_sync_for_payables/models/shared/tags.py - src/codat_sync_for_payables/models/shared/taxratemappingoption.py - src/codat_sync_for_payables/py.typed - src/codat_sync_for_payables/sdk.py @@ -271,7 +269,7 @@ examples: orderBy: "-modifiedDate" responses: "200": - application/json: {"results": [{"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "My Test Company", "description": "My Test Company make testing software", "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}], "pageNumber": 1, "pageSize": 100, "totalResults": 1, "_links": {"self": {"href": "/companies"}, "current": {"href": "/companies?page=1&pageSize=100"}}} + application/json: {"results": [{"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "My Test Company", "description": "My Test Company make testing software", "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}], "pageNumber": 1, "pageSize": 100, "totalResults": 1, "_links": {"self": {"href": "/companies"}, "current": {"href": "/companies?page=1&pageSize=100"}}} List of Companies: parameters: query: @@ -281,7 +279,7 @@ examples: orderBy: "-modifiedDate" responses: "200": - application/json: {"results": [{"id": "d1568dde-adf6-11ed-afa1-0242ac120002", "name": "Technicalium", "description": "Technology services, including web and app design and development", "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}, {"id": "096db70b-78de-4ff0-aa98-299cb5fe17a0", "name": "Godata", "description": "A new digital agency with a passion for creating amazing digital experiences", "redirect": "https://link.codat.io/company/096db70b-78de-4ff0-aa98-299cb5fe17a0", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"id": "a70bc148-dc21-46b2-a257-d9c58ac15cbb", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/096db70b-78de-4ff0-aa98-299cb5fe17a0/connections/a70bc148-dc21-46b2-a257-d9c58ac15cbb/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}], "pageNumber": 1, "pageSize": 100, "totalResults": 2, "_links": {"self": {"href": "/companies"}, "current": {"href": "/companies?page=1&pageSize=100"}}} + application/json: {"results": [{"id": "d1568dde-adf6-11ed-afa1-0242ac120002", "name": "Technicalium", "description": "Technology services, including web and app design and development", "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}, {"id": "096db70b-78de-4ff0-aa98-299cb5fe17a0", "name": "Godata", "description": "A new digital agency with a passion for creating amazing digital experiences", "redirect": "https://link.codat.io/company/096db70b-78de-4ff0-aa98-299cb5fe17a0", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"id": "a70bc148-dc21-46b2-a257-d9c58ac15cbb", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "platformName": "Pandle", "linkUrl": "https://link-api.codat.io/companies/096db70b-78de-4ff0-aa98-299cb5fe17a0/connections/a70bc148-dc21-46b2-a257-d9c58ac15cbb/start", "status": "Linked", "lastSync": "2022-01-01T12:30:00.000Z", "created": "2022-01-01T11:30:00Z", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]}], "pageNumber": 1, "pageSize": 100, "totalResults": 2, "_links": {"self": {"href": "/companies"}, "current": {"href": "/companies?page=1&pageSize=100"}}} Malformed query: parameters: query: @@ -320,7 +318,7 @@ examples: application/json: {"name": "Bank of Dave", "description": "Requested early access to the new financing scheme."} responses: "200": - application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "description": "", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "lastSync": "2022-10-23T00:00:00Z", "created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": []} + application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "description": "", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "lastSync": "2022-10-23T00:00:00Z", "created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "tags": {"region": "us"}, "dataConnections": []} Malformed query: requestBody: application/json: {"name": "Bank of Dave", "description": "Requested early access to the new financing scheme."} @@ -336,7 +334,7 @@ examples: application/json: {"name": "New Name", "description": "Requested early access to the new financing scheme."} responses: "200": - application/json: {"id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "string", "description": "Requested early access to the new financing scheme.", "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", "sourceType": "Banking", "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", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]} + application/json: {"id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "string", "description": "Requested early access to the new financing scheme.", "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", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}, "dataConnections": [{"id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "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", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}]} "401": {} Update description: parameters: @@ -346,7 +344,7 @@ examples: application/json: {"name": "Same name", "description": "Additional documents required"} responses: "200": - application/json: {"id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "string", "description": "Requested early access to the new financing scheme.", "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", "sourceType": "Banking", "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", "dataConnectionErrors": []}]} + application/json: {"id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "string", "description": "Requested early access to the new financing scheme.", "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", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}, "dataConnections": [{"id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "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", "dataConnectionErrors": []}]} "401": {} Unauthorized: parameters: @@ -405,7 +403,7 @@ examples: orderBy: "-modifiedDate" responses: "200": - application/json: {"results": [{"id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "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", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}], "pageNumber": 0, "pageSize": 0, "totalResults": 0, "_links": {"self": {"href": "string"}, "current": {"href": "string"}, "next": {"href": "string"}, "previous": {"href": "string"}}} + application/json: {"results": [{"id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "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", "dataConnectionErrors": [{"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}, {"erroredOnUtc": "2022-10-23T00:00:00Z", "resolvedOnUtc": "2022-10-23T00:00:00Z"}]}], "pageNumber": 0, "pageSize": 0, "totalResults": 0, "_links": {"self": {"href": "string"}, "current": {"href": "string"}, "next": {"href": "string"}, "previous": {"href": "string"}}} Malformed query: parameters: path: @@ -523,7 +521,7 @@ examples: statusQuery: "status=Archived" responses: "200": - application/json: {"accounts": [], "taxRate": [{"id": "d2939064-dd3a-4c0f-9865-a238c2193515"}]} + application/json: {"accounts": [], "taxRates": []} "400": {} Mapping options: parameters: @@ -535,7 +533,7 @@ examples: statusQuery: "status=Archived" responses: "200": - application/json: {"accounts": [{"id": "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", "nominalCode": "879-i", "name": "Accounts payable", "type": "Liability", "currency": "GBP", "status": "Active", "sourceModifiedDate": "2022-10-23T00:00:00Z"}], "taxRate": [{"id": "d2939064-dd3a-4c0f-9865-a238c2193515"}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} + application/json: {"accounts": [{"id": "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", "nominalCode": "879-i", "name": "Accounts payable", "type": "Liability", "currency": "GBP", "status": "Active", "sourceModifiedDate": "2022-10-23T00:00:00Z"}], "taxRates": [{"id": "d2939064-dd3a-4c0f-9865-a238c2193515", "name": "VAT @ 20%", "code": "VAT20", "effectiveTaxRate": 20, "totalTaxRate": 20, "status": "Active"}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} Malformed query: parameters: path: @@ -767,7 +765,7 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - billId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + billId: "7110701885" header: {} requestBody: application/json: {"amount": 1329.54, "date": "2022-10-23T00:00:00Z", "reference": "Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44", "accountRef": {"id": ""}} @@ -779,7 +777,7 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - billId: "13d946f0-c5d5-42bc-b092-97ece17923ab" + billId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" header: {} requestBody: application/json: {"amount": 1329.54, "date": "2022-10-23T00:00:00Z", "reference": "Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44", "accountRef": {"id": ""}} diff --git a/sync-for-payables/.speakeasy/gen.yaml b/sync-for-payables/.speakeasy/gen.yaml index 1d679a1c7..af344d574 100644 --- a/sync-for-payables/.speakeasy/gen.yaml +++ b/sync-for-payables/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 4.0.0 + version: 5.0.0 additionalDependencies: dev: {} main: {} diff --git a/sync-for-payables/README.md b/sync-for-payables/README.md index 88af92955..056b5e849 100644 --- a/sync-for-payables/README.md +++ b/sync-for-payables/README.md @@ -146,6 +146,16 @@ The bill pay kit is an API and a set of supporting tools designed to integrate a [Explore product](https://docs.codat.io/payables/bill-pay-kit) | [See OpenAPI spec](https://github.com/codatio/oas) +--- +## Supported Integrations + +| Integration | Supported | +|-------------------------------|-----------| +| FreeAgent | Yes | +| QuickBooks Online | Yes | +| Oracle NetSuite | Yes | +| Xero | Yes | + --- ## Endpoints diff --git a/sync-for-payables/RELEASES.md b/sync-for-payables/RELEASES.md index 04ba433fb..4ae53d1c5 100644 --- a/sync-for-payables/RELEASES.md +++ b/sync-for-payables/RELEASES.md @@ -8,4 +8,14 @@ Based on: ### Generated - [python v4.0.0] sync-for-payables ### Releases -- [PyPI v4.0.0] https://pypi.org/project/codat-sync-for-payables/4.0.0 - sync-for-payables \ No newline at end of file +- [PyPI v4.0.0] https://pypi.org/project/codat-sync-for-payables/4.0.0 - sync-for-payables + +## 2024-10-29 14:20:03 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.423.1 (2.442.11) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v5.0.0] sync-for-payables +### Releases +- [PyPI v5.0.0] https://pypi.org/project/codat-sync-for-payables/5.0.0 - sync-for-payables \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billlineitem.md b/sync-for-payables/docs/models/shared/billlineitem.md index 529becc44..a59429885 100644 --- a/sync-for-payables/docs/models/shared/billlineitem.md +++ b/sync-for-payables/docs/models/shared/billlineitem.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `unit_amount` | *Decimal* | :heavy_check_mark: | Unit price of the goods or service. | -| `quantity` | *Decimal* | :heavy_check_mark: | Number of units of goods or services received. | -| `account_ref` | [shared.BillAccountRef](../../models/shared/billaccountref.md) | :heavy_check_mark: | Reference to the account to which the line item is linked. | -| `tax_rate_ref` | [shared.BillTaxRateRef](../../models/shared/billtaxrateref.md) | :heavy_check_mark: | Reference to the tax rate to which the line item is linked. | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Friendly name of the goods or services received. | -| `tax_amount` | *Optional[Decimal]* | :heavy_minus_sign: | Amount of tax applied to the line item. | -| `total_amount` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Total amount of the line, including tax. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `unit_amount` | *Decimal* | :heavy_check_mark: | Unit price of the goods or service. | +| `quantity` | *Decimal* | :heavy_check_mark: | Number of units of goods or services received. | +| `account_ref` | [shared.BillAccountRef](../../models/shared/billaccountref.md) | :heavy_check_mark: | Reference to the account to which the line item is linked. | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Friendly name of the goods or services received. | +| `tax_amount` | *Optional[Decimal]* | :heavy_minus_sign: | Amount of tax applied to the line item. | +| `total_amount` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Total amount of the line, including tax. | +| `tax_rate_ref` | [Optional[shared.BillTaxRateRef]](../../models/shared/billtaxrateref.md) | :heavy_minus_sign: | Reference to the tax rate to which the line item is linked. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billmappingoptions.md b/sync-for-payables/docs/models/shared/billmappingoptions.md index 0dbd7d502..87c9f57a9 100644 --- a/sync-for-payables/docs/models/shared/billmappingoptions.md +++ b/sync-for-payables/docs/models/shared/billmappingoptions.md @@ -8,5 +8,5 @@ The bill mapping options for a company's accounting software. | Field | Type | Required | Description | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | `accounts` | List[[shared.AccountMappingOption](../../models/shared/accountmappingoption.md)] | :heavy_minus_sign: | N/A | -| `tax_rate` | List[[shared.TaxRateMappingOption](../../models/shared/taxratemappingoption.md)] | :heavy_minus_sign: | N/A | +| `tax_rates` | List[[shared.TaxRateMappingOption](../../models/shared/taxratemappingoption.md)] | :heavy_minus_sign: | N/A | | `pagination` | [Optional[shared.Pagination]](../../models/shared/pagination.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/company.md b/sync-for-payables/docs/models/shared/company.md index a7867fe28..cd7518801 100644 --- a/sync-for-payables/docs/models/shared/company.md +++ b/sync-for-payables/docs/models/shared/company.md @@ -19,5 +19,5 @@ When you create a company, you can specify a `name` and we will automatically ge | `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` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of user that created the company in Codat. | | | `products` | List[*str*] | :heavy_minus_sign: | An array of products that are currently enabled for the company. | | -| `tags` | [Optional[shared.CompanyTags]](../../models/shared/companytags.md) | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | +| `tags` | Dict[str, *str*] | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | | `data_connections` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/companyrequestbody.md b/sync-for-payables/docs/models/shared/companyrequestbody.md index 22fb289bc..3b85563a1 100644 --- a/sync-for-payables/docs/models/shared/companyrequestbody.md +++ b/sync-for-payables/docs/models/shared/companyrequestbody.md @@ -7,4 +7,4 @@ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `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. | -| `tags` | [Optional[shared.Tags]](../../models/shared/tags.md) | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | \ No newline at end of file +| `tags` | Dict[str, *str*] | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/companytags.md b/sync-for-payables/docs/models/shared/companytags.md deleted file mode 100644 index cbbb3f90f..000000000 --- a/sync-for-payables/docs/models/shared/companytags.md +++ /dev/null @@ -1,9 +0,0 @@ -# CompanyTags - -A collection of user-defined key-value pairs that store custom metadata against the company. - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/tags.md b/sync-for-payables/docs/models/shared/tags.md deleted file mode 100644 index 6de993aa8..000000000 --- a/sync-for-payables/docs/models/shared/tags.md +++ /dev/null @@ -1,9 +0,0 @@ -# Tags - -A collection of user-defined key-value pairs that store custom metadata against the company. - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/bills/README.md b/sync-for-payables/docs/sdks/bills/README.md index 33e8090ca..971fdbfa6 100644 --- a/sync-for-payables/docs/sdks/bills/README.md +++ b/sync-for-payables/docs/sdks/bills/README.md @@ -156,12 +156,12 @@ res = s.bills.create(request={ "account_ref": { "id": "46f9461e-788b-4906-8b74-d1ea17f6dc10", }, - "tax_rate_ref": { - "id": "INPUT2", - }, "description": "Half day training - Microsoft Office", "tax_amount": Decimal("360"), "total_amount": Decimal("2160"), + "tax_rate_ref": { + "id": "INPUT2", + }, }, { "unit_amount": Decimal("4000"), @@ -169,12 +169,12 @@ res = s.bills.create(request={ "account_ref": { "id": "f96c9458-d724-47bf-8f74-a9d5726465ce", }, - "tax_rate_ref": { - "id": "INPUT2", - }, "description": "Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month.", "tax_amount": Decimal("800"), "total_amount": Decimal("4800"), + "tax_rate_ref": { + "id": "INPUT2", + }, }, { "unit_amount": Decimal("32"), @@ -182,12 +182,12 @@ res = s.bills.create(request={ "account_ref": { "id": "cba6527d-f102-4538-b421-e483233e9d5a", }, - "tax_rate_ref": { - "id": "INPUT2", - }, "description": "Stationery charges", "tax_amount": Decimal("51.2"), "total_amount": Decimal("307.2"), + "tax_rate_ref": { + "id": "INPUT2", + }, }, ], }, diff --git a/sync-for-payables/docs/sdks/codatsyncpayables/README.md b/sync-for-payables/docs/sdks/codatsyncpayables/README.md index c26eaa375..bded9360b 100644 --- a/sync-for-payables/docs/sdks/codatsyncpayables/README.md +++ b/sync-for-payables/docs/sdks/codatsyncpayables/README.md @@ -8,6 +8,16 @@ The bill pay kit is an API and a set of supporting tools designed to integrate a [Explore product](https://docs.codat.io/payables/bill-pay-kit) | [See OpenAPI spec](https://github.com/codatio/oas) +--- +## Supported Integrations + +| Integration | Supported | +|-------------------------------|-----------| +| FreeAgent | Yes | +| QuickBooks Online | Yes | +| Oracle NetSuite | Yes | +| Xero | Yes | + --- ## Endpoints diff --git a/sync-for-payables/pyproject.toml b/sync-for-payables/pyproject.toml index e8acce141..704e13352 100644 --- a/sync-for-payables/pyproject.toml +++ b/sync-for-payables/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "codat-sync-for-payables" -version = "4.0.0" +version = "5.0.0" description = "Streamline your customers' accounts payable workflow." authors = ["Speakeasy",] readme = "README-PYPI.md" diff --git a/sync-for-payables/src/codat_sync_for_payables/_version.py b/sync-for-payables/src/codat_sync_for_payables/_version.py index 4101aaaf9..91df78a79 100644 --- a/sync-for-payables/src/codat_sync_for_payables/_version.py +++ b/sync-for-payables/src/codat_sync_for_payables/_version.py @@ -3,7 +3,7 @@ import importlib.metadata __title__: str = "codat-sync-for-payables" -__version__: str = "4.0.0" +__version__: str = "5.0.0" try: if __package__ is not None: diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/__init__.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/__init__.py index 63eecf279..0545935cb 100644 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/__init__.py +++ b/sync-for-payables/src/codat_sync_for_payables/models/shared/__init__.py @@ -51,7 +51,7 @@ ) from .codatfile import CodatFile, CodatFileTypedDict from .companies import Companies, CompaniesTypedDict -from .company import Company, CompanyTags, CompanyTagsTypedDict, CompanyTypedDict +from .company import Company, CompanyTypedDict from .companyinformation import CompanyInformation, CompanyInformationTypedDict from .companyrequestbody import CompanyRequestBody, CompanyRequestBodyTypedDict from .connection import Connection, ConnectionTypedDict, SourceType @@ -74,7 +74,6 @@ from .supplierref import SupplierRef, SupplierRefTypedDict from .suppliers import Suppliers, SuppliersTypedDict from .supplierstatus import SupplierStatus -from .tags import Tags, TagsTypedDict from .taxratemappingoption import ( TaxRateMappingOption, TaxRateMappingOptionTypedDict, @@ -143,8 +142,6 @@ "CompanyInformationTypedDict", "CompanyRequestBody", "CompanyRequestBodyTypedDict", - "CompanyTags", - "CompanyTagsTypedDict", "CompanyTypedDict", "Connection", "ConnectionTypedDict", @@ -178,8 +175,6 @@ "SupplierTypedDict", "Suppliers", "SuppliersTypedDict", - "Tags", - "TagsTypedDict", "TaxRateMappingOption", "TaxRateMappingOptionTypedDict", "TaxRateStatus", diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/billlineitem.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/billlineitem.py index 6c27c35a2..c05b3714c 100644 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/billlineitem.py +++ b/sync-for-payables/src/codat_sync_for_payables/models/shared/billlineitem.py @@ -27,14 +27,14 @@ class BillLineItemTypedDict(TypedDict): r"""Number of units of goods or services received.""" account_ref: BillAccountRefTypedDict r"""Reference to the account to which the line item is linked.""" - tax_rate_ref: BillTaxRateRefTypedDict - r"""Reference to the tax rate to which the line item is linked.""" description: NotRequired[Nullable[str]] r"""Friendly name of the goods or services received.""" tax_amount: NotRequired[Decimal] r"""Amount of tax applied to the line item.""" total_amount: NotRequired[Nullable[Decimal]] r"""Total amount of the line, including tax.""" + tax_rate_ref: NotRequired[BillTaxRateRefTypedDict] + r"""Reference to the tax rate to which the line item is linked.""" class BillLineItem(BaseModel): @@ -58,9 +58,6 @@ class BillLineItem(BaseModel): account_ref: Annotated[BillAccountRef, pydantic.Field(alias="accountRef")] r"""Reference to the account to which the line item is linked.""" - tax_rate_ref: Annotated[BillTaxRateRef, pydantic.Field(alias="taxRateRef")] - r"""Reference to the tax rate to which the line item is linked.""" - description: OptionalNullable[str] = UNSET r"""Friendly name of the goods or services received.""" @@ -84,9 +81,14 @@ class BillLineItem(BaseModel): ] = UNSET r"""Total amount of the line, including tax.""" + tax_rate_ref: Annotated[ + Optional[BillTaxRateRef], pydantic.Field(alias="taxRateRef") + ] = None + r"""Reference to the tax rate to which the line item is linked.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["description", "taxAmount", "totalAmount"] + optional_fields = ["description", "taxAmount", "totalAmount", "taxRateRef"] nullable_fields = ["description", "totalAmount"] null_default_fields = [] diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/billmappingoptions.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/billmappingoptions.py index 84b0c713c..07f053598 100644 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/billmappingoptions.py +++ b/sync-for-payables/src/codat_sync_for_payables/models/shared/billmappingoptions.py @@ -14,7 +14,7 @@ class BillMappingOptionsTypedDict(TypedDict): r"""The bill mapping options for a company's accounting software.""" accounts: NotRequired[List[AccountMappingOptionTypedDict]] - tax_rate: NotRequired[List[TaxRateMappingOptionTypedDict]] + tax_rates: NotRequired[List[TaxRateMappingOptionTypedDict]] pagination: NotRequired[PaginationTypedDict] @@ -23,8 +23,8 @@ class BillMappingOptions(BaseModel): accounts: Optional[List[AccountMappingOption]] = None - tax_rate: Annotated[ - Optional[List[TaxRateMappingOption]], pydantic.Field(alias="taxRate") + tax_rates: Annotated[ + Optional[List[TaxRateMappingOption]], pydantic.Field(alias="taxRates") ] = None pagination: Optional[Pagination] = None diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/company.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/company.py index 791fb2601..484f9272d 100644 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/company.py +++ b/sync-for-payables/src/codat_sync_for_payables/models/shared/company.py @@ -11,18 +11,10 @@ ) import pydantic from pydantic import model_serializer -from typing import List, Optional +from typing import Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -class CompanyTagsTypedDict(TypedDict): - r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" - - -class CompanyTags(BaseModel): - r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" - - class CompanyTypedDict(TypedDict): r"""In Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-payables-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data. @@ -85,7 +77,7 @@ class CompanyTypedDict(TypedDict): r"""Name of user that created the company in Codat.""" products: NotRequired[List[str]] r"""An array of products that are currently enabled for the company.""" - tags: NotRequired[CompanyTagsTypedDict] + tags: NotRequired[Dict[str, str]] r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" data_connections: NotRequired[List[ConnectionTypedDict]] @@ -162,7 +154,7 @@ class Company(BaseModel): products: Optional[List[str]] = None r"""An array of products that are currently enabled for the company.""" - tags: Optional[CompanyTags] = None + tags: Optional[Dict[str, str]] = None r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" data_connections: Annotated[ diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/companyrequestbody.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/companyrequestbody.py index ad4d893ee..e7eb6a274 100644 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/companyrequestbody.py +++ b/sync-for-payables/src/codat_sync_for_payables/models/shared/companyrequestbody.py @@ -1,9 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .tags import Tags, TagsTypedDict from codat_sync_for_payables.types import BaseModel -from typing import Optional +from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict @@ -12,7 +11,7 @@ class CompanyRequestBodyTypedDict(TypedDict): r"""Name of company being connected.""" description: NotRequired[str] r"""Additional information about the company. This can be used to store foreign IDs, references, etc.""" - tags: NotRequired[TagsTypedDict] + tags: NotRequired[Dict[str, str]] r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" @@ -23,5 +22,5 @@ class CompanyRequestBody(BaseModel): description: Optional[str] = None r"""Additional information about the company. This can be used to store foreign IDs, references, etc.""" - tags: Optional[Tags] = None + tags: Optional[Dict[str, str]] = None r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" diff --git a/sync-for-payables/src/codat_sync_for_payables/models/shared/tags.py b/sync-for-payables/src/codat_sync_for_payables/models/shared/tags.py deleted file mode 100644 index 388126903..000000000 --- a/sync-for-payables/src/codat_sync_for_payables/models/shared/tags.py +++ /dev/null @@ -1,13 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from codat_sync_for_payables.types import BaseModel -from typing_extensions import TypedDict - - -class TagsTypedDict(TypedDict): - r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" - - -class Tags(BaseModel): - r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" diff --git a/sync-for-payables/src/codat_sync_for_payables/sdk.py b/sync-for-payables/src/codat_sync_for_payables/sdk.py index 75df913df..e7c5ee8f3 100644 --- a/sync-for-payables/src/codat_sync_for_payables/sdk.py +++ b/sync-for-payables/src/codat_sync_for_payables/sdk.py @@ -27,6 +27,16 @@ class CodatSyncPayables(BaseSDK): [Explore product](https://docs.codat.io/payables/bill-pay-kit) | [See OpenAPI spec](https://github.com/codatio/oas) + --- + ## Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | FreeAgent | Yes | + | QuickBooks Online | Yes | + | Oracle NetSuite | Yes | + | Xero | Yes | + --- ## Endpoints diff --git a/sync-for-payables/src/codat_sync_for_payables/sdkconfiguration.py b/sync-for-payables/src/codat_sync_for_payables/sdkconfiguration.py index abbc775f4..4d72b0686 100644 --- a/sync-for-payables/src/codat_sync_for_payables/sdkconfiguration.py +++ b/sync-for-payables/src/codat_sync_for_payables/sdkconfiguration.py @@ -27,10 +27,10 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = "python" openapi_doc_version: str = "3.0.0" - sdk_version: str = "4.0.0" - gen_version: str = "2.438.15" + sdk_version: str = "5.0.0" + gen_version: str = "2.442.11" user_agent: str = ( - "speakeasy-sdk/python 4.0.0 2.438.15 3.0.0 codat-sync-for-payables" + "speakeasy-sdk/python 5.0.0 2.442.11 3.0.0 codat-sync-for-payables" ) retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None